Current location: Hot Scripts Forums » Programming Languages » PHP » php self find


php self find

Reply
  #1 (permalink)  
Old 08-31-05, 04:14 AM
8675309 8675309 is offline
New Member
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
php self find

Hello,

Whats the php code that could be used to find the common url?

example:

<TD COLSPAN=5 background="images/index_06.gif"><form name="searchform" method="get" action="http://www.yourdomain.com/searchengine/main/index.php">

--------------------------------------------------------------------------
Not sure if I know how to explain this right.
but instead of having to have a specific url entered, what would the code be to have php find the correct location for the url.

The /main/index.php"> are always going to be there its just the domain that will change.
Reply With Quote
  #2 (permalink)  
Old 08-31-05, 06:04 AM
Sabu Sabu is offline
Junior Code Guru
 
Join Date: Sep 2004
Posts: 458
Thanks: 0
Thanked 0 Times in 0 Posts
The variable $_SERVER['PHP_SELF'] generally points back to the file, I believe

Last edited by Sabu; 08-31-05 at 06:06 AM. Reason: covering for register_globals=off
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

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 Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Downside--Solutions? Amulet PHP 10 07-15-05 08:26 AM
PHP multi-dimensional array sorting issue aqw PHP 2 06-24-05 11:09 PM
PHP / Graphic Developers someotherguy582 Job Offers & Assistance 1 06-05-05 07:40 PM
PHP Function to find if a variable is a valid date? jozin PHP 4 11-07-04 02:03 AM
Please help me find a good free php topsites Trel Script Requests 2 10-03-03 03:48 PM


All times are GMT -5. The time now is 07:05 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.