REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.
Register Here
Forum Rules
PHP Forum
You are currently viewing our PHP Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Development and Programming Support
>
PHP Forum
>
how to get html & php code in browser
Link Back
Thread Tools
Search this Thread
how to get html & php code in browser
09-05-2007, 01:43 AM
#
1
(
permalink
)
how to get html & php code in browser
kalai
Junior Talker
Posts: 4
Trades:
0
Talkupation:
Hi guy's
i want to display html code and php code as such in browser, but when I type code to be displayed in code page it is executed and result is displayed in browser instead of code. Please help me to solve this
__________________
Please login or register to view this content.
Registration is FREE
Please login or register to view this content.
Registration is FREE
Please login or register to view this content.
Registration is FREE
Register
now for full access!
09-05-2007, 12:12 PM
#
2
(
permalink
)
Re: how to get html & php code in browser
maxxximus
Extreme Talker
Posts: 219
Name: Rob
Location: UK
Trades:
0
Talkupation:
If you want render a bit of php code in your browser using php echo you need to escape the first < with its ASCII equivalent < so
<?php $t="<?php echo ?>"; echo $t; ?>
would echo <?php echo ?> to the browser.
09-05-2007, 12:35 PM
#
3
(
permalink
)
Re: how to get html & php code in browser
TwistMyArm
Ultra Talker
Posts: 483
Trades:
0
Talkupation:
If you have your PHP in a string, look at the highlight_string function (
http://php.net/manual/en/function.highlight-string.php
). If it's in a file, use highlight_file (
http://php.net/manual/en/function.highlight-file.php
).
__________________
Please login or register to view this content.
Registration is FREE
« Reply to
how to get html & php code in browser
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Development and Programming Support
>
PHP Forum
>
how to get html & php code in browser
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Forum Rules
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
0.11282
seconds with
12
queries