I'm using ftp_get to get content of a php file from FTP in PHP.
ob_start();
$result = ftp_get($ftp_conn, "php://output", "file.php", FTP_BINARY);
$data = ob_get_contents();
ob_end_clean();
This is file.php
<?php echo "string"; ?>
But it show php code, not content of "echo" in that php file. There any do this?
Thank so much!
Very ugly, but may succeed