|
|
|
|
![]() ![]() |
Oct 31 2005, 04:27 AM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 1 Joined: 31-October 05 Member No.: 13,600 |
First of all, thank you for the free web hosting @ Trap17.net.
I am new to cgi scripting and lucky 2 find ur site for practicing and developing some new script also intend to have my first personal cgi website, when I wanted to install a cgi script I was requested the following information: Ask your provider for the path to perl, is it: #!/usr/bin/perl #!/usr/local/bin/perl #!/bin/perl Please help. Thanx. |
|
|
|
Oct 31 2005, 05:08 AM
Post
#2
|
|
|
Desperately seeking "any key" to continue... ![]() Group: Admin Posts: 3,489 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 |
Hi there,
In my signature there are links which most of your questions might be answered. Check out cPanel Demo page link. This will tell you the exact path to CGI. Please make sure that you are using QUOTE tags when using someone else's words. To use QUOTE tags CODE [QUOTE] << insert exactly >> [/QUOTE] Observe other forum rules and BB codes. And before making a new topic search the forum. It's a must!I hope this answers your question. |
|
|
|
Oct 31 2005, 11:45 PM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 282 Joined: 30-May 05 From: Bangalore Member No.: 7,686 |
abu7mad:
When you login to your cpanel, you can try looking at the leftmost column, the second block that is titled "General Server Information". There, you will find that the path to perl is #!/usr/bin/perl, i.e., the first choice CODE #!/usr/bin/perl ## ## printenv -- demo CGI program which just prints its environment ## print "Content-type: text/plain\n\n"; foreach $var (sort(keys(%ENV))) { $val = $ENV{$var}; $val =~ s|\n|\\n|g; $val =~ s|"|\\"|g; print "${var}=\"${val}\"\n"; } into a plaintext editor, save it as printenv.pl, upload it to your public_html directory, and run it from there to look up information on the perl installation. I am not sure if you could/should do this on Trap17, though, and since you only need the path, that's almost certainly #!/usr/bin/perl. Hope this helps Cheers and good luck with the CGI stuff. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 11th October 2008 - 08:44 PM |