Skip to content
Sign UpLog In
Profile icon

weeklyd3

@weeklyd3
Repls
Community
weeklyd3
weeklyd3
published an Update
1 year ago
0
PHP-CAPTCHA
PHP-CAPTCHA
How to make a PHP CAPTCHA
The repl attached above is an example of a home-made CAPTCHA, without any packages to install. You will need: Access to GD and image functions (details) A PHP repl where you want to implement the CAPTCHA Access to the filesystem Part 1 - The bare-bones HTML We need a form that displays the image and lets the user enter the text in the image. The code looks somewhat like this: " method="post"> ` with the URL of the CAPTCHA processing form. --> Please enter the characters you see in the image: Don't run it just yet! The image won't load because there is no render.php file. Part 2: Displaying the Image We will use the GD/Image functions for this. Start the session, which will be used to store the answer. Tell the browser to interpret it as a PNG image. (PNG works better with text; the text shows up more clearly than JPG. Trust me, I tried!) header("Content-Type: image/png"); Generate the string to put on the image (Here, only numbers are used, but you can use any character set you want.) $string = ''; for ($i = 0; $i Have fun! Make sure to open it in a new tab (repeat: open it in a new tab); otherwise, it will not work.
weeklyd3
weeklyd3
shared a Post
1 year ago
ForumExperiment
PHP Web Server
weeklyd3
weeklyd3
published a Repl
2 years ago
0
Fake-Casino
Fake-CasinoA fake casino program, made entirely for fun.
weeklyd3
weeklyd3
**Note:** I am *not* responsible for anything caused by this program, including addiction. *thought y'd know, but :)*2 years ago
weeklyd3
weeklyd3
published a Repl
2 years ago
0
PHP-Quiz
PHP-QuizMaking a simple quiz with PHP. Contributions are welcome, make pull requests to this GitHub repository: https://github.com/weeklyd3/PHP-Quiz. Thanks!
weeklyd3
weeklyd3
For your own Web site, you can more or less just copy off the code, change a few names, remove the password prompt, and use it.2 years ago
weeklyd3
weeklyd3
shared a Post
2 years ago
Full source code: repl chat-room-demo attached Starting Steps Hit "New Repl", choose "PHP Web Server" as your language, and then type "My Chat" (or s
chat-room-demo
PHP Web Server
TipToed
TipToed
This is awesome2 years ago
codingjlu
codingjlu
Who says innerHTML can't be sent from POST?2 years ago