Results 1 to 7 of 7

Thread: Please help with CGI code

  1. #1
    Join Date
    Feb 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Please help with CGI code

    Hello All,

    I am not a pro programmer but have developed a few simple sites for my enjoyment.

    I made a site on Angelfire.

    www.angelfire.com/planet/frugal

    I added by cut/paste a CGI code to have random quotes on my index page.

    I had no problem.

    I then upgraded my account, I got my on domain name.

    It is www.rainbowatdawn.org

    when you access my website via my domain name instead of the random quotes you get this error message:

    "Can't open random in the directory of
    No files in directory to display. "

    Here is the code:

    <!--#include virtual="/cgi-bin/script_library/random_content?directory=random&member_name=/planet/frugal"-->

    I then added a subdirectory called:
    /random

    I then added:
    quote*.txt


    As I said I have no problem seeing it going through the www.angelfire.com/planet/frugal

    Only when using my domain name www.rainbowatdawn.org

    I ask the Angelfire Team and they suggested this forum

    Thanks,

    Dawn

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    It's because the quotes file isn't in the same location from the point of view of the script -- apparently, probably uses something like a chroot or virtual host -- as it is when viewed using the angelfire.com domain. Either change the path in the script to point to a valid quotes file, or ask Angelfire to link the quotes file to a file that's in the same place from the PoV of the script.
    I ask the Angelfire Team and they suggested this forum
    Oh really? Interesting.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Feb 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Wink I thought it odd to since I am paying for an account

    Here is a copy of the email.....

    Dear Dawn Lewis,

    While we are able to answer most questions pertaining to your
    membership, these types of questions are best answered by the folks who
    speak computer-language as a native tongue. Reading some online
    tutorials will be a big help to you. Here's some sites we can suggest
    to help get you started on learning HTML

    http://www.hotscripts.com
    http://www.lissaexplains.com
    http://www.dynamicdrive.com


    Sincerely,

    Mike

    Lycos Customer Service
    Product Support Specialist
    http://help.lycos.com

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Heh.
    While we are able to answer most questions pertaining to your
    membership, these types of questions are best answered by the folks who
    speak computer-language as a native tongue.
    We have better things to do; go and ask those who don't have a life.


    Here's some sites we can suggest
    to help get you started on learning HTML
    We don't have a clue what you're talking about or didn't read your query properly, so go and learn something that has little or nothing to do with the problem in hand.
    Try removing the "&member_name=/planet/frugal" from the end of the URI. I can't be sure this will work, as I don't have access to the source of the script, but it seems a likely solution.
    Last edited by Twey; 02-21-2006 at 08:45 PM.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Feb 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking Thanks, you are so right :-)

    It pisses me a bit because they say if you pay for an "advanced" account you will get premium "help" service...

    Thanks Again
    Dawn



    Quote Originally Posted by Twey
    Heh.





    Try removing the "&member_name=/planet/frugal" from the end of the URI. I can't be sure this will work, as I don't have access to the source of the script, but it seems a likely solution.

  6. #6
    Join Date
    Feb 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    No luck, I tried everything I could think of, including your suggestions.

    No big deal, just annoying. I was reading the Angelfire forum and there are a lot of people complaining about CGI not working with their domain name.

    Thanks for your help though.

    Have a great day!

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    No problem, glad I could try to help
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •