View Single Post
  #1  
Old 2nd June 2006, 23:48
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,034
Thanks: 265
Thanked 152 Times in 132 Posts
Default converting a 10 line cgi to php.

Could some CGI, PHP expert please show me how this small CGI script should look like in PHP?

The CGI script:
Code:
#!/usr/bin/perl
use CGI;

my $cgi = CGI->new();
my @param = $cgi->param();

print"Content-type: text/html\n\n";
for(@param)
{
 my @arr = $cgi->param($_);
 print"$_:".join(':',@arr)."<br>";
}
All I got till now in PHP is:
Code:
<?php

echo "Content-type: text/html\n\n";

?>

Please help.. I'm lost...
Reply With Quote
Sponsored Links