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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.