Jump to content

include


canadabeeau

Recommended Posts

Hi I have this way of licensing my PHP application, and I want to know if you guys can answer some questions with it.

So there is the index.php on the server of the person who bought it (www.client.com/index.php) now it has this as part of its code (in basic terms)

<?php autenticatkey($key);?>

Now if autenticatkey has it as being valid it does

<?php include "http://www.mywebsite.com/projects/myproject.php";?>

 

What I need to know if someone can see the code in myproject.php, can they somehow download myproject.php and how can i prevent this if they can, thanks in advance.

Link to comment
Share on other sites

what ever your code echoes

<?php
$name = 'vineet';
echo $name;
?>

 

from the above code the visitor will just see "hello" nothing else. he will not able to see your variables name.

 

no php code is visible to visitor.  what ever your php outputs as html only that is visible.

 

and javascript is visible.

 

vineet

Link to comment
Share on other sites

ignace any idea on how I could go about this then?

Do you think that, what if the function was called from functions.php (on my server) and then they could not make it always true, or they could but it would do nothing as it would be processing all on my server side :-)

Does anyone think this can/will work

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.