questions/web-development/php
Hello @kartik, Use this: curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'PATCH'); should do it. Hope ...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, For the URI query use urlencode/urldecode; for ...READ MORE
Hello @kartik, Provided that your server is receiving ...READ MORE
Hello @kartik, Here's a full example of what ...READ MORE
Hello @kartik, Add this to the page that ...READ MORE
Hello @kartik, To evaporate the warning, you can ...READ MORE
Hello @kartik, addslashes() isn't fully adequate, but PHP's mssql ...READ MORE
Hello @kartik, If your PHP server allows url ...READ MORE
Hello @kartik, Using password_hash is the recommended way to store ...READ MORE
Hello @kartik, Instead of using HTML comments (which have ...READ MORE
Hello @kartik, In Laravel 4 & 5 (up ...READ MORE
Hello @kartik, If you put an Iframe in ...READ MORE
Hello @kartik, This should work fine $arr = array( ...READ MORE
Hello @kartik, Try this php code. <?PHP function getUserIP() { ...READ MORE
Hello @kartik, Since you're using XAMPP, uncomment the ...READ MORE
Hello @kartik, Using property_exists( mixed $class , string $property ...READ MORE
Hello @kartik, the php command offers two switches to ...READ MORE
Hello @kartik, There is now a php artisan view:clear command ...READ MORE
Hello @kartik, Go to the file to include ...READ MORE
Hello @kartik, The $GLOBALS array can be used instead: $GLOBALS['a'] = ...READ MORE
Hello @kartik, You can do the following using array_map: $new_arr ...READ MORE
Hello, if you are going to store the ...READ MORE
Hello @kartik, The following should help realpath — Returns canonicalized ...READ MORE
Hello @kartik, You can use the URL facade ...READ MORE
Hello @kartik, Use an equals (=) sign in ...READ MORE
Hello @kartik, $_GET is not a function or language ...READ MORE
Hello @kartik, You can pass INI settings with ...READ MORE
Hello @kartik, You could download a free GeoIP ...READ MORE
Hello @kartik, Replace < with < and& ...READ MORE
Hello @kartik, This should do what you're looking ...READ MORE
Hello @kartik, 8388608 bytes is 8M, the default ...READ MORE
Hello @kartik, If you're hosting on someone else's ...READ MORE
Hello @kartik, The following enables all errors: ini_set('display_startup_errors', 1); ini_set('display_errors', ...READ MORE
Hello @kartik, Try var_export You may want to check out var_export — ...READ MORE
Hello @kartik, CURL-less method with PHP5: $url = 'http://server.com/path'; $data ...READ MORE
Hello @kartik, pathinfo() $path_info = pathinfo('/foo/bar/baz.bill'); echo $path_info['extension']; // "bill" Hope ...READ MORE
Hello @kartik, This error message gets triggered when anything is ...READ MORE
Hello @kartik, Using array_search() and unset, try the following: if (($key = ...READ MORE
Hello @kartik, Error occurred here was due to ...READ MORE
Hello @kartik, Have a look at $_SERVER['REQUEST_URI'], i.e. $actual_link = ...READ MORE
Hello @kartik, Use the header() function to send an HTTP Location header: header('Location: '.$newURL); Contrary to ...READ MORE
Hello @kartik, Here is a sample code: <?php $sql="select ...READ MORE
Hello @kartik, Here is a sample: <?php // Snippet from ...READ MORE
Hello @kartik, Use this: foreach($array as $elementKey => $element) ...READ MORE
Hello @kartik, Try this: <?php echo "http://" . $_SERVER['SERVER_NAME'] ...READ MORE
Hello @kartik, Use array_unique(): Example: $array = array(1, 2, 2, 3); $array ...READ MORE
Hello @kartik, Put $_SESSION['login_time'] = time(); into the previous authentication ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.