korail Posted June 17, 2010 Share Posted June 17, 2010 Hello, I used to have the attached files hosted using free hosting at x10hosting.com and when I accessed the page 7000_TOPS.php through my browser the code executed correctly. My hosting account lapsed and so I have created a new one after several months however since re-uploading the files when I try to access 7000_TOPS.php in my browser I get the following error "Fatal error: Call to undefined function rolling_curl() in /home/korail/public_html/7000_TOPS.php on line 273". I am not a programmer as such, this page having been cobbled together using help from several places so I'd appreciate any help someone more experienced could give. You can see the page and error at http://www.korail.x10hosting.com/7000_TOPS.php. Thanks. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/205096-fatal-error-call-to-undefined-function-rolling_curl/ Share on other sites More sharing options...
gwolgamott Posted June 17, 2010 Share Posted June 17, 2010 check you file locations. That means it can't find the function as if that the file that function is in does not exist to the intial page. check all you links to be sure files are located where they should be. Link to comment https://forums.phpfreaks.com/topic/205096-fatal-error-call-to-undefined-function-rolling_curl/#findComment-1073607 Share on other sites More sharing options...
korail Posted June 17, 2010 Author Share Posted June 17, 2010 Ok, the two files, "7000_TOPS.php" and "rolling_curl.php", are in the same location which is the www or public_html folder on the host. This is the code I've used, do I need to include anything else if they're in the saem folder? /*INCLUDE ROLLING_CURL*/ include("rolling_curl.php"); rolling_curl($urls,'korail_callback'); Link to comment https://forums.phpfreaks.com/topic/205096-fatal-error-call-to-undefined-function-rolling_curl/#findComment-1073616 Share on other sites More sharing options...
gwolgamott Posted June 18, 2010 Share Posted June 18, 2010 Sorry took so long to get back... been swamped lately. Hmm intially I would have bet that was the issue. Well where is the index file located at for the site? Could try something like this if the index file is like two levels back. Let me know if that sounds right... btw I will be gone off grid for the weekend. Try some stuff like that and see it helps though. // For these two php files being here: /php/someotherfolder //from the url you gave I don't think this is it, but play with it anyways worth a try /*INCLUDE ROLLING_CURL*/ include("/php/someotherfolder/rolling_curl.php"); Link to comment https://forums.phpfreaks.com/topic/205096-fatal-error-call-to-undefined-function-rolling_curl/#findComment-1074146 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.