[nycphp-talk] Apache look back functionality and PHP
Mark Withington
mwithington at PLMresearch.com
Thu Aug 4 14:50:43 EDT 2005
Thanks for the input. That's what I thought. I'm running Apache 1.3** and
I think the acceptpathinfo directive was default on back then. Wonder if it
has something to do with the Zend debugger configured on the server? I get
really weird results in the $_SERVER array that look a lot like the Zend
stuff (e.g. dummy.php)
--------------------------
Mark L. Withington
PLMresearch
"eBusiness for the Midsize Enterprise"
PO Box 1354
Plymouth, MA 02362
o: 800-310-3992 ext. 704
f: 508-746-4973
v: 508-746-2383
m: 508-801-0181
http://www.PLMresearch.com
Netscape/AOL/MSN IM: PLMresearch
mwithington at plmresearch.com
Public Key:
http://www.plmdev.com/plmr/plmresearch.com/keys/MLW_public_key.asc
Calendar: http://www.plmdev.com/plmr/plmresearch.com/calendar.php
-----Original Message-----
From: talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org]On Behalf Of Michael Sims
Sent: Thursday, August 04, 2005 2:30 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Apache look back functionality and PHP
On Thursday 04 August 2005 12:52, Mark Withington wrote:
> For the life of me, I can't get Apache to look back and find the
> magick.php script, rather it simply looks at image.jpg and assumes
> it's a subdirectory. Has anyone had any experience with this script
> (a PHP front-end to ImageMagick as described at evolt.org) or
> Apache's look back functionality?
Well, I don't know anything about magick.php, but this should work with
Apache. These URLS give identical results:
http://www.nyphp.org/ - Apache uses default document
http://www.nyphp.org/index.php - exact URL
http://www.nyphp.org/index.php/foo/bar/baz/ - searches backwards until
it finds index.php
So, the URL
http://www.example.com/magick.php/image.jpg/foobar/
should search backwards until it finds magick.php and hits it, and
magick.php would then have the path_info to do something with, such as
get, mangle, and output your image file.
This Apache directive defaults to on (AFAIK) but perhaps you've turned
it off:
http://httpd.apache.org/docs/2.0/mod/core.html#acceptpathinfo
Michael Sims
_______________________________________________
New York PHP Talk Mailing List
AMP Technology
Supporting Apache, MySQL and PHP
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org
More information about the talk
mailing list