NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Please Read... I need some help.

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-10-2004, 01:38 PM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Mar 2004
Posts: 75
jtrageser is an unknown quantity at this point
 



Caution Please Read... I need some help.


Hey guys. If you go to http://talkwebhosting.net you will see that the page is titled "Index". That is because the overall header is optimized for search engines. Well I was wondering if someone could tell me how to make it to where it displays something different only for the index.php file. I was thinking something like an "if" and "else" statement would work. Like:

If page="index.php"
then: <title>TalkWebDesign.net</title>
else: <title>{pagetitle}</title>
????: NamePros.com http://www.namepros.com/programming/30049-please-read-i-need-some-help.html

I just don't actually know how to write the code for it or know if it can be done at all. Any help with this will be greatly appreciated.
__________________
www.usdishnetwork.com - Dish Network Satellite TV
jtrageser is offline  
Old 05-10-2004, 03:05 PM THREAD STARTER               #2 (permalink)
NamePros Member
Join Date: Mar 2004
Posts: 75
jtrageser is an unknown quantity at this point
 



Nevermind guys... I found a different way that makes a whole lot more sense. I just changed it in the language file and It worked fine.
__________________
www.usdishnetwork.com - Dish Network Satellite TV
jtrageser is offline  
Old 05-10-2004, 04:02 PM   #3 (permalink)
DSL
Senior Member
Join Date: Jun 2003
Posts: 2,115
DSL is a jewel in the roughDSL is a jewel in the roughDSL is a jewel in the rough
 



here this may help

PHP Code:
<?php
if ($REQUEST_URI == "index.php")
????: NamePros.com http://www.namepros.com/showthread.php?t=30049
{
   echo 
"index.php page";
}
else
{
   echo 
"other page";
}
?>
hope this helps.
DSL is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 03:08 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger