You are here: Re: [PHP] Virtual Directory Support « PHP « IT news, forums, messages
Re: [PHP] Virtual Directory Support

Posted by Brad Glonka on 11/15/05 22:41

The script does not give me any output.
I think this is what I need to enable.



On 11/15/05, Jasper Bryant-Greene <jasper@album.co.nz> 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
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация