04-12-2007
Hiding PHP code on the server
Hi all,
Sometime back, had put up a Q regarding hiding perl code.
A: There is a utility known as 'pp' which comes along with PAR. Downloaded from
CPAN. These people have done wonderful work I must say. Cool executables from
perl scripts.
Have one more query now.
Is there a similar way of hiding some php scripts as well?
rgds,
Sudhir.
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there a way to hide the Perl script like we do in C and other languages?
:rolleyes: (5 Replies)
Discussion started by: sskb
5 Replies
2. Shell Programming and Scripting
Hi all,
This is my first post in this forum. Searched the threads, couldn't get information about this.
I have developed a web-based tool using CGI. The code consists of cgi files (.cgi) and functions written as Perl Modules( .pm files). As it is the tool works perfect.
Now is there... (4 Replies)
Discussion started by: sudhir_onweb
4 Replies
3. Web Development
Here is some sample PHP code you can run if you have a PHP web application that uses code or images from an ad server, image server, or content deliver network, and you want to check if it is working and if not, failover to another one:
<?php
$current_server = "server.domain.com";
// set... (0 Replies)
Discussion started by: Neo
0 Replies
4. UNIX for Dummies Questions & Answers
Hello,
Sorry for my english.
I have an arcade site.
mydomain.com/game.html If database has the game name is good.
mydomain.com/fd43f54.html if database has not the game name redirect to mydomain.com by 302 error code.
if database has not the game name i want a 301/404 error code and no... (0 Replies)
Discussion started by: hoo
0 Replies
5. Shell Programming and Scripting
Here is the code:
<?php
//new function
function loadini($path) {
$fp = fopen($path, "r");
$fpcontents = fread($fp, filesize($path));
fclose($fp);
return $fpcontents;
}
$to = "test@test.com";
$nameto = "notme";
$from = "test";
$namefrom = "Who From"; ... (0 Replies)
Discussion started by: galford
0 Replies
6. UNIX for Dummies Questions & Answers
How can we share a script without actually sharing the code?
I have 4 scripts in my system.
The end user has to execute the first file and based on the inputs (I am reading 1, 2 , 3 as options) my shell script will execute respective script files.
Now I dont want to share all the 4 script... (3 Replies)
Discussion started by: Dish
3 Replies
7. Shell Programming and Scripting
Here is some docs of my ongoing work to port this forum PHP code which is running on 5.3.10, to PHP 7.
Motivation:
Unfortunately, every thing that has a beginning must have an end. PHP 5.6 active support ended January 19, 2017. It will receive security support until December 31, 2018.
#1 ... (7 Replies)
Discussion started by: Neo
7 Replies
LEARN ABOUT OSX
par::filter
PAR::Filter(3) User Contributed Perl Documentation PAR::Filter(3)
NAME
PAR::Filter - Input filter for PAR
SYNOPSIS
$code = 'use strict; print "Hello, World!
";';
$ref = PAR::Filter->new('PodStrip', 'Bleach')->apply($code);
print $code; # pod-stripped and obfuscated code
print $$ref; # same thing
$ref = PAR::Filter->new('PodStrip', 'Bleach')->apply('file.pl');
print $$ref; # same thing, applied to file.pl
DESCRIPTION
Starting with PAR 0.76, "pp -f" takes a filter name, like "Bleach", and invokes this module to transform the programs with
PAR::Filter::Bleach. Similarily, "pp -F Bleach" applies the Bleach filter to all included modules.
It is possible to pass in multiple such filters, which are applied in turn.
The output of each such filter is expected be semantically equivalent to the input, although possibly obfuscated.
The default list of filters include:
o PAR::Filter::Bleach
The archetypical obfuscating filter.
o PAR::Filter::Obfuscate
Use B::Deobfuscate to strip away indents and comments, as well as mangling variable names.
o PAR::Filter::PatchContent
Fix PAR-incompatible modules, applied to modules by default.
o PAR::Filter::PodStrip
Strip away POD sections, applied to modules by default.
o PAR::Filter::Bytecode
Use B::Bytecode to strip away indents and comments. This filter is deprecated! For source hiding, have a look at PAR::Filter::Crypto
instead and make sure to read about its caveats.
AUTHORS
Audrey Tang <cpan@audreyt.org>
COPYRIGHT
Copyright 2003-2009 by Audrey Tang <cpan@audreyt.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
perl v5.16.2 2012-01-06 PAR::Filter(3)