I'm trying to use @fopen with PHP.
In the file A, I'm using @fopen to call file B which is supposed to send me a json object from a database query.
This query is returning about 1 900 000 rows.
If in the file B I stop at, for example 1000000 rows, everything is working fine and I'm able to recieve the json object with no errors in file A but if I let the query return 1 900 000 rows I've got this message: fopen(the address): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error
Do you have any idea?
Thank you beforehand.