dcsimg
www.webdeveloper.com
Results 1 to 6 of 6

Thread: Problem with an include_once statement.

  1. #1
    Join Date
    Feb 2003
    Location
    Britain
    Posts
    1,335

    Problem with an include_once statement.

    I am using an include function but I get this error:
    Warning: main() [function.main]: stream does not support seeking in http://www.evernet.co.uk/wtmark.php on line 0.

    My include function looks like this:
    include_once("http://www.evernet.co.uk/wtmark.php");
    and I just get that error, and nothing inside the file is processed. Can anybody help. Thanks.

  2. #2
    Join Date
    May 2003
    Location
    Doetinchem [Holland]
    Posts
    12
    I think you can't use http:// in your inculde_once() function.
    If this script exist on your server you can just do it like this:
    include_once("mymap/wtmark.php");
    but if it's not.. you can't use the script..
    greetz Koen

  3. #3
    Join Date
    Feb 2003
    Location
    Britain
    Posts
    1,335
    Thanks - I'll try it out. ONly thing is, in the link checker thread I managed to include http://www.google.com...

  4. #4
    Join Date
    May 2003
    Location
    Doetinchem [Holland]
    Posts
    12
    I don't get you mean by include google.com
    but: to include scripts from other servers.. you have to have password and usernames etc..
    I hope you manage to make it all work
    grtz Koen

  5. #5
    Join Date
    Nov 2002
    Location
    Dartmoor [Holiday]
    Posts
    2,382
    As long as URL fopen wrappers are enabled (they are by default) you can include() an external URL, on Linux. Windows requires PHP 4.3 for this to work.

    Username/password are irrelevant because the code is not parsed locally, it is just called as if a user had opened the page (i.e. if the external URL includes PHP code, that PHP code will be ignored).

    Adam

  6. #6
    Join Date
    Feb 2003
    Location
    Britain
    Posts
    1,335
    I thought so - as I said, I managed to include() Google.com. I've managed to get my script working now, so thanks anyway.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles