A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: request_once seems to always put a 1 after everything

  1. #1
    Member
    Join Date
    May 2003
    Posts
    80

    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.

  2. #2
    Junior Member
    Join Date
    Feb 2012
    Location
    Philadelphia, PA
    Posts
    4
    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.

  3. #3
    Member
    Join Date
    May 2003
    Posts
    80
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center