why does it not get the value in perl run shell script to call include php file?



two file in the same folder
fun.php 775

1.pl
#! /usr/bin/perl
$i = 0;
$decryptCC = `echo '<?php include( "/home/webserve.ca/eselect/
eselect_test/fun.php" ); echo "CC" . dcc( "$i", "" ) . "CC"; ?>' | php
-q`;

print $decryptCC;

2. fun.php
<?
function dcc($char)
{
return "test";
}
?>
3. 1.sh
#!/usr/bin/php -q
<?php
include('fun.php');
echo dcc(1);
?>

run ./1.sh get test.
2. run ./fun.pl nothing return.
.



Relevant Pages

  • Problems with require_once() and directory structure
    ... I have written a number of PHP include files. ... Each folder contains one or more files. ... echo "In script\n"; ... "In script Got here Attempting to instantiate db object " ...
    (alt.php)
  • require_once() driving me MAD ! - please HELP
    ... I have written a number of PHP include files. ... Each folder contains one or more files. ... echo "In script\n"; ... "In script Got here Attempting to instantiate db object " ...
    (comp.lang.php)
  • ouput the contents of a folder for download
    ... I want to output the file contents of a folder to a php page and provide a ... This is what I have so far but I cannot get a filename or get it to iterate ... through all the files in a folder. ... echo filetype. ...
    (php.general)
  • Re: OT. Windows server paths and PHP includes
    ... echo getcwd; ... you may try to put it in your includes folder and get ...
    (alt.html)
  • Re: Files deleted but free space doesnt increase
    ... unchecked "Compress files in this folder" and let it work for a while. ... So is my problem that although I'm deleting hundreds of GB, ... is an NTFS volume with file compression enabled. ... echo %date% %time%> c:\test.txt ...
    (microsoft.public.windows.file_system)