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

Linux, Apache, MySQL, PHP

 
GeneralRe: Managing a database insert failure.. Pin
Dr.Walt Fair, PE19-May-10 6:53
professionalDr.Walt Fair, PE19-May-10 6:53 
GeneralRe: Managing a database insert failure.. Pin
MacIntyre19-May-10 7:53
MacIntyre19-May-10 7:53 
GeneralRe: Managing a database insert failure.. Pin
User 171649219-May-10 7:14
professionalUser 171649219-May-10 7:14 
GeneralRe: Managing a database insert failure.. Pin
MacIntyre19-May-10 7:54
MacIntyre19-May-10 7:54 
QuestionFile Conversion Pin
S p k 52117-May-10 18:44
S p k 52117-May-10 18:44 
Questionphp and batch files Pin
simpocoder17-May-10 3:13
simpocoder17-May-10 3:13 
AnswerRe: php and batch files Pin
User 171649217-May-10 3:22
professionalUser 171649217-May-10 3:22 
GeneralRe: php and batch files Pin
simpocoder17-May-10 4:10
simpocoder17-May-10 4:10 
The script is as shown below
<?php
session_start();
$userid=$_SESSION['userid'];
$res=exec('bat\diff_coursework.bat',$shell);
echo '<a href="content/differentiation_coursework/main.pdf"><input name="Download" type="button" value="Download" />';
include ("config.php");
$query="insert into access values('$userid','differentiation','coursework',NOW())";
mysql_query($query);
?>


It calls the batch file diff_coursework.bat and then display a download button for the main.pdf file.
I have several files to be run the same way therefore I need a general script for that instead of creating a new script for every file.
GeneralRe: php and batch files Pin
cjoki17-May-10 11:43
cjoki17-May-10 11:43 
GeneralRe: php and batch files Pin
simpocoder18-May-10 22:53
simpocoder18-May-10 22:53 
GeneralRe: php and batch files Pin
cjoki1-Jun-10 14:19
cjoki1-Jun-10 14:19 
QuestionUsing SAX Pin
vho12317-May-10 2:17
vho12317-May-10 2:17 
Question">" problem in PHP code Pin
SNArruda15-May-10 6:09
SNArruda15-May-10 6:09 
AnswerRe: ">" problem in PHP code Pin
mdusyl15-May-10 7:52
mdusyl15-May-10 7:52 
AnswerRe: ">" problem in PHP code Pin
cjoki17-May-10 11:37
cjoki17-May-10 11:37 
GeneralRe: ">" problem in PHP code Pin
polluks1-Jun-10 8:36
polluks1-Jun-10 8:36 
QuestionEntry point in linux kernel Pin
rupeshkp72811-May-10 23:40
rupeshkp72811-May-10 23:40 
AnswerRe: Entry point in linux kernel PinPopular
Michel Godfroid12-May-10 1:16
Michel Godfroid12-May-10 1:16 
GeneralRe: Entry point in linux kernel Pin
rupeshkp72812-May-10 1:41
rupeshkp72812-May-10 1:41 
GeneralRe: Entry point in linux kernel Pin
Michel Godfroid12-May-10 1:44
Michel Godfroid12-May-10 1:44 
GeneralRe: Entry point in linux kernel Pin
rupeshkp72812-May-10 1:55
rupeshkp72812-May-10 1:55 
Questionhow to copy Pin
udch10-May-10 20:36
udch10-May-10 20:36 
AnswerRe: how to copy Pin
Marc Firth10-May-10 22:03
Marc Firth10-May-10 22:03 
AnswerRe: how to copy Pin
Peace ON17-May-10 3:43
Peace ON17-May-10 3:43 
GeneralRe: how to copy Pin
udch17-May-10 5:26
udch17-May-10 5:26 

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.