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

5
votes
0answers
491 views

Php pdo_dblib - cannot find/unable to load freetds

Self-hosted box, RHEL 6 PHP 5.3.3 PDO installed freetds installed pdo_dblib - so far no luck installing My goal is to use PDO with sybase. Attempting to install pdo_dblib from the appropriate ...
3
votes
0answers
159 views

PHP not closing TCP CLOSE_WAIT on web server

My web server has a lot of apache tcp CLOSE_WAIT's stuck at poll(found through a backtrace in gdb), How do I debug what in php is causing my web server to not properly close connections?
2
votes
0answers
31 views

Nginx directory post

THere is a piece of legacy code I'm working on, I can't alter where it POSTs to so I just need to figure a way around it. THe bit of Javascript makes a post as follows - POST /authentication/login/ ...
2
votes
0answers
95 views

What would cause a PHP app to segfault intermittently under load?

Posted this on stackoverflow but it seems more relevant over here... I'm doing some load testing (using jMeter) on a PHP app (it's a symfony app, if that matters). I've tested it under both ...
2
votes
0answers
84 views

LighTPD and PHP not working if outside of LightTPD folder

I need to set up a simple web server with PHP on Windows XP that a number of different people will use for local testing. I'm using LightTPD 1.4.30-4-IPv6-Win32-SSL and PHP 5.2. So far I've created ...
2
votes
0answers
66 views

Can't make PHP work as FastCGI on Apache and Windows

I'm trying to run PHP as FastCGI with no success. I made a *.conf file such on mod_fcgid page but without a wrapper script. Here is my conf: # php5 as FastCGI executable FcgidMaxRequestsPerProcess ...
2
votes
0answers
154 views

AWS amazon SES stopped working suddenly

I am not able to send the mail from aws.amazon SES since from Monday (30-10-2012) previously it is working fine suddenly it stopped working. I got following is the errors A PHP Error was encountered ...
2
votes
0answers
151 views

MySQL: 5000 core users, 2GB Table Heavy Write / Read: How to Prevent Crashing

This is a controversial issue for sure, since many might want to recommend the simple things right away, like: Split up the tables! Split up the read/write into master/slave configurations! Amp up the ...
2
votes
0answers
288 views

Strange Apache/PHP&Perl behavior—error (70007)

I’m dealing with a particular strange situation: I have two Linux machines, one with Scientific Linux (v4.8) and one with CentOS (v6.2). On the SL machine I have a XAMPP distribution with Apache ...
2
votes
0answers
339 views

Mod_pagespeed with Zend Framework gives 404

I am expiering some problems with the Google's Apache mod_pagespeed module to combine css, js, etc. During the last months I developed a new version of our software based on Zend Framework. I just ...
2
votes
0answers
195 views

Nginx Subdirectory Drupal + other app

I have a drupal app and 2 other app written in php, i want use a rewrite uri for drupal and place drupal in virtual root / and the other by their names ... and use the server cache for the img of each ...
2
votes
0answers
205 views

PHP suddenly failed after IIS update

All my application pools were stopped this morning after I got to work. I can restart them, but when I try to load the website the app pool crashes again. Update: I've looked in the GAC as the error ...
2
votes
0answers
248 views

PHP + ImageMagick Performance Issues

Good Day, I have two environments: OpenVZ VPS and Pentium 4 local dev machine. They have all packages installed the same way. ImageMagick is compiled from sources without OpenMP support. When I run ...
2
votes
0answers
239 views

Installation of Image Magick on Wamp

I did the following yet the image Magick extension doesn't get loaded I downloaded and installed the binary ImageMagick-6.7.5-3-Q16-windows-dll.exe at c:/imagemagick added to the httpd.conf file ...
2
votes
0answers
133 views

Setting PHP remote write permissions in IIS7

I have two windows server 2008 servers. One is a web server one is a file server. A php script runs on the web server and is supposed to write to the other server. I am getting a permissions error. I ...
2
votes
0answers
381 views

Long Polling Options: Nginx, PHP, Node.js

Also posted here: http://stackoverflow.com/questions/8839295/long-polling-options-nginx-php-node-js I'm designing a long-polling app to broadcast small changes very rapidly to, possibly, a large ...
2
votes
0answers
591 views

php-cgi.exe and/or php5.dll crashing - PHP 5.2.17, Win2k8 & IIS7

A specific part of my PHP script crashes randomly and I'm not sure why. The only difference on this page and the rest of the pages, is that I'm doing a PDO SQLSRV call. But 80% of the time there are ...
2
votes
0answers
509 views

How to fix error when compiling php 5.3.8 with openssl 1.0.0e on X86_64?

I am compiling PHP 5.3.8 like this: ./configure --with-openssl=/usr/local/openssl OpenSSL is compiled as follows: ./configure --prefix=/usr/local/openssl -fPIC When I do make of PHP, I get this ...
2
votes
0answers
411 views

Content Encoding Error on new IIS 7 server with PHP

I recently moved a PHP (Cake framework) development site from an IIS 6 (x86) server to an IIS 7 server (x64). The content is all the same and the URL rewriting works, but on the attempt to display the ...
2
votes
0answers
197 views

MagickWand PHP Module DDL for Windows

I'm struggling with enabling MagickWand as a PHP extension which is ran on Windows (Apache). I am running PHP 5.3.x. (I need namespaces). I have been able to install MagickWand on PHP 5.2.4 but not ...
2
votes
0answers
566 views

PHP: Call to undefined function mb_strlen() - on custom compiled PHP with mbstring enabled

I have this custom compiled PHP (v5.3.3) with the following extensions enabled (via configure): ./configure --prefix=/usr/local/php5.3.3 --with-config-file-path=/usr/local/apache2/conf ...
2
votes
0answers
293 views

Getting regular PHP updates in Ubuntu Lucid

So we have a few servers that are running Lucid and will be running apache/php. We would like to be able to run PHP scripts as different systems users as well as have customized php.ini files for ...
1
vote
0answers
25 views

PHP SSI with NGINX

I've got a really old website I'd like try running on NGINX instead of Apache. This site consists of many flat HTML files with sporadic PHP SSIs, such as: <!--#include virtual="/some_file.php" ...
1
vote
0answers
29 views

How can I serve up HTML and JSON with nginx during “maintenance mode”?

I've got an nginx config for a PHP web app and I would like to make it serve an additional purpose, and I can't seem to find a way to accomplish it. My current nginx config does the following: ...
1
vote
0answers
28 views

Conflict with 3 different RewriteRules in .htaccess?

I'm using the below in my .htaccess file. There 3 types of redirects: redirect to directory /admin/index.php redirect to specific .php files e.g. /about redirect to user profile page from /John ...
1
vote
0answers
28 views

ps x shows weird command: -f html/index.php

Just went to check one of my websites and was greeted by the message: "CGIWrap Error: Real UID could not be changed!". Went in via SSH and tried "ps x" which showed me tons of processes that that ...
1
vote
0answers
44 views

What could cause a PHP script run as a cron job to end up in D state?

My server is running Ubuntu 12.04 LTS (precise) and I'm having a weird issue. The server is hosting a large website which is used for data collection. The website is in PHP and uses Zend Framework. ...
1
vote
0answers
47 views

Performance issues with small dedicated plesk centos5 server

I am getting some fairly sever performance issues with my plesk 11 dedicated box, it has 8 gigs of ram, static pages load very fast, a firstbyte time of less then 0.5 seconds, however dynamic php ...
1
vote
0answers
57 views

Executing a python script from PHP to open a socket

I have a python script chatserver.py that includes:- #!/usr/bin/python from twisted.internet.protocol import Protocol, Factory from twisted.internet import reactor <SNIP> ...
1
vote
0answers
29 views

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 ...
1
vote
0answers
205 views

php mail + postfix with multiple domains send from right domain?

i followed this tutorial to set up Postfix+Dovecot+postfixadmin on Ubuntu: http://www.exratione.com/2012/05/a-mailserver-on-ubuntu-1204-postfix-dovecot-mysql/ I want to send emails from multiple ...
1
vote
0answers
69 views

What is the correct way to log PHP script's execution time and memory usage?

I want to monitor the execution time and memory usage for my web application running on Nginx + FPM. To that end, I am generating execution time and memory data in the page footer. I can also insert ...
1
vote
0answers
91 views

Some (but not all) cron jobs stopped running. Restarting cron fixed it, but what caused it?

I'm running Ubuntu Server 10.04 with a crontab which runs every minute, with a lot of jobs in the file. Each job is a PHP script to be executed. Earlier today, it seems that some (but not all) of the ...
1
vote
0answers
53 views

PHP UTF-8 bondary regex does not work

I have a CentOS 6 with newest updates running a LAMP stack. A user is complaining that his code does not work and he is trying to use preg_match with unicode characters. This is the code not ...
1
vote
0answers
66 views

Can lighttpd be configured to spawn it's own instances of PHP on Windows7?

Currently, this is how I start PHP and lighttpd and it works fine: start /b php-cgi -c .\php-debug.ini -b 127.0.0.1:521 start /b LightTPD.exe Once and awhile PHP crashes and I get 503 errors ...
1
vote
0answers
118 views

Compiling PHP on Debian creates errors about GD library

I'm getting too many make test fails when I compile PHP (5.3.16) on debian. These errors are mostly about gd library and image processing. As a result GD functions like imagecopyresampled produce ...
1
vote
0answers
34 views

Can Squid3 access PHP Helpers

Can Squid3 use PHP helper programs other than for ACL and redirect? I need Squid to use a PHP program (with mysql access) to set the parent proxy that should be used for a particular connection, so ...
1
vote
0answers
74 views

Can't make updates with LDAP from Linux box to Windows AD

I have a webapp (built using Zend Framework - PHP) that runs on a Linux environment which needs to authenticate against Active Directory on a Windows server. So far my webapp can authenticate with ...
1
vote
0answers
230 views

amazon ec2-medium apache requests per second terrible

EDITED -- test running from localhost now to rule out network... i have a c1.medium using EBS. when i do an apache benchmark and i'm just printing a "hello" for the test from localhost - no database ...
1
vote
0answers
117 views

NGinx - PHP / CGI - No input file specified

I know this is a common problem. I googled and tried a lot but still doesn't work. "No input file specified" while calling PHP files from browser. I Installed nginx php/cgi on a fresh debian machine. ...
1
vote
0answers
301 views

PHP.ini custom settings through htaccess

I'm confused by this ini list in the PHP Manual: http://www.php.net/manual/en/ini.list.php I want to set some custom php.ini values through htaccess, but which one of these commands is not going to ...
1
vote
0answers
52 views

Apache+PHP : 100ms to launch script?

I am trying to speed up a PHP script running with Apache 2 + PHP in pre-fork mode + APC. It seems that my server takes 100ms to launch the PHP script, which seems way too much. What are the ways to ...
1
vote
0answers
177 views

Zend Guard Loader and Plesk

I have Plesk 11.x installed on my CentOS 6.2 x86_64. I configured my PHP to load Zend Guard Loader. But know when I check php configuration by php -v the output is: PHP 5.3.3 (cli) (built: Jul 3 ...
1
vote
0answers
62 views

Email encoding on IIS7

All emails sent from the server are displaying Cyrillic letters as weird characters, for example: Можно. Regular alphabet letters are properly rendered. I searched all across the web but was ...
1
vote
0answers
48 views

PEAR errors - The Procedure entry point mysql_server_end could not be located in the dynamic library link LIBMYSQL.dll

I recently made the switch to a new server (Windows Server 2008, PLESK) and have realized that my includes in php do not work. I've installed PEAR using command line and ensured that php.ini refers ...
1
vote
0answers
96 views

Jail PHP to OpenBasedir or Document Root Debian

I have a VServer running with Debian Squeeze Debian Squeeze / Apache2 / FastCGI / MySQL / Froxlor. The administration of Customers, Domains and FTP Accounts are performed using Froxlor. Following ...
1
vote
0answers
96 views

thttpd slow and huge resource usage

I have a thttpd server with php, xml2 and sqlite3 running on an embedded arm linux system. In general the system is working, but my sites are loaded really slow (ca. 20s per site, doesn't matter if ...
1
vote
0answers
36 views

How can PHP 5.3.3 (safely) be upgraded to 5.3.8+ on UBUNTU 10.10 Maverick?

is there a way to upgrade PHP 5.3.3 to a later version - the repos are far behind, but this could be by design(?) - so asking before destroying anything ;-) PHP 5.3.3-1ubuntu9.10 with Suhosin-Patch ...
1
vote
0answers
41 views

php extensions & apache mods gone/not working after server restart?

I was wondering if anyone has ever come across this before, as I'm pretty stumped to be honest, and my server admin knowledge isn't particular good so I'm not sure what could even be wrong, let alone ...
1
vote
0answers
85 views

Secure file downloads on IIS 8 (mod_auth_token or similar)

I'm trying to set up secure file downloads (for example, where a temporary link can be generated to download a file instead of using obscure URLs, which can be insecure). Something like mod_auth_token ...

1 2 3 4 5 21