Click here to Skip to main content
16,020,714 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI, am new in php
my code working properly in local server, but its in server producing error
" Warning: require_once(__DIR__android_connect/db_connect.php) [function.require-once]: failed to open stream: No such file or directory in /home/a5508471/public_html/android_connect/get_all_products.php on line 12 "

please help..
thanks..
Posted
Updated 22-Aug-12 11:24am
v2
Comments
I.explore.code 22-Aug-12 8:22am    
please do make sure that get_all_products.php file exists on the server.
ZurdoDev 22-Aug-12 8:23am    
So, either it is not there or there is a permissions issue.
I.explore.code 22-Aug-12 8:58am    
not sure if PHP throws a warning or an error if theres a permission issue! :) but worth looking!
Joan M 22-Aug-12 10:09am    
If you are using a linux server remember that the filename is case sensitive.

1 solution

PHP gives a pretty good clue as to what is wrong:
PHP
require_once(__DIR__android_connect/db_connect.php)

Which looks wrong to me. You should change the code to:
PHP
require_once(__DIR__ .'/android_connect/db_connect.php')
 
Share this answer
 
v2
Comments
Mohibur Rashid 22-Aug-12 20:58pm    
good one.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900