hepl me clarify!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Aresius
Forum Newbie
Posts: 3
Joined: Thu Aug 07, 2008 10:22 pm

hepl me clarify!

Post 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!
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: hepl me clarify!

Post by Christopher »

It is being done server-side. Do you know if that site is using PHP?
(#10850)
pkbruker
Forum Commoner
Posts: 32
Joined: Sun Aug 03, 2008 9:36 am
Location: Oslo, Norway

Re: hepl me clarify!

Post 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.
Aresius
Forum Newbie
Posts: 3
Joined: Thu Aug 07, 2008 10:22 pm

Re: hepl me clarify!

Post 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
Post Reply