Hello!
I have managed to read a remote file into a variable and now made it a function using function_create, but the parameters im passing to it are not being loaded:
[code=php]
// in remote file
if( $thisIp == ”
|| $license == ”
|| $currUrl == ”
|| $comment == ”
){echo “<br><hr>They are empty!:<br>thisIp: $thisIp<br>license:$license<br>currUrl:$currUrl<br>comment:$comment<hr>”;} // return false;
// ….. much more code
And in a local file:
[code=php]
$remFile = $this->readRemoteFile($remPath);
$doRemLog = create_function(‘$thisIp, $license, $currUrl, $comment, $isAttempt’,$remFile);
The purpose of the remote file is to hold the code to connect to a remote database and do a simple insert from the parameters given, and in fact all [U]the insert is happening[U]was
[code]
function doRemLog($pa1,$pa2,$pa3){//code…}
doRemLog(1,2,3);
but now I dont know what is wrong with this code, if you need to look at more code I can supply it.
Thank you for your insight