Afficher un message
Vieux 02/10/2006, 17h44   #2
Yamaska
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Parse all into one page using php into Apache

cancuen@gmail.com wrote:
> The thing is:
> http://www.example.com/rock/metallica
>>> to be parsed as directory when no exists>>

> http://www.example.com/index.php?gen...roup=metallica
>
> How ever all the string that follows the .com in this example I can
> make what ever I wanted with regexp, not only turn into some variables.
> What I want is to any page would be parsed with one specified page
> (except images by example, or zip files, or...).
>
> BlackSpider wrote:
>> Why not just use one php page, index.php, and use SSI, so all pages would
>> be...
>>
>> http://www.blahblah.com/index.php?page=whatever
>>
>> Like:
>>
>> <?php
>> if (isset($_GET['page'])) {
>> $request = $_GET['page'];
>>
>> if ($request == "main") { include("main.php"); }
>> else if ($request == "faq") { include("faq.php"); }
>> else { include("main.php"); }
>>
>> } else { include("main.php"); }
>>
>> ?>
>>

>


How about using the POST instead of the GET variables,.. and read a menu
from xml or soomthing like that,..

anyways it's a php issue,.. apache will NOT do POSTS etc for you in this
way to have only "seemingly" one page

apache does not handle menu structures for you.



Pete
  Réponse avec citation
 
Page generated in 0,05554 seconds with 9 queries