.... 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 from shell
.
I run it from a shell like php test.php $line
with while read line loop
test.php
<?php
foreach($argv as $sProcess) {
$i++;
$name = parse_str($argv[1]);
..
..
..
$redirect = 'http://xx.yy.zz/' . '"$name"' . ;
Lets say, if the string is "main.html", it redirects to
http://xx.yy.zz/"$name"
What I expect to get it:
http://xx.yy.zz/main.html
What is my fault?
Last attempt:
If I change the last line like below, nothing changes:
$redirect = 'http://xx.yy.zz/' . '"$sProcess"'.;
Solution:
Have just removed double quotes, put single quote into correct position and it's okay now.
$redirect = 'http://xx.yy.zz/' . $name . ';
Thank you
Boris