PHP variable problem

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
kn100
Forum Newbie
Posts: 1
Joined: Tue Dec 08, 2009 1:09 pm

PHP variable problem

Post by kn100 »

Here's my issue. At the moment, at my project site http://vcomics.co.cc/ and http://vcomics.co.cc/m/ (careful, there are a few nsfw ones in /m/) I have written a python script that autogenerates my html for me, and links all the pages together. in /m/, this leaves me with over 1700 html files. These are VERY painful to maintain, and take AGES to ftp to the server. I heard that PHP would enable me to make the page dynamic so 1700 pages would go to 1. I have read up and now understand the basic concept of php, but how:
1. make two links, that when clicked, change the image, and increment the link up by one (so 1.jpg goes to 2.jpg, 3.jpg) etc, almost like a next button, and how can I make it keep this on page refresh. Basically, I have 1700 images going from 1 to 1700 in a folder, and I want to be able to click through them with two buttons. How would I do this?

Please understand I come from a Python background, so PHP is alien to me. What books would you recommend to learn PHP?
incubi
Forum Contributor
Posts: 119
Joined: Mon Dec 07, 2009 1:47 pm

Re: PHP variable problem

Post by incubi »

Hi,
No need to pay for a books. Everything you need is here.

http://www.php.net/

Good luck PHP endeavors

incubi
Post Reply