title: How to run returned php script after decryption of encrypted php script (developing an encryption/decryption tool for protecting php codes)
body: <p>I want to protect my php codes on my web server. So I develop an encryption/decryption application using C. I encrypt all my php files successfully during the process shows below:</p>
  
  <p>php Source Code(php file) --> Encoder Tool --> Encrypted Code</p>
  
  <p>Then, I developed a php extension named "MyDecrptionFunc" which gets an encrypted code and will decrypt it and return the decryption.But I don't know how to run the returned php script. I used eval function like below code and it worked: </p>
  
  <pre><code>&lt;?php eval(MyDecrptionFunc("Encrypted Code")); ?&gt;
  </code></pre>
  
  <p>But I don't want to use the eval function. I want the php script runs as I call the php extension like below code:</p>
  
  <pre><code>&lt;?php MyDecrptionFunc("Encrypted Code"); ?&gt;
  </code></pre>
  
  <p>So, I think that I have to run the decrypted code from my php extension written in c, but I don't know how to do that.</p>
  
  <p>PS:<br> All my developing is in Linux environment. <br>
  The source php file contains also html, java script and css. <br>
  The php scripts are in relation with database.</p>