I have the below php code:
<?php
$data = array(
"api_key"=>"myApiKey",
"user"=>"username",
"status"=>"active",
"project"=>"projectName"
);
$data = base64_encode(serialize($data));
?>
With above results I will send a GET request, but how to serialize and base64_encode in zenno?
On the url I send the GET request I unserialize and decode using php like this:
<?php
$data = unserialize(base64_decode($_GET['data']));
?>
<?php
$data = array(
"api_key"=>"myApiKey",
"user"=>"username",
"status"=>"active",
"project"=>"projectName"
);
$data = base64_encode(serialize($data));
?>
With above results I will send a GET request, but how to serialize and base64_encode in zenno?
On the url I send the GET request I unserialize and decode using php like this:
<?php
$data = unserialize(base64_decode($_GET['data']));
?>