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

php5.4 + freebsd8.3+nginx can't get errors

I have a confusing behaviour. I can't get any error into log file or screen. I made a file index.php with content like this: "
2
votes
2 answers

One single page showing 3 requests (also printing the headers)

Someone in my studio designed a webpage some years ago, and now the client decided to change the server (he moved to a Linux Apache server running Gen2 SMP, 64 bits, PHP version 5.3.8, Standard MYSQL version 5). It suddenly started to do weird…
Sergi Juanola
  • 29
  • 1
  • 9
2
votes
1 answer

lighttpd: Backend is overloaded + fcgi-server re-enabled + all handlers are down

We have a standard lighttpd deployment with PHP-CGI and our error logs are flooding with the following. This is causing a huge problem because we keep returning 500's to our clients: 2012-10-14 14:28:38: (mod_fastcgi.c.3001) backend is overloaded;…
AbuZubair
  • 123
  • 1
  • 4
2
votes
1 answer

missing config files when compiling a php extension

I do the phpize.. When I reach the ./configure It tells me it can fins the php-config (configure: error: Cannot find php-config. Please use --with-php-config=PATH) I assume it means a file named php-config I do ./configure…
2
votes
1 answer

Error while compiling PHP extension

I'm trying to install a php extension that is written in c and make use of MongoDB c driver. I have been trying for the last 2 days to compile and install the extension, however, I'm getting the same error. /usr/bin/ld:…
user140239
2
votes
1 answer

Amazon S3 Website & MySQL Backup

I have a website (a digital asset management system/gallery - http://www.resourcespace.org) that has a huge amount of images. The total size of the website, including the images is approximately 6gb. The website is in PHP and uses a MySQL…
user991830
2
votes
2 answers

How to serve different application & server based on cookie

I'm building the frontend marketing website for a web application. The frontend is WordPress on one server and the app is on another. We will set a cookie for users who are already customers. For returning customers, when they go to www.company.com,…
2
votes
1 answer

File::Temp version 0.18 required--this is only version 16

I ran YUM on a server running BestPractical's RT. Now Apache won't start. Looking at the error log I get this error: File::Temp version 0.18 required--this is only version 0.16 at /usr/lib/perl5/site_perl/5.8.8/MIME/Tools.pm line 14. I ran CPAN…
David Mackey
  • 697
  • 2
  • 15
  • 30
2
votes
1 answer

CLI SAPI based daemon, PHP app with cronjobs support

I need to build an CLI SAPI based daemon, PHP app with cronjobs support for iOS platform. We have dedicated server. What kind of PHP environment to run this type of PHP applications?
Smart Bird
  • 225
  • 1
  • 8
2
votes
3 answers

Install PHP mcrypt on Red Hat 4

I'm having a very hard time getting mcrypt for PHP installed on a Red Hat 4 server. I've downloaded the rpm but it tells me: error: Failed dependencies: php-common(x86-32) = 5.4.7-2.fc18 is needed by php-mcrypt-5.4.7-2.fc18.i686 …
Chris
  • 195
  • 3
  • 8
2
votes
3 answers

php-fpm version 5.4 with nginx constantly restarting

I just upgraded my php version from 5.3.x to 5.4.x and since doing this - memory has dropped signifincantly! - however, I'm constantly getting these in my php5-fpm.log: [18-Sep-2012 15:11:34] WARNING: [pool www] child 8981 exited on signal 11…
endyourif
  • 121
  • 5
2
votes
1 answer

Should I use suPHP or DSO (mod_PHP) when php scripts need to manipulate files?

I recently asked a question on StackOverflow and I'm going to re-ask it here as a different question and with some changes and additional information. I have a bunch of php scripts that need the ability to create, move, and delete files and folders.…
Nate
  • 449
  • 6
  • 11
  • 24
2
votes
1 answer

Enable DOM/XML on Centos 6.3

After some research from our team and trial and errors, we we're not able to make '--disable-dom' dissapear from the phpinfo. I've tried to reinstall php-xml but I got the following message: Package php-xml-5.3.3-14.el6_3.x86_64 already installed…
newpoison
  • 123
  • 4
2
votes
1 answer

apache error document displaying urlencoded characters wrong

If I request a page like http://url/T%C3%A4st (http://url/Täst) my Apache-Error Pages display with a wrong encoding, for example: The requested URL /Täst was not found on this server.
Zulakis
  • 4,153
  • 14
  • 48
  • 76
2
votes
1 answer

Utf-8 encoding for PHP-scripts creates "headers already sent"

If I upload php files that are encoded in UTF-8, instead of ANSI, it creates problems with "headers already sent" on the server. vi shows {feff} at the start and nano does not show the \ at the start. When I remove the {feff} manually in vi, it…
ujjain
  • 3,983
  • 16
  • 53
  • 91
1 2 3
99
100