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
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
344 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
805 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
4k 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
551 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
462 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
547 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
393 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
311 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
397 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
298 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
450 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
384 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
786 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
116 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
948 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
333 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
513 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
314 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
326 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
242 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
233 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
584 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

AD LDS - Can't enable LDAP over SSL

I have basically read some kilometers of documentation and I still can't enable LDAPS on AD LDS... I installed a self-signed certificate and a certification authority following for instance this link ...
0
votes
0answers
22 views

Nginx: unexpected 404 page in php

This is from my NGINX configuration file location / { index index.html index.htm index.php; try_files $uri $uri/ /profile.php?nno=$uri&$args; } So, when file does not exist on the server, Nginx ...
0
votes
0answers
8 views

apache postfix trying to change user “from” address from apache to domain account

This is the same question as of apache sendmail: trying to change user "from" address from apache to domain account but its for postfix. User did not actually mentioned what he did with ...
0
votes
0answers
34 views

CentOS 6.7 can not install php-pecl-memcached module

I have a Vagrant box using CentOS 6.7 with PHP 5.6 and Apache 2.4. I have installed the memcached server, checked if it runs echo stats | nc localhost 11211 but when trying to install the Memcached ...
0
votes
0answers
19 views

Nginx returning 404 even though it executes a PHP script which returns http 200

I have a Laravel application (PHP) which when hits a specific URL: /media/1920/1080/565a2f1b4dad50.89312442_a1247a009b30f83db379b4d84ed13132565a2f1b4db019.92277002.jpg Which loads an image from a ...
0
votes
0answers
12 views

Install PHP 5.3 on current Debian

Is there any easy way to get an old PHP-Apache version (in my case 5.3.*) to run on a current Debian? I found this: Install Previous Version of PHP Package from Debian Testing Using Apt But it doesn’...
0
votes
0answers
26 views

Error message in error log

First Question. I'm trying to work on my website but it can't connect to the internet server for some reason. (Safari can't connect to server) Second Question. This might be related to my first ...
0
votes
0answers
12 views

Use different PHP version on particular directory of virtualhost. LiteSpeed webserver

Title says it all. Using Litespeed Web Server Standard 5.1.4. I have virtual host configured: http://sv1.domain.com/subdir-1/ http://sv1.domain.com/subdir-2/ http://sv1.domain.com/subdir-3/ ... ...
0
votes
0answers
41 views

PHP “mysqli.so: undefined symbol: mysqlnd_connect in Unknown on line 0”

I have been trying to get PHP CLI (7.0.7 on Ubuntu) working together with mysqli, but without success. I keep getting the same error message when starting it: mysqli.so: undefined symbol: ...