Texas Posted July 31, 2010 Share Posted July 31, 2010 I am trying to send an html file (with .js formatting) to the browser from within a PHP script. The .js formatting is not being interpreted and so the result in the browser is less than impressive. Why can't I make a call, in PHP, to a url and have the results from that call directed to the browser? Link to comment https://forums.phpfreaks.com/topic/209403-this-should-be-real-easy-but-i-cant-seem-to-do-it/ Share on other sites More sharing options...
Pikachu2000 Posted July 31, 2010 Share Posted July 31, 2010 Can't diagnose the illness without seeing the patient. Post the relevant code . . . Link to comment https://forums.phpfreaks.com/topic/209403-this-should-be-real-easy-but-i-cant-seem-to-do-it/#findComment-1093409 Share on other sites More sharing options...
ajicles Posted July 31, 2010 Share Posted July 31, 2010 echo file_get_contents('http://www.example.com/'); ?? Link to comment https://forums.phpfreaks.com/topic/209403-this-should-be-real-easy-but-i-cant-seem-to-do-it/#findComment-1093427 Share on other sites More sharing options...
harristweed Posted July 31, 2010 Share Posted July 31, 2010 Possibly because the javascript file is external! <script type="text/javascript" src="imnothere.js"></script> Link to comment https://forums.phpfreaks.com/topic/209403-this-should-be-real-easy-but-i-cant-seem-to-do-it/#findComment-1093459 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.