Results 1 to 3 of 3

Thread: Parse Error I can't fix!

  1. #1
    Join Date
    Jul 2007
    Location
    England
    Posts
    41
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Parse Error I can't fix!

    Okay, this is what I get when I try to include a file into my page:

    Code:
    Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/mrrsman/public_html/newsarchives.php on line 42
    
    Warning: include(http://www.runevoyage.com/voyagegaming/news_archives/menu.htm) [function.include]: failed to open stream: no suitable wrapper could be found in /home/mrrsman/public_html/newsarchives.php on line 42
    
    Warning: include() [function.include]: Failed opening 'http://www.runevoyage.com/voyagegaming/news_archives/menu.htm' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mrrsman/public_html/newsarchives.php on line 42
    Please help me- I'm not expereinced with PHP.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Ok, make sure that the file your including is a valid file and that you can access it in the browser, also show me line 42 of newsarchives.php please.
    Jeremy | jfein.net

  3. #3
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    This error explains it all:

    URL file-access is disabled in the server configuration in /home/mrrsman/public_html/newsarchives.php on line 42
    It means that in the php.ini configuration file, you do not have allow_url_fopen or allow_url_include set to on. In the php.ini file, it should look like this:

    Code:
    ;;;;;;;;;;;;;;;;;;
    ; Fopen wrappers ;
    ;;;;;;;;;;;;;;;;;;
    
    ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
    allow_url_fopen = On
    
    ; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
    allow_url_include = On
    If you do not have control of the server, then you are basically out of luck unless you can convince your host to change these settings.
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •