On my current website I have gallery pages with links to different
galleries within that gallery section. The problem is, that I have to
manually edit every single page when I want to add a new page so that every
page now has a link that includes the new page number.
Now I have been thinking that surely PHP could be used to automate this
instead of me doing it every time I put a new gallery page online.
What I'd like to know is if it is possible for PHP to read a file name,
then use that to "echo" it into the HTML, then go to the next file name -
do the same, until there are no more like sounding filenames in that
directory.
So for example, I have gallery01, gallery02, gallery03 webpages.
I ask PHP to look for a match for "gallery", then add the file number "01",
and echo it to the HTML page, and then do the same until there are no more
"gallery" pages to be found in that directory.
If possible, scould someone point me in which direction to do this (I don't
need / want a complete solved solution :) ).
Thanks.
Dariusz
galleries within that gallery section. The problem is, that I have to
manually edit every single page when I want to add a new page so that every
page now has a link that includes the new page number.
Now I have been thinking that surely PHP could be used to automate this
instead of me doing it every time I put a new gallery page online.
What I'd like to know is if it is possible for PHP to read a file name,
then use that to "echo" it into the HTML, then go to the next file name -
do the same, until there are no more like sounding filenames in that
directory.
So for example, I have gallery01, gallery02, gallery03 webpages.
I ask PHP to look for a match for "gallery", then add the file number "01",
and echo it to the HTML page, and then do the same until there are no more
"gallery" pages to be found in that directory.
If possible, scould someone point me in which direction to do this (I don't
need / want a complete solved solution :) ).
Thanks.
Dariusz
Comment