GFXVoid Graphic Design Forum

Remove Text Formatting
Loading...

» Online Users: 2,637

0 members and 2,637 guests
No Members online

» Site Navigation

 > FAQ

» Stats

Members: 35,443
Threads: 103,072
Posts: 826,684
Top Poster: cc.RadillacVIII (7,429)
Welcome to our newest member, Lekelindids
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2004
    Location
    Buffalo Grove, Illinois
    Posts
    350

    Default

    This tutorial will teach you how to display server information with Perl.

    Code
    Code:
    #!/usr/bin/perl
    use strict;
    
    print "Content-type: text/html\n\n
    <html>
    <head>
    	<title>Display Server Information</title>
    </head>
    <body>
    	<h1>Server Information</h1>
    	<hr>
    	<pre>
     *Server Name: *$ENV{SERVER_NAME} #Server Name
     *Server Port: *$ENV{SERVER_PORT} #Server Port
     *Server Software:	$ENV{SERVER_SOFTWARE} #Server Software
     *Server Protocol:	$ENV{SERVER_PROTOCOL} #Server Protocol
    	</pre>
    	<hr>
    	</font>
    </body>
    </html>";
    Notes
    - Remember to Chmod File to 0755 or higher
    - File must be placed in the CGI-BIN

    Example Here

  2. #2
    Join Date
    Dec 2004
    Location
    GFXVoid
    Posts
    4,412

    Default

    I love the tutorial man - a great tutorial for newbies =).

Similar Threads

  1. Information
    By Daemon_ in forum The Void
    Replies: 29
    Last Post: 05-01-2006, 11:28 AM
  2. Perl: Redirection Script
    By demo in forum Other Tutorials
    Replies: 2
    Last Post: 02-08-2006, 03:07 PM
  3. Information card
    By SgtSwabs in forum Sigs & Manips
    Replies: 7
    Last Post: 12-08-2005, 02:46 PM
  4. Perl: Random Quotes
    By demo in forum Other Tutorials
    Replies: 1
    Last Post: 06-16-2005, 08:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBadvanced CMPS v4.1.1