internal error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
michael1991j
Forum Commoner
Posts: 37
Joined: Tue Jun 06, 2006 8:48 pm

internal error

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Which particular internal error?

Are you using fopen()/fread() or file_get_contents() or file() to open the file?
User avatar
michael1991j
Forum Commoner
Posts: 37
Joined: Tue Jun 06, 2006 8:48 pm

Post by michael1991j »

i am using two of this functions they fread and fopen

the error code is a basic http 500 internal error
[/list]
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Error 500? Check you're error log to see what's happening.
User avatar
michael1991j
Forum Commoner
Posts: 37
Joined: Tue Jun 06, 2006 8:48 pm

Post 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
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Run the code where the error occurs, then look at the latest error in the log and tell us what it is.
User avatar
michael1991j
Forum Commoner
Posts: 37
Joined: Tue Jun 06, 2006 8:48 pm

Post by michael1991j »

her is the error


modsecurity: output filter: response body to large ( over limit of 524288 total length not known)
User avatar
michael1991j
Forum Commoner
Posts: 37
Joined: Tue Jun 06, 2006 8:48 pm

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

That's not a built-in firewall. It's a security module added on afterward.
User avatar
michael1991j
Forum Commoner
Posts: 37
Joined: Tue Jun 06, 2006 8:48 pm

Post by michael1991j »

may have been added with linux distrobution
Post Reply