I am trying to pass a Text string as a variable using the PHP Exec command line, but the entire text is not being passed.
The text is like this:
$title_page = 'Channel | This is the channels title';
then the exec line is:
exec("$path_to_php $emailer $article_sub_security_var $article_id > /dev/null &");
Im retrieving them like this:
$article_sub_security_var = $_SERVER['argv'][1];
$article_id = $_SERVER['argv'][2];
$page_title = $_SERVER['argv'][3];
The command line is working properly with the exception of $page_title. It only returns part of the string and not all of it.
Any suggestions to pass it in full much appreciated.
$title_pageor even$page_titleanywhere in your exec statement :-/