Page 1 of 1

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

Posted: Wed Jul 23, 2003 9:30 pm
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???

...

Posted: Wed Jul 23, 2003 11:19 pm
by kettle_drum
Its because the file is called 'article.pwr' and you seem to be calling 'article.pwr?artid=13'

Posted: Thu Jul 24, 2003 1:59 am
by qartis
Can't pass variables to an included file like that. Just do this:

Code: Select all

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