PHP SCRIPT / DB BULK INSERTS
Project ID: 1231628294
Project Details
- Status: Closed (Chosen Programmer: uhjk; Paid; Rated 10 out of 10)
- Posted: 1/10/2009 at 17:58 EST
- Closed: 1/23/2009 at 7:43 EST
- Project Creator:
- Budget: N/A
- Description: I have bought a link dump script, but i can only add items 1 by 1, and i'm looking for someone that can make an extra script to do BULK inserts in the database by importing a .txt file
Example:
To add an item manually i need to insert: Title, URL, Description, Image, Category, Publish Date, Status
Let's say i have an import.txt file with the following lines:
http://www.today.com/gallery1/intex.php|Gallery Picture 1
http://www.you.com/gal2/intex.php|Gallery Picture 2
http://www.next.com/g3/intex.php|Gallery Picture 3
In this example the import.txt only has 2 fields (URL and Title)
Line by Line the script should pick and add the URL, then sould add the Title, the Description field will be empty, the Category will be picked from a dropdown box or something like that (all items from an imported .txt file will ALL be added in the category selected, so there is no need to select a category for each URL of a .txt), publish date (immediately by default) and Status should be active by default too. The worst part should be the image, i need the script to read the URL and analyze it to pick a random image from each URL and then add it to the database, the random picture picked needs to be uploaded to the server to a common thumb folder, also it needs to give a random name to the picture file picked so that there aren't issues when uploading because the folder is the same for all thumb files. All galleries have about 10 to 20 images and a few more from the layout, the script should detect the most used name in all *.jpg files:
Example:
The script crawls one url of the import.txt file and detects the following thumbnails:
00001t.jpg
00002t.jpg
next.jpg
00003t.jpg
00004t.jpg
00005t.jpg
00006t.jpg
top.jpg
00007t.jpg
00008t.jpg
00009t.jpg
bottom.jpg
00010t.jpg
small.jpg
banner.gif
main.jpg
header.jpg
Obviously the pictures i need are those files that start with 0000*, so the script should detect the majority of the files that start with 0000, and then do a random to select only one of those and add it to the database and copy the thumb to the common thumbs folder in my server
NOTE: This isn't just for picture galleries... i need it for video galleries too. No need to integrate this script in the administration
NOTE: Some files imported may contain like 1000 urls , it doesn't matter how long those urls take to be added as long as the script inserts all of them correctly.
So, resuming:
- Import a .txt file with URL|Title
- Script reads each url and title of each line of that .txt
- Inserts Url, Title, description, thumb etc in the DB
- Script picks 1 random thumb from each URL and copies it do the common thumbs folder with a random name and adds it to the DB
It's up to you to find out the best and easiest way to do this.
I will only complete the escrow when a working demo is provided by the programmer
Check out the working script at: http://www.phplinkdropper.com/demo/admin L:demo P:demo
I hope i made myself clear, please send PM if you didn't understood something.
Additional Info (Added 1/10/2009 at 20:06 EST)...The best way to pick the right thumbs will be by the size in pixels instead of the filename... - Tags:
| Project Bids |
| Programmer | Bid |
Delivery Time | Time of Bid | Rating | |
| 3wmaker | $20 | Immediately | 1/12/2009 at 9:08 EST | (1 review) |
|
| Please read PMB | |||||
| freegenerator | $50 | 15 days | 1/13/2009 at 13:33 EST | (15 reviews) |
|
| Hi, ready to start work on your demo, if you are interested. demo could be ready in a couple of days. Sergei | |||||
| hindiphaj | $54 | 3 days | 1/11/2009 at 8:34 EST | (131 reviews) |
|
| Can do this, Arsen | |||||
| simphp5 | $55 | 3 days | 1/11/2009 at 2:10 EST | (9 reviews) |
|
| Hi, We are interested to work with you. Please reply me, if you are interested. Thank You | |||||
| jittu | $60 | 3 days | 1/12/2009 at 9:43 EST | (No Feedback Yet) | |
| i can do | |||||
| sharifbaba1 | $70 | 1 day | 1/10/2009 at 22:17 EST | (21 reviews) |
|
| ready to start this project ... | |||||
| ldsang | $70 | 4 days | 1/21/2009 at 19:33 EST | (9 reviews) |
|
| Can do this quickly. See PMB | |||||
| nidhi | $85 | 2 days | 1/12/2009 at 0:48 EST | (87 reviews) |
|
| quality work | |||||
| wincent | $100 | 1 day | 1/10/2009 at 21:59 EST | (108 reviews) |
|
| easy work. | |||||
| kanebear | $100 | 3 days | 1/11/2009 at 11:55 EST | (376 reviews) |
|
| Hi, please check my PM. Thank you :") | |||||
| uhjk |
$103 | 5 days | 1/10/2009 at 21:10 EST | (510 reviews) |
|
| As discussed. | |||||






