Jump to content


Check out our Community Blogs

rhossis

Member Since 25 Nov 2010
Offline Last Active Feb 25 2015 12:19 PM
-----

#643653 Advice on protecting PHP code

Posted by rhossis on 05 November 2012 - 09:04 AM

a) @bbqroast yes. one might though try writing in PHP and compiling your code into C++ using HipHop for PHP could also be an option. The illustrations on youtube from developers seem fairly straight foward.
b )Just saw this online :). You could also compile to JVM using http://quercus.caucho.com/ or http://www.projectzero.org/php/
c ) an alternative to ZendGuard, called ionCube is also available. We use that currently at work but are looking for compile options going ahead.
d) sourceguardian is also another alternative that generates bytecode from php files
  • 1


#637347 WHEN TO USE ARRAYITERATOR

Posted by rhossis on 30 August 2012 - 02:39 PM

Thanks Orjan. I updated a bit on SimpleXML and its own recursive iterator. Stumbled upon a good blog post discussing the PHP iterators http://ramikayyali.c...02/25/iterators for anyone having trouble wrapping their heads around it like me :)
  • 1


#599349 help: Convert to alert box

Posted by rhossis on 08 May 2011 - 11:55 AM

Hi there. You may need some javascript for this. This is a just a simple example to show you how you may go about it. I have done using the php code sample you have given.

<?php
$problem = FALSE; //no problem

//check value
$themessage = "You are required to complete the following fields: ";
if (empty($fguess)){
$problem = TRUE;
$themessage.= 'First guess';
}
if (empty($sguess)){
$problem = TRUE;
$themessage.=',Second guess,';
}
if (empty($tguess)){
$problem = TRUE;
$themessage.=',Third guess';
}
if (empty($_POST['f_name'])){
$problem = TRUE;
$themessage.=',First Name';
}
if (empty($m_name)){
$problem = TRUE;
$themessage.=',Middle Name';
}
if (empty($l_name)){
$problem = TRUE;
$themessage.=',Last Name';
}
if (empty($h_address)){
$problem = TRUE;
$themessage.=',Home Address';
}
if (empty($email)){
$problem = TRUE;
$themessage.=',Email Address';
}
if (empty($contact)){
$problem = TRUE;
$themessage.=',Contact No';
}
if (empty($job)){
$problem = TRUE;
$themessage.=',Job Title';
}

//Print alert box with error message if there is a problem
if($problem) {
print("<script>alert('$themessage')</script>");
}
?>

  • -1


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download