Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content 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 us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-10-2005, 06:35 PM   #1
poe
Confirmed User
 
Join Date: Mar 2004
Posts: 455
quick php ?

Code:
<? if( basename( $_SERVER['PHP_SELF'] ) hahahaha 'index.php' ) { ?>
How do I set this line to work both index.php and index2.php?

'index.php, index2.php' didn't work
__________________
poe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-10-2005, 06:35 PM   #2
poe
Confirmed User
 
Join Date: Mar 2004
Posts: 455
hahhaah is = =
__________________
poe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-10-2005, 06:43 PM   #3
Linguist
Confirmed User
 
Join Date: Apr 2004
Location: Toronto, ON
Posts: 1,706
Do an or:
if ((basename = index.php) || (basename = index2.php)) { blabla}

replace = with = =
Linguist is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-10-2005, 06:49 PM   #4
poe
Confirmed User
 
Join Date: Mar 2004
Posts: 455
thanks, but that didn't work.
__________________
poe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-10-2005, 07:04 PM   #5
poe
Confirmed User
 
Join Date: Mar 2004
Posts: 455
anyone have any ideas?
__________________
poe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-10-2005, 07:08 PM   #6
Linguist
Confirmed User
 
Join Date: Apr 2004
Location: Toronto, ON
Posts: 1,706
Shoot me the relevant code to jeka at jeka.org, i'll fix it up for ya... or you can hit me up on ICQ
Linguist is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-10-2005, 07:14 PM   #7
poe
Confirmed User
 
Join Date: Mar 2004
Posts: 455
Quote:
Originally Posted by Sjelefall
Shoot me the relevant code to jeka at jeka.org, i'll fix it up for ya... or you can hit me up on ICQ
thanks! emailing you now!
__________________
poe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-10-2005, 07:16 PM   #8
Baker Rd
Confirmed User
 
Join Date: Nov 2005
Posts: 647
if (basename($_SERVER['PHP_SELF']) = 'index.php' || basename($_SERVER['PHP_SELF']) = 'index2.php') { }
Baker Rd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-10-2005, 07:54 PM   #9
ddfGandalf
Confirmed User
 
Join Date: Feb 2005
Location: Budapest, Hungary
Posts: 534
still = =
__________________
ddfGandalf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.