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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:33:56+00:00 2026-06-15T19:33:56+00:00

I once found a way to disable session logging by php -a , php’s

  • 0

I once found a way to disable session logging by php -a, php’s interactive shell. How do I turn it back on? Is there a way to send logging to another, file besides ~/.php_history? I think I may have sent the output to /dev/null.

edit: It apparently still saves to the .php_history file. It doesn’t save until you exit completely from the shell. I would still like to know how move the history logging to another 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-15T19:33:57+00:00Added an answer on June 15, 2026 at 7:33 pm

    No, currently (5.3.10 ubuntu) the filename ~/.php_history is hardcoded in the php source code. Watch :

    sapi/cli/php_cli.c (line 1127)
    

    If you really need the history file in another location you can use a symbolic link. eg :

    touch /tmp/.php_history
    ln -s /tmp/.php_history /home/your_name/.php_history
    

    You might also consider sending a feature request to the php developers. They might introduce a php.ini directive for this.

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

Sidebar

Related Questions

I once tried to implement Comet in PHP. Soon, I found that PHP is
I am logging each onCreate() and onDestroy() calls. I found out that once I
I am looking for a way to disable the task manager window once I
I once found a way to show the current tenuring threshold (among other things)
I once found a web site that had some 'Requires .net 1.0', 'Requires .net
Jeff Atwood wrote once he found quering database for primary keys, and then getting
I'm playing with improving performance during saving category and I found that once category
I found out that the FormWizard only __init__ 's once, when the url is
I'm writing a physics simulating program, and found after() useful. I once would like
I once found a nifty little library that used JNI to allow java applications

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.