Hide My PHP Code

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Thu Jun 13, 2013 11:23 pm

Hide My PHP Code

Postby Anindya147 » Thu Jun 13, 2013 11:30 pm

Suppose I want to hide my own PHP code in my own machine........ Means if someone wants to open my code they will see a garbage value or a charset or anything except the programme.

I am a beginner PHP coder.

Thank you

php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Hide My PHP Code

Postby johnj » Fri Jun 14, 2013 7:44 am

one way will be to change the encoding of the text before you save and put it back when you need the original php code - I have not tried this, so I am not sure how far this will be successful.

Another way will be to write a code which will read your php file and crypt it, save it and then later when you need it, you should use a decrypt method to get back the php script. Take a look at the Mcrypt functions in php. This is a more better and feasible method but you need to do some work to set this up.

None of the above methods are straight forward.

Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 6 guests