lukezweb
12-06-2003, 11:55 AM
is it at all possible to view the actual coding of files?
|
Click to See Complete Forum and Search --> : viewing php files! lukezweb 12-06-2003, 11:55 AM is it at all possible to view the actual coding of files? pyro 12-06-2003, 12:05 PM Yes, you want to use highlight_file() (http://us2.php.net/manual/en/function.highlight-file.php). lukezweb 12-06-2003, 12:08 PM Originally posted by pyro Yes, you want to use highlight_file() (http://us2.php.net/manual/en/function.highlight-file.php). sorry you couldnt like post the small script that was well confusing lists of codes ahhhh! lol thanks pyro if you could i'd be greatful PYRO ROCKS WITH PHP! pyro 12-06-2003, 12:15 PM Sure thing: <?PHP highlight_file("foo/bar.php"); ?> :) lukezweb 12-06-2003, 12:19 PM Originally posted by pyro Sure thing: <?PHP highlight_file("foo/bar.php"); ?> :) lol thanks, is there a way to display the php tags at all? pyro 12-06-2003, 12:21 PM The above will do so, as long as you pass it a relative or root path. lukezweb 12-06-2003, 12:22 PM Originally posted by pyro The above will do so, as long as you pass it a relative or root path. so does this work? <?PHP highlight_file("http://www.ronsguide.elixant.com/index.php"); ?> pyro 12-06-2003, 12:25 PM No, that will simply give you the source code that any browser could read. Why? Security... You'll want one of these: <?PHP # option one: highlight_file("index.php"); # option two: highlight_file("/root/path/to/index.php"); ?> lukezweb 12-06-2003, 12:26 PM Originally posted by pyro No, that will simply give you the source code that any browser could read. Why? Security... You'll want one of these: <?PHP # option one: highlight_file("index.php"); # option two: highlight_file("/root/path/to/index.php"); ?> i see so only local host files? pyro 12-06-2003, 12:32 PM Correct. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |