?

Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


?
?Returning current file name
Author:?Bowmah?(---.vf.shawcable.net)
Date:???10-21-05 18:05

I used to use this on my old web host and it would return the page that the user was on.

$currentpage = getenv("SCRIPT_NAME");

Now with the new web host, all I get is:

/cgi-bin/php

This was their reply:

Your function getenv returns environment variables. What you are trying to do is return the current file name, which is done incorrectly.

How can I grab the current page that my users are on?

Thanks.

?Topics Author? Date
?Returning current file name??new
Bowmah 10-21-05 18:05?
?Re: Returning current file name??new
martin 10-22-05 10:51?
?Re: Returning current file name??new
bastien 10-22-05 12:16?
Go to Top??|??Go to Topic??|??Flat View??|??Search?
??|??
New Topic
?Reply To This Message
?Your Name:
?Your Email:
?Subject:
Email replies to this thread, to the address above.
????

Provided By
Phorum