admin Site Admin
Joined: 23 Jan 2003 Posts: 256 Location: India
|
Posted: Sun Feb 02, 2003 3:12 pm Post subject: Perl How-To |
|
|
What is my path to perl?
#!/usr/bin/perl
What is my path to sendmail?
/usr/sbin/sendmail
May I run custom cgi scripts?
Yes, you may.
Can I use perl to talk to my MySQL database?
Yes, DBI and DBD::MySQL is installed.
What directory must my perl files reside in?
You can upload the Perl Scripts to cgi-bin directory.
How do I reach them from a browser?
http://www.yoursite.com/cgi-bin/
I keep getting internal server error from my perl scripts.
Make sure your perl scripts were uploaded in ASCII.
Make sure the permissions on the files are 755.
Make sure the top line of your scripts (the shebang line) reads #!/usr/bin/perl |
|