-
request_once seems to always put a 1 after everything
Hey hey, this is more a general php question, but when I use the php echo require_once('whatever.txt') it seems to put the file... but have a 1 after the information from whatever.txt. Anyone have any ideas? I have googled it, but since 1 is so simple I can't pinpoint an answer. It also does this for echo require('whatever.txt') and require("whatever.txt"). No matter what the file either news.txt or apps.txt there is always a 1 after it.
Thanks so much in advance for any help.
Last edited by cixe; 02-28-2012 at 12:58 AM.
-
The one you see is the boolean value for the success of the require function. I don't believe you need the echo. Try it without the echo.
-
That worked thank you so much! I had never ever seen the 1 error before even though I use require_once / require / include all the time.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|