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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:57:41+00:00 2026-05-23T12:57:41+00:00

Is it possible to include a php script (which given its current nature of

  • 0

Is it possible to include a php script (which given its current nature of the project, could screw it up) with only limited variables.

This is because I want to run a file as a data template, but I don’t users to be able to get access to all the data. Especially on a shared service. I didn’t want to use unset on every variable, because I’ll need them again later.

I was hoping to be able to open a private region within the interpreter so I can run the script with only certain variables, to cut a long story short.

Thanks in advance.

  • 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-23T12:57:42+00:00Added an answer on May 23, 2026 at 12:57 pm

    You can create temporary file and execute it then with something like

    exec("php -f /path/to/temporary/script.php");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to dump all global variables in a PHP script? Say this
Is it possible to INCLUDE other mysql scripts in a composite script? Ideally I
Is it possible to automatically create Word documents which include list fields from a
I have a PHP script, say a.php , which is called from JS using
I have this script: <?php if ($_POST["username"]=="") { include($_SERVER['DOCUMENT_ROOT'] ."/login.inc.php"); } else { $username=$_POST["username"];
Is it possible to include a PHP file inside a Google Extension? If so,
From a PHP script, is it possible to execute another PHP-script with different GET
How to include multiple paths when a PHP script is called? For example, I
I'm trying to include JavaScript variables into PHP code as PHP variables, but I'm
I have a PHP script which calls exec() . I've been having trouble all

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.