Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- check if PDF file is valid?
February 14, 2008, 8:48 pm
rate this thread
I'm using PHP 4.4.4 but can upgrade if necessary. Given a path to a
file on my server, is there a way I can check if that file is of a PDF
format? I'm guessing the answer to this may depend on some versioning
info too, so if that's true, let's just consider for the latest verion
Thanks for your help, - Dave
February 14, 2008, 10:11 pm
Re: check if PDF file is valid?
If you're running your scripts on a linux (or unix) server, just run
the "file" command to know the type of file.
$type = shell_exec("file $filename");
IvŠn SŠnchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
Ruido en la l√≠nea cortes√≠a de Telef√≥nica.
- C. (http://symcbean.blogspot.c
February 15, 2008, 12:12 pm
- » 10 Reasons Why PHP is Better than ASP POSTINGS SUCKS!
- — Next thread in » PHP Scripting Forum