473,320 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Php_Self

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
3 6016
<?=$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
$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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Gbona | last post by:
While running the following piece of code if (eregi("config.php",$PHP_SELF)) { Header("Location: index.php"); die(); } I get the following error Notice: Undefined variable: PHP_SELF in...
3
by: John Hanauer | last post by:
I'm getting my own SSL certificate soon because it is the right thing to do, but until then I have this shopping cart on an ISP that gives me free shared SSL. The cart breaks in HTTPS because of...
3
by: Joshua Beall | last post by:
Hi All, What is the difference between $_SERVER and $_SERVER, and which is better to use? According to the CGI 1.1 spec (http://hoohoo.ncsa.uiuc.edu/cgi/env.html), SCRIPT_NAME is not...
5
by: Maja | last post by:
here's situation: i have installed php 5 and apache 2.0. i can call my page with: localhost\\subdir\page.php inside my page i use links like this:
12
by: Don | last post by:
What's the PHP equivalent for the following? if(window.location == "http:/site.com/page1.html") { } else { }
1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
10
by: Jim Carlock | last post by:
Looking for a way to extract the path from the pfqpn (partially full qualified path name). $sThisServer = $_SERVER; // returns either aquaticcreationsnc.com or www.aquaticcreationsnc.com ...
4
by: Jim Carlock | last post by:
Are the XSS / Cross Site Scripting attacks fixed in Version 4.44? I'm seeing that $_SERVER doesn't return the $_SERVER appended to it. I was just messing with a few things and noticed that...
18
by: zoilus | last post by:
Can not determine how "<?=PHP_SELF?>" is supposed to work. The below is the line of code. <!-- <form name="search" method="post" action="<?=$PHP_SELF?>"--> When the above statement is run the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.