Re: Php_Self
Oops made a parse error, here's the correction below..
Phil
"Phil Powell" <soazine@erols. com> wrote in message
news:Q79eb.2581 7$sp2.6743@lake read04...[color=blue]
> $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" <agupta@nospam. org> wrote in message
> news:blag8g$h6g $1@solaria.cc.g atech.edu...[color=green]
> > How can I retrieve all the page name with arguments passed to itself?
> >
> > Using Php_Self tag with the following URL:
> >
> >[/color]
>[/color]
http://localhost/workplaceGSA/index...._total_count=7[color=blue][color=green]
> >
> > returns:
> >
> > http://localhost/workplaceGSA/index.php
> >
> >
> > I want[/color]
>[/color]
http://localhost/workplaceGSA/index...._total_count=7[color=blue]
> as is.[color=green]
> >
> >
> > Any help will be highly appreciated.
> >
> > --
> > -Ankur Gupta[/color]
>
>[/color]
Php_Self
Collapse
This topic is closed.
X
X
-
Guest replied -
Guest repliedRe: Php_Self
$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" <agupta@nospam. org> wrote in message
news:blag8g$h6g $1@solaria.cc.g atech.edu...[color=blue]
> How can I retrieve all the page name with arguments passed to itself?
>
> Using Php_Self tag with the following URL:
>
>[/color]
http://localhost/workplaceGSA/index...._total_count=7[color=blue]
>
> returns:
>
> http://localhost/workplaceGSA/index.php
>
>
> I want[/color]
as is.[color=blue]
>
>
> Any help will be highly appreciated.
>
> --
> -Ankur Gupta[/color]
Leave a comment:
-
Guest repliedRe: Php_Self
<?=$PHP_SELF."" .$QUERY_STRING; ?>
"Ankur Gupta" <agupta@nospam. org> wrote in message
news:blag8g$h6g $1@solaria.cc.g atech.edu...[color=blue]
> How can I retrieve all the page name with arguments passed to itself?
>
> Using Php_Self tag with the following URL:
>
>[/color]
http://localhost/workplaceGSA/index...._total_count=7[color=blue]
>
> returns:
>
> http://localhost/workplaceGSA/index.php
>
>
> I want[/color]
as is.[color=blue]
>
>
> Any help will be highly appreciated.
>
> --
> -Ankur Gupta[/color]
Leave a comment:
-
Php_Self
How can I retrieve all the page name with arguments passed to itself?
Using Php_Self tag with the following URL:
returns:
I want http://localhost/workplaceGSA/index...._total_count=7 as is.
Any help will be highly appreciated.
--
-Ankur Gupta
Tags: None
Leave a comment: