PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old March 1st, 2007, 06:03 PM
krekha krekha is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 36 krekha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 4 sec
Reputation Power: 2
how to use $PHP_SELF ?

Hi I am using php5 and I don't know how to set PHP_SELF. When I run the following code I am getting dummy.php which I don't know from where it is coming.

<?php
echo $_SERVER['PHP_SELF'];
?>

Please tell me how to set and use
$_SERVER['PHP_SELF'];
$PHP_SELF;

Reply With Quote
  #2  
Old March 2nd, 2007, 12:34 PM
marblekittykat marblekittykat is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 41 marblekittykat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 7 sec
Reputation Power: 2
RE: how to use $PHP_SELF ?

PHP self returns the URL for the page in the browser. If it is returning dummy.php then the page executing the script is dummy.php

If your script is included in another page, such as myPage.php it would return myPage.php

There is loads of information on this in the PHP manual which should be the first place you look.

Check the reserved variables page:

http://uk2.php.net/reserved.variables

~MKK

Reply With Quote
  #3  
Old March 2nd, 2007, 12:45 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: how to use $PHP_SELF ?

Also, you don't need to create multiple threads for the same topic; it's really annoying.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > how to use $PHP_SELF ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT