PHP is a general-purpose scripting language that is especially suited for Web development. The online manual is an excellent resource for the language syntax and has an extensive list of the built-in and extension functions. Most extensions can be found in PECL.
Questions tagged [php5]
865 questions
3
votes
2 answers
Where can I get php_mysql.dll for Windows?
I just installed Apache 2.2.17, PHP 5.2.14, and MySQL 5.1.51 on Windows XP. Apache is working and is loading PHP properly, but when I try to connect to MySQL, I get "Fatal error: Call to undefined function mysql_connect()". After some googling, I…

Graeme Perrow
- 555
- 1
- 4
- 16
3
votes
3 answers
How to fix Apache from crashing with PHP+Curl on an SSL request?
My Apache process segfaults whenever I call curl_exec() from PHP with an "https://" URL.
If I use http instead of https as the URL transport, it works perfectly, so I know curl and the other curl options are correct.
I can use curl from the…

Jason Cohen
- 1,127
- 3
- 14
- 21
3
votes
3 answers
Apache serves incorrect page
To preface: this has got to be one of the strangest bugs I have ever seen, especially since it comes and goes.
There exists a page called view.php and another page called save.php. The bug manifests when I request save.php - I instead get view.php.…

Andrew G
- 31
- 1
3
votes
3 answers
apache not displaying php pages, offering them for download instead
we are trying to setup apache (apache 2 in this case, although apache does the same thing) and html pages display just fine, however, any php pages linked into buttons on the front page are offered for download rather than being displayed.
Any ideas…

Peter Nunn
- 452
- 1
- 11
- 25
3
votes
3 answers
Apache: How can I serve JavaScript via PHP?
I want to serve my JavaScript files via a PHP script.
An example would be:
If I were to request a JavaScript file called dir/my_file.js
The server should redirect the request to a handler script called my_script_server.php?src=dir/my_files.js
How…

Christian Toma
- 160
- 1
- 8
3
votes
4 answers
Can I run PHP 5.3 and PHP 5.2 on the same server with Apache?
I just curious if there's a way I can set up my development box so that I can have some sites running PHP 5.3 and some with PHP 5.2, and that I can switch between them fairly painlessly.

ironkeith
- 135
- 1
- 4
3
votes
5 answers
apache-user & root access
I want to develop few scripts in php that will invoke following commands; using exec() function
service network restart
crontab -u root /xyz/abc/fjs/crontab
etc.
The issue is that Apache executes script as apache user (I am on CentOS 5),…

Ahmed Memon
- 95
- 2
- 7
2
votes
3 answers
php5-mcrypt install errors
Running Ubuntu 9.10 and I am trying to install the php5-mcrypt module is killing me softly. I am not sure what else to try. Anyone have any idea?
Here is the error i get:
sudo apt-get install php5-mcrypt Reading package lists... Done
Building…

NTulip
- 123
- 1
- 6
2
votes
1 answer
Am I missing a step in imagick php installation on Docker?
I have the following in a Dockerfile for a container running PHP5.x:
RUN apt-get install -y php5-imagick libmagickwand-dev libmagickcore-dev
RUN pecl install imagick
RUN echo "extension=`php -i | grep ^extension_dir | cut -f 3 -d ' '`/imagick.so" >>…

Mayor of the Plattenbaus
- 121
- 3
2
votes
1 answer
Running php4 and php5 along side each other
I need to have both installed and running on the same server instance for a dev environment.
They both need to handle the .php extension, I have read that this can be done by .htaccess set up but have know idea how to do the actual…
stuckinphp
2
votes
1 answer
Install PHP-Mysql without mariadb-libs
I'm trying to install PHP on my server, running Centos 7.3; I've installed php 5.4, and have MySQL Server 5.6.28 running there too.
When I'm trying to install php-mysql, it's trying to install mariadb-libs for dependencies, and it stops with…

Mauricio Cacho
- 121
- 4
2
votes
1 answer
How many fast-cgi processes to use with PHP-FPM and NginX
Does anyone know of a good source out there - or possibly can answer this in here - that can guide me as to how many Fast-cgi processes and Nginx processes I need to have running to serve a moderatly popular website. Between 75-100k pageview / day,…
Jeff
2
votes
0 answers
Compiling PHP 5.5.7 with PDO IBM for IBM DB2
I'm trying to compile PHP 5.5.7 on an Ubuntu 12.04 with ubuntu precise partner repository enabled to allow to install IBM DB2 from db2exc package.
When I configure PHP with pdo ibm
source /home/db2inst1/sqllib/db2profile
./configure
…

corretge
- 217
- 3
- 9
2
votes
1 answer
Why are my php extensions being compiled for PHP4 and not PHP5
I'm trying to compile memcache for Dreamhost PS.
The library is created but not shown in phpinfo. Apache logs says the library isn't loaded because "undefined symbol: OnUpdateInt in Unknown on line 0"
I read that OnUpdateInt is defined in PHP4 and…

Niro
- 1,401
- 4
- 20
- 36
2
votes
1 answer
Issue installing Ioncube with PHP 5.6.11 with Apache 2.4.16 on centOS 6.7
This is how I am compiling PHP 5.6.11 with apache2 2.4.16 on cenOS 6.7:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/lib --with-mysql --with-curl --with-openssl --disable-fileinfo --enable-bcmath…

Hashmi
- 143
- 10