www.webdeveloper.com
Results 1 to 5 of 5

Thread: [RESOLVED] Won't "include" function work with absolute URLs?

  1. #1
    Join Date
    Jul 2010
    Posts
    35

    resolved [RESOLVED] Won't "include" function work with absolute URLs?

    Hi guys,

    I have discovered in my code that though this line works:

    PHP Code:
    include("server_info.php"); 
    this line does not:

    PHP Code:
    include("http://www.thesiteguru.com/php/server_info.php"); 
    Any reason for this? Or could I be doing something wrong? I have verified that the second URL is indeed correct.
    I don't know half of you half as well as I should like; and I like less than half of you half as well as you deserve.
    - Bilbo Baggins in The Fellowship of the Ring

  2. #2
    Join Date
    Mar 2010
    Location
    Serbia
    Posts
    22
    php can not call file over URL, coz its server side....you should try like: /home/users/web/b768/moo....... you should know this path from your hosting server

  3. #3
    Join Date
    Jul 2010
    Posts
    35

    Thumbs up So That's It...

    remaeis,

    So that's it. Thanks a lot for the information and your time!
    I don't know half of you half as well as I should like; and I like less than half of you half as well as you deserve.
    - Bilbo Baggins in The Fellowship of the Ring

  4. #4
    Join Date
    Mar 2010
    Location
    Serbia
    Posts
    22
    n.p. - am not 100% sure, but i have some problems using url in PHP in script for upload, and with full path (that server can read)...it works fine

  5. #5
    Join Date
    Mar 2010
    Location
    Serbia
    Posts
    22
    btw.... if you need traffic for your website, feel free to use my service:

    http://tonaq.com

    its free and works 100%

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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