![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Sep 2003
Posts: 1,050
|
how can i display PHP code in a text field witout it bein executed?
i want to show a code in a page of my site that can be copy n paste but its runnin the code even when i put in text field
and is there way to make 1 php code within it be executed while the rest is not? i want it to echo a variable within the php code thank u
__________________
boro en harfa chei |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Sep 2003
Posts: 1,050
|
n e 1
p l z
__________________
boro en harfa chei |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Let slip the dogs of war.
Industry Role:
Join Date: Jan 2003
Location: Bermuda
Posts: 17,263
|
Sorry that's haram.
__________________
. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Registered User
Industry Role:
Join Date: May 2009
Location: Orange County, CA
Posts: 94
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
|
ever tried using <? your code ?>
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
So Fucking Banned
Join Date: Aug 2003
Location: ICQ #23642053
Posts: 19,593
|
Put it inside a textarea, and encode it first.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Too lazy to set a custom title
Join Date: Mar 2002
Location: Australia
Posts: 17,393
|
echo "<" . "?php\n";
?> <your code here... don't include the leading and trailing ?php tags> <?php echo "?" . ">\n" Be aware that if your displayed code has any HTML in it the browser will probably eat it up. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
marketer.
Industry Role:
Join Date: Aug 2006
Location: bcn
Posts: 2,280
|
use
highlight_string("<? echo $test; ?>"); |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
marketer.
Industry Role:
Join Date: Aug 2006
Location: bcn
Posts: 2,280
|
http://us2.php.net/manual/en/functio...ght-string.php
(assuming you want to do what i think you want to do) |
![]() |
![]() ![]() ![]() ![]() ![]() |