Hi,
The form data sould be sent from php page to perl file.
<form action="test.pl">
But it is not working.
Should I change the path in form action to /cgi-bin/test.pl and copy the test.pl file to /var/www/cgi-bin
Please help me with this
Passing data from php
Moderator: General Moderators
Re: Passing data from php
sandy1028 wrote:Hi,
The form data sould be sent from php page to perl file.
<form action="test.pl">
But it is not working.
Should I change the path in form action to /cgi-bin/test.pl and copy the test.pl file to /var/www/cgi-bin
Please help me with this
please help me with this.. I am not able to find the problem or should I change the server configuration
Re: Passing data from php
More details, please ...sandy1028 wrote:>But it is not working.
Definitely. Also, you have to chmod it to 0755.sandy1028 wrote:>Should I change the path in form action to /cgi-bin/test.pl and copy the test.pl file to /var/www/cgi-bin
There are 10 types of people in this world, those who understand binary and those who don't
Re: Passing data from php
VladSun wrote:More details, please ...sandy1028 wrote:>But it is not working.
Definitely. Also, you have to chmod it to 0755.sandy1028 wrote:>Should I change the path in form action to /cgi-bin/test.pl and copy the test.pl file to /var/www/cgi-bin
How to use the perl file without cgi-bin directory.
Is it possible to use it.
The php and perl files are in same directory and is it necessary to copy the perl file to cgi-bin directory
Re: Passing data from php
I don't think so.sandy1028 wrote: How to use the perl file without cgi-bin directory.
Is it possible to use it.
The php and perl files are in same directory and is it necessary to copy the perl file to cgi-bin directory
You need to declare a directory to be a ScriptAlias in Apache's httpd.conf. Then you put your executables (*.pl) in this directory. If you put nonexecutable file in there (i.e. file.txt, 0644) and HTTP request it, you will get "Forbidden" error.
There are 10 types of people in this world, those who understand binary and those who don't