too long

I have a page with some jquery ajax calls, following are the first two. This page worked fine, until I added a php.ini file to my root folder.

Problem: the first function get_service() will work as before, but the second one doesn't work. I can tell this function is called by seeing "before ajax", but this ajax call will not be successful as I don't see "after ajax".

$(function(){
    get_service();
})

function get_service(){
    $.ajax({
        url: "price-list/price.php?tab_name=tab_name",
        dataType: "json",
        success: function(json) {
            //something on success
        }
    });
}

$("#auto-btn-service").change(function(){
    alert("before ajax");
    $.ajax({
        url: "price-list/price.php?tab="+service,
        dataType: "json",
        success: function(json) {
            alert("after ajax");
        }
    });
})

In my php.ini file, I have these lines only

; Maximum allowed size for uploaded files.
upload_max_filesize = 100M

; Must be greater than or equal to upload_max_filesize
post_max_size = 100M

extension=uploadprogress.so ;

I tried to empty this php.ini file, it still didn't work. I tried to move php.ini to the same directory as my page, it didn't work. Only deleting it can solve the problem. Anyone has any idea? Or any idea how to configure upload file size without using php.ini?(note my hosting doesn't allow me to configure via .htaccess)

As per my comment (and providing your host is using PHP >= 5.3.0), use a .user.ini file in the directory containing your script

; .user.ini

; Maximum allowed size for uploaded files.
upload_max_filesize = 100M

; Must be greater than or equal to upload_max_filesize
post_max_size = 100M

extension=uploadprogress.so