somewon Posted October 27, 2008 Share Posted October 27, 2008 Okay, I know that on some websites you see things like this: http://website.com/gallery/?id=1 instead of http://website.com/gallery/blah.php?id=1 I have a setup where there are directories of just images, and a simple php scrip that reads the directory and displays thumbnails etc. What I want to be able to do is link straight to http://website.com/gallery/birds/ for example, and have it call the gallery.php script and display the pictures in that directory, but without having the script in every single directory. I hope this makes sense. =P Can anyone give me some pointers on how to do this? I'm not even sure what it's called, so it's hard to lookup info and figure it out myself, which is what I usually do. thanks! Quote Link to comment Share on other sites More sharing options...
Twister1004 Posted October 27, 2008 Share Posted October 27, 2008 by the sound of it you want to do a $_GET. Don't ask me how, lol, I'm still learning it X_O Quote Link to comment Share on other sites More sharing options...
corbin Posted October 27, 2008 Share Posted October 27, 2008 mod_rewrite would work. Quote Link to comment Share on other sites More sharing options...
somewon Posted October 27, 2008 Author Share Posted October 27, 2008 mod_rewrite would work. Ahhh, I looked it up, and that's pretty much what I was looking for. Thanks! Quote Link to comment Share on other sites More sharing options...
corbin Posted October 27, 2008 Share Posted October 27, 2008 No problem. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.