Questions tagged [php]

PHP is a server-side scripting language, used for building browser-based applications. This includes websites as well as programs that don't really need any form of interaction with the user.

PHP initially stood for Personal Home Page but as it evolved into a full-fledged server-side language, it was renamed with a recursive title "PHP Hypertext Pre-processor".

The languages uses a syntax simliar to conventional C, but it has its own set of functions.

Being a server-side language, PHP cannot receive user inputs. However, inputs sent from a program such as a web browser can be received by PHP on the server.

After PHP version 5, the language became truly object-oriented. Other languages that fall into the same category include

  • ASP (Active Server Pages) - a more Windows-oriented language.
  • JSP (Java Server Pages)

From the inception, PHP has been used with MySQL for building database applications. Both being open-source tools, have made the duo like bread and butter. However, in recent years, more DB platforms have got popular with PHP and these include MS-SQL Server, PostgreSQL and more.

2598 questions
206
votes
7 answers

How do I install curl in php5?

I currently have PHP 5.3 installed with Apache in 10.04 Lucid. How can I add the PHP Curl libraries? Do I need to install any other dependencies for curl?
17
votes
5 answers

How can I get the `bcmath` plugin in php5 in Ubuntu?

I've seen a PHP BC-MATH installation for YUM but not apt-get. Does one know of a working apt-get solution? Unfortunately, from this SO thread, apt-get install php5-bcmath gives the error Unable to locate package php5-bcmath.
tim peterson
  • 2,285
16
votes
3 answers

How to install php without Apache webserver?

It seems that the only way to do this is to install together an Apache server which is very-very unwanted (in our case). We just want to utilize the simple built-in web server, as the lucky users of some non-ubuntu OSes (like MS Windows 10) have.
10
votes
2 answers

What does .: mean in php include_path?

I'm trying to install Zend on a machine running xampp. Zend's help file says that in order to set up the command-line tools, I need to make sure that the contents of the /library directory are placed inside my php include_path specified…
EmmyS
  • 15,920
7
votes
1 answer

How can I find the executable path of php?

I need to have the executable path of my php, because I want to run php file on eclipse php. Obviously there is no exe file, so which file do I have to search to?
6
votes
1 answer

What's the difference between the php7.0-sqlite and php-sqlite3 packages?

When you use apt-get, what's the difference between the php7.0-sqlite package and the php-sqlite3 package? I'm trying to get a php PDO package
6
votes
1 answer

it is not possible to install php5-cli

sudo apt-get install php5-cli Reading package lists... Done Building dependency tree Reading state information... Done Package php5-cli is not available, but is referred to by another package. This may mean that the package is missing, has…
6
votes
1 answer

How to recover the default php.ini

I accidentally deleted php.ini from /etc/php5/apache2. How to recover it? I tried to remove and install php5 without luck.
Sanjeev Divekar
  • 61
  • 1
  • 1
  • 2
5
votes
3 answers

Downgrade form php5 5.3.10 to php5 5.3.2 in ubuntu 12.04

i wanted to install php5 5.3.2, so first deleted all the php5 files sudo apt-get purge php5 php5-cli php5-common php5-mysql and also delete the deb files form /var/cache/apt/archives so now there is no deb file on the system then i add this…
iori
  • 51
4
votes
2 answers

php5-openssl package for Ubuntu 16.04 LTS?

dev_appserver.py doesn't support php7. I've installed php5.6 from ppa:ondrej/php, but I cannot find an openssl loadable module. Packages php5-openssl and php5.6-openssl don't seem to exist. Where can I find a compatible PHP openssl module?
Brian K Haney
  • 41
  • 1
  • 1
  • 3
4
votes
1 answer

How to remove PHPUnit?

I globally installed PHPUnit 5.1 using the PHAR: wget https://phar.phpunit.de/phpunit.phar chmod +x phpunit.phar sudo mv phpunit.phar /usr/local/bin/phpunit Here's the message I get when I run phpunit --version: This version of PHPUnit requires…
4
votes
1 answer

Installing Imagick extension on PHP 7 nightly on Ubuntu 14.04

I have ImageMagick installed and this, plus the Imagick extension, was working fine in PHP 5.6. Currently using the PHP 7 nightly build on Ubuntu 14.04, installed as per: http://php7.zend.com/ I understand there are compatibility issues, so I have…
4
votes
1 answer

#!/usr/bin/php sometimes not working on 12.10 server

I've recently moved some working code from a 12.04 server to a 12.1 server. Everything working well except.... Some of my scripts include #!/usr/bin/php -q at the top so I can run them from the command line without explicitly invoking php/. Some of…
RoyHB
  • 354
3
votes
2 answers

How do you find php.ini in ubuntu for phpv7.2

I have installed PHP v7.2. when I do php -v in my terminal, I get: $ php -v PHP 7.2.0-2+ubuntu16.04.1+deb.sury.org+2 (cli) (built: Dec 7 2017 20:14:31) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend…
3
votes
2 answers

How often is php updated?

I am using ubuntu 10.04. I had installed php with the following command if that makes a difference: sudo apt-get install php5 libapache2-mod-php5 The PHP version on my computer is 5.3.2-1. Will PHP be upgraded any further on this version? If so,…
ryy
  • 163
1
2 3
8 9