Re: Running a system command from php
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Running a system command from php

From: jsw_nz <jswnz@xtra.co.nz>
Date: Sat Sep 10 2005 - 00:15:14 CEST

Thank you Peter, Paul and NC for your pointers. The space in the path
to the executable was causing the problems. I copied the application to
the root, eliminating any spaces in the path and it now works. So just
a couple of questions/observations

(1) Within the context of calling system commands....is this a general
problem, regardless of the application being called, ie....would I
encounter this in any and all calls using paths that contains spaces.

(2) Paul, you had mentioned that tryiing to escape the spaces in the
path names might help. Familiar with escaping...but not sure how you
would escape the space.

Anyway now works. This forum is great, thanks all for your timely
answers.

John
Received on Mon Oct 24 02:09:55 2005