i am tryin to write a script that will send data to MySQL
Hi
i am tryin to write a script that will send data to MySQL. I have images coming from a camera. i will be storing these images in a directory in my server (/home/me/images/ and each image will have a different name; the name will be the date of image. this is ok.), but i would like to send the information about the images to a database in MySQL. e.g. the name of the image, size of the image and date of image. Any Ideas. Please any help would be aprreciated mel |
It would be pretty easy to do this in Perl, I suggest you have a look into the different modules and methods required:
http://www.cpan.org/ - A good place to look for modules http://www.perl.com/ - Perl :D Shak |
It's very easy in PHP.
|
PHP and Perl for this kind of thing are much of a muchness, I prefer Perl for system tasks and PHP for web based things :)
Shak |
I agree, PHP is best for web. Bourne shell then...
|
BASH is useful, but Perl is powerful. But always its the best tool for the job, you cant really say that any programming tool is better than any other except for how much you enjoy using them as they all do different things.
Shak |
What I'm really after is, I don't know Perl, so I find every way around using it. Perl is a very powerfull ( and cryptic ) and I have no doubt it could do the job.
Did we get off track? Here is a small example of how to do something like this in C. The code below is missing pieces and will not compile as it, but you can use the syntax to build something that works for you. Code:
#include <stdlib.h> Code:
#include <stdio.h> Code:
insert_entry( mysql, &log ); |
thanks for the help
it is all good, iknow php is good, i have written a script that access data in PHP, but ireally need a script to run in PERL. i have a project i am working on, and the missing piece is this. PLease help |
All times are GMT -5. The time now is 02:58 PM. |