Page 1 of 1

internal error

Posted: Tue Jun 19, 2007 12:02 am
by michael1991j
hi i have writen a script that open a file and write to a database server


the problem is that the file is 2 mb

and when i open it it give me a internal error

does anybody know what configuration i need to set in my config file to fix this issue

thank you in advance

Posted: Tue Jun 19, 2007 12:10 am
by feyd
Which particular internal error?

Are you using fopen()/fread() or file_get_contents() or file() to open the file?

Posted: Tue Jun 19, 2007 10:11 am
by michael1991j
i am using two of this functions they fread and fopen

the error code is a basic http 500 internal error
[/list]

Posted: Tue Jun 19, 2007 10:43 am
by superdezign
Error 500? Check you're error log to see what's happening.

Posted: Tue Jun 19, 2007 11:53 am
by michael1991j
sorry i cant find it i found the log but not the event because the log file is massive and there has been alot of error due to bot scaning my links and not finding them

my php server and my http server work perfectly

i am fairly positive that this internal error is due to the php config file

because the file that i am parsing a massive file with more than 7000 lines

but what config should i change so the task can be taken out

Posted: Tue Jun 19, 2007 12:06 pm
by superdezign
Run the code where the error occurs, then look at the latest error in the log and tell us what it is.

Posted: Tue Jun 19, 2007 12:12 pm
by michael1991j
her is the error


modsecurity: output filter: response body to large ( over limit of 524288 total length not known)

Posted: Tue Jun 19, 2007 2:40 pm
by michael1991j
i fixed it surprisly it was my httpd server with some weird security module

i went in and raised the number

i am surpised that http came with a built in firewall

ohh well i fixed it

thank you

feyd
and
superdesign


ohh ya feyd didnt get onto me at all yeah :D :D

Posted: Tue Jun 19, 2007 4:18 pm
by feyd
That's not a built-in firewall. It's a security module added on afterward.

Posted: Tue Jun 19, 2007 7:42 pm
by michael1991j
may have been added with linux distrobution