PDA

View Full Version : Failed to open stream



RidinHighSpeeds
02-22-2004, 10:36 PM
Im not sure how to fix these problems...Im just learning how to mess around with MySql...Right now,visitors can sign up,login fine etc...However I did a test where I went to the payment successful page where then the user would recieve $50...The stats still show 0 and sales still show 0.

http://www.jonswebdesign.com/index.php

On that page, I am including a field above the <HTML> section which is
<?PHP include "affiliate.php"; ?>
On this index.php page, two warnings show up...

Warning: main(affiliate.php): failed to open stream: No such file or directory in /home/mydomain/public_html/index.php on line 1

Warning: main(): Failed opening 'affiliate.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/mydomain/public_html/index.php on line 1

Anyone know exactly how I can fix this..Really appreciate the help!

cyanide
02-23-2004, 01:49 AM
Where is the file affiliate.php ??
Is it in the root? That's where it's looking for it.
That error usually means it can't find the file

Also, try putting brackets around the double quotes.
Like

<?PHP include ("affiliate.php"); ?>

Also, looks like your affiliate script operates in the user folder. Is the file in there?
If so, then you should put

<?PHP include ("user/affiliate.php"); ?>

RidinHighSpeeds
02-23-2004, 08:53 PM
I really appreciate your help! Everything is working perfectly!

cyanide
02-23-2004, 09:05 PM
I really appreciate your help! Everything is working perfectly!

Great !