Click here to Skip to main content
15,886,799 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
Questionrecursive array search Pin
nhsal692-May-10 23:37
nhsal692-May-10 23:37 
AnswerRe: recursive array search Pin
fly9043-May-10 1:23
fly9043-May-10 1:23 
GeneralRe: recursive array search Pin
nhsal693-May-10 1:27
nhsal693-May-10 1:27 
GeneralRe: recursive array search Pin
fly9043-May-10 1:36
fly9043-May-10 1:36 
GeneralRe: recursive array search [modified] Pin
nhsal693-May-10 4:11
nhsal693-May-10 4:11 
Questionhow to open pdf files in browser Pin
umeshdaiya27-Apr-10 23:35
umeshdaiya27-Apr-10 23:35 
AnswerRe: how to open pdf files in browser PinPopular
Peter_in_278029-Apr-10 20:41
professionalPeter_in_278029-Apr-10 20:41 
AnswerRe: how to open pdf files in browser Pin
Peace ON29-Apr-10 21:10
Peace ON29-Apr-10 21:10 
Following code will be helpful to open pdf file.

<?php
// when form submitted, redirect to PDF file
if($file=="dick.pdf" || $file=="andrea.pdf" || $file=="lewis.pdf")
{
header("Location: $file");
exit();
}

// and else just display the thing
?>
<html>
<head>

<title>Download a PDF file</title>

</head>
<body>

<form action="thisfile.php" method="get">
<fieldset>
<legend>Please select a PDF file to download</legend>

<select name="file" size="1">
<option value="dick.pdf">Dick</option>
<option value="andrea.pdf">Andrea</option>
<option value="lewis.pdf">Lewis</option>
</select>
<input type="submit" value="Download!">

</form>

</body>
</html>

Hope this will help!
Jinal Desai

GeneralRe: how to open pdf files in browser Pin
Peter_in_27801-May-10 16:08
professionalPeter_in_27801-May-10 16:08 
AnswerRe: how to open pdf files in browser Pin
Peace ON2-May-10 23:20
Peace ON2-May-10 23:20 
AnswerRe: how to open pdf files in browser Pin
cristminix13-May-10 12:07
cristminix13-May-10 12:07 
QuestionDepriciated Function in PHP 5.3 - ereg & eregi Pin
sangeeta200926-Apr-10 2:55
sangeeta200926-Apr-10 2:55 
AnswerRe: Depriciated Function in PHP 5.3 - ereg & eregi Pin
Luc Pattyn26-Apr-10 3:15
sitebuilderLuc Pattyn26-Apr-10 3:15 
GeneralRe: Depriciated Function in PHP 5.3 - ereg & eregi Pin
sangeeta200926-Apr-10 3:30
sangeeta200926-Apr-10 3:30 
GeneralRe: Depriciated Function in PHP 5.3 - ereg & eregi Pin
Luc Pattyn26-Apr-10 3:55
sitebuilderLuc Pattyn26-Apr-10 3:55 
AnswerRe: Depriciated Function in PHP 5.3 - ereg & eregi Pin
cristminix13-May-10 12:14
cristminix13-May-10 12:14 
Questionwhich is Best php framework to use in any general project ? Pin
Peace ON25-Apr-10 20:36
Peace ON25-Apr-10 20:36 
AnswerRe: which is Best php framework to use in any general project ? Pin
User 171649225-Apr-10 21:46
professionalUser 171649225-Apr-10 21:46 
GeneralRe: which is Best php framework to use in any general project ? Pin
Peace ON29-Apr-10 1:26
Peace ON29-Apr-10 1:26 
GeneralRe: which is Best php framework to use in any general project ? Pin
mdusyl15-May-10 8:00
mdusyl15-May-10 8:00 
AnswerRe: which is Best php framework to use in any general project ? Pin
whatrevolution23-Jun-10 0:21
whatrevolution23-Jun-10 0:21 
Questiongetting information from the url Pin
SRJ9224-Apr-10 15:23
SRJ9224-Apr-10 15:23 
AnswerRe: getting information from the url Pin
Luc Pattyn24-Apr-10 15:32
sitebuilderLuc Pattyn24-Apr-10 15:32 
Questioninstalling Zorine OS on virtualbox?? Pin
AmbiguousName24-Apr-10 5:10
AmbiguousName24-Apr-10 5:10 
AnswerRe: installing Zorine OS on virtualbox?? Pin
LloydA11124-Apr-10 5:53
LloydA11124-Apr-10 5:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.