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.