gergy008 Posted August 16, 2009 Share Posted August 16, 2009 I forgot completely! Where the end of a php file has something like play.php?game=pacman Whats the bit after the extension called? Link to comment https://forums.phpfreaks.com/topic/170477-solved-gah-whats-the-name-of-a-php-file-extension-id0-things-more-in-thread/ Share on other sites More sharing options...
asmith Posted August 16, 2009 Share Posted August 16, 2009 Query string? Link to comment https://forums.phpfreaks.com/topic/170477-solved-gah-whats-the-name-of-a-php-file-extension-id0-things-more-in-thread/#findComment-899251 Share on other sites More sharing options...
Prismatic Posted August 16, 2009 Share Posted August 16, 2009 Actually that doesn't have anything to do with PHP, it's all Apache (or whatever web server flavor you're using). It creates a superglobal array in php under the $_GET variable. Link to comment https://forums.phpfreaks.com/topic/170477-solved-gah-whats-the-name-of-a-php-file-extension-id0-things-more-in-thread/#findComment-899252 Share on other sites More sharing options...
corbin Posted August 16, 2009 Share Posted August 16, 2009 Actually that doesn't have anything to do with PHP, it's all Apache (or whatever web server flavor you're using). It creates a superglobal array in php under the $_GET variable. Technically speaking Apache doesn't create anything in PHP; it just passes the data to PHP and PHP does all the creating. In CGI mode, the query string is assigned to an environmental variable (similar to your PATH variable, not the PHP environ. var. kind), and POST data is written to stdin. Not sure how it works when it's an Apache module. Link to comment https://forums.phpfreaks.com/topic/170477-solved-gah-whats-the-name-of-a-php-file-extension-id0-things-more-in-thread/#findComment-899267 Share on other sites More sharing options...
gergy008 Posted August 16, 2009 Author Share Posted August 16, 2009 Thanks guys, I need to know how to use this so can somebody explain how to use it? I'm after making a play.php page, And the page will display a game depending on the ?gme=whatever tag at the end. It's just so people can't grab the URL to the game and steal them. You have to unlock games to play them thats all Link to comment https://forums.phpfreaks.com/topic/170477-solved-gah-whats-the-name-of-a-php-file-extension-id0-things-more-in-thread/#findComment-899432 Share on other sites More sharing options...
gergy008 Posted August 16, 2009 Author Share Posted August 16, 2009 I'll put this solved and start another for the question above. Cheers! Link to comment https://forums.phpfreaks.com/topic/170477-solved-gah-whats-the-name-of-a-php-file-extension-id0-things-more-in-thread/#findComment-899444 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.