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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-21-2009, 11:35 PM   #1
p3rsian
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
p3rsian is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-22-2009, 12:15 AM   #2
p3rsian
Confirmed User
 
Join Date: Sep 2003
Posts: 1,050
n e 1
p l z
__________________
boro en harfa chei
p3rsian is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-22-2009, 12:16 AM   #3
WarChild
Let slip the dogs of war.
 
WarChild's Avatar
 
Industry Role:
Join Date: Jan 2003
Location: Bermuda
Posts: 17,263
Sorry that's haram.
__________________
.
WarChild is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-22-2009, 12:25 AM   #4
cLin
Registered User
 
Industry Role:
Join Date: May 2009
Location: Orange County, CA
Posts: 94
http://tinyurl.com/l5hvzt
__________________
Chris
The Ex Girlfriend Pics
cLin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-22-2009, 12:42 AM   #5
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
ever tried using <? your code ?>
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-22-2009, 12:43 AM   #6
who
So Fucking Banned
 
Join Date: Aug 2003
Location: ICQ #23642053
Posts: 19,593
Put it inside a textarea, and encode it first.
who is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-22-2009, 12:50 AM   #7
rowan
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.
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-22-2009, 12:54 AM   #8
scouser
marketer.
 
Industry Role:
Join Date: Aug 2006
Location: bcn
Posts: 2,280
use
highlight_string("<? echo $test; ?>");
scouser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-22-2009, 12:54 AM   #9
scouser
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)
scouser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.