From ac64e5cd4449c10141e1114bc9a0c6073c5233d2 Mon Sep 17 00:00:00 2001 From: Aleander Lehmann Date: Wed, 8 May 2024 17:54:40 +0000 Subject: [PATCH] fix perl example, change chmod --- wiki/source/cgi.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wiki/source/cgi.md b/wiki/source/cgi.md index 17c92c4..2f9f8f5 100644 --- a/wiki/source/cgi.md +++ b/wiki/source/cgi.md @@ -126,10 +126,10 @@ would be noted in each example. (also works with .pl file extension): #!/usr/bin/perl - print "Status: 200"; - print "Content-Type: text/plain"; - print ""; - print "Hello World!"; + print "Status: 200\n"; + print "Content-Type: text/plain\n"; + print "\n"; + print "Hello World!\n"; Note that Perl was the main language of choice back in the heyday of CGI programming. @@ -189,7 +189,7 @@ put the script (or executable) in a file anywhere inside your `public_html``chmod o+rx YOURFILE.EXT` would do). +(something like `chmod +rx YOURFILE.EXT` would do). If you use other language that compiles to a binary executable, just world-executable permission will suffice.