kristian_gl Posted May 3, 2010 Share Posted May 3, 2010 Hello I have a website which i've been developing locally(localhost), but when I put on the web I get this error when I try to load a page that calls to a function: Fatal error: require_once() [function.require]: Failed opening required 'http://stud.aitel.hist.no/~oddl/admin/auth.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/stud/oddl/public_html/admin/admin.php on line2 Or: Fatal error: Call to undefined function kobleTil() in /home/stud/oddl/public_html/public/public_undersokelse.php on line 1 When i run the website on localhost, everything works just fine, any tips? Quote Link to comment https://forums.phpfreaks.com/topic/200539-unable-to-call-functions/ Share on other sites More sharing options...
trq Posted May 3, 2010 Share Posted May 3, 2010 You need to use a filesystem path to include files, not a url. Quote Link to comment https://forums.phpfreaks.com/topic/200539-unable-to-call-functions/#findComment-1052291 Share on other sites More sharing options...
kristian_gl Posted May 3, 2010 Author Share Posted May 3, 2010 thank you, it worked Quote Link to comment https://forums.phpfreaks.com/topic/200539-unable-to-call-functions/#findComment-1052316 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.