is there a function or something that allows you to display php on the page. I'm hoping there's like something quick so it can also change the color of the code.You can never see the source PHP code on a browser. The webserver runs the code and outputs HTML to the browser.
The only way to see the original PHP script is to show it in a text editor. If the script is on a remote website then you have to FTP into that site and Download the PHP file. If it is someone elses' site then you will not be able to do that.
If you do already have the PHP script file, then you can get a text editor like EditPad that has coloured syntax highlighting.
Is that what you wanted to know?i think he referring to like how this forum does the php tags.
<!-- m --><a class="postlink" href="http://us3.php.net/manual/en/function.highlight-string.phpOR">http://us3.php.net/manual/en/function.h ... ring.phpOR</a><!-- m -->
if the php is setup to show .phps then this will work also.
file.phps will cause the code to be colored. bu tonly owrks if the server is setup as a ISAPI module, not a cgi module.Heh. Great answer Scoutt!
Well, I'll assume it was a great answer as I didn't understand a word of it.
I'm glad that someone else actually understood what the original question was supposed to mean
though.i was gonna say htmlentities because i didn't know about highlight_string and highlight_file, pretty cool!If it is someone elses' site then you will not be able to do that.
actually, there is a script at rksunderground that allows you to view the PHP source from other sites... its only worked twice for me, and it hasnt worked since... but it actually did work a couple times
dont ask me how
edit: url removed for secuity reasons
try it outthat will only show the outputted source, it wont show any php code Originally posted by Gregory
actually, there is a script at rksunderground that allows you to view the PHP source from other sites... its only worked twice for me, and it hasnt worked since... but it actually did work a couple times
dont ask me how
try it out
and we told him to remove it as that is a huge security risk. but if you do it then it will show the output of the php, not the source.
edit: it only owrks on his site, not a page from another site.Yeah. I thought as much.
Thanks for the confirmation of that.
The only way to see the original PHP script is to show it in a text editor. If the script is on a remote website then you have to FTP into that site and Download the PHP file. If it is someone elses' site then you will not be able to do that.
If you do already have the PHP script file, then you can get a text editor like EditPad that has coloured syntax highlighting.
Is that what you wanted to know?i think he referring to like how this forum does the php tags.
<!-- m --><a class="postlink" href="http://us3.php.net/manual/en/function.highlight-string.phpOR">http://us3.php.net/manual/en/function.h ... ring.phpOR</a><!-- m -->
if the php is setup to show .phps then this will work also.
file.phps will cause the code to be colored. bu tonly owrks if the server is setup as a ISAPI module, not a cgi module.Heh. Great answer Scoutt!
Well, I'll assume it was a great answer as I didn't understand a word of it.
I'm glad that someone else actually understood what the original question was supposed to mean
though.i was gonna say htmlentities because i didn't know about highlight_string and highlight_file, pretty cool!If it is someone elses' site then you will not be able to do that.
actually, there is a script at rksunderground that allows you to view the PHP source from other sites... its only worked twice for me, and it hasnt worked since... but it actually did work a couple times
dont ask me how
edit: url removed for secuity reasons
try it outthat will only show the outputted source, it wont show any php code Originally posted by Gregory
actually, there is a script at rksunderground that allows you to view the PHP source from other sites... its only worked twice for me, and it hasnt worked since... but it actually did work a couple times
dont ask me how
try it out
and we told him to remove it as that is a huge security risk. but if you do it then it will show the output of the php, not the source.
edit: it only owrks on his site, not a page from another site.Yeah. I thought as much.
Thanks for the confirmation of that.