thanx for replying .can you suggest me how to use n implement cookies for logout script.i was trying it like --on logout ,i was destroying session variables by deleting data in variables (like username and password),then explorer should not direct to user profile.plz help me.
are you saying you're switching from a session variable to a cookie?
delete the cookie altogether by setting the expiration to a time in the past (negative value). don't forget that you'll then have to reload a page in order to reread the cookie data.
so if you have a cookie with a logged_in value = true, and you set it to logged_in value = false, you're still logged_in = true, until you reload that page (or another page) and it rereads the cookie data and now determines that logged_in = false.
make sense? write the logged_in=false to the cookie, then force a url redirection to reload the page is my suggestion.
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.