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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:24:09+00:00 2026-06-06T01:24:09+00:00

The fine manual states thus: Unlike some other languages, backticks cannot be used within

  • 0

The fine manual states thus:

Unlike some other languages, backticks cannot be used within double-quoted strings.

However, empirical testing finds no problems:

$ cat test.php 
#!/usr/bin/php -q
<?php
echo "O`reilly\n";
echo `ls`;
echo "\n";
?>

$ ./test.php 
O`reilly
test.php

$ php --version
PHP 5.3.6-13ubuntu3.7 with Suhosin-Patch (cli) (built: May  4 2012 00:50:06) 
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans

Obviously safe mode is off due to the backticks working in the ls line, and I see that sage mode is disabled in php.ini. On other servers with safe mode I have used backticks in SQL queries and I do not recall ever having an issue. So why does the manual have the warning about backticks in double-quoted strings?

  • 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-06T01:24:10+00:00Added an answer on June 6, 2026 at 1:24 am

    The section you are reading from called “Execution Operators”. Thus, the phrase “Unlike some other languages, backticks cannot be used within double-quoted strings” means this:

    You cannot use backticks within double-quoted strings as execution operator.

    i.e. echo “`ls`”; outputs `ls`, not the result of ls

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

Sidebar

Related Questions

I upload some video using Browser-based upload method. The video is uploaded fine, however
The following code compiles fine with manual memory management, but fails under ARC: CALayer
I've searched the PHP manual, Stackoverflow, and some forums, but I'm stumped on some
Looks fine in firefox but the image is not displaying in center. In Chrome
Works fine on Debug|iphone build. For Release|iphone I am getting following error: ld: duplicate
works fine on the desktop with xampp but when i upload it to my
The get works fine and able to post to the database with a test
This function works fine: std::string get_str() { return std::get<0>( make_tuple(std::string(hi)) ); } But if
My code looks fine but it is not working as it should because update
My app runs fine on my machine (of course/famous last words). However, when deploying

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.