Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.