I wanted, just for fun, since I am teaching myself some PHP and MySQL, to write a php program which can retrieve parameters from the URL which calls it.
e.g.
http://test.php/var1/one/var2/two
OR
http://test.php?var1.....etc
I did quite a bit of searching last night in googe, but nothing I found seemed to work on my 100webspace.com site.
Someone did mention in another post that the version of php here is a much older one.
If anyone has some actual code example that will work on this site, I would really appreciate seeing it posted.
It has something to do with accessing $PATH_INFO
OR
it may be an Apache issue, Apache option "AcceptPathInfo On"
Thanks!
I wanted to write a routine to send an email to a new user, to validate the account. I thought perhaps the URL could be to a php routine which would
get a parameter from the URL, and know which user to validate.
I suppose I could achieve the same thing in a less elegant way by including some random password in the e-mail, and asking the user to enter it when prompted. But that is more clumsey than just simply having the user click on the link, and everything else is automatic.
I mean, I could generate a php page for each pending user, and when they click on it, it would have the code to go into mysql and set some validated flag to true,... but then I would have all these URLs lying around, which seems more clumsey, less desirable.