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

Parse error: syntax error, unexpected '"', expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) [duplicate]
How to remove items with certain length from array in php
PHP running multiple scripts concurrently
Laravel can't grab inputs from form to send out email
Find array key where value contains a specific value
Redirecting duplicated pages in WordPress template
Show Duplicate Values ‚Äčin Mysql
PHP SHMOP() Memory read error
How to write correct syntax for myname [closed]
getting error when try to save shipping information for user using magento 2 api
foreach with a simple variable?
SQL sub query from PHP PDO query
inserting record if count of column is less than two else not inserting into mysql
MethodNotAllowedHttpException in RouteCollection.php line 218 what can I do?
dompdf showing quesetion marks Instead of arabic characters
Wordpress Multisite - Nginx with php-fpm random 404 errors

Categories

HOME
spring-data
entity-framework
opencart
cucumber
applescript
antd
operating-system
mathematical-optimization
capistrano
minecraft
cisco
gtk
yeoman-generator-angular
nsstring
game-maker
android-externalstorage
live-streaming
bundler
google-tasks-api
web-deployment
clr
spring-shell
bsd
candlestick-chart
eclipse-emf
raima
plyr
sap-lumira
django-import-export
sendmessage
boolean-logic
source-insight
vcenter
sca
cloudera-manager
des
keyboard-layout
aurelia-cli
ms-dos
spring-restcontroller
slideshow
resampling
dagger
music21
axis
swift2.3
sonarqube5.2
sony-future-lab-n
redisson
simple-schema
algebra
asp.net-web-api-routing
mpmovieplayercontroller
pbx
ogg
java-2d
fuzzer
callouts
wicked-pdf
uibinder
ioexception
cortana
odesk
calcite
blank-line
canopy
gql
ngcordova
bootstrap-wysiwyg
algebraixlib
componentart
kefir.js
ssmtp
maven-shade-plugin
tkx
phonegap-facebook-plugin
sunos
hp-idol-ondemand
cakephp-2.2
cout
nidaqmx
accessory
mfmessagecomposeview
nosql-aggregation
particle-swarm
illuminate-container
progress-db
discovery
sql-view
days
jquery-cycle
oembed
email-verification
multiple-dispatch
firebird1.5
mkannotation
infopath-2007
filelock
startupscript
jquery-1.4
gaelyk
cassini
subtext
tacit-programming
ning
downloadfile

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