Submit Your Article Forum Rules

Results 1 to 4 of 4

Thread: Failed to open stream

Hybrid View

  1. #1

    Failed to open stream

    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!

  2. #2
    Senior Member
    Join Date
    Jul 2003
    Posts
    1,771
    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
    Code:
    <?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
    Code:
    <?PHP include ("user/affiliate.php"); ?>
    Web Hosting Guru
    | Need Help For Your Forum?

  3. #3

  4. #4
    Senior Member
    Join Date
    Jul 2003
    Posts
    1,771
    Quote Originally Posted by RidinHighSpeeds
    I really appreciate your help! Everything is working perfectly!
    Great !
    Web Hosting Guru
    | Need Help For Your Forum?

Similar Threads

  1. PHP Script - Failed to Open Stream
    By ee222 in forum Web Programming Discussion Forum
    Replies: 13
    Last Post: 09-19-2009, 09:32 AM
  2. AdWords Editor Update Failed?
    By incrediblehelp in forum Google AdWords Discussion Forum
    Replies: 5
    Last Post: 10-09-2008, 04:02 PM
  3. Joomla, Google and failed submissions
    By slideri812 in forum Google Discussion Forum
    Replies: 4
    Last Post: 04-28-2006, 10:00 PM
  4. Connection to MySQL Failed
    By mariocs in forum Database Discussion Forum
    Replies: 1
    Last Post: 12-18-2004, 12:23 PM
  5. I've optimized my site, and failed miserably!
    By deadBird in forum Google Discussion Forum
    Replies: 40
    Last Post: 02-03-2004, 10:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •