...

View Full Version : shell_exec() question.



Serex
07-02-2005, 02:26 PM
Would it be possible for me to run say a shell_exec() or system() command to run dreamweaver located at:

C:\Program Files\Macromedia\Dreamweaver MX 2004\Dreamweaver.exe

i tried with something like



shell_exec ("C:\Program Files\Macromedia\Dreamweaver MX 2004\Dreamweaver.exe");

saw a brief dos window pop up and then it closed. I was also wondering if you could pass in any vars to the shell_exec() that would allow me to open say a .php file... so possibly something along the lines of



function openFile($name)
{
shell_exec ("C:\Program Files\Macromedia\Dreamweaver MX 2004\Dreamweaver.exe&file=". $name ."");
}

and then later on have a link that you click to run the function... (dont know if its possible to set the href of a link to call a function)

or if i could just do something along the lines of



$path = "C:\Program Files\Macromedia\Dreamweaver MX 2004\Dreamweaver.exe&file=". $name ."";
echo "<a href=" . shell_exec ($path) . ">Link</a>";



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum