Log in

View Full Version : Please help with CGI code



rainbowatdawn
02-21-2006, 07:38 PM
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:confused:

Twey
02-21-2006, 07:54 PM
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 forumOh really? Interesting.

rainbowatdawn
02-21-2006, 08:31 PM
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

Twey
02-21-2006, 08:38 PM
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.:p


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.

rainbowatdawn
02-21-2006, 08:53 PM
It pisses me a bit because they say if you pay for an "advanced" account you will get premium "help" service... :rolleyes:

Thanks Again
Dawn




Heh.

:p



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.

rainbowatdawn
02-21-2006, 09:13 PM
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!

Twey
02-21-2006, 09:16 PM
No problem, glad I could try to help :p