1 Replies - 311 Views - Last Post: 25 September 2012 - 06:56 AM Rate Topic: -----

#1 jacko900000  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 13-September 12

webpage showing php script turn into visible coding?

Posted 24 September 2012 - 03:49 PM

Wow.. Don't know where to start?!

I'm using the following script...

<?php
echo "<pre>";
echo htmlspecialchars(file_get_contents('WWW.EXAMPLE.COM'));
echo "</pre>";
?>

Now thats showing all the source code on the URL I have it uploaded too, now how can I actually turn that into a script that's visible?
Is This A Good Question/Topic? 0
  • +

Replies To: webpage showing php script turn into visible coding?

#2 CTphpnwb  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2889
  • View blog
  • Posts: 10,002
  • Joined: 08-August 08

Re: webpage showing php script turn into visible coding?

Posted 25 September 2012 - 06:56 AM

Does the server have PHP turned on? Does your URL start with http:// or file:// ?

This post has been edited by CTphpnwb: 25 September 2012 - 06:56 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1