questions/web-development/php/page/4
Hello @kartik, Simply try this: $first = $second = ...READ MORE
Hello, You are looking for the extends keyword: Interface IFoo extends ...READ MORE
Hello, You can try this, $info = pathinfo($_FILES['userFile']['name']); $ext = ...READ MORE
Hello, Try this code: function rrmdir($dir) { if (is_dir($dir)) { ...READ MORE
Hello, Try: $result = curl_exec($cURL); $result = json_decode($result,true); Now you can ...READ MORE
Hello @kartik, In your home folder /Users/David for exmaple, you ...READ MORE
Hello @kartik, You can fetch the value of ...READ MORE
Use phpseclib, a pure PHP, SSH implementation. An example: <?php include('Net/SSH2.php'); $ssh ...READ MORE
Hello, Either decode them using html_entity_decode or remove them using preg_replace: $Content ...READ MORE
You can use isset function: if(isset($_GET['id'])) { ...READ MORE
Hello @kartik, It works both ways - you ...READ MORE
Hello, Try this: <?php ob_start(); ?> <xml/> <?php $xml = ob_get_clean(); ...READ MORE
Hii, Your best bet is the magic method __call, ...READ MORE
Hello @kartik, This is not possible in PHP. All ...READ MORE
Hello @kartik, This should do what you're looking ...READ MORE
Hello @kartik, The problem is that the package ...READ MORE
Hello @kartik, The PHP and the HTML should ...READ MORE
Hello @kartik, You have to modify the php.ini ...READ MORE
Hello @kartik, You can use instanceof: if ($pdo instanceof PDO) ...READ MORE
Hello @kartik, ou can use php_ini_loaded_file() Taken from php.net: $inipath = ...READ MORE
Hello @kartik, This can be nearly done by setting a ...READ MORE
Hello @kartik, In Laravel 4 & 5 (up ...READ MORE
Hello @kartik, If you only have 2 keys ...READ MORE
Hello @kartik, file_put_contents() does not create the directory structure. ...READ MORE
Hello @kartik, Try using batch file Open notepad type php -S ...READ MORE
The PHP and the HTML should each ...READ MORE
Hello @kartik, You have to use br when ...READ MORE
Hello @kartik, For the URI query use urlencode/urldecode; for ...READ MORE
Hello @kartik, __CLASS__ always returns the name of the ...READ MORE
Hello @kartik, Try this: preg_replace('/\\?.*/', '', $str) Hope ...READ MORE
Hello @kartik, it seems that your JSON is ...READ MORE
Hello @kartik, Add this to the page that ...READ MORE
Hello, You need to set the error mode ...READ MORE
Hello @kartik, I have a codeigniter version for ...READ MORE
Hello @kartik, This worked for me: $cmd = "ping ...READ MORE
Hello @kartik, Try this: <?php echo "http://" . $_SERVER['SERVER_NAME'] ...READ MORE
Since Composer works with the current working ...READ MORE
Hello, Something like: SELECT id, email, IF(active = 1, ...READ MORE
Hello @kartik, If you're using PDO, use PDO::lastInsertId. If you're ...READ MORE
Hello @kartik, Use this: echo '<pre>'; var_dump($_SESSION); echo '</pre>'; Or you can ...READ MORE
Hello @kartik, Use the below piece of code ...READ MORE
Hello @kartik, Provided that your server is receiving ...READ MORE
Hello @kartik, Use the php_sapi_name() function. if (php_sapi_name() == "cli") { ...READ MORE
Hello @kartik, php_value upload_max_filesize 30M is correct. You will have ...READ MORE
Hello @kartik, Go to the phpMyAdmin Home page ...READ MORE
Hello @kartik, This is not a catchable fatal ...READ MORE
Hello @kartik, Works with both POST and GET ...READ MORE
Hello @kartik, You can't run PHP in .html ...READ MORE
Hello @kartik, Here is a version in a functional ...READ MORE
Hello @kartik, You access the property in the ...READ MORE
OR
Already have an account? Sign in.