[PHP] shell_exec "root" question

2002-08-08 Thread Hendrik Daldrup

Hi,

i wrote a script, which runs

echo shell_exec("exim -bp");

so it simply gives me the current mail queue.
However, it only works when called by user "root", because exim won't 
let "group" or "others" execute it.
So, i cannot use it with apache, because it runs as "nobody".
Well, i saw scripts that can do so, but i have no clue how it is 
possible for them.
Does anyone have an idea?
I thought about adding a cron-job and let it update a file every 5 
minutes with the current mail queue, but that will cause unnecesary load 
and it won't be up2date.

So, any ideas are welcome,

Thanks,

Duncan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] php code in templates... how to?

2002-10-03 Thread Hendrik Daldrup

Hi,

i am working with templates, which i put into a string ($user_screen) 
and in the end i make the output with

echo $user_screen;

where $user_screen would contain the template file data.
However, if the $user_screen contains any php code it gets echo'ed as 
well, instead of parsed.
(ok, that sounds logical),
but is there a way i can make php parse the php code within this string?

i thought, that maybe "include" would work that way, but its not 
possible to include a string, is it?

thx

Hendrik




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Bugs in php 4.2.3.?

2002-10-08 Thread Hendrik Daldrup

Hi,

i recently had a problem with a script on a server, which uses php 4.2.3.
I couldn't find the problem and so installed it on a different server 
and it worked right away.
Only difference on that server was: php 4.2.2.

I checked some sites and it seems there are some issues with postnuke, 
xoops and several other scripts with php 4.2.3.

Is this a known bug, or is it s.th. like the register_globals thing, 
where you either need to update the script or set it to "On" in php.ini?

Regards,
Hendrik


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Bugs in php 4.2.3.?

2002-10-08 Thread Hendrik Daldrup

Yes,

the basic settings are, but some modules differ.

Regards,
Hendrik

Jason Wong wrote:

>On Wednesday 09 October 2002 03:14, Hendrik Daldrup wrote:
>  
>
>>Hi,
>>
>>i recently had a problem with a script on a server, which uses php 4.2.3.
>>I couldn't find the problem and so installed it on a different server
>>and it worked right away.
>>Only difference on that server was: php 4.2.2.
>>
>>
>
>Are the php.ini the same?
>
>  
>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php