profitweaver Posted October 6, 2008 Share Posted October 6, 2008 Hi, I am trying to parse a datafeed CSV file with fgetcsv. It all works fine, except for a url with a dash '-' in the name, eg cgi-bin For some reason, the dash is being converted to a space, so when I use the url on a web page, the link is broken, ie cgi bin Does anyone know how I might overcome this please? Best wishes Charlie Link to comment https://forums.phpfreaks.com/topic/127216-solved-fgetcsv-with-urls/ Share on other sites More sharing options...
ghostdog74 Posted October 6, 2008 Share Posted October 6, 2008 how are you using it? show your code. Link to comment https://forums.phpfreaks.com/topic/127216-solved-fgetcsv-with-urls/#findComment-658023 Share on other sites More sharing options...
profitweaver Posted October 6, 2008 Author Share Posted October 6, 2008 Sorry, I should have put more information up here. In fact, the act of putting the code up here, made me test the code a bit more than I had done, and it is apparent that fgetcsv is not at fault! I have now resolved it, but thanks anyway for your help. Simply asking the question helped me sort it out. Best wishes Charlie Link to comment https://forums.phpfreaks.com/topic/127216-solved-fgetcsv-with-urls/#findComment-658068 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.