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.

learn more… | top users | synonyms

1
vote
3answers
3k views

Howto make MCrypt and PHP work together on CentOS

I've installed mcrypt on CentOS ( via yum ), but when I try to do a dl() call in A), I get the message in B). A) dl( mcrypt.so ) or die('The Mcrypt module could not be loaded ['. $prefix . ...
0
votes
1answer
551 views

php 5.3 seems to crash on scripts when we have register_globals turned on

apache segfaults when we have register_globals turned on with php 5.3. I know we should not do that, and we have it off now, but some of our very old code needs it. Anyone have any hints on what to ...
0
votes
4answers
1k views

Apache2 setting up Problem with Ubuntu and PHP5

[Solution] Removal of the .htaccess file in /var/www/. Apache2, php5, Ubuntu- restarted, no firewall, but server not working. The access to http://IP/dir/index.html ignites the "Forbidden" message. ...
10
votes
2answers
13k views

Installing imagick PHP extension on Ubuntu

I'm trying to install the imagick pecl extension on my Ubuntu server and am getting the below error. I've installed the ImageMagick rpm using aptitude already and the pecl extension is version 2.3.0. ...
0
votes
3answers
6k views

PHP failing to connect to GMail via IMAP [Edited!!]

I have some php code that I'm trying to use to connect to gmail using imap. Here's the code: $hostname = '{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX'; $tmp_username = 'username'; ...
1
vote
1answer
1k views

Apache2/fastcgi/php fastcgi/haproxy - graceful restart problems changing configuration settings

I have an Apache2 with php fastcgi setup; I want to do config changes without a client noticing it (so no dropped/failing requests), so I put haproxy in front of it; so I have 2 Apache2 servers ...
0
votes
2answers
1k views

Crontab running when it pleases (fixed.. in a way)

I have the following line in the crontab: */30 * * * * /usr/bin/php /home/antoniocs/phpscripts/update-noip/update-noip.php This script updates my no-ip account. It also writes to a log file saying ...
0
votes
3answers
2k views

PHP Fileinfo in custom PHP build - Linux

We custom build up our PHP installs due to some historic reasons and it gets installed into our custom compile of Apache. We are now trying to get Fileinfo to load into the PHP build and have tried ...
1
vote
2answers
2k views

Installing MySQL 5.1 & PHP 5.2 on RHEL5.3

I would quite like to be running the latest production releases of PHP and MySQL on my production RHEL5.3 server. PHP so that I can use Zend Framework 1.9 which only supports PHP 5.2.4 or later. ...
5
votes
3answers
11k views

PHP installation on IIS: ISAPI or CGI?

I'm running IIS6 on Windows Server 2k3, and currently have PHP installed as a ISAPI module. We're about to upgrade our environment to PHP 5.3.0, and this made me wonder whether I should stick with the ...
2
votes
3answers
6k views

Tips to backup ubuntu server

I have a Ubuntu server hosting a PHP5 / MySQL webapp. I also have another server (offsite) with a directory just for backups of my webapp server. Currently, I have a simple cron job which performs ...
6
votes
4answers
772 views

Apache Never runs after configuring eAccelerator and FastCGI

I recently configured accelerator and fastcgi with apache using: http://secure-ubuntu-server.blogspot.com/2009/07/howto-performance-tuning-of-lamp-and.html Now my Apache never starts. Logs shows: ...
0
votes
7answers
4k views

Strange GD error when working on PNG images from PHP on FreeBSD

I have a problem with my FreeBSD 7.1 server. PHP's GD implementation no longer works on PNG images. Whenever the system tries to work with PNG images, I get these three error messages: [Sat Jul 18 ...
1
vote
1answer
672 views

Apache 2 Fails to start after upgrade to PHP 5.3

I just upgraded to PHP 5.3 (Thread Safe VC6) on my windows server 2003 machine running Apache 2.2.4, and now Apache fails to start. I tested the pre-packed development ini file, and Apache will ...
1
vote
3answers
3k views

How can I install PHP5 on Fedora Core 5?

I'm trying to install PHP5 from source on FC5 and everything is configures and compiles fine. When I try to run php however I receive the following errors. PHP Warning: PHP Startup: mysql: Unable to ...
0
votes
2answers
2k views

Differences between php5 and php5-cli packages on Debian

I have a debian etch server with php5 packages installed. My issue is that I can't find any php executable to run scripts on the command line. Running "whereis php5" return folders with only config ...
0
votes
1answer
707 views

apache crash with exec in php

i am try to convert some file with exec in php and get the return . i do this and this is work so successfully but if i run it for more than 10 times, the webserver (wampserver) get crash and i must ...
0
votes
2answers
541 views

Why does working permisson of PHP script differs between server?

<?PHP print "hello"; ?> I write this code and save as "1.php"; Then I upload this PHP script to my server. I have 8 diffrent free hosting server's accounts. And I noticed that there are 2 ...
1
vote
3answers
738 views

Problems upgrading from PHP 5.1.6 to 5.2.9

I have a web server running Fedora Core 5 (yes, I know it's very old) and it was running PHP 5.1.6 so I downloaded and compiled the source for 5.2.9 and restarted the server and phpinfo() still ...