HI
This is what i got.
http://domain.com/img.php?img=example.jpg
Its a script that gets an image from a predefined directory. i just noticed thats some bulletinboards disabled the feature to link images that contain = (equal sign) in their url. I want to know if there is anything i can do to avoid using the equal sign e.g. some other way to link to the image without revealing the true directory on the server.
Thanks for reading
anyway to avoid =
Moderator: General Moderators
try calling http://domain.com/img.php/example.jpg and $_SERVER['PATH_INFO'] will contain /example.jpg
see also: http://www.php.net/manual/en/reserved.variables.php
see also: http://www.php.net/manual/en/reserved.variables.php
- mydimension
- Moderator
- Posts: 531
- Joined: Tue Apr 23, 2002 6:00 pm
- Location: Lowell, MA USA
- Contact:
or another alternative that i personally like is use a url like so:
http://domain.com/img.php?example.jpg
and then everything after the '?' is stored in $_SERVER['argv'][0]
http://domain.com/img.php?example.jpg
and then everything after the '?' is stored in $_SERVER['argv'][0]