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 8596563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:42:34+00:00 2026-06-12T00:42:34+00:00

When I run php -l someFile on the CLI, the output is marked up

  • 0

When I run php -l someFile on the CLI, the output is marked up with HTML tags:

$ php -l someFile.php 
<br />
<b>Parse error</b>:  syntax error, unexpected T_ECHO in <b>/home/someUser/public_html/someFile.php</b> on line <b>42</b><br />
Errors parsing someFile.php
$

How can I suppress these HTML tags? I am actually using a custom php.ini for the parsing (not shown in example to simplify), so if a php.ini modification will solve the issue then that is fine.

Thank you.

  • 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-06-12T00:42:35+00:00Added an answer on June 12, 2026 at 12:42 am

    Set html_errors to false in your ini file http://php.net/manual/en/errorfunc.configuration.php#ini.html-errors

    $ php -dhtml_errors=0 -l someFile
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I run php-closure i get a PHP error Undefined index: HTTP_IF_NONE_MATCH in <b>/php-closure.php</b>
Trying to run php app\console doctrine:schema:update --force . I Catch this error: In parameters.ini
I have used cron to run PHP: * * * * * /var/www/html/new12345/testing.sh This
I run PHP and MySQL on the same machine, but both report different times.
I run PHP 5.2 on Ubuntu with Apache 2. When I want to serve
Is there a way to run PHP 5.3 next PHP 5.4? I'd like it
Using Apache 2.2 and PHP 5, what's the best way to run PHP without
I am writing a pre-commit hook. I want to run php -l against all
I run a php script on a page which looks for certain classes/elements and
I want to run this PHP function -- $querystring_arr='maxResults=50&startIndex=50&sort=date'; $str=preg_replace((&startIndex=)?[0-9]*(&)?,&startIndex=.$sindex.&,$querystring_arr); When I print $str

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.