druss
01-13-2004, 07:01 AM
i have this line shown below and it works fine on my test server however when i upload it into the web host it always shows a 500 internal server error? i cannot see what is wrong with it so can someone please tell me what i need to do in order to get the server to accept the line below
s/\$add_page_links/@add_page_links/g for @source;
Thanks
Gozza
Jeff Mott
01-15-2004, 12:30 AM
What makes you to believe that this particular line is the cause of the problem?
Did you remember to print out a CGI header when running it from the Web?
druss
01-15-2004, 01:26 AM
nah, i replace everything in a html document first then i print it out
thing is that when i remove that line and upload it the script works. when i put it back it fails. 500 internal server error.
i instead came up with the following code and it works fine however it looks complicated for such a simple thing and its all messy.
here is the code:
@replace_arrays = ("add_page_links","components","page_links","page_list","unprotected_links","protected_links","old_links","domain","data","time","leeching_url","attempted_tries");
foreach $slot (@replace_arrays) {
foreach $line (@$slot) {
$temp_content = $temp_content.$line."\n";
}
$temp_replace = "\@$slot";
s/$temp_replace/$temp_content/g for @source;
}
thanks
gozza