Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 2nd June 2006, 23:48
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 260
Thanked 145 Times in 127 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
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
log files, rotation and emailing them hairydog2 General 65 11th October 2006 13:18
First Login Error evbim Installation/Configuration 13 6th May 2006 12:19
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 13th March 2006 23:58
Installation Big issue OpenVZ VPS jbond007 Installation/Configuration 3 7th March 2006 19:40
Ispconfig and Virtuemart shajazzi Installation/Configuration 7 21st February 2006 20:25


All times are GMT +2. The time now is 18:05.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.