/    Sign up×
Community /Pin to ProfileBookmark

view website source

looking for a script the displays and color codes Internet php code.

to post a comment
PHP

7 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJun 24.2006 — [code=php]
<?php highlight_file('file.php'); ?>
[/code]
Copy linkTweet thisAlerts:
@IfrebornauthorJun 24.2006 — i would like to see the php before the server renders it.
Copy linkTweet thisAlerts:
@NogDogJun 24.2006 — Hmmm...how do you see it before the server renders it? ?

If you mean you want to capture it as a string and so something with it:
[code=php]
$color_coded_markup = highlight_string("file.html");
[/code]
Copy linkTweet thisAlerts:
@IfrebornauthorJun 24.2006 — I would like to see the source of the code of sites on the net. not to steel from but to learn from.
Copy linkTweet thisAlerts:
@russellJun 24.2006 — you can't.

learn from sites like this. also you need to check out http://www.php.net and http://www.zend.com/

i'm sure others have some favorite learning sites for ya as well
Copy linkTweet thisAlerts:
@NogDogJun 24.2006 — If it's not on a local host, you can't (unless you have FTP access to that directory on the site of interest). Any HTTP request to a PHP file on a remote web host is only going to get the generated output of the script, not the source code.
Copy linkTweet thisAlerts:
@tosbournJun 24.2006 — If there is one feature on a certain website you really like, and really can't work out how it is done at all, email the site, I am sure the webmaster that created it had to start somewhere and in my experience, most will be willing to point you in the right direction.
×

Success!

Help @Ifreborn spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.14,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...