RE: [PHP] Urls, apache and PHP
| From: | Anderson, P.D. | Date: | Thu, 15 May 2003 08:37:16 +0000 |
| Subject: | RE: [PHP] Urls, apache and PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-147669@lists.php.net to get a copy of this message | ||
Default PATH_INFO behaviour has changed from Apache 1.3 to 2.0.
I found the solution of the problem.
You need to change the <files *.php> directive in php.conf and add
AcceptPathInfo On
Then all works perfect again.
Patrick
-----Original Message-----
From: Marek Kilimajer [mailto:kilimajer@webglobe.sk]
Sent: Wednesday, May 14, 2003 1:49 PM
To: Anderson, P.D.
Cc: 'Brian Paulson'; php-general@lists.php.net
Subject: Re: [PHP] Urls, apache and PHP
Have you backed up your configuration files? You should have. Take a
look at the old configuration.
Anderson, P.D. wrote:
>Brian,
>
> Thanks for your answer, but it does not seem to work. I checked
>that php is running as a module (and not cgi) as I know it does not work
>with cgi.
>
>Do I need to set any MultiViewsMatch options? I tried MultiViewsMatch
>Any but it doesn't work.
>
>Patrick.
>
>PS I am running Apache 2.0.40 ..
>
>
>-----Original Message-----
>From: Brian Paulson [mailto:php@spectre013.com]
>Sent: Tuesday, May 13, 2003 5:42 PM
>To: 'Anderson, P.D.'; php-general@lists.php.net
>Subject: RE: [PHP] Urls, apache and PHP
>
>
>Patrick,
>
> Here is what I use to accomplish it the path can be to the root
>of where all your virtual hosts are or to a specific site if you only
>want it for that one.
>
><Directory "/path/to/site">
>Options MultiViews
></Directory>
>
>Also, with his you don't have to use the .php in the url like this
>
>http://www.chieftain.com/tuesday/news/index/article/1
>
>www.chieftain.com/ < URL
>tuesday/ < Dir
>news/ < Dir
>index/ < page that does processing
>article/ < variable
>1 < Variable
>
>Hth
>
>Thank You
>Brian Paulson
>Sr. Web Developer
>Email: Bpaulson@Chieftain.com
>Phone: 1-800-279-6397
>Fax: 1-719-544-0264
>URL: www.chieftain.com
>-------------------------------------------
>
>-----Original Message-----
>From: Anderson, P.D. [mailto:P.D.Anderson@tue.nl]
>Sent: Tuesday, May 13, 2003 8:55 AM
>To: 'php-general@lists.php.net'
>Subject: [PHP] Urls, apache and PHP
>
>
>Hi,
>
>I have been using the url to pass variables to be used in php files. For
>example
>
>Mysite.com/do.php/1/5 ( and not Mysite.com/do.php?var1=1&var2=5 )
>
>Using the list command I extract the variables (for example
>$var1=1;$var2=5)
>
>Always worked perfect for Unix + Apache 1.3x..+ php 2.x/3.x/4.x (as
>modules)
>+ mysql 3.x.
>
>Now, I upgraded to RedHat 9.0 with Apache 2.0 and it complains that
>do.php/1/5 is not a existing object/file (404 error).
>
>Could anyone please help me out and tell me how to change php.ini or
>httpd.conf to accept my 'old' way or passing variables.
>
>Thanks very much,
>
>Patrick
>
>
>
>
>
>
>
>
>