Jump to content

how to write a php script to automate a task?


snowathlete

Recommended Posts

Hi everyone,

 

I run a genealogy website that is mainly html, a few php pages, and a few java scripts i picked up for specific needs.

I dont know php or java. though i would like to pick a few things up.

 

I have a problem, a lengthy task manually, that i would like to automate.

I have about 300 images in a directory: images/arms/ and each image file name begins with a number followed by an underscore: e.g. 45_coatsofarms.png

I have a html file with text and in that text each image is mentioned with the number followed by a period: e.g. 45.

What i need to achieve is an image link directly after this text pointing to the correct file.

 

I know this can be done in php, but im not sure how to achieve it. Can someone offer some help?

 

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...