Re: Hebrew Directory Names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i have tried this:

<?php if (!defined('THROUGH_INDEX')) die('Sorry mate!');
>
> $default_locale = setlocale(LC_ALL, 'en_US.UTF-8');
> ini_set('default_charset', 'UTF-8' );
>
>
> $_GET['folder'] =
> preg_replace("/([\xE0-\xFA])/e","chr(215).chr(ord(\${1})-80)",$_GET['folder']);
>
> $dirname = $config['walls_dir'].$_GET['folder']."/".$_GET['filename'];
>
>
> if (!is_file($dirname)) { echo "leave();"; g($dirname);die;}
>


I'm still getting:

> leave();
>
> string(56) "/home/nitsanbn/public_html/iphoneia/walls/חלל/008.jpg"
>
>
The preg_replace() above convert the Hebrew chars into UTF8.
The conversion does work but the file is not recognized as a file, although
that i can browse it straightly.

I'm afraid that I don't have access to the php.ini, since it's a shared
hosting, do you know if hostgator gives access to php.ini or let you changes
it's values?

Thanks!

On Thu, May 28, 2009 at 7:44 PM, Tom Worster <fsb@xxxxxxxxxx> wrote:

> On 5/28/09 1:19 PM, "Tom Worster" <fsb@xxxxxxxxxx> wrote:
>
> > i suspect there will be serious dependency on os and file system.
>
> i was unable to do anything with hebrew file or dir names on freebsd 7.1
> with ufs. i even tried scping and tarring over the directory that worked on
> os x.
>
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux