<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Jonathan Ryshpan wrote:
<blockquote cite="mid:1257359490.8450.7.camel@localhost" type="cite">
<pre wrap="">On Sat, 2009-10-31 at 21:29 +0100, Athmane Madjoudj wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Sat, Oct 31, 2009 at 9:25 PM, Nigel Henry
<a class="moz-txt-link-rfc2396E" href="mailto:cave.dnb2m97pp@aliceadsl.fr"><cave.dnb2m97pp@aliceadsl.fr></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I was trying to read an online tool catalogue, and noticed a PDF button at the
bottom of the webpage. Clicked on it, and it opened the dialog box to
download. What has been downloaded though is a .php script (27.3MB).
The properties shows that it contains a pdf document, but I've no idea how to
run it, open it, or whatever needs to be done, to get to see the PDF.
Any suggestions folks.
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">Try to rename it:
mv FILE_NAME.php FILE_NAME.pdf
and open it with Evince
Athmane Madjoudj
</pre>
</blockquote>
<pre wrap=""><!---->
No need to rename it, just run
$ evince FILE_NAME.php
Of course
$ file FILE_NAME.php
will always give you a reasonable guess about what the file format
really is.
jon
</pre>
</blockquote>
What you may have is a PHP page that contains a link to, or an
embedded, PDF document.<br>
<br>
Open the file with a text editor and see if you get PHP code. If you
do, then just extract the PDF or the link.<br>
<br>
If you can't read it, you may just have a PDF file with the wrong
extension and just have to rename it.<br>
<br>
If the renamed file does not open with a PDF reader, you probably have
a compiled PHP file (used to secure PHP pages as it purportedly
prevents people from pilfering PHP products <deep breath>). In
this case you will have to view the file in a browser and hope it
doesn't contain anything malicious. Do it as an unprivileged user to be
safe.<br>
<br>
Cheers,<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Paul
</pre>
</body>
</html>