The anti-spam plugins have stopped being effective. Registration is back to requiring approval. After registering, you must ALSO email me with your username, so that I can manually approve your account.
Started by golden-crystals, June 09, 2006, 08:53:35 PM
0 Members and 1 Guest are viewing this topic.
Quote from: DatabitsNow you can go to http://www.mysite.com/comic and apache will execute comic.php (as the include suggests). But this is just the start. The comic.php script would first parse the REQUEST_URI from the $_SERVER global and pull some unique url from it to generate the page. Because of the way this works, going to the url http://www.mysite.com/comic/comic1page1.html would STILL execute comic.php. So when comic.php executes and parses the url, it would be able to tell that it needs to render comic #1's first page (you can have the URL setup and parse however you like).
// URL PARSE CODE HERE // PAGE GENERATION, ETC...?>
// Gets everything after the last "/" in the URL or "c1_p5.html" for this example. $url = substr(strrchr($_SERVER['REQUEST_URI'], '/'), 1); // Remove the ".html", ".htm", whatever from the URL by exploding // the string into an array and using the first index. $url = explode('.', $url); // Explode the string into another array to seperate comic and page. $url = explode('_', $url); $comic = $url; $page = $url; // Do whatever you want with the data that's been parsed.?>
Page created in 0.061 seconds with 20 queries.