Log In · Register

 
a box that shows the code?
Tomates
post Sep 21 2008, 09:07 PM
Post #1


poison
*******

Group: Official Member
Posts: 4,806
Joined: Mar 2008
Member No: 629,020



What is the code that people use for W4W stuff?
I cant remeber what it is.
It was like <textarea > or something like that.

Does anyone know what im talking about?
 
 
Start new topic
Replies
mipadi
post Sep 22 2008, 11:24 PM
Post #2


Senior Member
******

Group: Administrator
Posts: 2,648
Joined: Apr 2008
Member No: 639,265



I took this one step further! Here's a script that shows itself in a text box!

CODE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>
    <title>Self</title>
</head>

<body>
    
    <textarea cols="80" rows="30"><?php
        $fh = fopen($_SERVER['SCRIPT_FILENAME'], "r");
        if ($fh) {
            while (!feof($fh)) {
                $c = fread($fh, 1);
                echo htmlspecialchars($c, ENT_QUOTES);
            }
        }
        fclose($fh);
    ?></textarea>
    
</body>

</html>


Amazing!
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: