Is it possible [how?] to blacklist & whitelist shell_exec() commands?

PHP
I need to allow the following: shell_exec('whois ' . $domain); BUT I need to disallow everything else, like: shell_exec('ls'); shell_exec('rm -rf ...
1 year ago

Autorenew system, how to avoid multiple renew?

PHP
I provide a service where my customers can be auto-charged to renew their credits when their account reach a certain threshold. It works the same way ...
1 year ago

Symfony2 without Doctrine

PHP
How can I install symfony2 without Doctrine? I have tried removing the package using composer and uninstalling the bundle manually but I get errors ...
1 year ago

How can I send SOAP XML via Curl and PHP?

PHP
This has been bugging me for days; I'm trying to send a SOAP post via Curl but I just keep getting a "couldn't connect to host" error, but, I really c...
1 year ago

Saving academic year to MySQL database based on now() timestamp?

PHP
I am running a university help desk office where the employees use a php form to register the queries they have answered in a MySQL database. Basical...
1 year ago

Woocommerce Order Export

PHP
I'm using WooCommerce Simply Order Export (Plugin) in Woocommerce Website. Using this Plugin when I export orders which are under specific Orde...
1 year ago

Genesis Framework - How to switch main hook and sidebar hook order

PHP
I recently started using Genesis Framework and am still getting accustomed to the hooks used to create the layout. The page I am designing uses the ...
1 year ago

PHP Multiple Checkbox Array

PHP
I've looked around for a few examples here but a lot of them are either too advanced for my grasp of PHP or their examples are too specific to their o...
1 year ago

POST Data From IOS App TO PHP Web Service (Hosting GODADDY)

PHP
I have to POST data from IOS App to PHP Based Webservice, Posting is working but table filled with NULL values. I have given code IOS and PHP Am Using...
1 year ago

The reference behavior of individual elements is dissociated from the reference status of the array container?

PHP
What does this mean "In other words, the reference behavior of arrays is defined in an element-by-element basis; the reference behavior of individual ...
1 year ago

Switch places of array elements - php

PHP
I have an array with two elements: Array ( [0] => 'test1' [1] => 'test2' ) I want test1 to be second element in the array and ...
1 year ago

How would you forget cached Eloquent models in Laravel?

PHP
Theoretical question on Laravel here. So Example of the caching I'd do is: Article::with('comments')->remember(5)->get(); Ideally I'd like t...
1 year ago

Triple DES encryption in JavaScript and decryption in PHP

PHP
I am using JavaScript to encrypt and php to decrypt the string and vice versa but the problem is that on both the platforms the output being generated...
1 year ago

CodeIgniter: Two Model-Methods in a row cause Internal Server Error

PHP
I'm pretty new to CodeIgniter and trying to get my first project done. I have two ajax db-update functions which (for themselves) work totally fine. ...
1 year ago

Get and echo inputs from textarea repeatedly

PHP
I have a simple HTML form like this: <form action="index.php" method="post"> <textarea id="question" name="question"><...
1 year ago

How to activate Gedmo Ip_Traceable in a Symfony 2.7 project?

PHP
On my Symfony 2.7 project, I use StofDoctrineExtension‐Bundle. I have declared some entities. They use Timestampable, Loggable and Sluggable Gedmo beh...
1 year ago

PDO array result as php variable

PHP
Is it possible to set a PDO result as a PHP $variable and use it outside the PDO query? Here is what I am trying to do: SQL database contains: name...
1 year ago

Extending HMVC modules in CodeIgniter

PHP
Let's say we have module called core_crud with something like this in the controller: if (!defined('BASEPATH')) exit('No direct script access all...
1 year ago

Laravel 5 withInput old always empty

PHP
I'm building a simple login form using Laravel 5 and I would like to fill some inputs by default when some error occurred. My router is calling these...
1 year ago

Insert Wordpress title into html with php

PHP
I know this a simple question and I will probably get lambasted for it but I can not get this to work. Currently the title prints before the h2 and t...
1 year ago