Hello,
I have little experience in PHP so I would like to ask a question. I use
PHP5 in Windows XP Professional, Apache 2.0.59.
I have created a website with index.php file. This file contains:
<ul>
<?php include('Menu/Association.inc '); ?>
</ul>
The file Menu/Association.inc starts with:
<li><a href="Associati on.php">Strona Stowarzyszenia</a></li>
(I mean before <lithere are no characters, "<" is first byte of the file).
Unexpectedly in a browser I noticed additional space. When I view source I
see in Notepad strange character between <uland <li- Notepad shows it as
square box so I guess that it is a control character, ASCII < "!".
I tried to use readfile() instead of include() but with the same result.
Both files, index.php and Menu/Association.inc , are encoded using UTF-8 (I
have veryfied).
Could you help me please?
***Thanks***
/RAM/ 4 3151
On Thu, 06 Dec 2007 07:35:01 +0100, R.A.M. <r_********@poc zta.onet.pl
wrote:
Hello,
I have little experience in PHP so I would like to ask a question. I use
PHP5 in Windows XP Professional, Apache 2.0.59.
I have created a website with index.php file. This file contains:
<ul>
<?php include('Menu/Association.inc '); ?>
</ul>
The file Menu/Association.inc starts with:
<li><a href="Associati on.php">Strona Stowarzyszenia</a></li>
(I mean before <lithere are no characters, "<" is first byte of the
file).
Unexpectedly in a browser I noticed additional space. When I view source
I
see in Notepad strange character between <uland <li- Notepad shows
it as
square box so I guess that it is a control character, ASCII < "!".
I tried to use readfile() instead of include() but with the same result.
Both files, index.php and Menu/Association.inc , are encoded using UTF-8
(I
have veryfied).
Could you help me please?
UTF-8 BOM that shouldn't be there? (EF BB BF)
--
Rik Wasmus
R.A.M. wrote:
Hello,
I have little experience in PHP so I would like to ask a question. I use
PHP5 in Windows XP Professional, Apache 2.0.59.
I have created a website with index.php file. This file contains:
<ul>
<?php include('Menu/Association.inc '); ?>
</ul>
The file Menu/Association.inc starts with:
<li><a href="Associati on.php">Strona Stowarzyszenia</a></li>
(I mean before <lithere are no characters, "<" is first byte of the file).
Unexpectedly in a browser I noticed additional space. When I view source I
see in Notepad strange character between <uland <li- Notepad shows it as
square box so I guess that it is a control character, ASCII < "!".
I tried to use readfile() instead of include() but with the same result.
Both files, index.php and Menu/Association.inc , are encoded using UTF-8 (I
have veryfied).
Are you talking, perhaps, about the newline followed by
3 spaces that you yourself have inserted by separating the <ul>
from the <?php by exactly that much?
Double check by looking at the hex values (with php, of course!)
$text = file_get_conten ts("pathToFileG oesHere");
$max = strlen($text); // or put in your own maximum
for ($i=0;$i<$max;+ +$i) {
// Now show the bytes or their ascii codes
$ord = ord($chr=$text[$i]);
if ($chr>="A" && $chr<="Z") $ord = $chr;
else if ($chr>="a" && $chr<="z") $ord = $chr;
else if ($ord==32) $ord = "space";
print "$ord "; }
Csaba Gabor from Vienna
Thanks.
I have checked the output using your program. It contains three additional
(not occuring in .php nor .inc) bytes (just before "<li>") with decimal
values: 239 187 191 (printable, non-English letters). Where are they from in
output? How to get rid of them?
/RAM/
U¿ytkownik "R.A.M." <r_********@poc zta.onet.plnapi sa³ w wiadomo¶ci
news:fj******** **@news2.task.g da.pl...
It contains three additional (not occuring in .php nor .inc) bytes (just
before "<li>") with decimal values: 239 187 191 (printable, non-English
letters).
The sequence starts a place of usage of every <?php include... ?(a few
times in my .php file), as well as before initial <!DOCTYPE at the beginning
of output (three first bytes of output).
/RAM/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: stiank81 |
last post by:
Hi.
I have a problem witch I assume there is an answear to....?
I have several XML schemas, and they all have quiet a lot of
definitions in common. They still have to be seperated into different
XML schemas, but what I want to do is to create one XML schema
containing all the common definitions (this is mostly type
definitions). I then want all the XML schemas I have to include this
file containing the definitions.
|
by: Tom Lee |
last post by:
Hi,
I'm new to .NET 2003 compiler. When I tried to compile my
program using DEBUG mode, I got the following errors in the
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7
\include\xdebug file as folows. I need help to resolve
them ASAP:
cl /c /nologo /MDd /W3 /Od /GR /GM /Zi /GX /D "_DEBUG" /D "
WIN32" /D "_W
INDOWS" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /D "_USRDLL" /
|
by: David Mathog |
last post by:
One thing that can make porting C code from one
platform to another miserable is #include. In particular,
the need to either place the path to an included file within
the #include statement or to very carefully define the
order in which paths are searched with command line options
on the compiler. Both can cause problems, especially when
dealing with complex software distributions.
It occurs ot me that by extending the C include...
|
by: Minh |
last post by:
I've just installed VS.NET 2003 on my Athlon XP 1800+. However I couldn't
get any project with STL includes to compile even if I create a new empty
project (and added #include <string>). It gave me a bunch of "missing ;"
errors. I did reinstall the whole thing a few times but it didn't work.
Anyone have any idea?
Thanks
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xutility(862) :
|
by: Arjen |
last post by:
Hi,
The login control (<asp:Login) generates a HTML table. I have used my own
template without table's.
The control generates <table> ... my design(template) ... </table>.
I don't like the table... how can I delete this?
Thanks!
| |
by: vagos |
last post by:
Can someone please tell me why i get the following error ??
The strange is that sometimes i get the error and sometimes not !!
Also there is no syntax error on line 251
Warning: Unexpected character in input: ' in
/usr/local/apache/htdocs/functions.php on line 251
Thanks,
Vagos
|
by: Jon Rea |
last post by:
I am currently cleaning up an application which was origainlly hashed
together with speed of coding in mind and therefore contains quite a few
"hacky" shortcuts.
As part of this "revamping" process I am introducing namespaces to
properly compartmentalise sections of the code into logical units. What
I am speciffically trying to get right is the dependency tree for header
files to reduce compile time and simplify the code structure.
On...
|
by: Dimitri Furman |
last post by:
SQL Server 2000 SP4.
Running the script below prints 'Unexpected':
-----------------------------
DECLARE @String AS varchar(1)
SELECT @String = 'z'
IF @String LIKE ''
|
by: Tom |
last post by:
Hi all i have problem with include function in my code after change php4 to
php5.
after standard html code i put in html body <? include ("filename.php"); ?>
and close body and html.
With php4 i got pictures from php file but now in php5 i got blank page.
any suggestion?
tnx
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |