For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > April 2005 > file execution with php









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author file execution with php
Oklas

2005-04-29, 8:56 pm

Hi *,

I've an exec() command in my PHP script. For a long time it worked fine, but
right now it won't do it anymore. I've looked up if I still have all rights
and so on... But everything is ok.
I've tried to do a exec("dir C:\path\to\directory") and it works well. But
when I try to execute the script nothing happens. It's a Batch File I am
trying to start...
The return value I get is 1
But I can't find any site where is written what the return values mean...
When I type in a file that does not exist I get the return value 1 too...
Very strange the whole thing...

How can I find out what I have to do or where I have to start. I've even
tried shell_exec and I've written a BATCH file with

echo hello

Even the hello I do not get back...

Can anyone help me?


Thanks,

oklas


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com