Why my Script google tag manager load on footer when i have declare on header

Issue

This Content is from Stack Overflow. Question asked by jujol

I have source code like this on my php code

$packageIns = 'https://www.mywebsite.com/fromBackend/packageBox';
        $url=json_decode($this->curlPost($packageIns,$params),true);
         echo print_r($url);
         die();

but when i check on my application i got my application call url use this link

https://www.mywebsite.com/index.php/fromSuper/packageBox

so my process on curlPost add index.php why like this ? can someone help me for this issue ?
i need to make my code call api https://www.mywebsite.com/fromSuper/packageBox



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?