Örneğin, foo.php in:
<?php echo 'hello'; ?>
Ve bar.php de, ben (merhaba) foo.php çıkışını almak ve tarayıcı çıktısı önce bazı biçimlendirme yapmak istiyorum. Bunu yapmak için herhangi bir yolu var mı?
Web sunucusu PHP ve Python komut hem de çalıştırabilirsiniz Ya da daha da ileri, bir PHP komut dosyası bir Python komut dosyası çıktı alabilirsiniz?
Edit: PHP function file_get_contents() can do this only for remote scripts. If it is used on local scripts, it will return the contents of the whole script. In the example above, it returns rather than hello. And I don't want to use exec()/system() things and CGI.