Results 1 to 3 of 3
  1. #1
    Full Member jazzylee77's Avatar
    Join Date
    February 18th, 2005
    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

    [ error: 500 Can't connect to (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
    Toronto, Canada
    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=""-->

    If the domain name is not specified then the request goes to the server that the DySE 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 "" 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.:

    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 18th, 2005
    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 Scripts
    Replies: 1
    Last Post: June 15th, 2009, 04:43 PM
  2. Replies: 6
    Last Post: June 10th, 2005, 11:04 AM
  3. Problem with virtual.dir and mod_rewrite
    By forefront in forum Scripts
    Replies: 2
    Last Post: February 13th, 2005, 09:35 AM
  4. problem with virtual directory
    By smnash in forum Scripts
    Replies: 4
    Last Post: November 23rd, 2003, 11:33 PM
  5. -- PHP Virtual problem
    By rardentech in forum Scripts
    Replies: 5
    Last Post: June 28th, 2003, 04: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