473,406 Members | 2,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

php is not recognizing 2-byte filename

Hi,
php is not able to read the 2-byte file. file_exists() returns false.Here is my code.
I have tried as suggested by David Thomas, who posted the solution. Still I am facing the problem. Please let me know if I need to configure in php.ini.

Thanks,
Bhaskara.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Japanese File</title>
</head>
<body>

<?php

$filename="./言語.php";
if (file_exists($filename)) {
echo "The file $filename exists";
} else {
echo "The file $filename does not exist";
}
$fp = fopen($filename,'r');
while($line=fgets($fp))
{
print $line."<br>";
}
fclose($fp);

?>

</body>
</html>
Aug 7 '07 #1
2 1118
kovik
1,044 Expert 1GB
If file_exists() returns false, then the file doesn't exist. Try using an absolute URL.
Aug 7 '07 #2
File is there. This works if file name is in english. url link is also not working.
Aug 13 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: John | last post by:
All: I have PHP 4.2.2 and MySQL 3.23.54 running on a RH9 server. I've been using the MySQL database for other things but have now decided to use PHP. Currently, I can't get PHP to recognize...
2
by: Andrew Werden | last post by:
having all kinds of trouble getting the most rudimentary SOAP client application to run. Dim Connector As SoapConnector Set Connector = New HttpConnector Can not get past the compile -- no...
2
by: Dale Anderson | last post by:
I have a schema that I'm trying to read. The schema has an element named 'GrantApplication' and one with a namespace prefix named 'SF424:GrantApplication'. When I try to read this schema in, I...
0
by: Feldman Alex | last post by:
Hello friends. Do anyone know wich C# api's should i use for recognizing removable/network drives? Example : I need to know when cd inserted to CD drive Thank a lot Alex
5
by: Marc Violette | last post by:
<Reply-To: veejunk@sympatico.ca> Hello, I'm hoping someone can help me out here... I'm a beginner ASP.NET developper, and am trying to follow a series of exercises in the book entitled...
0
by: Glenn Venzke | last post by:
I'm using a ColdFusion app to consume a .NET webservice with 3 methods and I'm running into a problem. The first time I added a web reference & compiled the service (with VS.NET standard edition...
15
by: John Gonsalves | last post by:
I'm experiencing problems related to IIS/ASP.NET not recognizing writes to web.config that my web application performs. Specifically I have a web application that provides an interface allowing...
2
by: Brisingman | last post by:
Hi, I set PYTHONPATH to /home/me/bin in bash.bashrc, however the IDLE path browser is not recognizing this. Not sure why. Grateful for any insight. Best
6
by: ahmadbaseet | last post by:
Hello every one. I am new to MS Access. I am using data SQL command SELECT to fetch some data from Access tables. I want to use DAO.Recordset object to get the data, but somehow my compiler is not...
1
by: thulaseeram | last post by:
hi, i am using the following code for uploading <div id="iframe" name="iframe" style="width:850px; height:120px;"> <iframe name="attach_frame" id="attach_frame"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.