Poor PHP Coding - High Processes

Anyone out there who could give a comment on this theory.

I posted here yesterday about a server of mine getting far too many processes which was locking up the server. I discovered it was a website causing this.

This site is popular (about 20,000 impressions per day) but not popular enough to be creating 1000's of processes on the server.

I thought it may be some poor php coding.

The site uses includes and was using this code to draw includes on every page:


<script language="php">include ("http://www.eg.com/ssi/meta.txt");</script>

I have since changed the codes to the following style:

<? include("/home2/example/www.eg.com/ssi/meta.txt"); ?>

Could the original style of include coding have been causing my problem? Does anyone know? Thanks.

 

 

 

 

Top