This link: http://www.onemanga.com/Bleach/317/ provides a certain manga for the viewer. When the image is clicked on, it goes to the next page, (.../02-03/) then (.../04), and etc. I view source of the page, and I don't understand if it's the JS or PHP that is doing the work. I believe JS are controlling the drop down and next/back buttons. But is PHP is handling what will be the next page when the user clicks on the image? And if not, may someone show me the specific source that handles the 'click on image, and goes to the next one'.
So far, I've been guessing how this is done, and what I came up with is this: http://pastebin.ca/1095277 -> Although the directories are being created from 0-17 with the for loop, the index.php aren't being made. I've tried the touch() as well but there isn't any result.
If someone may help me, thanks in advance!
hepl me clarify!
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: hepl me clarify!
If you mean how the URLs are created, it's neither Javascript nor PHP, but the web server. Assuming it's running Apache, take a look at mod_rewrite for generating URLs.
Re: hepl me clarify!
Apparently I don't know whether if it's running a db or not, but from another reply elsewhere, someone said it can be either flatfiles or php that determines the next or last image. Most likely it's a db because of it's large supply of content