CGI not working in Apache 2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kambinglaaaaaaa
    New Member
    • Mar 2007
    • 7

    CGI not working in Apache 2

    Hi All,

    i have a problem here, my server running Apache 2.0.49 and Perl version 3.05, the problem here is i cannot use CGI to read a parameter,befor e this i just use Apache 1.3.29, and its working fine, the scripst is like below


    use DBI;
    use IO::File;
    use strict;
    use Apache::Request Rec (); # for $r->content_type
    use Apache::Request IO (); # for print
    #Use CGI;

    sub handler{
    my $q = shift;
    $q->content_type(' text/plain');

    my $message_id = $q->param("CMP_Txi d");
    my $message_text = lc($q->param("SMS_Mes sage_String"));
    my $shortcode = $q->param("SMS_Sou rceAddr");
    my $originating_ad dress = $q->param("SUB_Mob tel");

    print "$message_id,me ssage_text";



    anybody have a idea why CGI not working in Apache 2.?
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    You now have four threads with essentially this same question as the topic of each thread. If you are really using perl 3.05 why don't you upgrade it?

    Comment

    Working...