iceblox Posted August 21, 2008 Share Posted August 21, 2008 Hi guys, Im sure there isnt anything different i should be doing however ill ask anyways.. I have an upload script that has been working fine and still does if the url is contained within a normal url. i.e http://mysite.com/feed.csv but since i have changed it to an ip address it doesnt want to do anything. Could there be a reason for this? This is a sample of the line in question.. $file = 'http://213.161.76.14/feeds/feed.csv'; Quote Link to comment https://forums.phpfreaks.com/topic/120762-upload-script-with-ip-address/ Share on other sites More sharing options...
genericnumber1 Posted August 21, 2008 Share Posted August 21, 2008 you shouldn't use urls, use local file extensions for local files... eg. /usr/apache/php/htdocs/feeds/feed.csv or something like that.. liberal use of document_root is encouraged Quote Link to comment https://forums.phpfreaks.com/topic/120762-upload-script-with-ip-address/#findComment-622429 Share on other sites More sharing options...
iceblox Posted August 21, 2008 Author Share Posted August 21, 2008 I see what you mean but the files arent always on my domain.. hence the url usage Quote Link to comment https://forums.phpfreaks.com/topic/120762-upload-script-with-ip-address/#findComment-622433 Share on other sites More sharing options...
iceblox Posted November 18, 2008 Author Share Posted November 18, 2008 Hi guys, Still haven't been able to sort this out. Does any one have any ideas as to how i might be able to sort this? Phil Quote Link to comment https://forums.phpfreaks.com/topic/120762-upload-script-with-ip-address/#findComment-692645 Share on other sites More sharing options...
premiso Posted November 18, 2008 Share Posted November 18, 2008 A shot in the dark with the little code provided. Your example of http://mysite.com/feed.csv does not go into a subfolder as this does: $file = 'http://213.161.76.14/feeds/feed.csv'; So maybe changing it to: $file = 'http://213.161.76.14/feed.csv'; Might solve the problem? Quote Link to comment https://forums.phpfreaks.com/topic/120762-upload-script-with-ip-address/#findComment-692816 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.