[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

parse error unexpected t string

Posted on 2011-05-04
2
Medium Priority
?
336 Views
Last Modified: 2013-12-13
<?xml version="1.0" encoding="UTF-8"?>

i run this in php

and
get error
parse error unexpected t string
0
Comment
Question by:rgb192
2 Comments
 
LVL 3

Accepted Solution

by:
wuyinzhi earned 2000 total points
ID: 35695513
it's not PHP, it's XML http://www.w3schools.com/XML/xml_encoding.asp
if you want to write it from PHP,  you should write:

<?

echo '<?xml version="1.0" encoding="UTF-8"?>';

?>
0
 

Author Closing Comment

by:rgb192
ID: 35695526
thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses
Course of the Month19 days, 17 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question