Hey Guys,
I am getting parse error [Parse error: parse error, unexpected T_STRING on
line 1] when I use XML version info.
?xml version=1.0 encoding=utf-8?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html
instead of that line use this
?
echo ?xml version=\1.0\ encoding=\UTF-8\?\n
?
Can you pls. help me understand why parsing error occurs and how to avoid
it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks, Eoghan. It works.
Good learning experience for me. Found more information in the following
links:
http://www.php.net/manual/en/language.basic-syntax.php
http://www.php.net/manual/en/ini.sect.language-options.php#ini.short-open-tag
Eoghan [EMAIL PROTECTED] wrote in message
news:[EMAIL
On Monday 26 July 2004 05:39, Suresh Manoharan wrote:
Good learning experience for me. Found more information in the following
links:
http://www.php.net/manual/en/language.basic-syntax.php
http://www.php.net/manual/en/ini.sect.language-options.php#ini.short-open-t
ag
Also manual Appendix
Hi,
I'm real new in php and trying to read a txt file
this is my code :
?php
$row = 1;
$fp = fopen (lecteurs.txt,r);
while ($data = fgetcsv ($fp, 1000, ;))
{
$num = count ($data);
$row++;
for ($c=0; $c$num; $c++)
switch ($row)
{
case 1 :
{
$vignette
which line is 45
-Original Message-
From: news.php.net [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 10:45 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Parsing error
Hi,
I'm real new in php and trying to read a txt file
this is my code :
?php
$row = 1;
$fp = fopen
Is it just me or is the for statement missing a begining curly bracket?
-Chris
At 11:29 AM 4/1/2002 -0600, you wrote:
which line is 45
-Original Message-
From: news.php.net [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 10:45 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Parsing
On Mon, 1 Apr 2002, news.php.net wrote:
while ($data = fgetcsv ($fp, 1000, ;))
{
switch ($row)
{
}
?
and when i run it i get : Parse error: parse error in essai.php on line 45
You never close the { you open for the while().
miguel
--
PHP General Mailing List
It looks like you've got a closing curly bracket } for your switch
statement, but not for your while statement.
Also, have you read up on the switch statement? Keep in mind that if
something matches your case 1, it will also fall through and execute
case 2, case 3, etc... unless you include
9 matches
Mail list logo