Webmaster Forums 101 - Free Help and Discussions
 
 
 

MEMBER REWARDS - Earn free advertising by participating in these forums! Click here for details.

Welcome to Webmaster Forums 101!

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Reply
 
Thread Tools Search this Thread Display Modes
Old 27th December 2004, 08:18 AM   #1

Username: kaliannah
Rank: WF101 Newbie
Join Date: Dec 2004
Location: LA & Canada
Posts: 9
Points: 0.00
Default .php & .shtml?

Hi all! I hope I used the correct techie terminology in the title. If not, please forgive me. I'm very new to this.

Problem:
I found a wonderful .php site recommender script that I'd love to include on my site; however, the readme file says it should be included in a .php file and my pages are .shtml. It works perfectly and I shouldn't complain, but my navigation areas are missing. I was wondering if there's a way to insert the .php script into a .shtml file so the top navigation menu and the bottom text menu will show? Also, for some reason the refer.php isn't recognizing my .css. Sigh. But it's a great script, I'm sure it's just my error somewhere.

Here's what my working script looks like with missing navigation:
http://www.skshirah.com/refer.php

Sample page that shows where top/bottom navigation should be:
http://www.skshirah.com/refer.shtml

Here's the free script's homepage:
http://gatequest.net/products/Site_Recommender/

Any suggestions? Thanks bunches!!
__________________
http://www.kaliannah.com


Last edited by kaliannah : 27th December 2004 at 08:41 AM.
kaliannah is offline   Reply With Quote
Old 27th December 2004, 09:58 AM   #2
Mr. Tech's Avatar

Username: Mr. Tech
Rank: Problem Solver
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
Send a message via MSN to Mr. Tech
Talking

OK, I'm not too familiar with .shtml but I'm guessing this is the code for including the top and bottom navigation links on the refer.php page:

<!--#exec cgi="/cgi-bin/bottom.cgi" -->
and
<!--#exec cgi="/cgi-bin/side.cgi" -->

These commands will not work on a .php page. They will only work on the .shtml page.

Try replacing those two pieces of code with:

<?php include("/cgi-bin/bottom.cgi"); ?>
and
<?php include("/cgi-bin/side.cgi"); ?>

That should work however, if there is CGI code in those .cgi files, the CGI code will not work. A way around that would be to rename the included files to .php files and converting the CGI code to PHP code.

Regarding the CSS not working, by the looks of things you need to add something like this code to your CSS file:

td{color:#000000;font-size:10pt;font-family:Arial;}

Let me know if you have anymore problems.

Good luck.
__________________
Please read the Forum Rules

Get rewarded for posting
- free advertising!

.::. [ Webmaster Resources ] .::. [ Web Design ] .::. [ Developer Tutorials ] .::.
Mr. Tech is offline   Reply With Quote
Old 27th December 2004, 12:18 PM   #3

Username: kaliannah
Rank: WF101 Newbie
Join Date: Dec 2004
Location: LA & Canada
Posts: 9
Points: 0.00
Default

Thanks for the help! I'll try it now.
__________________
http://www.kaliannah.com

kaliannah is offline   Reply With Quote
Old 2nd January 2005, 08:51 AM   #4

Username: kaliannah
Rank: WF101 Newbie
Join Date: Dec 2004
Location: LA & Canada
Posts: 9
Points: 0.00
Lightbulb

Bummer it didn't work. I'm determined to use this script, so maybe if I put it in a pop-up window? Hmmm. Thanks though!
__________________
http://www.kaliannah.com

kaliannah is offline   Reply With Quote
Old 4th January 2005, 11:17 AM   #5
Mr. Tech's Avatar

Username: Mr. Tech
Rank: Problem Solver
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
Send a message via MSN to Mr. Tech
Default

Did you get any errors? What happened when you tried to do this?

Maybe you should move the side and bottom pages out of the cgi-bin.... They don't need to be there if they are PHP files.

Thanks

Ben
__________________
Please read the Forum Rules

Get rewarded for posting
- free advertising!

.::. [ Webmaster Resources ] .::. [ Web Design ] .::. [ Developer Tutorials ] .::.
Mr. Tech is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Login
User Name
Password


Featured Members


Featured Links


Useful Resources
Webmaster Resources
Developers Tools
Developer Tutorials


Partners

All times are GMT +10. The time now is 08:55 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.3.2
 
 
WEBMASTER FORUMS 101
ARCHIVE
CONTACT US
TOP
   
© Webmaster Forums 101 2005. All Rights Reserved.
Design by: vBCore