Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^6: Weird error log message

by Nik
on Jun 09, 2009 at 22:43 UTC ( #770126=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Weird error log message
in thread Weird error log message

i meant with CGI use of course and other use statement, i just stated the main code, shich still doesnt work.


Comment on Re^6: Weird error log message
Re^7: Weird error log message
by ikegami (Pope) on Jun 09, 2009 at 22:51 UTC

    It's been loads of fun guessing what you mean. I'm not going to bother guessing if you're script is actually correct. Because it is, of course.

      It is correct yes, because otherwise it wouldn't run correctly locally. But what about whne i upload it to the remote server? if server had those 2 files 500 and 404 the site would still had trouble run, correct? It would still die instanlty? But why? How am i gonna proceed make it run?

        It is correct yes, because otherwise it wouldn't run correctly locally.

        Not true. When run as CGI, it has other obligations to meet. I said that already.

        if server had those 2 files 500 and 404 the site would still had trouble run, correct?

        Yes, it won't help you at all. That's why I said you could ignore them.

        I'm not sure why you bothered to post this at all, ikegami has shown a great deal of patience, and been very helpful.

        Martin

        I wasn't making fun of you, I was telling you that you should stop giving misinformation to the person trying to help you. If you don't know what the problem is, how are you qualified to determine it's safe to say one thing, mean another and hide yet another.

        I noticed you posted a lot of code in that thread, while not only did you avoid posting code here, you lied about your code in two of your replies to me (if not all three).

        The problem was that your edited is adding a BOM before the shebang line, so your web server didn't accurately detect the shebang line. "#!" must appear at the very top of the file and it wasn't. The following will remove the UTF-8 BOM from a file:

        perl -i.bak -ple"s/^\xEF\xBB\xBF// if $.==1" script.cgi

        Note that if your source is UTF-8, you should probably use use utf8;.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (15)
As of 2014-10-01 17:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (31 votes), past polls