Results 1 to 3 of 3
  1. #1
    Full Member jazzylee77's Avatar
    Join Date
    February 19th, 2005
    Posts
    199
    yet more virtual includes problem...
    Just when I think I have it all fixed...

    My host threw another wrench in the works. I was spidering the site for a search index and they firewalled it against types of http requests

    anyway, using <!--#include virtual="/file.php"-->

    causes on page error

    [http://www.mysite.com/file.php: error: 500 Can't connect to www.ezoutlets.com:80 (connect: Connection timed out)]

    I think I know the answer already, but is there any way to keep that relative path instead of causing another http request?

  2. #2
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    If the extension of the included filename is .txt, then the file is accessed directly from the hard drive. All other file types cause an HTTP request to be issued.

    Try using a full URL (including domain name) in the virtual= parameter, such as:

    <!--#include virtual="http://www.myside.com/file.php"-->

    If the domain name is not specified then the request goes to the server that the DySE view.pl script is running on. If a domain name is specified, then that request goes to the specified server.

    Since your hosting company is using a firewall, domain name resolution may be not available from behind the firewall (thus "mysite.com" cannot resolve). So ask your hosting company if HTTP requests behind the firewall need to be addressed to a domain other than your server's domain, such as localhost (e.g.: http://localhost/file.php) or your server's IP # (e.g.: http://1.2.3.4/file.php).

    If the output of file.php is constant, then save that output to file.txt and then use virtual="/file.txt" instead.

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  3. #3
    Full Member jazzylee77's Avatar
    Join Date
    February 19th, 2005
    Posts
    199
    Thanks for all the suggestions. Hopefully I can avoid changing servers.

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Virtual Directory Problem
    By ercole in forum Cusimano.com Scripts
    Replies: 1
    Last Post: June 15th, 2009, 05:43 PM
  2. Replies: 6
    Last Post: June 10th, 2005, 12:04 PM
  3. Problem with virtual.dir and mod_rewrite
    By forefront in forum Cusimano.com Scripts
    Replies: 2
    Last Post: February 13th, 2005, 10:35 AM
  4. ae.co.uk problem with virtual directory
    By smnash in forum Cusimano.com Scripts
    Replies: 4
    Last Post: November 24th, 2003, 12:33 AM
  5. ae.pl -- PHP Virtual problem
    By rardentech in forum Cusimano.com Scripts
    Replies: 5
    Last Post: June 28th, 2003, 05:55 PM

Posting Permissions

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