Server OS = debian etch
Software= LAMP with PHP 5.x
A php5 simple script required to create a function for inclusion in a larger batch processing script for speeding up my listing of items on ebay and to save on fees as well.
I could do this myself but I am time poor so have decided to contract out all my simple PHP coding jobs to catch up with everything else I need to do.
The job is to take a txt file of image links that I have saved from the ebay picture manager site and sort them by both item reference and image reference using a php5 script.
In picture manager I will use a date format (yyyymmdd) for each daily batch directory :
(e.g. BatchID=20080220 ) In each batch there will be a variable number of images per item and a variable number on items with a natural minimum of one item with at least one pic of that item.
Here is some sample raw data from a txt file [login to view URL] to illustrate coding required
Looking at the first line, the ‘816303' is my item reference and the ‘b' is my image reference.
<img src="[login to view URL]" alt="816303b">
<img src="[login to view URL]" alt="816303a">
<img src="[login to view URL]" alt="816302b">
<img src="[login to view URL]" alt="816302a">
<img src="[login to view URL]" alt="816301c">
<img src="[login to view URL]" alt="816301b">
<img src="[login to view URL]" alt="816301a">
Your scripts should create two output files, the first one ([login to view URL])creates simple item start and end tags and orders the grouping of the image links by item id and image id.
Example of a [login to view URL] file data that your script should create as [login to view URL] using the sample data in [login to view URL] above
<816301>
<p>
<img src="[login to view URL]" alt="816301a">
<img src="[login to view URL]" alt="816301b">
<img src="[login to view URL]" alt="816301b">
</p>
</816301>
<816302>
<p>
<img src="[login to view URL]" alt="816302a">
<img src="[login to view URL]" alt="816302b">
</p>
</816302>
<81303>
<p>
<img src="[login to view URL]" alt="816303a">
<img src="[login to view URL]" alt="816303b">
</p>
</816303>
Finally create a html file [login to view URL] with your script using a [login to view URL] file as source data like the one manually created above as gs20080220.txt.
<html>
<head>
</head>
<body>
<p> START 816301 </p>
<img src="[login to view URL]" alt="816301a">
<img src="[login to view URL]" alt="816301b">
<img src="[login to view URL]" alt="816301b">
<p> END 816301 </p>
<p> START 816302 </p>
<img src="[login to view URL]" alt="816302a">
<img src="[login to view URL]" alt="816302b">
<p> END 816302 </p>
<p> START 816303 </p>
<img src="[login to view URL]" alt="816303a">
<img src="[login to view URL]" alt="816303b">
<p> END 816303 </p>
</body>
</html>
Will pay $20 USD more if you are able to demonstrate how to automate the data extraction process from picture manager using a php auto login script. I know these exist out there but haven't had time to delve into it, so I'm stuck with manual extraction of the links.
I want to work with images saved in 600X400 pixel and lob them directly into the description section (centred) after adding other stuff to the page depending on the item and S&H appropriate for dispatch of the item.
The idea is to cut and past from a big daily batch file directly into turbo lister and latter on perhaps go one better and directly list via interaction with ebay's API..