PHP variable problem
Posted: Tue Dec 08, 2009 1:12 pm
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?
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?