Be a Supporter!
gumOnShoe
gumOnShoe
  • Member since: May. 29, 2004
  • Offline.
Forum Stats
Member
Level 15
Blank Slate
Args to php Oct. 17th, 2011 @ 10:13 PM Reply

I know the standard method of sending data to php is to use ?varName=value&etc=etc...

But, when I look at newgrounds and the Flash portal (which several of you suggested uses php), the only "argument" is the directory name. I take it I'm missing something here. As I'm relatively new to the practice of web development: how'd they do that?


Newgrounds Anthology? 20,000 Word Max. [Submit]

Music? Click Sig:

BBS Signature
thePalindrome
thePalindrome
  • Member since: Aug. 13, 2011
  • Offline.
Forum Stats
Member
Level 05
Game Developer
Response to Args to php Oct. 17th, 2011 @ 10:25 PM Reply

in the .htaccess, they use mod_rewrite to change the URL from
a.a.a/bob to a.a.a/index.php?a=bob
that's why it seems like each post has its own directory.
Tutorial on how to do this

Hope I helped!

NinoGrounds
NinoGrounds
  • Member since: Nov. 28, 2005
  • Offline.
Forum Stats
Member
Level 19
Programmer
Response to Args to php Oct. 17th, 2011 @ 10:37 PM Reply

I worship this approach of showing url to the viewer. I do it on my site too. It looks there's a ton of pages, but actually everything is ran from page.php?page=[site]. Aforementioned site is actually this. Same page different URL.
And it's easy. You'll love it.