Questions tagged [php]

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.

PHP is an open-source general-purpose scripting language that is suited and popular for server-side Web Development. There is an excellent online manual and a wiki. The online manual is a complete reference for syntax, built in functions, and extensions. There are lots of extensions for PHP that most of them can be find in PECL.

If you want to post a question in PHP, check the error log or if errors are enabled, enter them from output of your script if any.

7887 questions
2
votes
1 answer

PHP Fatal error: Maximum execution time of 0 seconds exceeded

I have PHP application that uses pdf2htmlEX and HTMLpurifier to convert pdf documents to text format. Conversion process consist of few steps: 1. uploading book using web browser 2. conversion from pdf to txt using pdf2htmlex 3. processing txt files…
2
votes
2 answers

nginx / fpm and PHP_VALUE not working

I am trying to alter some php.ini values for a single site of my web server: fastcgi_param PHP_VALUE "auto_prepend_file=/var/www/profile/external/header.php \n auto_append_file=/var/www/profile/external/footer.php"; but the value is totally…
kitensei
  • 123
  • 1
  • 4
2
votes
3 answers

How can I display and log PHP errors on IIS7.5?

I running PHP 5.4.5 on an IIS 7.5 Server (under Win7 64) and i have problems making PHP errors visible. At the moment whenever i have a PHP error the server sends back a 500 error with the message "The page cannot be displayed because an internal…
ozz
  • 21
  • 3
2
votes
3 answers

Determine php script causing MySQL huge load

I'm running a young non-profit organization aiming at providing free and low cost web hosting. Since few days, our server load is around 1.5, sometimes raising to 7. top shows me that MySQL is the bad boy: PID USER PRI NI VIRT RES SHR S…
Max13
  • 141
  • 1
  • 9
2
votes
2 answers

Where does PHP's syslog write error messages in windows?

I'm currently running a drupal site on windows using WAMP. From reading the API docs, I think that drupal uses PHP's syslog function to log status messages. I was wondering if there was a way to configure the event viewer to show the log messages…
user15683
2
votes
3 answers

How do I improve the performance of my Drupal site with a lot of concurrent users?

I have a Drupal site that may receive a very high hit rate on launch. We've rented a very beefy server for the initial launch, after which we'll downscale. The server has a Xeon E5-2670 8 core processor @ 2.6ghz and 30gb of RAM. MySQL has been given…
George
  • 123
  • 3
2
votes
1 answer

How to make Apache's error log show more information?

I am getting the following error in Apache's log file: [Sat Apr 13 18:11:07 2013] [error] [client x.x.x.X] Premature end of script headers: index.php I have a couple of ideas as to what could be causing it, but my application is pretty big and…
Matt
  • 222
  • 2
  • 8
2
votes
1 answer

How do I check APC cache is working?

I have Debian server with php5-fpm and nginx installed. Just installed apc cache: apt-get install php5-apc /etc/init.d/php5-fpm restart /etc/init.d/nginx restart when I modify any php file and reload it in the browser it shows all changes…
iscna
  • 23
  • 1
  • 1
  • 3
2
votes
2 answers

Stopping memcached: [FAILED]. Why?

My application seems to be having issues with memcached not stopping. I'm using php, and have specific keys expiring after every hour. However those keys & values are not repopulating anymore. When I run: /etc/init.d/memcached restart I get the…
Jhouse153
  • 21
  • 1
  • 2
2
votes
1 answer

Apache high CPU usage, setting a overload limit

On a ubuntu server, I run a LAMP environment with APC, and fast-cgi as php mod, to host 2 wordpress sites, and both sites have Wordpress Total Cache (W3TC) plugin configured. The server's specs are: 2gb ram and 1 cpu (cpu MHz: 2100.076, cache size:…
w0rldart
  • 217
  • 1
  • 2
  • 14
2
votes
2 answers

libxml2 on CentOS 5.9

I'm having problems with a CentOS 5.9 web server running php sites. Apparently libxml2 2.6.26-2.1.21.el5_9.2 has a known bug, but there doesn't seem like they've put the newer release into the repo's, as you can't update it using yum. I searched a…
user167772
  • 23
  • 4
2
votes
0 answers

IIS and PHP with FastCGI/WinCache not seeing updated files

We have a script that regularly updates itself on a scheduled task. It downloads a ZIP, then extracts and overwrites a bunch of app files with new ones. We're seeing many cases on IIS where the updated files aren't "seen": Display oddities or in the…
chroder
  • 664
  • 2
  • 8
  • 17
2
votes
3 answers

Trouble sending an email with the PHP mail function. Full trace provided

I have a simple script setup: I cannot send email from my server to AOL accounts. The error details are below. GMail lets me send the message...so I guess AOL is just a bit…
Tony
  • 4,213
  • 11
  • 35
  • 29
2
votes
2 answers

How do I disable functions on servers for particular directories?

I want to disable some functions on server to improve security of server. I followed these steps: STEP: 1 Open php.ini file: vi /etc/php.ini STEP: 2 Find disable_functions and set new list as follows: disable_functions=…
Himanshu Matta
  • 77
  • 1
  • 2
  • 8
2
votes
3 answers

PHP white screen on error

I'm getting a white screen every time a PHP application drops an error. I checked php.ini and error_reporting = E_ALL and display_errors = On Also I checked with the php_info() function and error_reporting is set to 6135 which is correct. I…
flupkear