Does using AJAX use PHP memory usage?

I think the answer to this question is no, but I no longer have the causes of the problem I'm trying to find out.

Initially, I had a single script that ran some database queries through SQLCMD. Now I decided to initiate this script through AJAX and wait for a response. But I get a fatal error:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 445 bytes) in C:\process_txt.php on line 109

The only thing I changed in my script is an ajax request and nothing more honest, so I asked this question.

I am using a jQuery AJAX query and I don't think I am using a poll. Here is an example AJAX GET request that I use:

function process_txt(checkbox){

            waiting = 1;

            var folder_path = $('#folder_path').val();

            var file_name = $('#'+ checkbox + '_val').val();

            $.get("process_txt.php", { path:  folder_path, file: file_name},

            function(data){

                           alert(data);             

            });

}

Thanks to everyone who can try to shed light on this question, and not on what I have, only this question! :)

+3
3

AJAX . PHP, - - , , .

- , , ?

+12

PHP: AJAX AJAX, AJAX HTTP, PHP .

+1

. JS . , , JSON/XML , HTML! .

PHP- - , .

0

Source: https://habr.com/ru/post/1730534/


All Articles