solo_400:
The problem is when I put myfile.php on includes directory and called from json ( includes/mycustomdir/myfile.php ) it doesn't work . When I put myfile.php on root path www.mystore.com/storename/myfile.php and called from json ( myfile.php ) is working .
Do you know why ?
Do I know why? Not really,but there are several things that come to mind. The most obvious being file not found (incorrect path/URL) or file or folder permissions (no read access)
The fact that in one instance you specify "includes/mycustomdir/myfile.php" (a file path) and the other instance you specify www.mystore.com/storename/myfile.php (a URL) would suggest to me that you are possibly getting these confused somehow and/or are not making the required configuration changes when placing the file into a different location.
This is mostly speculation though.. If I were you, I'd be looking at the log files as these are sure to eliminate the guesswork I'm currently employing.
Cheers
Rod