execute a linux script from PHP

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
Posts: 1256
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Re: execute a linux script from PHP

Post by WiZARD » Mon Jan 13, 2003 4:49 am

Try change at this:

Code: Select all

 if (!function_exists('imp_expand_fromaddress')) {
    function imp_expand_fromaddress ($imp) {
           $cmd = '/usr/local/bin/myscript ' . "'" . escapeShellCmd($imp['user']) . "'";
           return ($res);

or see how to do this smart peaple iwho read manual carefully:
http://www.php.net/manual/en/function.e ... ellarg.php

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest