questions/web-development/php
Hii, You can pass an associative array to http_build_query() and ...READ MORE
I am using json_encode($data) on an array ...READ MORE
Hello @kartik, You need to use the -p flag to ...READ MORE
Hii @kartik, Try to implement this: @if (env('APP_ENV')!='Production') Enviroment Test @endif Hope ...READ MORE
Hii, You can look at phpinfo() or check ...READ MORE
Hello @kartik, file_put_contents() does not create the directory structure. ...READ MORE
Hello @kartik, Use this: $sth = mysqli_query($conn, "SELECT ..."); $rows ...READ MORE
Hello @kartik, Try this code below: <?php if (has_post_thumbnail( $post->ID ...READ MORE
Hello @kartik, It should be $_COOKIE['name'], not $_COOKIE('name') $_COOKIE is an array, ...READ MORE
A cookie is often used to identify ...READ MORE
Hello @kartik, Use the strpos function: $haystack = "foo bar baz"; $needle ...READ MORE
Hello @kartik, go to this address : /app/Providers/AppServiceProvider.php and append ...READ MORE
Hello @kartik, With ip2long() it's easy to convert your addresses ...READ MORE
Hello @kartik, Set the name in the form ...READ MORE
Hello @kartik, Go to Tools->Plugins. In the Settings tab ensure that the ...READ MORE
Hello @kartik, The warnings about foregoing enclosures are ...READ MORE
Hello @kartik, Instead of method: "post" you need to use type: ...READ MORE
Hello @kartik, Error occurred here was due to ...READ MORE
Hello @kartik, You could have a single key ...READ MORE
Hello @kartik, You don't appear to have write ...READ MORE
Hello @kartik, Don't pass the files into the ...READ MORE
instead of: return traitcalc($v); use this: ...READ MORE
Hello @kartik, Try this way: $memcachedConfig = array("host" => ...READ MORE
I am trying to connect MySQL Database ...READ MORE
Hello @kartik, This worked for me: $cmd = "ping ...READ MORE
Hello @kartik, This will actually get the result ...READ MORE
Hello @kartik, For the URI query use urlencode/urldecode; for ...READ MORE
PHP is compiled to byte code before ...READ MORE
Hello, The fastest and easiest way to skip ...READ MORE
You can use isset function: if(isset($_GET['id'])) { ...READ MORE
Hello @viven , This should be a simple fix ...READ MORE
Hello, PHPMailer uses Exceptions. Try the following code: require_once '../class.phpmailer.php'; $mail = new ...READ MORE
Hello. These are configurable variables in php.ini: ; with ...READ MORE
Hello @kartik, Instead of using HTML comments (which have ...READ MORE
Hello, Something like: SELECT id, email, IF(active = 1, ...READ MORE
Hello @kartik, Use COALESCE: DECLARE @Names VARCHAR(8000) SELECT @Names = ...READ MORE
Hello @kartik, You can use this function: function str_lreplace($search, ...READ MORE
Hello @kartik, Here is a sample: <?php // Snippet from ...READ MORE
Hello, Try this code: function rrmdir($dir) { if (is_dir($dir)) { ...READ MORE
Hello @kartik, To install SOAP in PHP-7 run ...READ MORE
Hello, To switch to PHP 4.4: AddHandler application/x-httpd-php4 .php To ...READ MORE
Hii, Add this line inside the main index.php of codeigniter ...READ MORE
Hello @kartik, The problem is that the package ...READ MORE
Hello @kartik, Have a look at $_SERVER['REQUEST_URI'], i.e. $actual_link = ...READ MORE
Hello @saima , Before you extract values from $_POST ,$_SESSION, ...READ MORE
Hello, When the variable is passed as value ...READ MORE
Hello, Php has a function for this, just ...READ MORE
Hello @kartik, $_GET is not a function or language ...READ MORE
Hello @kartik, You upgraded to PHP 7, and ...READ MORE
Hey @kartik, The first thing we will do ...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.