Basically, I have a problem with a script that I’m developing. The problem is that it wants to create a folder with 8bit text in it “ninety-ninenightsⅡ” the 2 at the end.
imagejpeg() [<a href='function.imagepng'>function.imagejpeg</a>]:
Unable to open 'cache/album/ninety-ninenightsⅡ/na.jpeg' for writing:
No such file or directory in /home/****/public_html/card.php on line 113
<!-- language: lang-php -->
You have troubles with the
Ⅱcharacter who is UTF-8. Thestr_*php functions family are all latin1, so your character is being transformed to garbage.Replace your code by :
Take care to use $file too on your
imagepng.You really should use logic variable names, when you’ll come back in that code in some months/years, you’ll be in real trouble.