introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

function exec()



Posted by: atome
September 01, 2008 06:35PM
My problem is that :
With eaysphp2, i run a lot of function "exec"
and it open me cmd window ... I lost the focus of the current window ...
How can i dow to keep the focus during executing of my script

Thanks
Options: ReplyQuote
Posted by: mega-squall
September 03, 2008 02:38AM
Using exec is not a very good idea, it's a good way to open security holes in your system.

There are two situations :
Using PHP with exec for administration/scripting : better use PHP in CLI mode
Using PHP with exec for website : better script your file with PHP only functions

Anyway, as this is not an EasyPHP specific problem, you'd get better answers on forums with PHP as a more specific topic.

---
mega-squall
Options: ReplyQuote
Posted by: atome
September 05, 2008 12:44AM
I understand your answer but i need to compile TEX page by a script PHP ... Do you know other issue to do this ...

For the apparition of the window cmd.exe each time i used exec(), i want to say that window didn't appear with the version 1.8 of EasyPHP. Do you know why?
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.