open pdf

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

simply linking to them should be good enough. That's about all you can do with a static html file anyways.

As for what bbcode is..
faq.php#21
faq.php?mode=bbcode
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Post by saumya »

ok.so its buletin board code.

now coming back to the problem.yes i think i have to go back to htmlonly.
thank you feyd
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

What should be happening is that when some clicks on the link to the pdf file, if adobe acrobat is loaded onto the users compturer (and the haven't messed with the default settings) is that adobe acrobat should load into the browser to all the user to see the pdf document.

as feyd just beat me to is to just create the link to the file in your <a href> tags.
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Post by saumya »

yeah,thats another problem.it actually opens inside browser.But i think i have to live with that.ther is noother option.can i open the pdf in separate acrobat reader each time i click a link this should open a different acrobat with that document.
thank you phpScott for replaying
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

saumya wrote:can i open the pdf in separate acrobat reader each time i click a link this should open a different acrobat with that document.
thank you phpScott for replaying
1. You can use PopUps.
2. change target value(deprecated). <a href="x.pdf" target="_blank">x.pdf</a>
3. Force Download : viewtopic.php?t=31717
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

anjanesh, it would seem you haven't read the entire thread. He's using static html, not php. So force-download isn't exactly possible on this occasion.
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Post by saumya »

well i do not mind using php,if possible.i am confused again.what to do? should i use staic html or php.that raises another question for me,if i am using php then how i am sure that it will be called through a web server?because at last i have to give this on cd and the user should able to open it from cd.
the basic intention is an interface to open different pdfs in different acrobat reader.first i should have a fullscreen interface without anything but the buttons to open the pdfs.then once u click one button it should open one pdf in one acrobat reader.
is it possible that i can run my php codes from cds.i mean to say can i be sure that these php files will be called by the user's webserver and php interpreter?
offs seems a lot of work.i have to wake up all night i think.

thanks guys
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

You can run you php scripts from the CD if your path in the Apache configuration file is set to that drive.
Better make it as static and open each one using target="_blank"
<a href="x.pdf" target="_blank">x.pdf</a>
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Post by saumya »

thank you.i will do that.
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

what anjanesh about the use of aphace will only work if the client has apache installed on there computer. The best bet is to put static html on to the cd using links like it was mentioned.
Of course if you are creating the static html pages on your computer and you have the apache and php set up there is nothing stopping you from creating a php script that will generate the html page and have that saved to a file so your updating is easier when you need to create new cd's.

At least that is how I would do it.
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Post by saumya »

i actually meant to go for static way.sorry i coould not mantion it clearly.
thank your for the information.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Or, if you need to use php/mysql/perl/ssi/sqlite on a CD, you can check out Microweb! Been using it a long time, it is wonderful.

http://www.indigostar.com/microweb.htm
Post Reply