timerison30
I'm a little new to cgi/perl, but I was getting a 200 error and read everything I could about it (since I love this server prog so much) but couldn't find the problem. I found the problem at last, and thought I would share with whoever may need to know this in the future (would have saved me a few days). :?
Anyways, here it is:
When writing and reading to files with your script, if you try and use "flock", no matter how much output you have at the end of your .cgi or .pl, it will give you a 200 error message. :wink:
I.E.
flock(OUTF,2);
So delete it!
Hope this helps someone. 😃
rockslammer_
Windows can not "lock" a file
UNIX can
flock is not compatable with Windows
brokndodge
i have a lil more info than that. but not much more... i had same prob on deff server i have switched to. by third party billing company was trying to use a unix script on my win32 machine. he found a short piece of code to replace the flock statement by doing a search on google for flock.
i tries same search and came up with nil but u can give it a shot if u want... i have the patched script on my server and it's werking great. i just don't know which piece of code he patched.
Alaxandair
Incorrect!
Flock is Implemented (compatable) with Windows NT, 2000 & XP.
It will not work on 9x or ME.
rockslammer_
Sorry, we encountered an error while displaying this content. If you're a user, please try again later. If you're an administrator, take a look in your Flarum log files for more information.
rdemartini
This is a definite pisser, since most perl related programs that I want to run use flock. This took me a while to figure out to, but I read that you can use flock in XP?
I'll have to see if that is true. I wanted to avoid upgrading my server box (Win98) but I guess the necessary MS evil lives on.
-R