html - codeigniter, php error - errot text problem -
i use codeigniter framework in project. encountered php error. english errors display well~ but, there odd texts can not readable. this...
a php error encountered severity: warning message: simplexml_load_file(http://localhost/uploads/seoul.kml) [function.simplexml-load-file]: failed open stream: ����� ��������κ��� ����� ��� �������� ���߰ų�, ȣ��Ʈ�κ��� ����� ��� ������ ������ϴ�. filename: controllers/editor.php line number: 113
so, think it's becase of text encoding~ . project's setting utf-8(korean)) in config/congif.php.
$config['charset'] = "utf-8";
but, can not find should put html utf-8 setting this.
in application/error/error_php.php file, can not find place put utf-8 setting this. because it's div tags, no html header.
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;"> <h4>a php error encountered</h4> <p>severity: <?php echo $severity; ?></p> <p>message: <?php echo $message; ?></p> <p>filename: <?php echo $filepath; ?></p> <p>line number: <?php echo $line; ?></p> </div>
or, crashed text not utf-8 problem? idea please~
the problem seems cannot open website , read it. allow_url_fopen
set on
in php configuration?
edit
i quick saw url. question instead: file readable?
try:
<?php $file = 'uploads/seoul.kml'; if ( file_exists($file) ) { if ( is_readable($file) ) { print_r(simplexml_load_file($file)); } else { echo "file not readable"; } } else { echo "file not exist"; } ?>
Comments
Post a Comment