Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Use of uninitialized value in string eq

by Sagacity (Monk)
on Sep 06, 2008 at 06:23 UTC ( #709452=note: print w/replies, xml ) Need Help??

in reply to Use of uninitialized value in string eq

Try this little script on your new server to see if your 'id' is even available.

#!/usr/bin/perl use CGI; $q = CGI->new(); print $q->header(); foreach $key (sort keys(%ENV)) { print "$key = $ENV{$key}<p>"; } 1;

You should close the handle for INF after the @data = <INF>; line.

Before you put yourself through hours of re-writing scripting, you may find that the environmental variable your looking for is named something else, or may not be turned on in the config file for the server.

The Admin for the server should know.

I have been through changing over to new servers in the past and un-wisely spent hours beating my head against the keyboard trying to trouble shoot a script only to find out that the new server didn't provide all the same environmental variables.

By running the script provided, or something similar, you might be able to save yourself a few bruises.

If the server is a shared hosting situation, the tech support should be able to turn on the variable for you, or may tell you to over-ride it in your own .htaccess file.

If you need to do the latter, head over to This site or This site and learn all of the wonderful things you can do to control your hosted space with .htaccess

It will save you hours of time in coding, and give you a better understanding of how to control and secure/protect your website from unwanted guest, and to better use the server resources to enhance your scripting.

Best of Luck to you

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://709452]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2022-09-28 08:58 GMT
Find Nodes?
    Voting Booth?
    I prefer my indexes to start at:

    Results (124 votes). Check out past polls.