I wish to implement some user callable functions in my code. I use something like this:
function funcTest(){
echo "This is test function";
}
if (isset($_GET['cmd']))
{
$func = "func".$_GET['cmd'];
$func();
}
else echo "ERROR";
Is the code safe? Can someone execute arbitrary fun...
I need help to debug this program and improve it if it's possible.
#define _XOPEN_SOURCE
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdbool.h>
#include <time.h>
static const char alphabet[] =
"abcdefghijklmnopqrstuvwxyz";
//"0123456789"
//"ABCDEFGHIJ...