Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Display the data passed from php

by Gangabass (Vicar)
on Aug 20, 2007 at 08:50 UTC ( #633743=note: print w/replies, xml ) Need Help??

in reply to Display the data passed from php

Usually CGI scripts are placed in cgi-bin directory (with 755 access rights).

So your form must look like

<form method="get" action="/cgi-bin/" onsubmit="return +validate()">

Also don't forget to add

#!/usr/bin/perl -w
in the first line of your script (to tell server where the perl is)

Replies are listed 'Best First'.
Re^2: Display the data passed from php
by sandy1028 (Sexton) on Aug 20, 2007 at 09:11 UTC
    When I added the /cgi-bin/ in form Got the output as
    The requested URL /cgi-bin/ was not found on this serve +r. ---------------------------------------------------------------------- +---------- Apache/2.0.52 (Red Hat) Server at Port 80
      Do you have in your /cgi-bin directory?
        File is in /var/www/html/abc/ and all php files are also in this directory. The form action to displays the contents of the file not just the output

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://633743]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2022-01-19 16:58 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (55 votes). Check out past polls.