Page 1 of 1

Creating Files Using PHP through IE Browser

Posted: Tue Mar 06, 2007 11:17 pm
by manickkarthik
The Ninja Space Goat | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hello Guys,


                I was try to create the new file using PHP. that code is

Code: Select all

<?php

system('ls > test.txt');
print system('ls > test3.txt');
exec('ls > test1.txt');
shell_exec('ls > test2.txt');

?>
These all lines execute fine in Unix shell, But it is not working in IE browser, i want to achieve this through ie browser. My system is remote system. The server is unix machine, Apache installed in server machine. Plz help me.

The Ninja Space Goat | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Tue Mar 06, 2007 11:23 pm
by volka
The php code has nothing to do with the browser. It never runs "in" the browser, always on the server.