file is there, but include() & require() cant find it

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
justravis
Forum Commoner
Posts: 53
Joined: Mon Dec 16, 2002 3:18 am
Location: San Diego, CA
Contact:

file is there, but include() & require() cant find it

Post by justravis »

hi.

experiencing this problem for the first time.

wen i try to include or require this certain file, it says:
Warning: main(/home/poweront/www/apps/epublish/article.pwr?artid=13): failed to open stream: No such file or directory in /home/poweront/public_html/apps/epublish/content.pwr on line 102
What is this usually caused by???
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

...

Post by kettle_drum »

Its because the file is called 'article.pwr' and you seem to be calling 'article.pwr?artid=13'
qartis
Forum Contributor
Posts: 271
Joined: Sat Dec 14, 2002 4:43 pm
Location: BC, Canada
Contact:

Post by qartis »

Can't pass variables to an included file like that. Just do this:

Code: Select all

$artid = 13;
include ("article.pwr");
Post Reply