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

  • SEARCH
  • Home
  • 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 787167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:09:34+00:00 2026-05-14T21:09:34+00:00

While working on an existing Drupal site I’ve noticed a strange glitch that causes

  • 0

While working on an existing Drupal site I’ve noticed a strange glitch that causes any PHP operator with > in it to act like a ?> tag. This is happening in in Drupal pages that I create that have a ‘Input Format’ of ‘PHP code’.

For example this line of code


foreach($array as $key => $value){

results in a very broken page that prints out


$value){

Does any one know what could be causing this? My Dev environment is XAMPP. Drupal version is 6.15. PHP version is 5.2.9.

UPDATE: Short tags are OFF and when the PHP is rewritten so that it contains no > char it works as expected. I’ll have to test more to get additional information.

  • 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-14T21:09:34+00:00Added an answer on May 14, 2026 at 9:09 pm

    If you look in the source, I bet you see the rest of the foreach in there. It’s treating > as an HTML end delimiter (and it found a < earlier in the script). Ensure PHP is being parsed. If it isn’t being parsed, see if it’s because the script requires short tags. If the script uses long tags, make sure PHP itself is up and running properly in the web server.

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

Sidebar

Related Questions

How does QA verify that existing product functionality is still working while verifying new
I'm working on an existing multi-language site (Coldfusion/MySQL). Why is it that on a
While working on something non-development related, I noticed something interested while on answers.com .
I am working on an app that auto saves content while a user works
While working on a project, I've been making some changes and browsing around existing
I am working on an existing Ruby on Rails project. While one of the
While working on an existing project I suddenly got the following error when trying
I'm working on a message-passing runtime system that has existing message allocation code that
Occasionally while attempting to save a Crystal Report that I'm working on in VS2008,
I am working an existing iPhone app, while need to change the code of

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.