RE: [PHP] Virtual Directory Support
[snip] Real simple question How do I change this from disabled to enabled. [/snip] Flip the switch? /subtle :) This an IIS question. Please see http://www.microsoft.com/windows2000/en/server/iis/default.asp?url=/windows2 000/en/server/iis/htm/core/iicodirv.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Virtual Directory Support
I think I may be headed down the wring direction. I'm using Apache. What I'd like to be able to do is to pass arguments to a script as though it were a directory. Something like so http://server.com/script.php/some-virtual/dirs/ On 11/15/05, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Real simple question How do I change this from disabled to enabled. [/snip] Flip the switch? /subtle :) This an IIS question. Please see http://www.microsoft.com/windows2000/en/server/iis/default.asp?url=/windows2 000/en/server/iis/htm/core/iicodirv.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Virtual Directory Support
[snip] I think I may be headed down the wring direction. I'm using Apache. What I'd like to be able to do is to pass arguments to a script as though it were a directory. Something like so http://server.com/script.php/some-virtual/dirs/ [/snip] http://us2.php.net/dir http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Virtual Directory Support
Jay Blanchard wrote: [snip] I think I may be headed down the wring direction. I'm using Apache. What I'd like to be able to do is to pass arguments to a script as though it were a directory. Something like so http://server.com/script.php/some-virtual/dirs/ [/snip] http://us2.php.net/dir http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html Ah, both those links are useless for what he wants to do. Brad, Make a script called script.php containing the following line: pre?php print_r( $_SERVER['PATH_INFO'] ); ?/pre And then access http://yourserver.com/script.php/some/path/info and you'll see how you can use that string (hint: explode on '/'). Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Virtual Directory Support
On Tue, Nov 15, 2005 at 02:50:53PM -0500, Brad Glonka wrote: I think I may be headed down the wring direction. Yeah, the Virtual Directory Support isn't really what its name seems to be, it basically is enabled when php is compiled with Zend Thread Saftey which only effects how certain things behave and is rather transparent to any php coder. I'm using Apache. What I'd like to be able to do is to pass arguments to a script as though it were a directory. Something like so http://server.com/script.php/some-virtual/dirs/ You should be able to do that right now. You will see that the $_SERVER['PATH_INFO'] exists and has '/some-virtual/dirs/' in it now. Curt. -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Virtual Directory Support
Brad Glonka wrote: The script does not give me any output. I think this is what I need to enable. No, as has already been said on the list. That virtual directory setting has nothing to do with this AFAIK. Are you running PHP as an Apache module or as CGI? Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Virtual Directory Support
The script does not give me any output. I think this is what I need to enable. On 11/15/05, Jasper Bryant-Greene [EMAIL PROTECTED] wrote: Jay Blanchard wrote: [snip] I think I may be headed down the wring direction. I'm using Apache. What I'd like to be able to do is to pass arguments to a script as though it were a directory. Something like so http://server.com/script.php/some-virtual/dirs/ [/snip] http://us2.php.net/dir http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html Ah, both those links are useless for what he wants to do. Brad, Make a script called script.php containing the following line: pre?php print_r( $_SERVER['PATH_INFO'] ); ?/pre And then access http://yourserver.com/script.php/some/path/info and you'll see how you can use that string (hint: explode on '/'). Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Virtual Directory Support
On Wednesday 03 December 2003 12:51, Ralph Guzman wrote: I have a new installation of PHP 4.1.2 and it appears I cannot run php scripts outside of apache root directory. How did you come to this conclusion? Was there an error message? If so, what did it say? If there was no error message, then enable FULL error reporting and try again. I look at phpinfo() and I saw Virtual Directory Support is set to disabled. I'm suspecting this could me the problem, but I have not been able to find anything on google or the lists explaining how to enable this. I doubt whether that has anything to do with your problem. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* There is always someone worse off than yourself. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Virtual Directory Support
Jason, thank you for responding. I never did figure out what the problem was. This installation was done by somebody else using readhat 9' out of the box rpm based installation. So rather than wasting time I went ahead and recompiled apache/php from source code. Everything is working now and html pages appear to be loading faster. I guess compiling from source provides better performance than installing using rpm. -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 1:43 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Virtual Directory Support On Wednesday 03 December 2003 12:51, Ralph Guzman wrote: I have a new installation of PHP 4.1.2 and it appears I cannot run php scripts outside of apache root directory. How did you come to this conclusion? Was there an error message? If so, what did it say? If there was no error message, then enable FULL error reporting and try again. I look at phpinfo() and I saw Virtual Directory Support is set to disabled. I'm suspecting this could me the problem, but I have not been able to find anything on google or the lists explaining how to enable this. I doubt whether that has anything to do with your problem. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* There is always someone worse off than yourself. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php