Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in PHP only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
PHP
Error: [function.include]: failed to open stream: No such
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
finnjavel
New Member
Join Date:
Apr 2008
Posts:
2
#1
Error: [function.include]: failed to open stream: No such
Apr 24 '08, 04:58 PM
I get warning "[function.includ e]: failed to open stream: No such file or directory in......... on line 13"
the line 13:
include('folder main.php?folder no='.$folderno) ;
Markus
Recognized Expert
Expert
Join Date:
Jun 2007
Posts:
6092
#2
Apr 24 '08, 06:09 PM
Originally posted by
finnjavel
I get warning "[function.includ e]: failed to open stream: No such file or directory in......... on line 13"
the line 13:
include('folder main.php?folder no='.$folderno) ;
Unfortunately you can't pass arguments when including a file!
include('folder main.php')
is all you can include because it doesnt see the arguments as arguments but as an actual file name!
Comment
Post
Cancel
finnjavel
New Member
Join Date:
Apr 2008
Posts:
2
#3
Apr 24 '08, 06:16 PM
Thanks. Not much luck with header() either :(
Comment
Post
Cancel
ronverdonk
Recognized Expert
Specialist
Join Date:
Jul 2006
Posts:
4259
#4
Apr 24 '08, 09:01 PM
Originally posted by
finnjavel
Thanks. Not much luck with header() either :(
Please explain or do we guess what header() you mean?
Ronald
Comment
Post
Cancel
Markus
Recognized Expert
Expert
Join Date:
Jun 2007
Posts:
6092
#5
Apr 25 '08, 05:16 PM
Originally posted by
finnjavel
Thanks. Not much luck with header() either :(
I'm just thinking:
You could set a variable on your page that includes the next page - in this variable store the params you initially wanted to pass in the filename.
Then in the included file you can access the variable because it's been included through the parent file..
Just thinking :)
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment