 | |
12-03-2005, 06:23 AM
|
· #1 | | NamePros Member Join Date: Nov 2005
Posts: 126
NP$: 102.80 ( Donate)
| Can't fread() my own site I've got this PHP code: PHP Code: <?php
if (($_GET[err] !== 1) || ($_GET[affiliate] !== "added")) {
if ($_POST[Submit]) {
$filename = $_POST[Affiliate_SiteAddr];
$handle = fopen($filename, "rb");
$contents = stream_get_contents($handle);
fclose($handle);
$pos = strpos($contents, "<a href=\"http://www.cheesy.ca/\" target=\"_blank\"><strong>CheesyBB</strong></a> - Get your own free and powerful board today!");
if ($pos == FALSE) {
header("Location: affiliates.php?err=1");
}
else {
header("Location: affiliates.php?affiliate=added");}
}
}
?>
It's for an automated affiliate submission function, and I can basically scan EVERY website except any one hosted on my server. Why is that?
PS: I run Apache 2, PHP 5.0.5 and MySQL 4.x.x |
| |
12-04-2005, 07:35 AM
|
· #2 | | New Member Location: Norway Join Date: Nov 2005 | check if the php-engine have write/read access to your catalog...
use chmod to change it if not...
__________________ My Award nominated php script - PhpMyBorder |
| |
12-05-2005, 04:13 AM
|
· #3 | | NamePros Member Join Date: Nov 2005
Posts: 126
NP$: 102.80 ( Donate)
| Never mind, I got it. My server doesn't allow opening sockets to itself for some odd reason...I'll just do it the old internal way |
| |
12-05-2005, 03:26 PM
|
· #4 | | A Wealth of Knowledge Join Date: Aug 2004
Posts: 3,785
NP$: 1200.20 ( Donate)
| Sounds like its time for a new host
-Steve |
| |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |