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.
Nigel.
2009/10/31 Nigel Henry cave.dnb2m97pp@aliceadsl.fr:
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.
Nigel.
Give us the link.
On Sat, Oct 31, 2009 at 9:25 PM, Nigel Henry cave.dnb2m97pp@aliceadsl.fr wrote:
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.
Nigel.
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Try to rename it:
mv FILE_NAME.php FILE_NAME.pdf
and open it with Evince
On Saturday 31 October 2009 21:29, Hiisi wrote:
2009/10/31 Nigel Henry cave.dnb2m97pp@aliceadsl.fr:
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.
Nigel.
Give us the link.
-- Hiisi.
It's a French site, and the online catalogue is what you want. The http version. PDF button is at bottom of page. I'd have used the flash version online, but it seems to want flash 10, and I've only got flash 9.0.256.
Nigel.
On Saturday 31 October 2009 21:29, Athmane Madjoudj wrote:
On Sat, Oct 31, 2009 at 9:25 PM, Nigel Henry
cave.dnb2m97pp@aliceadsl.fr wrote:
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.
Nigel.
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Try to rename it:
mv FILE_NAME.php FILE_NAME.pdf
and open it with Evince
-- Athmane Madjoudj
Renaming it has done the job, and it has opened with no problems.
Many thanks.
Nigel.
Nigel Henry wrote:
On Saturday 31 October 2009 21:29, Athmane Madjoudj wrote:
On Sat, Oct 31, 2009 at 9:25 PM, Nigel Henry
cave.dnb2m97pp@aliceadsl.fr wrote:
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.
Nigel.
Try to rename it:
mv FILE_NAME.php FILE_NAME.pdf
and open it with Evince
Renaming it has done the job, and it has opened with no problems.
Many thanks.
Nigel.
There is a simple way to check a file to see if it really is a pdf. Open it in a text editor. If the first four characters are '%pdf', then it is safe to rename it.
These first four bytes are the magic number in Unix based systems. This is a much more reliable and flexible way to mark files with a type than the extensions used by Microsoft. I believe the 'type' command will also tell you what this marker means. i.e. 'type FILE_NAME.php'.
Bob McConnell N2SPP
On Sun, Nov 01, 2009 at 07:13:22AM -0500, Bob McConnell wrote:
Nigel Henry wrote:
On Saturday 31 October 2009 21:29, Athmane Madjoudj wrote:
On Sat, Oct 31, 2009 at 9:25 PM, Nigel Henry
cave.dnb2m97pp@aliceadsl.fr wrote:
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.
Nigel.
Try to rename it:
mv FILE_NAME.php FILE_NAME.pdf
and open it with Evince
Renaming it has done the job, and it has opened with no problems.
Many thanks.
Nigel.
There is a simple way to check a file to see if it really is a pdf. Open it in a text editor. If the first four characters are '%pdf', then it is safe to rename it.
On unix-like systems the offical method is to do:
file filename
see "man file".
These first four bytes are the magic number in Unix based systems. This is a much more reliable and flexible way to mark files with a type than the extensions used by Microsoft. I believe the 'type' command will also tell you what this marker means. i.e. 'type FILE_NAME.php'.
Bob McConnell N2SPP
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
I am a Linux novice and now own a toshiba satelite a205 with a amd turion processor and was wondering which distro of linux will be most compatible?
________________________________ From: Nigel Henry cave.dnb2m97pp@aliceadsl.fr To: fedora-list@redhat.com Sent: Sat, October 31, 2009 2:46:51 PM Subject: Re: How to run a php script which contains a pdf
On Saturday 31 October 2009 21:29, Athmane Madjoudj wrote:
On Sat, Oct 31, 2009 at 9:25 PM, Nigel Henry
cave.dnb2m97pp@aliceadsl.fr wrote:
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.
Nigel.
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Try to rename it:
mv FILE_NAME.php FILE_NAME.pdf
and open it with Evince
-- Athmane Madjoudj
Renaming it has done the job, and it has opened with no problems.
Many thanks.
Nigel.
On Sat, 2009-10-31 at 21:29 +0100, Athmane Madjoudj wrote:
On Sat, Oct 31, 2009 at 9:25 PM, Nigel Henry cave.dnb2m97pp@aliceadsl.fr wrote:
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.
Try to rename it: mv FILE_NAME.php FILE_NAME.pdf and open it with Evince Athmane Madjoudj
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
Jonathan Ryshpan wrote:
On Sat, 2009-10-31 at 21:29 +0100, Athmane Madjoudj wrote:
On Sat, Oct 31, 2009 at 9:25 PM, Nigel Henry cave.dnb2m97pp@aliceadsl.fr wrote:
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.
Try to rename it: mv FILE_NAME.php FILE_NAME.pdf and open it with Evince Athmane Madjoudj
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
What you may have is a PHP page that contains a link to, or an embedded, PDF document.
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.
If you can't read it, you may just have a PDF file with the wrong extension and just have to rename it.
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.
Cheers,
Don't hijack threads. You replied to an existing list message but your reply has nothing to do with the topic of discussion. This is not good etiquette. If you want to introduce a new topic, compose a completely new message and use an appropriate Subject line.
See http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
poc