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? Quote Link to comment 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 . . . Quote Link to comment 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/'); ?? Quote Link to comment 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.