User Profile

Collapse

Profile Sidebar

Collapse
need2know2
need2know2
Last Activity: Mar 21 '08, 11:02 PM
Joined: Mar 19 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Satas you are correct. Those files are not initialized because I pasted in old code in which I was using a list rather than an array

    All the fwrites are actually using the array elements created with explode(...)

    Unfortunately, both ways produce the spaces in the strings

    ronverdonk - your solution would work if I didn't have spaces in some of the strings that I want to keep...

    Thanks for...
    See more | Go to post

    Leave a comment:


  • Thanks for the replies.
    Here's the code
    Code:
    // File to copy from
    $fSourcePath = "HCFD-SM.xml";
    $fSourceHandle = fopen($fSourcePath, 'r');
    
    //File to copy to
    $fTargetPath = "test.txt";
    $fTargetHandle = fopen($fTargetPath, 'w');
    
    //MP3Tag file
    $fMP3Source = "mp3tag.csv";
    $fMP3Handle = fopen($fMP3Source, 'r');
    ...
    See more | Go to post

    Leave a comment:


  • Explode inserts spaces between each character in string

    I'm filling an array with explode(";" $linetoread) and then using the array to write to a file. When I open the file the array elements have spaces between each character. I've tried split as well with the same results. If viewed in a browser, all the spaces are missing even though they exist in the source.
    See more | Go to post
No activity results to display
Show More
Working...