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

0
votes
1answer
17 views

rewrite mod giving internal server error when trying to rewrite links

There is many questions discussing rewrite mod problems i have read them and none solved my unique problem, i already done 3 hour of research to solve it and still stuck. i want to rewrite links in a ...
0
votes
1answer
626 views

Locales work through php cli but not through apache

I'm setting up locales so that I can later use PHP's strftime function to output date strings correctly according to a user's language. echo setlocale(LC_ALL, $code.'.UTF8') ? $name : 'Failed to set ...
1
vote
1answer
620 views

PHP oci8 dll not loading on windows 64 bit XP. What am I doing wrong?

on win 64, I installed apache, php etc. Everything works fine, except the oracle part. I can connect to oracle from sql developer which means my tnsnames.ora file is correct. When apache starts, there ...
1
vote
1answer
43 views

WordPress site works for a few minutes, then site fails with hundreds of 'Unable to allocate memory for pool' errors [duplicate]

I'm migrating a machine and have moved over several minimal traffic WordPress sites (biggest site gets ~200 unique users a day). Everything appeared to work fine but then a little while later I ...
1
vote
1answer
738 views

All PHP sites stopped working on IIS7, internal server error 500

I installed multiple drupal 7 sites using the Web Platform Installer on Windows Server 2008. Until know they worked without any problems, but recently internal server error 500 started to show up ...
1
vote
2answers
45 views

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 ...
0
votes
1answer
31 views

Nginx not parsing php when using try_files

I am basically trying to implement the Apache MultiViews behaviour so that my URLs do not require the .php extension. As far as I can see from other questions answered here on Server Fault, I should ...
2
votes
1answer
125 views

Lighttpd / PHP-CGI will crash without warning

I'm using Lighttpd / PHP-CGI on a Windows XP machine. I was using the normal CGI interface which is very stable, but I tried FastCGI and I love the speed boost. However, even under light load, the ...
1
vote
2answers
609 views

Is it possible to have both PHP versions (5.2 and 5.3) after update to Plesk 11?

I'm using Plesk control panel v10 on a Windows dedicated server. Plesk 11 will also upgrade PHP version to 5.3, but some of the websites on server do not support 5.3. Is it possible to have both ...
1
vote
1answer
30 views

How to determine php memory usage on apache?

Sorry if I didn't phrase my question correctly. I use the php function "memory_get_usage()" to see the amount memory allocated to PHP on a script I am running. On server A I get around 2 MB. ...
-2
votes
0answers
26 views

run rsync with php exec command? [closed]

I have two Linux servers. There is a folder called 'script' in /var/www folder on server1. There is also a same named folder in /var/www on the second server. I want to sync 'script' folder on server1 ...
0
votes
3answers
53 views

Can't connect to mysql server (13) using php function

I opened every links google results had thrown to me in regards to this MySQL error. I have been spending hours to get this to work.. I have a web server (apache in centos installed in host B, and ...
1
vote
3answers
363 views

Large File Uploads Consume Disproportionate Amount of Memory

Thinking about this more, the question really is: why is Apache putting an in-progress upload in memory instead of on disk? I should be able to upload a file that's larger than the total memory ...
1
vote
2answers
90 views

PHP-FPM is not displayed in phpinfo()

I have installed php-fpm on Centos + Apache using this manual - http://www.howtoforge.com/using-php5-fpm-with-apache2-on-centos-6.2-p2 but PHP-FPM is not displayed in phpinfo(). And I cannot figure ...
5
votes
1answer
241 views

Does APC really improve performance with PHP 5.3+

According to a Linux Adminstrator over at Hostgator: With PHP 5.3 having APC installed is not needed as PHP 5.3 already has improvements that APC does resolve in it. Is that statement actually ...
1
vote
2answers
46 views

Easiest way to keep users in their home directory on a web server

I was wondering what would be the easiest and most secured way on a web server to prevent users from browsing directories other than their home folder. I have a mutualised web server with several ...
-1
votes
2answers
638 views

Remote Server can't access RDS Database

I'm having problems accessing my Amazon RDS MySQL Database from my server. I get this:- [Thu Sep 22 13:45:33 2011] [error] [client xx.xx.xx.xx] PHP Warning: mysqli::mysqli() [<a ...
1
vote
4answers
4k views

Trouble installing php memcache extension

I'm trying to install memcache on MAMP but I get the warning below, and when I continue it seems to complete properly. I add the line extension=memcache.so to the php.ini and restart MAMP but ...
-3
votes
2answers
154 views

Apache2 : Xampp is not running

I have apache2 and Xampp both installed in my server now my problem is When i stop apache2 from /etc/init.d/apache2 stop and tried restart xampp like /opt/lampp/lampp restart i am getting the ...
0
votes
1answer
724 views

Mac Os X 10.7 + PHP OCI8 + MAMP PRO + ERR_EMPTY_RESPONSE

i followed this article: http://www.enavigo.com/2012/01/04/enabling-oracle-oci8-php-extension-on-os-x-snow-leopard/ and im getting this error: Error 324 (net::ERR_EMPTY_RESPONSE): The server closed ...
1
vote
1answer
1k views

php APC uptime problem

I am on LAMP with Alternative PHP Cache. It worked fine until yesterday when I updated the website and changed a few mySQL queries (I don't see the how it would affect APC opcode cache) Today I see ...
1
vote
1answer
648 views

PHP Warning: mail(): SMTP server response: 501 Must specify to address &lt;address&gt;

Cannot understand why I am getting this error - both to & from email addresses are valid (I use them daily) so cannot figure out how this is happening - any help would be appreciated. NOTE: This ...
3
votes
1answer
2k views

Handler for (null) returned invalid result code 70007 / causing error 500?

I am getting these errors on some pages in my site (php/apache/linux/mysql vps) on intervals and can't seem to find any reproducible scenario : Handler for (null) returned invalid result code ...
2
votes
1answer
1k views

apache sendmail: trying to change user “from” address from apache to domain account

I apologize if I am asking a question already answered, but my problem isn't really that I haven't found an answer. I have, in fact, found a half-dozen different "solutions" to my problem, tried them ...
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/ ...
0
votes
1answer
1k views

PHP Runs Very Slow on IIS7. Need Help optimizing our config

Am running a PHP based web app on our Windows 2008 cloud-based server. The app, which runs fine outside of our environment (e.g. a different IIS server), but is VERY slow in our environment. Based on ...
0
votes
3answers
663 views

CGI error from PHP when running exec() on IIS

Windows Server 2003 x64 PHP 5.2 IIS 6.0 The program Ink2Png.exe is set with Everyone->Read and Execute permissions. As does its dependency (microsoft.ink.dll) PHP Safe Mode is off exec() is ...
0
votes
4answers
204 views

How to get a .php file XHTML validated successfully

Can someone explain to me how to get a .php document that uses the shebang at the beginning of the file to pass the XHTML validator? I keep getting one error that states that I have to put the xml ...
0
votes
1answer
758 views

Connecting to MySQL Server from PHP Command Line (MAMP)

First of all, I'm using Mac OSX 1.6, MAMP 1.9, PHP 5.3.4, and MySQL 5.1.44. I'm in the process of setting up a video encoding service for a site using Chris Boulton's PHP-Resque and Redis. Once the ...
1
vote
2answers
4k views

mysql_connect(): The server requested authentication method unknown to the client [mysql_old_password] in

I'm trying to run PHP 5.4.1 ( compiled from source ) but when i try to connect on mysql i get: Warning: mysql_connect(): The server requested authentication method unknown to the client ...
0
votes
0answers
99 views

Apache & MYSQL shutdown unexpectedly - No Skype Installed [closed]

I'm currently in the process of trying to configure my memory stick to work as a localhost. I'm doing this to work with MYSQL and phpmyadmin. At the moment, I cannot even get Apache to run. The same ...
0
votes
1answer
29 views

Apache2 many CLOSE_WAIT. LAMP. Locating the issue

I've got a LAMP setup running and I seem to have many CLOSE_WAIT connections for apache2 program when I netstat (several hundred). This eventually causes my apache to become unresponsive. Bellow is ...
12
votes
4answers
15k views

Where is apc.php?

Using Ubuntu server 10.4, I apt-getted php-apc Where is the apc.php file that I'm meant to copy? Thanks!
0
votes
0answers
30 views

nginx + php-fpm creates additional blank php session on each load

When using 'try_files' or 'rewrite' (like below) to redirect all paths to the base index.php file, it always creates a new (and blank) php session in the background whenever using session_start();. ...
0
votes
0answers
19 views

convert mime mails from the input stream to readable text

Can I get any help for php mime email parser/decoder like https://code.google.com/p/php-mime-mail-parser/ which does not involve any installations. I even tried Zend and decoder from phpclasses.org, ...
0
votes
1answer
31 views

Understanding mod_rewrite syntax

When I write in .htaccess this mod_rewrite RewriteEngine on RewriteRule ^(.*)\.my_extension$ $1.php and open url: site.com/index.my_extension this wroks fine, opened index.php But when I am ...
2
votes
4answers
810 views

Problems installing PHP 5.4.11 and MySQL 5.6.10 on CentOS 6.3

I'm attempting to install PHP 5.4.11 and MySQL 5.6.10 onto a CentOS 6.3 box. I've successfully installed PHP 5.4.11 via the remi repository for yum. I've also successfully installed MySQL 5.6.10 ...
-1
votes
0answers
22 views

phpmyadmin showing blank page [closed]

So i recently upgrade my phpmyadmin based on the suggestion Here (first answer) Sadly after i have done everything my phpMyAdmin showing nothing but a white blank page. I already set php.ini to show ...
0
votes
0answers
14 views

Email Bounce notice not always outputting headers in body

Currently, I have a system to parse "bounce notice" emails (sent from Qmail) to see what email address the email was suppose to go to, in order to make sure not to send any more emails to that ...
0
votes
5answers
8k views

show php error message on IIS 7

I am using IIS as a webserver on my development machine for PHP webdevelopment. Or at least, I am trying to. When there is a syntax error in a PHP script and I open that file in my webbrowser, I ...
0
votes
3answers
972 views

Cannot connect to oracle using oci_connect() on reboot

I am trying to setup a local development box. The box's on Linux Mint. Installed apache, php and mysql without any problem, then I proceeded to install Oracle Xpress Edition as my newest project ...
0
votes
1answer
327 views

updating php for webmin

Whats the easiest way to manually update php for webmin as its currently runninging 5.1.6 which was the default module install but needs to be atleast 5.2.4 to be able to run wordpress using yum or ...
0
votes
0answers
47 views

Connecting to Mac on iPad via local network

For my business, I have a product that is built with a Mac Mini running things at the core. On this Mac Mini, I have installed Apache and PHP to serve dynamic web pages locally. Users access these ...
0
votes
1answer
28 views

php-libvirt installation on centos fails

I am trying to install php-libvirt on centos 6.4 64x and there is an error in ./configure step: checking for LIBVIRT... configure: error: Package requirements (libvirt >= 0.6.2) were not met: ...
0
votes
1answer
3k views

How to enable mysqli extension on redhat?

My php.ini says: Additional .ini files parsed /etc/php53/php.d/curl.ini, /etc/php53/php.d/fileinfo.ini, /etc/php53/php.d/json.ini, /etc/php53/php.d/mysqli.ini, /etc/php53/php.d/mysql.ini, ...
0
votes
0answers
36 views

Multiple WordPress installations conflict with each other

I am managing a server for customers. Three customers use WordPress. Every time one works, the other two get down. I have to restart HTTPD, then the first website visited works, and the other two go ...
0
votes
2answers
44 views

SMTP/HTTP/FTP status check using PHP

I am in need of a piece of code to check whether the website is alive or down . I think this can be done with php curl or fsockopen . But i do want to check whether other services like ftp, smtp, ...
0
votes
3answers
788 views

How to enable PHP Curl on linux machine using FTP only

I only have access only to php.ini file and I want to be able to add curl extenssion to my linux machine. I don't have access to terminal. I tried adding: extension=curl.so but it doesn't ...
-2
votes
0answers
64 views

Website Performance Tuning. Am I doing it right and have I missed anything? [closed]

Is there anything I should be doing differently or havent done yet to get better performance? I need to handle 1000s of concurrent hits. I seem to be getting missed hits and don't know why SERVER ...
0
votes
1answer
61 views

Downgrading php from 5.4.9 to 5.3.3 on CentOS 6.3 w/ PDO and MySQL

I'm running CentOS 6.3. My objective is to downgrade php from 5.4.9 to 5.3.3, with PDO support (for Magento). Magento isn't working. Furthermore, phpmyadmin isn't working because it complains the ...

1 2 3 4 5 96