hi everyone,
i want to run the shell-command 'uptime' from my index.php. but i cannot get the output of 'uptime' back to php. i tried running a script without uptime, but it writes something to some file. however the file never gets created, so i guess the command is never executed from the php-script.
i have safe_mode on and copied /bin/uptime to my safe_mode_exec_dir. i don't get any errors, neither on the page-output, nor in php.error.log, even when logging E_ALL.
php-version and variables can be seen from http://mainframe.frontbone.de/phpinfo.php
please advise me with anything! i really don't know what to do about this... it looks like my php doesn't like me... i code php for about 1.5years, two friends of mine also looked at it, they code even longer than me... please, just anything :)
greetings,
sebastian
exec(),system() not working in safe_mode_exec_dir
Moderator: General Moderators
- Heavy
- Forum Contributor
- Posts: 478
- Joined: Sun Sep 22, 2002 7:36 am
- Location: Viksjöfors, Hälsingland, Sweden
- Contact:
I just posted the fourth reply to this topic:
viewtopic.php?t=8591
...where I discovered that I had to use the full path to access mysqldump.
Have you tried that?
viewtopic.php?t=8591
...where I discovered that I had to use the full path to access mysqldump.
Have you tried that?
-
Tubbietoeter
- Forum Contributor
- Posts: 149
- Joined: Fri Mar 14, 2003 2:41 am
- Location: Germany
-
Tubbietoeter
- Forum Contributor
- Posts: 149
- Joined: Fri Mar 14, 2003 2:41 am
- Location: Germany