By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,127 Members | 1,338 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,127 IT Pros & Developers. It's quick & easy.

Php_Self

P: n/a
How can I retrieve all the page name with arguments passed to itself?

Using Php_Self tag with the following URL:

http://localhost/workplaceGSA/index...._total_count=7

returns:

http://localhost/workplaceGSA/index.php
I want http://localhost/workplaceGSA/index...._total_count=7 as is.
Any help will be highly appreciated.

--
-Ankur Gupta
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
<?=$PHP_SELF."".$QUERY_STRING;?>
"Ankur Gupta" <ag****@nospam.org> wrote in message
news:bl**********@solaria.cc.gatech.edu...
How can I retrieve all the page name with arguments passed to itself?

Using Php_Self tag with the following URL:

http://localhost/workplaceGSA/index...._total_count=7
returns:

http://localhost/workplaceGSA/index.php
I want http://localhost/workplaceGSA/index...._total_count=7
as is.

Any help will be highly appreciated.

--
-Ankur Gupta

Jul 17 '05 #2

P: n/a
$PHP_SELF is supposed to include the query string along with the URL.
You'll have to do a check to see what is truly going on, something like
this:

<?

$phpSelf = (preg_match('/\?/', $PHP_SELF) ? $PHP_SELF : $PHP_SELF .
$QUERY_STRING;

?>

Phil

"Ankur Gupta" <ag****@nospam.org> wrote in message
news:bl**********@solaria.cc.gatech.edu...
How can I retrieve all the page name with arguments passed to itself?

Using Php_Self tag with the following URL:

http://localhost/workplaceGSA/index...._total_count=7
returns:

http://localhost/workplaceGSA/index.php
I want http://localhost/workplaceGSA/index...._total_count=7
as is.

Any help will be highly appreciated.

--
-Ankur Gupta

Jul 17 '05 #3

P: n/a
Oops made a parse error, here's the correction below..

Phil

"Phil Powell" <so*****@erols.com> wrote in message
news:Q79eb.25817$sp2.6743@lakeread04...
$PHP_SELF is supposed to include the query string along with the URL.
You'll have to do a check to see what is truly going on, something like
this:

<?

$phpSelf = (preg_match('/\?/', $PHP_SELF)) ? $PHP_SELF : $PHP_SELF .
$QUERY_STRING;

?>

Phil

"Ankur Gupta" <ag****@nospam.org> wrote in message
news:bl**********@solaria.cc.gatech.edu...
How can I retrieve all the page name with arguments passed to itself?

Using Php_Self tag with the following URL:

http://localhost/workplaceGSA/index...._total_count=7

returns:

http://localhost/workplaceGSA/index.php
I want

http://localhost/workplaceGSA/index...._total_count=7 as is.


Any help will be highly appreciated.

--
-Ankur Gupta


Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.