One more thing" marketing person use Windows and he will probably use Winzip. Is this still ok, or it's better to use some other application?
First of all I would suggest using 7zip on Windows. Its usage is 100% free (you can of course donate to the project if you feel it is worthy). Your sales guy can then create zip's / tgz's / whatever archiving scheme supported by 7zip.
Hi, right now in my firm, to upload new products to web site, marketing person has to, in admin area, upload csv file (then php read content and store info in DB), and then ftp all images in temp directory. And then, using other php script, resize images and put them in product_images directory.
Does the other script do all the resizing automagically, or is the sales guy necessary in this step of the process?
Whole process works just fine.
But, I was wondering, if is possible this "scenario": marketing person zip images and csv file together, then in admin area uload zip file to server, and php then unzip file and do the job.
Sure... PHP can unzip the archive to a temp directory. Then you glob the files in this temp directory and have PHP perform the action(s) matching that type of file. Rinse and repeat for images.
Alternatively you can have PHP try checking the contents of each individual file to guesstimate what type of file it is and handle it accordingly. If you go this route it may also be worthwhile to check the file's contents for possible XSS exploits, or PHP code, or ...
Even if the images are stored in a database / other server this shouldn't be too tough for PHP to handle. :)
Actually, instead doing two operations (upload csv file and ftp images) he has to do just one thing: upload zip file. ???
Or, if somebody has an idea about this whole process?
Thanks!
-afan
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://www.php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY | http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
Attachment:
signature.asc
Description: OpenPGP digital signature