Page 1 of 1

hepl me clarify!

Posted: Thu Aug 07, 2008 10:22 pm
by Aresius
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!

Re: hepl me clarify!

Posted: Thu Aug 07, 2008 11:29 pm
by Christopher
It is being done server-side. Do you know if that site is using PHP?

Re: hepl me clarify!

Posted: Fri Aug 08, 2008 6:02 am
by pkbruker
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!

Posted: Fri Aug 08, 2008 7:32 am
by Aresius
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