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 lastindexof[javascript] in php?

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 09-14-2005, 08:44 AM THREAD STARTER               #1 (permalink)
First Time Poster!
Join Date: Sep 2005
Posts: 1
byeee is an unknown quantity at this point
 



lastindexof[javascript] in php?


i'm trying to make a script solely in php, not javascript, but i don't find a way to remove the path from $_SERVER['PHP_SELF']. it returns /folder/subfolder/file.php . What can I do? Using javascript's lastindexof would be a solution, but i'd rather not use javascript. php is a lot better.

I know, I could compare the $_SERVER['PHP_SELF'] to the whole path, but I want it to work both on my web server AND my home server. (easyPHP).
byeee is offline  
Closed Thread


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: Getting started with PHP (The Basics) deadserious Webmaster Tutorials 60 11-17-2007 12:35 PM
Googlism - What does google think of you? deadserious The Break Room 55 12-15-2005 10:09 AM
PHP Editor Software List Ber|Art Free Resources 3 08-22-2004 09:59 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 04:54 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