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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:29:48+00:00 2026-06-04T12:29:48+00:00

I was going to add a shebang line to a php script #!/bin/env php

  • 0

I was going to add a shebang line to a php script

#!/bin/env php

but I was looking around and people don’t seem to be doing this.

  • http://github.com/zurb/foundation/blob/master/marketing/about.php
  • http://github.com/EllisLab/CodeIgniter/blob/develop/system/libraries/Cart.php
  • http://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Form.php

Is it “inappropriate” or against some rule to shebang a php file?

  • 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-04T12:29:52+00:00Added an answer on June 4, 2026 at 12:29 pm

    Usually hashbangs are only added when the PHP script is intended to be run from the command line, where it is useful. It is not typically useful to run PHP scripts designed for the web on the command line, and as such, people do not add hashbangs to them.

    Also, I believe that in non-CLI PHP environments, PHP will echo the hashbang.

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

Sidebar

Related Questions

I'm going to add support of different timezone in my ASP.NET MVC3 app. The
( lol ) I have a panel on Form1. I'm going to add several
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/TextToSpeechActivity.html I was going to add this but how can i add it if
I am going to be coding up a windows service to add users to
I'd like to add a real-time graphical representation of what's going on behind some
My site is going through a huge revamp. I want to add a lot
I have an if else tree that is going to grow as I add
I am developing a game with cocos2d-iphone and I am going to add in
I am creating some tabs using labels, then im going to add some simple
I am going to add a switch setting under settings/LocationServices for my App. I

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.