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 / ?
You are not logged in. Please login or register.
PunBB Forums → Programming → 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 / ?
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
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?
i want the url. "domain.com/index.php/name/extra" where "name" is main module name and the "extra" is extra variables needed.
umm.. that means what? i just know that its probally a folder on that hoster
i saw some where where the /name was a variable that the index.php page would pick up
well, index.php?name=blah would set the varible name with blah, if this is what you mean
i have that right now, but i wana know of anyone know how to do it this way.
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
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
ok......im kinda lost....how would i go about getin it to work?
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
ahh ok great, thanx man
PunBB Forums → Programming → url : index.php/games
Powered by PunBB, supported by Informer Technologies, Inc.