salman_ahad@yahoo.com Posted November 18, 2009 Share Posted November 18, 2009 I am getting a warning and error... [function.require]: failed to open stream: no suitable wrapper could be found in require("http://www.mysite.com/include/categories.php"); Quote Link to comment Share on other sites More sharing options...
trq Posted November 18, 2009 Share Posted November 18, 2009 Calling a class is different to including a file. Lets assume you meant "Can I include a file like this?" The answer, yes you can but you must have allow_url_include set to on in your php.ini. Without that, you need to use a path, not a url. Quote Link to comment Share on other sites More sharing options...
salman_ahad@yahoo.com Posted November 18, 2009 Author Share Posted November 18, 2009 I dont know where is php.ini file on my godaddy server ?? Anyone ?? Also I am calling this url from www.mysite.com in a file http://subdomain.mysite.com so if I give the path it will be point to subdomain root folder, but how do I point to mysite root folder? Quote Link to comment Share on other sites More sharing options...
Mchl Posted November 18, 2009 Share Posted November 18, 2009 require('./fileInRoot.php'); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.