PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > about install plugins in my web page
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
about install plugins in my web page

Réponse
 
LinkBack Outils de la discussion
Vieux 01/05/2008, 10h31   #1
php.ajay@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut about install plugins in my web page

Hai every body,

I am working on IELTS project.In that from admin side we are uploading
pdf files.But how can i down load those pdf files from front end.In my
system i am having adobe 7.0 version it is working in my system.But
those who are having version 5 or 6 they are not able to see the pdf
file.
This is the code for viewing pdf files.
<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width=450
height=601 align="absmiddle"> <param name="SRC" value="../<?=
$rows['quespdf_path']?>">
<embed src="../<?=$rows['quespdf_path']?>" width=500 height=601
align="absmiddle"> <NOEMBED> Your browser does not support embedded
PDF files. </NOEMBED> </embed>
</object>
The above piece of code is working in my system.But it is not working
in systems which are having
lower versions like adobe 5 or 6.
Please do need ful

Thanking you
  Réponse avec citation
Vieux 01/05/2008, 12h29   #2
macca
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: about install plugins in my web page

>phow can i down load those pdf files from front end.In my...

You could force a download...

<?php


function force_download($file)
{
$dir = "web_images/";
if ((isset($file))&&(file_exists($dir.$file))) {
header("Content-type: application/force-download");
header('Content-Disposition: inline; filename="' . $dir.$file .
'"');
header("Content-Transfer-Encoding: Binary");
header("Content-length: ".filesize($dir.$file));
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="' . $file .
'"');
readfile("$dir$file");
} else {
echo "No file selected";
} //end if

}//end function


?>

  Réponse avec citation
Vieux 01/05/2008, 12h34   #3
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: about install plugins in my web page

php.ajay@gmail.com wrote:
> Hai every body,
>
> I am working on IELTS project.In that from admin side we are uploading
> pdf files.But how can i down load those pdf files from front end.In my
> system i am having adobe 7.0 version it is working in my system.But
> those who are having version 5 or 6 they are not able to see the pdf
> file.
> This is the code for viewing pdf files.
> <object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width=450
> height=601 align="absmiddle"> <param name="SRC" value="../<?=
> $rows['quespdf_path']?>">
> <embed src="../<?=$rows['quespdf_path']?>" width=500 height=601
> align="absmiddle"> <NOEMBED> Your browser does not support embedded
> PDF files. </NOEMBED> </embed>
> </object>
> The above piece of code is working in my system.But it is not working
> in systems which are having
> lower versions like adobe 5 or 6.
> Please do need ful
>
> Thanking you
>


This isn't really a PHP question. You'll do better asking in an HTML
newsgroup such as alt.html. Or an Adobe newsgroup might be even better
(sorry, I don't frequent any of those).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

  Réponse avec citation
Vieux 01/05/2008, 13h24   #4
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: about install plugins in my web page

macca wrote:
>> phow can i down load those pdf files from front end.In my...

>
> You could force a download...
>
> <?php
>
>
> function force_download($file)
> {
> $dir = "web_images/";
> if ((isset($file))&&(file_exists($dir.$file))) {
> header("Content-type: application/force-download");
> header('Content-Disposition: inline; filename="' . $dir.$file .
> '"');
> header("Content-Transfer-Encoding: Binary");
> header("Content-length: ".filesize($dir.$file));
> header('Content-Type: application/octet-stream');
> header('Content-Disposition: attachment; filename="' . $file .
> '"');
> readfile("$dir$file");
> } else {
> echo "No file selected";
> } //end if
>
> }//end function
>
>
> ?>
>
>


This doesn't force a download. The browser is still free to ignore it.

And it doesn't solve his problem with the object tag not being recognized.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

  Réponse avec citation
Vieux 01/05/2008, 17h23   #5
NC
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: about install plugins in my web page

On May 1, 2:31 am, php.a...@gmail.com wrote:
>
> I am working on IELTS project.In that from admin side we are uploading
> pdf files.But how can i down load those pdf files from front end.In my
> system i am having adobe 7.0 version it is working in my system.But
> those who are having version 5 or 6 they are not able to see the pdf
> file.
> This is the code for viewing pdf files.
> <object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width=450
> height=601 align="absmiddle"> <param name="SRC" value="../<?=
> $rows['quespdf_path']?>">
> <embed src="../<?=$rows['quespdf_path']?>" width=500 height=601
> align="absmiddle"> <NOEMBED> Your browser does not support embedded
> PDF files. </NOEMBED> </embed>
> </object>


Try an iframe instead:

<iframe width=450 height=601 src="../<?= $rows['quespdf_path']?>">

Cheers,
NC
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 00h14.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,66584 seconds with 13 queries