guita01 Posted April 14, 2004 Posted April 14, 2004 Does it work? Where do I put the #exec command? Quote
LisaJill Posted April 14, 2004 Posted April 14, 2004 It does work. Your pages will have to have the extension ".shtml" for it to work. You put the exec command wherever on the page you want the random information to show up. That's up to you. =) If you need more help with placement, post a link to your site and tell me where you want it, and I'll try to help. Quote
guita01 Posted April 14, 2004 Author Posted April 14, 2004 OK I got it to work, but does it have to be in the main directory??? How do I code it from a sub directory? for example what if I want it on this page >http://****/main/index.shtml Quote
LisaJill Posted April 14, 2004 Posted April 14, 2004 I believe that you can change the exec command by adding a / before the cgi-bin, so that it pulls from the root directory. I am not great with shtml includes, though. Try this: ><!--#exec cmd="/cgi-bin/randhtml.cgi"--> Hope that helps. =) Quote
DarqFlare Posted April 15, 2004 Posted April 15, 2004 That should work... Then again, things don't work that way in PHP, so I'm not entirely sure. Quote
guita01 Posted April 20, 2004 Author Posted April 20, 2004 that didn't work and I'm not using it in PHP. I tried it on my intro page, which is in the root, and it worked. but all of the other pages are in a subdirectory. Quote
guita01 Posted April 21, 2004 Author Posted April 21, 2004 The page definitely ends in .shtml? yes http://www.gcfpb.com/main/welcome.shtml That page is actually a frame of another page, but as you can see it doesn't work standing alone either. Down at the bottom you will see .. .. that is where the random code is. If you back up to the root you'll see random sayings at the top of the screen. Quote
LisaJill Posted April 21, 2004 Posted April 21, 2004 I don't see any ...'s... should they appear to the right of the lower picture? This is what I see... Is that what you see? =) Quote
guita01 Posted April 21, 2004 Author Posted April 21, 2004 I don't see any ...'s... should they appear to the right of the lower picture? This is what I see... Is that what you see? =) Yes I see them in your pic. Right above "check out our new". The dots are irrelevant. I only mentioned them to let you know where the code is. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.