LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-10-2003, 01:21 PM   #1
rhuser
Member
 
Registered: Jan 2003
Posts: 55

Rep: Reputation: 15
perl script to insert image information


Hi Experts here

I would like someone to help me get or write a script that does the following:

1. take incoming images information from a direcotry and insert in to MySQL. image information (image_name, image_size and image_date)

2. make some kind of reference to where the image is. so when a query on the net is done the image information and image can be displayed.

Please help me.

Cheers, Mel
 
Old 03-12-2003, 05:23 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
i do not really understand what u intend to do.

u have a directory where images are stored. but regularly new images come in. where do they come from? what way they are written to the directory?

u can use readdir function to read the names of the images into an array save the contents of the array to a text file everytime u run the script.

so when u start the script u compare the current array with the former array in the text file and write the img info to the mysql for all array elements that are not in the former array. so u avoid double entries.

then update the text file with the new array content.

your scnd question i dont understand at all.

hope this is sort of helpful
cheers, jens

Last edited by j-ray; 03-12-2003 at 05:25 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
finding information on image properties datatab1 Programming 4 10-07-2005 01:16 AM
Perl question: how to insert an e-mail address in a script Pastorino Programming 3 08-08-2005 08:28 AM
Converting a Windows Perl script to a Linux Perl script. rubbercash Programming 2 07-19-2004 10:22 AM
Looking of Information about Perl History JHuizingh Programming 3 03-04-2002 07:58 PM
Including methods from a perl script into another perl script gene_gEnie Programming 3 01-31-2002 05:03 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration