Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Template with optional PHP execution

by Flame (Deacon)
on Sep 01, 2001 at 19:21 UTC ( #109641=perltutorial: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <HTML>
       <HEAD>
          <TITLE>MyCode</TITLE>
    ...
          <A HREF="mypage.cgi">Go to My Page!</A>
       </BODY>
    </HTML>
    
  2. or download this
    <HTML>
       <HEAD>
          <TITLE>MySite: $title</TITLE>
    ...
          <A HREF="mypage.cgi">Go to My Page!</A>
       </BODY>
    </HTML>
    
  3. or download this
    <HTML>
       <HEAD>
          <TITLE>MySite: $title</TITLE>
    ...
          <A HREF="$pagelink">Go to My Page!</A>
       </BODY>
    </HTML>
    
  4. or download this
    <HTML>
       <HEAD>
          <TITLE>MySite: $title</TITLE>
    ...
          <BR>
       </BODY>
    </HTML>
    
  5. or download this
    #Sub utemplate (use template)  Call only when ready to print.
    sub utemplate {                                
    ...
    }
    
    1;
    
  6. or download this
    #!/usr/bin/perl
    
    use CGI qw(:standard ); #Handy for printing header
    ...
    $copyright = "(C) 2001 MyCompany";
    
    &utemplate;
    
  7. or download this
    use LWP::Simple;
    
    ...
    }
    
    1;
    
  8. or download this
    #!/usr/bin/perl
    
    use strict;
    ...
    
    #Continue with everything else you had to do
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://109641]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2014-09-18 14:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (116 votes), past polls