Jump to content

[SOLVED] fgetcsv with URLs


profitweaver

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.