Jump to content

Silent System?


Garethp

Recommended Posts

I have EasyPHP running on my Windows Machine, and I'm running a program that goes through a folder, goes into the subfolders and uses the rar command with WinRAR to create a cbr (comic book rar) file, but I have alot of files to go through, and it's a pain in the ass trying to do stuff with the command line popping up every few seconds. Is there anyway to do a system() but silent, so it runs in the background?

Link to comment
https://forums.phpfreaks.com/topic/190623-silent-system/
Share on other sites

I've had success with the exec() function on Windows servers. The only caveat is the the app being executed has to be in the same dir as the PHP that is executing it. There may be a setting that can be adjusted to get around that though.

 

Here's a bit of code I use to run a python app.

 

$command = "\"scan.py\"";
print $command;
print exec($command);

 

Hope that helps.

 

-Dave

Link to comment
https://forums.phpfreaks.com/topic/190623-silent-system/#findComment-1005335
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.