Topic: url : index.php/games

iv see some sites where they have the url simillar to that, how would i go about doin that?

and what would i need to do to add more  /  ?

Re: url : index.php/games

ex. http://63.84.89.227/blah.php/index.php

if you get that error message, ignore it. im trying to instal mysql. all i did wa s make a folder and call it blah.php. i wouldnt use this approch, id just do index.php?blah=games or something of tha matter

Indocron
$theQuestion = (2*b) || !(2*b);

Re: url : index.php/games

this is what you meant, right? or did you want the folder (index.php) to be the path loaded? so it will load domain.com/index.php/index file when you goto domain.com?

Indocron
$theQuestion = (2*b) || !(2*b);

Re: url : index.php/games

i want the url. "domain.com/index.php/name/extra" where "name" is main module name and the "extra" is extra variables needed.

Re: url : index.php/games

umm.. that means what? i just know that its probally a folder on that hoster

Indocron
$theQuestion = (2*b) || !(2*b);

Re: url : index.php/games

i saw some where where the /name was a variable that the index.php page would pick up

Re: url : index.php/games

well, index.php?name=blah would set the varible name with blah, if this is what you mean

Indocron
$theQuestion = (2*b) || !(2*b);

Re: url : index.php/games

i have that right now, but i wana know of anyone know how to do it this way.

Re: url : index.php/games

http://b2evolution.net/demo/index.html

i found them and they use it, they use index.php/blog/year/month

iv looked in the code and i cant find it, tho i dont realy know what im looking for

Re: url : index.php/games

well after testing with phpinfo() for about 30seconds i can guess its
$_SERVER["PATH_INFO"]

_SERVER["REQUEST_URI"]    /exemples/phpinfo.php/a/b/c/d
_SERVER["SCRIPT_NAME"]    /exemples/phpinfo.php
_SERVER["PATH_INFO"]    /a/b/c/d
_SERVER["PATH_TRANSLATED"]    d:\webserver\www\a\b\c\d
_SERVER["PHP_SELF"]    /exemples/phpinfo.php/a/b/c/d

11

Re: url : index.php/games

ok......im kinda lost....how would i go about getin it to work?

12 (edited by Connorhd 2004-10-24 22:21)

Re: url : index.php/games

split $_SERVER["PATH_INFO"] and then do what you want with the variables

edit: some more detail:

<?php
$page = explode("/", $_SERVER['PATH_INFO']);
echo $page[1];
echo "<br>";
echo $page[2];
?>

e.g. index.php/forums/topic123
output:

forums
topic123

13

Re: url : index.php/games

ahh ok great, thanx man