6
votes
2answers
14k views

PHP script can't run bash script. sh: Permission denied

I'm trying to exec a .sh script from PHP, however it is not executing. I checked the error logs, and I'm getting the 'sh: Permission denied' error. I checked under which user php is being run, and ...
0
votes
1answer
382 views

Is there a way of parsing a PHP script but not executing/running it?

I know that you can run php -l filename.php to run a syntax check on a file, but is there a way of parsing the file without actually executing it (ie without running any of the in-built PHP functions) ...
0
votes
2answers
1k views

Can't run PHP executable script. OS X 10.6

Execting php-scripts from the command line now does not work. When executing a script starting with #!/usr/bin/env php. I get this error message: env: php: No such file or directory. So it seems ...
1
vote
2answers
962 views

Debian: Kill a Screen session through the web

I have php code that is as follows (kill.php): <?php echo exec("/home/duke/aa/scripts/test.sh"); ?> test.sh looks like this: screen -S server -X quit If I run the php code in the terminal ...
0
votes
3answers
691 views

Some websites prompt to download PHP script after some time, but only in Firefox

This happens only in Firefox - NOT in IE or in Safari (all 3 tested only on a Windows system). Always, viewing a page shows most of the content, and then the browser prompts to download some sidebar ...
0
votes
1answer
376 views

Executing PHP script from command-line

It has been a while since I did any scripting with php. Now that I'm back at it, I find I'm missing something simple. Currently, the only way I am able to run my scripts is with the php command in ...
1
vote
1answer
102 views

Obtaining list of files from php script? [closed]

Naenara/KCCKP offers a catalog of hundreds of mp3 files that can only be downloaded in small amounts at a time. Clicking on a song title invokes mp3player.php and downloads a plaintext link to the mp3 ...