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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:31:08+00:00 2026-05-15T18:31:08+00:00

I have a modified version of PHP which is compiled to PHP, in PHP.

  • 0

I have a modified version of PHP which is compiled to PHP, in PHP. I’m not interested in a discussion about why I shouldn’t be doing this; best practice, standards, etc; so please don’t.

It’s not modified in the core, but crudely uses a PHP script to modify each PHP file before being evaluated. Because of the performance hit of modfiying each file, I am currently caching each file, however this is not an ideal solution because:

  • Two copies of each file are stored
  • It’s possible to modify the wrong file
  • Servers with crappy hosting don’t allow file_put_contents(), so the cache has to be updated on the local server

An alternative solution is to evaluate each file at runtime, however this incurs an overhead and also requires eval(), which may be slower and doesn’t give the same error messages as include().

I’d like to know if there’s a better way to do this, preferably one that works on servers that don’t allow file_put_contents().

  • 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-15T18:31:09+00:00Added an answer on May 15, 2026 at 6:31 pm

    Does your server have access to any shared memory caches? APC, memcache, etc? APC sounds like a decent fit for this.

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

Sidebar

Related Questions

I have a modified version of binary search that takes in an array in
I have a slightly modified version of the thread class copied off the Linux
I have a modified version of the jFeed plugin and now want to pack
If I have a PHP application which allows users to make changes to documents,
I am using Aptana 3 which is basically a modified version of eclipse, so
So I have an old website which uses an older version of smarty, as
I currently have this code. <?php $username = 'EMAIL ADDRESS'; $password = 'EMAIL ADDRESS';
I have this bug Warning: date() [function.date]: It is not safe to rely on
I have this simplexml result object: object(SimpleXMLElement)#207 (2) { [@attributes]=> array(1) { [version]=> string(1)
I have modified a slider script to mimic ebay's slider on home page. 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.