Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6586605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:48:44+00:00 2026-05-25T16:48:44+00:00

Yes, another one of these T_STRING errors…but hopefully this one is different. Here is

  • 0

Yes, another one of these T_STRING errors…but hopefully this one is different.

Here is all the code I have on my page:

<?php


?>
<?xml version="1.0" encoding="UTF-8" ?> 
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> 


</urlset>

As you can probably see, I’m trying to do a sitemap for my site. But I didn’t put anything on it and I already have a

Parse error: syntax error, unexpected T_STRING in ..../sitemap.php on line 4

Which points to the end of PHP code marking ?>

Any input much appreciated. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:48:45+00:00Added an answer on May 25, 2026 at 4:48 pm

    Try

    <?php
    
       echo '<?xml version="1.0" encoding="UTF-8" ?> ';
    ?>
    
    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> 
    
    
    </urlset>
    

    http://sandbox.phpcode.eu/g/4a51c

    problem are these php tags, open-short-tags are probably allowed on your server

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code below to copy VBA codes from one word document to
Yes, I realize this question was asked and answered, but I have specific questions
I'm writing a programmer's text editor (yes another one) in Perl called Kephra ,
Yes, There's More Than One Way To Do It but there must be a
I have list of the text filed in vertically. And all these are in
In OpenGL, one often writes code like this: glPushMatrix(); // modify the current matrix
actually i'm working with .Net Framework 3.5, so i have all these nice little
Ok this is probably just me not knowing enough about php but here it
I have this code working, however I don't quite understand how it is managing
Yes this question as already been asked here at SO. The problem is that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.