hello!

i use this command and run it on localhost in my pc

<?php
exec('mspaint "C:\path\to\image.jpg"');
?>

and this

$cme='notepad.exe';
passthru($cme);

Recommended Answers

Have you tried including the full path to the executable ?

Jump to Post

All 2 Replies

Have you tried including the full path to the executable ?

yes i tried full path also
i found a new thing when i run this code start manager of my pc that a notepad is in process of 0 speed but i want that it will be open on desktop

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.