Jump to content

Variable Trouble.


VogrothUnmaker

Recommended Posts

[color=red]Okay, straight into it, I am in the middle of building a website for my webcomic and I am using much PHP to make my site as exciting and efficient as possible. The problem at hand is that instead of making a seperate .html/.php document for each comic strip (and instead of putting many comic strips on one long page) I want to use a variables in my URL for each comic. (You know something like "http://localhost/omnipresence/index.php?comic=comic1.png") Can you tell me how this can be done, my numerous books seem intent on keeping me in the dark  >.>[/color]
Link to comment
https://forums.phpfreaks.com/topic/26379-variable-trouble/
Share on other sites

It's quite simple as i hope that i understood you correctly.

"You want to create php script / webpage wich displays your comics. Like a gallery"

There are numerous free gallery scripts for you in all kinds of variations... but if you like to program it yourselve.. checkout the information on the following functions of php.

PHP.net/
dir
fpasstru and or fopen
for and next
getimagesize

and if you like to use a database checkout www.mysql.com :)
Link to comment
https://forums.phpfreaks.com/topic/26379-variable-trouble/#findComment-120623
Share on other sites

I dont think thats what I need Im looking at different gallery scripts and none of them seem right. I need an archive of webcomics much like this site, http://www.sbhsanimeclub.com/, however i need each webcomic to appear under a different url without making a seperate html document for each. I want to use variables for each comic how do i do that?
Link to comment
https://forums.phpfreaks.com/topic/26379-variable-trouble/#findComment-121771
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.