Yes, $PHP_SELF would include /1/2/3.  $SCRIPT_NAME wouldn't have it though
since Apache fills that in with the script it executes.  Or you could
simply look at $PATH_INFO and strip the contents of $PATH_INFO from the
end of $PHP_SELF.

-Rasmus

On Fri, 5 Oct 2001, Ashley M. Kirchner wrote:

>
>     I've seen documentation on this somewhere, but now I can't remember
> where.
>
>     I want to move away from
>
>         file.php?var1=1&var2=2&var3=3
>
>     ...and go to
>
>         file.php/1/2/3
>
>     ...and still be able to do what I need to be done (extract the
> variables and use them as I need them.)
>
>     The only question I have with this approach is, what happens with
> $PHP_SELF?  I believe it becomes the full string (file.php/1/2/3) where
> with the other approach, it's only file.php (since it strips away the
> ?var1=1&var2=2&var3=3 part) - how does one deal with that?  I can't
> simply refer to $PHP_SELF anymore if I'm changing those variables, can
> I?
>
> --
> W | I haven't lost my mind; it's backed up on tape somewhere.
>   +--------------------------------------------------------------------
>   Ashley M. Kirchner <mailto:[EMAIL PROTECTED]>   .   303.442.6410 x130
>   IT Director / SysAdmin / WebSmith             .     800.441.3873 x130
>   Photo Craft Laboratories, Inc.            .     3550 Arapahoe Ave. #6
>   http://www.pcraft.com ..... .  .    .       Boulder, CO 80303, U.S.A.
>
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to