php assigning value to variables and posting result, how can i assign a value to variable that will add the score evertytime the answer in my trivia page is correct, how can i make a formula for total results in trivia game
You can use a session variable. First use session_start(). Then you can crate a session variable by simply setting the appropriate member of the $_SESSION or $HTTP_SESSION_VARS (PHP < 4.1.0) array Example. session_start(); $_SESSION["number"] = 10 ;
echo $_SESSION["number"];
You can call it whenerver you want. remmember to start session on all the pages where you use the variable.
I want to execute java command for a software which is stored on my web server with the help of...
(More)
I want to execute java command for a software which is stored on my web server with the help of command line but this should be executed through php... I have a code as follows,but its not working ,i need to integrate all exec commands. $cmd='cd C:Program FilesApache GroupApache2htdocsmainsphinxsphinx4-1.0beta-binsphinx4-1.0betain'; exec('C:WINNTsystem32cmd.exe'); exec($cmd); exec("java -mx312m -jar wav2text.jar voice_rec.wav>6.txt"); Reply fast>.
Hi there, I am using PHP5, where i need to mail with attachement. exact thing is, am getting the...
(More)
Hi there, I am using PHP5, where i need to mail with attachement. exact thing is, am getting the file in one page through basic input tag with file attribute. in next page am not getting the file path in order to mail it. Please help me.