I am in need of a tutorial on putting php code in a bash script code. I have spent a full day over the last 3 searching google and read tons of stuff, none answers the questions I have. I know nothing of php and very little bash.
I have downloaded and installed the 'class.phpmailer' package.
1. I want the php code to reside on my computer not a server somewhere. Is that possible? I have apache running and I understand that is getting fairly standard across most distros?
2. What exactly would the calling code look like in the bash script?
The php call will need to go here"
Quote:
If [ "$TIMEFRAME" -gt 1209600 ] ; then
Insert php code here
echo $url" * "$admin_email $TIMEFRAME >> TLDPreminderlog
|
And Here
Quote:
cp TLDPreminderlog LDPremind.$suffix
rm -f TLDPreminderlog
cp TLDPnoresponcelog LDPnoresponce.$suffix
rm -f TLDPnoresponcelog
Insert php code here
|
I don't need to learn php, just how to do the above.