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
0answers
309 views

Mail smtp server configuration for PHP and RHEL

I'm running WordPress on an intranet VM and I need all outgoing messages to reach a remote smtp server. In php.ini there is this specification: [mail function] ; For Win32 only. SMTP = localhost ...
1
vote
0answers
168 views

YUM update on F15 borked Apache and PHP— Why did this routine update fail?

Fedora 15 YUM update borked php and apache. This LAMP server was working fine since I upgraded to F15 last October. I'm having trouble with a PHP framework and thought an update would be useful. :doh: ...
1
vote
0answers
318 views

PHPExpress module segfault error

As a part of my server upgrade, I have installed newer versions of OS, PHP, Apache. Also, I have installed PHPExpress on my server: [root@dedicated]# cat /etc/redhat-release CentOS release 6.2 (...
1
vote
0answers
88 views

Linking Linux and Windows Server for file sharing and editing over network?

I am having 2 computer on different network over internet. Currently I am trying to figure out away to connect between the 2 computer for a PHP script. Setting: -------------------- -----...
1
vote
0answers
347 views

Server hardware access from PHP scripts in Apache over UNC network path

I have a Windows XP Pro server running Apache 2.2, which is configured with an Alias /p that points to a UNC network path (//server/projects). Apache runs under the user Apache, which (as part of some ...
1
vote
0answers
818 views

php5ts.dll crashes PHP 5.2.17

I have upgraded Apache 2.2.22 and PHP 5.2.17 on my Windows Server 2008 x86. All thing are fine, but when I uncomment LoadModule php5_module "e:/wamp2.2/bin/PHP/php5.2.17/php5apache2_2.dll" it gives ...
1
vote
0answers
5k views

CURL ERROR: Recv failure: Connection reset by peer - PHP Curl

I've posted a question yesterday on stackoverflow here but think this might be server related. I'm connecting using the PHP curl functionality to a server that then generates a PDF file and sends it ...
1
vote
0answers
557 views

How to see the individual memory usage of php scripts?

I just experienced a lot of memory usage in my server. So, found out that php-fpm is the one who is eating my memory. Now, how can I know whats the exact location of the problem? How to see which php ...
1
vote
0answers
466 views

Access network share with PHP5.2 + IIS7.5

I'm using php 5.2 with IIS7.5. I have a network share on a NAS that is username and password protected. I cannot disable or change authentication info on the NAS. I need to be able to access that ...
1
vote
0answers
550 views

How to prevent htaccess from prompting authentication for indirect access to a file via ajax?

First off my terminology is probably wrong but when I hear "direct access" I think someone means that anyone has read privileges to a file from the url. Is my understanding of what "direct access" ...
1
vote
0answers
395 views

Web Platform Installer PHP Updates

I have installed a version of PHP with the Microsoft Web Platform Installer v3.0. In this case it was version 5.3.10 and since then version 5.4.0 has come out. How do I use the Microsoft Web ...
1
vote
0answers
64 views

Requests to third parties (SOAP, Youtube API failing intermittently) on CentosBox

Our new site (LAMP) has been running w/o incident for about a month on a dedicated Centos 6 box at 1and1. Intermittently (about 10 mins per most hours) starting last night the server has issues ...
1
vote
0answers
173 views

Multiple PHP versions on windows server 2008 command line issue

I'm running server 2008 and have multiple versions of PHP installed. It looks like the initial version was 5.2.14. Then there are 2 more versions, 5.2.17 and 5.3.10 installed. They are in this ...
1
vote
0answers
370 views

Apaches seems to not be shutting down Established TCP connections

I have a needle in a haystack type problem I'm trying to track down. Have not been able to recreate it on test servers. The symptom is TCP connections left in an ESTABLISHED state so don't seen to ...
1
vote
0answers
313 views

Why are my PHP5-FPM pools disappearing mysteriously every couple of months? (Ubuntu 11.10, PHP 5.3.6)

I have a system where each user (about 20) gets their own instance of nginx and their own small pool of PHP5-FPM processes. A front-end nginx instance proxies requests to the appropriate nginx ...
1
vote
0answers
399 views

repcached broken sync - memcached high avalaibility

I have been using repcached (memcached-1.2.8-repcached-2.2)to store php sessions in order to have a highly available memcached. Everything runs perfect, I can restart a daemon without losing sessions. ...
1
vote
0answers
442 views

Can I run Zend Server along with already-installed LAMP Stack?

I already have Apache2+MySQL+PHP installed and am using it on Ubuntu Linux. I would like to test out the Zend Framework installation bundled with Zend Server, since the server is supposed to be ...
1
vote
0answers
301 views

Truncated output from PHP, no errors

I've installed SugarCRM Community Edition on Debian 6.0.3 connecting to MSSQL with FreeTDS. I can use the system as normal except for one deal-breaker problem. On login, I get a blank page outputted. ...
1
vote
0answers
90 views

IIS7.5 PHP not logging errors in subdirectories

I'm working with win7, IIS7.5, php 5.2.17 now, and I have a problem with the php error logging: Error logging works well as long as the entry point (called php file) is not in a subdirectory of the ...
1
vote
0answers
239 views

lighttpd + php-cgi: Memory increase crazily if there's syntax error in the php file

I use lighttpd as the webserver, and module mod_fastcgi is on. So I can fetch php file with lighttpd. Here is a segment of my configure file. fastcgi.server =( ".php"=> ( ( "bin-...
1
vote
0answers
451 views

Apache - Very high load/bandwidth and unusual pattern of requests

I am a web developer and have this server that's being used as a development machine of sorts. So, my experience with Apache is that I can fiddle around and get basic stuff done / google stuff to get ...
1
vote
0answers
385 views

LDAP request seems to hang at repeating 125 byte packet, and TCP connection does not close

I've rewritten this question to focus on a specific part. Originally titled "Apache hangs or quits, but keeps TCP sockets open and won't accept connections" Problem Problem is a website (Moodle) ...
1
vote
0answers
787 views

Apache 2.2.16 with mod_php on Debian Squeeze CPU high load

Configuration: CPU 16 cores 14 GB RAM Apache 2.2.16 PHP 5.3.3-7 with enabled APC Apache mpm config: StartServers 50 MinSpareServers 50 MaxSpareServers 256 ...
1
vote
0answers
115 views

Make Lighttpd treat .CSS files as .PHP files

I want files with a .CSS extension to be treated as PHP, and parsed/executed as if they were .PHP files (in addition to retaining the default behavior of parsing .PHP files as PHP). Is there an easy ...
1
vote
0answers
178 views

Zend autoloader not working from PHP config

Is the PHP config file (php.ini) supposed to have something in it that will enable Zend Autoloader support? Cause I am using it in my application and on one server and it's not working (it says it can'...
1
vote
0answers
118 views

Add new ODBC driver libs to PHP on OS X 10.6?

I'm trying to access a PostgreSQL datasource via ODBC from the installed stock PHP (OS X 10.6). Queries just hang, and I'm suspecting it can't find the PostgreSQL driver library which was installed ...
1
vote
0answers
958 views

Can't get a symfony project to follow symbolic links to my resources

I have the resources shared with another project. The pictures of the products I will show are stored in a folder out of my new project for which I'm using symfony... In my symfony project, in the /...
1
vote
0answers
527 views

Activation context generation failed for “C:\php\php-cgi.exe”. Dependent Assembly

Greeting, I have Windows Server 2008 Server Core. I want to configure this server to host php websites using IIS 7. I installed and configured IIS7 to run php using the steps in this website: http://...
1
vote
0answers
1k views

FastCGI connection refused on port 9000

I have a site running PHP 5.3.2 + PHP-FPM and Nginx 0.7.65 and rebooted the server after changing the root password. The web server starts up fine, but the site doesn't come up and the only clue I ...
1
vote
0answers
208 views

lamp php ubuntu 10.04 with cgi I get accesses to '/var/www/…' instead of '/usr/lib/cgi-bin/…'

I have a basic php cgi configuration problem on top of the apache web server in Ubuntu 10.04 . I am trying to setup cgi so as to answer one of the urls localhost/cgi-bin/index.php or localhost/index....
1
vote
0answers
335 views

How to enable LDAP with php IIS 6 and windows server 2003

I have been reading this answer and trying to understand it: How can I enable LDAP in PHP - Windows Server 2008 LDAP is not showing up with phpinfo() I installed PHP the same way as this person with ...
1
vote
0answers
3k views

phpinfo reports no value for PDO MySQL driver

As per the title I'm having problems with PHP 5.2.10 and getting PDO MySQL to be recognised. My configure command contains '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-...
1
vote
0answers
161 views

Windows 2008 Scheduled Tasks and Parallel instance issue

I have a scheduled task launching a bat file which runs a CLI PHP script. The scheduled task is configured to run every 5 minutes, and run multiple instances in parallel. However, windows is ...
1
vote
0answers
131 views

What is PHP cURL and libcurl version relationship?

I'm running php with curl support on a mac. cURL in php works fine(ish) but I noticed an oddity reported by phpinfo(). It states that curl support is 7.19.7 But using the otool command, I get this: #...
1
vote
0answers
514 views

Oracle Instant Client DSN via unixODBC

I've got the Oracle Instant Client installed on a SuSE webserver and I'm attempting to connect to an Oracle Database with PHP via unixODBC. The connection seems to be working properly, after issuing ...
1
vote
0answers
1k views

Expert opinions on optimal Wordpress PHP settings

I recently decided to include a great system stats plugins with every wordpress install. LINK: http://wordpress.org/extend/plugins/tpc-memory-usage/screenshots/ One of the features of this plugin ...
1
vote
0answers
315 views

page loading stops half-way, no server or sql load

i'm running a hostgator vps php/apache/linux/mysql i have a problem that i cannot seem to properly diagnose/fix : sometimes when loading a page, the browser will load have the page, then it hangs ...
1
vote
0answers
327 views

using mod_fcgid instead of mod_cgi

What all should i do to use mod_fcgid instead of mod_php on ubuntu and centos. what are the main benefits and difference's between two
1
vote
0answers
243 views

PHP giving 500 internal server error on new server

I am trying to run a simple PHP script which displays phpinfo() but I am getting 500 internal server error. What could be the reason? Is it because PHP handler is set to suPHP and I shall change it to ...
1
vote
0answers
266 views

How can I use WPHP with Python Paste

It was suggested to me in answer to my question How can I use Python’s CGIHTTPRequestHandler as a dev server for PHP that I try WPHP. I've tried: import wphp my_php_app = wphp.PHPApp('/path/to/php-...
1
vote
0answers
350 views

IIS + WebDAV + PHP

I'd like to edit source files directly on my IIS server using WebDAV. I have WebDAV set up, but unfortunately when I try to edit a php file, it serves up the output of the PHP file, not the source ...
1
vote
0answers
235 views

ASP.NET application within wordpress installation on IIS 7

a client has a wordpress installation on their IIS server located at www.mydomain.com. We would like to put our asp.net application in a subdirectory of the wordpress installation - at something like ...
1
vote
0answers
589 views

Python server does not excecute PHP script: permission denied

I am trying to execute a PHP file through a Python server. However, I get the following error: File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/CGIHTTPServer.py", line 255,...
1
vote
0answers
80 views

Lighttpd Prepending Strings to Certain Files

I have a Mint install (Fantastic stats, if you were wondering) and I would like to move over to Lighttpd for my server needs. Unfortunatly, this means that php_auto_prepend is no longer easily ...
0
votes
0answers
9 views

Force a connection from PHP to MySQL version 4

I am trying to connect a PHP application to a version 4 MySQL database. Both are running on an internal network on different servers. There is no outside exposure. I've tried using three MySQL ...
0
votes
0answers
37 views

RewriteRule return 404

I just setup apache on my raspberry PI. I've enabled the Rewrite Mode for shunk all the api request on the index.php. In my project root (of my rest api) I've configured the .htaccess as following: ...
0
votes
0answers
21 views

PHPMailer - Track calls to find spam script

Through making logs more verbose, I've managed to find that all the spam calls are being made from class-phpmailer.php in a Wordpress installation. However, this isn't that helpful - this is the ...
0
votes
0answers
12 views

Configuring nginx + Laravel to not execute any other PHP files

I have a Laravel application hosted on nginx, using a fairly standard php-fpm configuration. There should be no need to execute any other PHP files on the server, except for one specific script that ...
0
votes
0answers
9 views

Redis Performance Tanks as Number of Nodes Increases

Strange problem. We have 6 nodes behind a loadbalancer. They are high-spec VPSes running Ubuntu. On a separate node we run Redis. Further nodes run MySQL. The whole LAMP setup hosts Magento. ...
0
votes
0answers
43 views

Apache not sending POST data to PHP?

I have written a simple command line program that opens a browser and posts data to a given url. For some reason once the request gets to my apache server, apache see's the post data, but fails to ...