[56K Warn] multiple instances of php-cgi.exe
Moderator: General Moderators
[56K Warn] multiple instances of php-cgi.exe
Anyone know why there are multiple instances of php running (img below)?
I can give code of the page which i think is causing the problem if you need?
http://www.dedicatedlost.com/images/other/php.jpg
thanks!
feyd | no need to show a 113K image
I can give code of the page which i think is causing the problem if you need?
http://www.dedicatedlost.com/images/other/php.jpg
thanks!
feyd | no need to show a 113K image
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
this is what i have in my apach conf file:
Code: Select all
ScriptAlias /php/ "c:/php5/"
Action application/x-httpd-php /php/php-cgi.exe
AddType application/x-httpd-php .php- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
This is what I have in mine.
Code: Select all
# Added by Robert to allow for PHP5 use
# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"- aaronhall
- DevNet Resident
- Posts: 1040
- Joined: Tue Aug 13, 2002 5:10 pm
- Location: Back in Phoenix, missing the microbrews
- Contact:
Download the binary, place the unzipped folder somewhere, and point to that folder from the LoadModule directive (php5apache2.dll is in the root dir).
yup, tried that:

and i have the file:

could the multiple instances of php-cgi.exe have anything to do with this page (hotlink prevention page):
thanks

and i have the file:

could the multiple instances of php-cgi.exe have anything to do with this page (hotlink prevention page):
Code: Select all
<?php
$file=$_GET['file'];
$ref=($_SERVER['HTTP_REFERER']);
$valref=substr($ref, 0, 29);
if($valref == "http://www.xxxxx.com/"){
$stat=stat('D:/inetpub/files/xxxxx/' . $file);
header('Content-Disposition: attachment; filename=' . $file);
header('Content-Length: '.$stat[7]);
header('Pragma: no-cache');
header('Cache-Control: no-cache, no-store, must-revalidate');
readfile('D:/inetpub/files/xxxxx/' . $file);
}else{
if($valref == ""){
?>
There is a problem with your referer.<p>
This means your browser has not told us where you got this link from.<p>
Please check <a href="http://www.xxxxx.com/viewforum.php?f=64">help</a> for more info.
<?
}else{
// Your email address
$email = "info@xxxxx.com";
// The subject
$subject="Invalid referer for video download";
// The message
$comment=$ref;
// The message
$emailfrom= "info@xxxxx.com";
mail($email, $subject, $comment, "From: $emailfrom");
?>
Hotlinking? Tut tut. You really shouldn't...
<p>
We have recorded which website sent you here and will be taking action.
<p>
If this message has been received in error, please goto our <a href="http://www.xxxxx.com/viewforum.php?f=64">help</a> section to find out why.
<p>
Otherwise you can goto our <a href="http://www.xxxxx.com/">main site</a> to get the download.
<?
}
}
?>