php


PHP version Conflict between 5.5 and 7.1 in ubuntu 14.04 LTS


When I want to know my php version by terminal using
#php -v
I am getting
PHP 7.1.4-1+deb.sury.org~trusty+1 (cli) (built: Apr 11 2017 22:45:20) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.1.4-1+deb.sury.org~trusty+1,
Copyright (c) 1999-2017, by Zend Technologies
But when I am trying to run info.php written with php code
<?php phpinfo(); ?>
O/P
PHP Version 5.5.9-1ubuntu4.21
Please let me clear what is happening exactly with my php version.
I installed the full LAMP on my system freshly after un-install APACHE2, PHP & My-Sql.
type which php in terminal. the result you get is the default
Also, I recommend check Loaded Configuration File item at phpinfo() output.
Here I got /etc/php/7.0/apache2/php.ini using Ubuntu 16.04 LTS and PHP 7.0.15 with Apache.
Then at the terminal, run php --ini and check the same item Loaded Configuration File: to see if got any difference.

Related Links

Laravel 5 - Share variables in Service Providers
Custom shopping cart error: Can't use function return value in write context
Yii Login Issues
Access to an array value depending it name
Child theme enqueuing with dependencies
Php Repeatable region
XAMPP missing php_eaccelerator_ts.dll
WP Admin Bar Missing
Force Sonata to rebuild thumbs
Getting error of JSON Parser in my code
Prevent opening new window or new tab on the same site?
Solution to debug PHP code on remote server, using remote IDE
PHP image resize function doesn't work properly?
Remove duplicates from SimpleXML Object
How to compare first character of string to other PHP [closed]
Multiple Forms, check input from all with one submit button

Categories

HOME
extjs
vagrant
yahoo-weather-api
livecode
long-integer
dry
cryptography
impala
mithril.js
firebase-database
port
msmq
wine
clickable-image
azure-graph-api
driver
getopenfilename
grocery-crud
orange-api
exe
jaspersoft-studio
pymongo
ratio
function-points
plyr
fstar
ninject
javax.persistence
tilemill
quick-nimble
reporting
sql-execution-plan
advanced-filter
pdfnet
bluemixtools
macports
uivisualeffectview
pyttsx
dagger
latexml
xcode8.2
image-registration
phppgadmin
gestures
android-webservice
perl-data-structures
annotatorjs
scheduledexecutorservice
s-function
p6spy
mercurial-extension
management-studio-express
html.actionlink
google-maps-api-2
360-degrees
ipod
mxe
iodocs
tabris
visual-studio-6
object-code
siena
accountmanager
gpu-programming
typesafe-stack
pbkdf2
non-ascii-characters
jquery-transit
codahale-metrics
daap
story
border-box
zotonic
pcspim
dropshadow
gwt-celltable
mvcrecaptcha
azure-acs
mediacontroller
directshow.net
jmenu
nsconnection
ccl
fgetc
browser-based
processors
subtext
remote-working
bindable-linq

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App