Hot Scripts
Log In
Sign Up
Why Join Hot Scripts?
Search over 40,000 listings on Hot Scripts:
All Categories
Ajax
ASP
ASP.NET
C & C++
CFML
CGI & Perl
Flash
Java
JavaScript
PHP
Python
Remotely Hosted
Ruby on Rails
Tools & Utilities
XML
Top Rated Scripts
Most Popular Scripts
New Scripts
Design Templates
Forum
Blog
Advertiser Info
Contact
Register
FAQ
Rules
Calendar
Search
Today's Posts
Mark Forums Read
Current location:
Hot Scripts Forums
»
Programming Languages
»
PHP
» get current file name as variable
get current file name as variable
LinkBack
Thread Tools
Display Modes
Prev
Next
#
1
(
permalink
)
07-19-03, 03:54 AM
paulj000
Bull in a china shop
Join Date: Jul 2003
Location: California, USA
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
get current file name as variable
Hi,
What is the easiest way to get the current file name in the users URL bar as a variable without the domain and sub directories?
Like if they are at
http://www.mydomain.com/dir1/dir2/2003_a.php
then
$currentFile = "2003_a.php"
thanks
paulj000
View Public Profile
Find all posts by paulj000
Bookmarks
Digg
del.icio.us
StumbleUpon
Google
«
Help Transfering information
|
PHP scripting
»
Currently Active Users Viewing This Thread: 1
(0 members and 1 guests)
Thread Tools
Show Printable Version
Email this Page
Display Modes
Switch to Linear Mode
Switch to Hybrid Mode
Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
Off
HTML code is
Off
Trackbacks
are
On
Pingbacks
are
On
Refbacks
are
On
Forum Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
General Community
Announcements
The Lounge
New Members & Introductions
Script Requests
HotScripts.com Discussion
Hot Scripts Forum Questions, Suggestions and Feedback
General HotScripts Site Discussion
HotScripts Site Bug Reports
General Web Coding
HTML/XHTML/XML
JavaScript
CSS
Flash & ActionScript
Programming Languages
PHP
Perl
ASP
ASP.NET
C/C++
Visual Basic
Windows .NET Programming
Everything Java
Other Languages
Other Discussions
Web Servers
Database
Other Topics
Web Design
API
Frameworks
AJAX
Security
Server Administration
Portable Device Programming
Cloud Computing
Ruby on Rails
CFML
Python
Tools and Utilities
CGI
Remotely Hosted
Web Hosting
Advertising Forums
General Advertisements
Job Offers & Assistance
Traffic Exchange
Website Reviews
WebHostingTalk.com
DBForums.com
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
New Web Host, New Problem!
justchat
PHP
2
09-29-03
03:39 PM
Writes to a text file
gamextremer2003
JavaScript
4
09-11-03
10:43 AM
Upload file type and size limiter!
Arctic
ASP
1
08-02-03
08:06 PM
how to get info from TXT file between %%customTags%% as vars??
paulj000
PHP
2
07-26-03
06:00 AM
ASP Renaming a file (with some filename parsing)
camt
ASP
2
06-30-03
10:53 PM
All times are GMT -5. The time now is
08:28 PM
.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Furl this Thread!
Share on Facebook
Share on Stumble Upon
Share on Twitter