Re: [PHP] Apache odd behavior

2009-02-17 Thread Stuart
2009/2/17 Paul M Foster : > Well, the only way I know this is to look at the Apache logs. I was > getting a lot of 3xx and 4xx errors (which don't show up directly in the > browser), and looking at the requests, it appears that the browser is > indeed dictating the place to find images, etc., based

Re: [PHP] Apache odd behavior

2009-02-17 Thread Paul M Foster
On Tue, Feb 17, 2009 at 12:27:58PM +, Stuart wrote: > 2009/2/17 Paul M Foster : > > On Mon, Feb 16, 2009 at 08:34:22PM +, Stuart wrote: > > > > > > > >> This is your problem, you're not understanding where the paths are > >> being resolved. Apache has absolutely no involvement in resolvin

Re: [PHP] Apache odd behavior

2009-02-17 Thread Stuart
2009/2/17 Paul M Foster : > On Mon, Feb 16, 2009 at 08:34:22PM +, Stuart wrote: > > > >> This is your problem, you're not understanding where the paths are >> being resolved. Apache has absolutely no involvement in resolving >> relative paths in your HTML files to absolute URLs. The browser do

Re: [PHP] Apache odd behavior

2009-02-17 Thread Virgilio Quilario
> I'm submitting a url like this: > > http://mysite.com/index.php/alfa/bravo/charlie/delta > > The index.php calls has code to decode the url segments > (alfa/bravo/charlie/delta). It determines that the controller is alfa, > the method is bravo, and converts charlie and delta to $_GET['charlie'] >

Re: [PHP] Apache odd behavior

2009-02-17 Thread Michael A. Peters
Paul M Foster wrote: > On Mon, Feb 16, 2009 at 08:34:22PM +, Stuart wrote: > > FWIW, I've been doing computers since before the CP/M days > (pre-pre-DOS), so I do know the difference between absolute and relative > paths. > > I'm a little doubtful about the browser specifying things like the

Re: [PHP] Apache odd behavior

2009-02-16 Thread Paul M Foster
On Mon, Feb 16, 2009 at 08:34:22PM +, Stuart wrote: > This is your problem, you're not understanding where the paths are > being resolved. Apache has absolutely no involvement in resolving > relative paths in your HTML files to absolute URLs. The browser does > this. All you need to do is us

Re: [PHP] Apache odd behavior

2009-02-16 Thread Paul M Foster
On Mon, Feb 16, 2009 at 08:53:24PM +, Ashley Sheridan wrote: > I've read through this thread and not noticed anyone mention the > tag. This allows you to specify a URL to which relative ones are mapped > to, which could be just what you're looking for, as I believe all the > browsers suppor

Re: [PHP] Apache odd behavior

2009-02-16 Thread Stuart
2009/2/16 Ashley Sheridan : > On Mon, 2009-02-16 at 20:34 +, Stuart wrote: >> 2009/2/16 Paul M Foster : >> > On Mon, Feb 16, 2009 at 07:30:57PM +0200, Thodoris wrote: >> > >> >> >> >>> I'm submitting a url like this: >> >>> >> >>> http://mysite.com/index.php/alfa/bravo/charlie/delta >> >>> >> >

Re: [PHP] Apache odd behavior

2009-02-16 Thread Ashley Sheridan
On Mon, 2009-02-16 at 20:34 +, Stuart wrote: > 2009/2/16 Paul M Foster : > > On Mon, Feb 16, 2009 at 07:30:57PM +0200, Thodoris wrote: > > > >> > >>> I'm submitting a url like this: > >>> > >>> http://mysite.com/index.php/alfa/bravo/charlie/delta > >>> > >>> The index.php calls has code to deco

Re: [PHP] Apache odd behavior

2009-02-16 Thread Stuart
2009/2/16 Paul M Foster : > On Mon, Feb 16, 2009 at 07:30:57PM +0200, Thodoris wrote: > >> >>> I'm submitting a url like this: >>> >>> http://mysite.com/index.php/alfa/bravo/charlie/delta >>> >>> The index.php calls has code to decode the url segments >>> (alfa/bravo/charlie/delta). It determines t

Re: [PHP] Apache odd behavior

2009-02-16 Thread Paul M Foster
On Mon, Feb 16, 2009 at 07:30:57PM +0200, Thodoris wrote: > >> I'm submitting a url like this: >> >> http://mysite.com/index.php/alfa/bravo/charlie/delta >> >> The index.php calls has code to decode the url segments >> (alfa/bravo/charlie/delta). It determines that the controller is alfa, >> the m

Re: [PHP] Apache odd behavior

2009-02-16 Thread Thodoris
I'm submitting a url like this: http://mysite.com/index.php/alfa/bravo/charlie/delta The index.php calls has code to decode the url segments (alfa/bravo/charlie/delta). It determines that the controller is alfa, the method is bravo, and converts charlie and delta to $_GET['charlie'] = 'delta'.

Re: [PHP] Apache odd behavior

2009-02-16 Thread German Geek
Symfony uses exactly this method for pretty urls. Check it out. Maybe it has everything you want :). Have a look at symfony's .htaccess rewrite rules at least. You have a few possibilities here: You can make ur own rewrite for urls that contain index.php or rewrite http://mysite.com/alfa/bravo/char

Re: [PHP] Apache odd behavior

2009-02-16 Thread Michael A. Peters
Paul M Foster wrote: > I'm submitting a url like this: > > http://mysite.com/index.php/alfa/bravo/charlie/delta Why would you want to do such a thing? If you want parameters in the filename without using get, use mod_rewrite and explode the page name - and use a delimiter or than a / - IE use a

Re: [PHP] Apache odd behavior

2009-02-16 Thread Stuart
2009/2/16 Paul M Foster : > I'm submitting a url like this: > > http://mysite.com/index.php/alfa/bravo/charlie/delta > > The index.php calls has code to decode the url segments > (alfa/bravo/charlie/delta). It determines that the controller is alfa, > the method is bravo, and converts charlie and d

[PHP] Apache odd behavior

2009-02-15 Thread Paul M Foster
I'm submitting a url like this: http://mysite.com/index.php/alfa/bravo/charlie/delta The index.php calls has code to decode the url segments (alfa/bravo/charlie/delta). It determines that the controller is alfa, the method is bravo, and converts charlie and delta to $_GET['charlie'] = 'delta'. It