REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.
Register Here
Forum Rules
Coding Forum
You are currently viewing our Coding Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Development and Programming Support
>
Coding Forum
>
CGI/PERL HELP
Link Back
Thread Tools
Search this Thread
CGI/PERL HELP
02-21-2006, 11:21 PM
#
1
(
permalink
)
CGI/PERL HELP
DJA
Skilled Talker
Posts: 87
Trades:
0
Talkupation:
Im tring to run a script:
#!--path to python.exe(censored)--
print "Content-type: text/html\n\n";
print "<link rel=stylesheet href=style.css>";
print "<center>\n";
print "<span class=span0><span class=span1>\n";
print "<b>Mod_Perl is working fine</b>\n";
print "<br><br>\n";
print "<b>server software : </b>$ENV{'SERVER_SOFTWARE'}\n";
print "<br><br>\n";
print "<b>client software : </b>$ENV{'HTTP_USER_AGENT'}\n";
print "<br><br>\n";
print "<b>http referer : </b>$ENV{'HTTP_REFERER'}\n";
print "<br><br>\n";
print "<b>opened file : </b>$ENV{'SCRIPT_FILENAME'}\n";
print "<br><br>\n";
print "<b>server adress :</b>$ENV{'HTTP_HOST'}\n";
print "<br><br>\n";
print "<b>your adress : </b>$ENV{'REMOTE_ADDR'}\n";
print "</span></span>\n";
print "<br>\n";
print "<table width=88% class=table border=0 cellpadding=4 cellspacing=1>\n";
print "<tr><td class=tdark ><b>Server Variable</b></td><td class=tdg ><b>Value</b></td></tr>\n";
foreach $var (sort(keys(%ENV))) {
$val = $ENV{$var};
$val =~ s|\n|\\n|g;
$val =~ s|"|\\"|g;
print "<tr><td class=tdd><font size=-1>${var}</font></td>\n";
print "<td class=tdl><font size=-1>${val} </font></td></tr>\n";
}
print "</table></p></font>\n";
print "</center>Written by Vlad Alexa Mancini</html>\n";
exit;
and it gives me this error:
couldn't create child process: 720021: index.cgi
or
couldn't create child process: 720021: index.pl
depending on what I named it.
Can someone out there help me??!?!?!
__________________
Please login or register to view this content.
Registration is FREE
Register
now for full access!
02-22-2006, 07:56 PM
#
2
(
permalink
)
Re: CGI/PERL HELP
Anacrusis
Defies a Status
Posts: 2,099
Name: Adam
Location: Colchester CT
Trades:
0
Talkupation:
Your script works fine, be sure you have #!/usr/bin/perl at the top of the script, or whatever the path to perl is on your server.
You make reference to the python.exe, but your script is in perl, maybe that is your problem.
02-22-2006, 10:19 PM
#
3
(
permalink
)
Re: CGI/PERL HELP
DJA
Skilled Talker
Posts: 87
Trades:
0
Talkupation:
I'm running apache2triad, and they said to use:#!f:/apache2triad/python/bin/python.exe
__________________
Please login or register to view this content.
Registration is FREE
« Reply to
CGI/PERL HELP
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Development and Programming Support
>
Coding Forum
>
CGI/PERL HELP
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Forum Rules
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
0.24917
seconds with
12
queries