View Full Version : PHP Scriptomundo
Kalub
September 16th, 2009, 04:16 PM
I need a script that can do this, in this order (unless otherwise advised):
Convert *.doc to schedule.pdf
Find and Rename on the server; schedule.pdf to schedule.pdf.old
Upload the newly converted schedule.pdf as schedule.pdf
If I could do it in one fell swoop that would be better, oh and only use one visible form. Thanks
:downs:
klange
September 16th, 2009, 04:29 PM
- You need a DOC to PDF converter installed on the server, as I don't believe there are DOC-reading libraries that are even remotely good for PHP (there are PDF generators, but not worth your time).
- The script itself would be dead simple, but I couldn't write it until you picked something for the first part.
- Your algorithm is wrong. You need to `mv schedule.pdf schedule.pdf.old` then do the conversion, and there's no uploading involved for the PDF.
* Upload .doc file.
* shell(mv schedule.pdf schedule.pdf.old)
* shell(convert uploaded_file_name.doc schdule.pdf)
* Done.
Server run Linux or Windows? That will determine your options for the first part.
Kalub
September 16th, 2009, 07:11 PM
I believe it is Linux, it isn't mine, but I'm pretty darn sure. Anyways, I don't have any access to installing anything to the server.
I would rather use a plain text format, but I would loose my tables and everything that are in the document. (It is a schedule so I do need them)
If you have any idea how you would do it I'm all ears.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.