questions/web-development/php
Hello @kartik, addslashes() isn't fully adequate, but PHP's mssql ...READ MORE
Hello @kartik, Find your php.ini and look for XDebug. Set xdebug ...READ MORE
Hello @kartik, This can be nearly done by setting a ...READ MORE
Hello @kartik, edit these two lines in /etc/php.ini (or wherever ...READ MORE
Hello, Considering that you have $replaced = array('1' => ...READ MORE
Hello, To switch to PHP 4.4: AddHandler application/x-httpd-php4 .php To ...READ MORE
Hii, If you don't have access to php.ini, adding ...READ MORE
Hello, Try this : echo exec('ping -n 1 -w ...READ MORE
Hello @kartik, Don't pass the files into the ...READ MORE
Hii @kartik, Working with different servers with various ...READ MORE
Hello @kartik, Follow these steps to reset password ...READ MORE
Hello @kartik, Use array_unique(): Example: $array = array(1, 2, 2, 3); $array ...READ MORE
Hello @kartik, Instead of method: "post" you need to use type: ...READ MORE
Hello @kartik, Use the strpos function: $haystack = "foo bar baz"; $needle ...READ MORE
Hello @kartik, This will actually get the result ...READ MORE
Hello @Hitesh, Yes, you can create a database using ...READ MORE
Hello @kartik, With ip2long() it's easy to convert your addresses ...READ MORE
Hello @kartik, In Ubuntu for install imap use sudo ...READ MORE
Hello @kartik, Since you're using XAMPP, uncomment the ...READ MORE
Hello @kartik, it seems that your JSON is ...READ MORE
You can easily tell laravel to load ...READ MORE
Hello @kartik, Laravel 5.7 introduced the following functionality: Auth::routes(['register' ...READ MORE
Since Composer works with the current working ...READ MORE
Hii @kartik, Try to implement this: @if (env('APP_ENV')!='Production') Enviroment Test @endif Hope ...READ MORE
Hello @kartik, max_allowed_packet is set in mysql config, not ...READ MORE
Hello @viven , This should be a simple fix ...READ MORE
Hello, Try this: $content = utf8_encode(file_get_contents('http://example.com/rss.xml')); $xml = simplexml_load_string($content); Hope it ...READ MORE
hey, The code below shows a simple way ...READ MORE
Hello @kartik, Test different ports: $wait = 1; // ...READ MORE
Hello @kartik, Try: if (isset($_POST['remove'])) { ...READ MORE
Hello @kartik, Here is a sample code: <?php $sql="select ...READ MORE
Hey @kartik, The first thing we will do ...READ MORE
Hello @kartik, file_get_contents / file_put_contents will not magically ...READ MORE
Hello @kartik, mime_content_type() is deprecated, so you won't ...READ MORE
Aws lightsail wordpress increase upload size limit ...READ MORE
Hello @kartik, To evaporate the warning, you can ...READ MORE
Hello @kartik, you can do SELECT STR_TO_DATE(yourdatefield, '%m/%d/%Y') FROM ...READ MORE
Hii, Use: $session_id = Session::getId(); or $session_id = ses ...READ MORE
Hello @kartik, Error occurred here was due to ...READ MORE
Hii, The easiest way to do this: class MyController ...READ MORE
Hello @kartik, Have a look at $_SERVER['REQUEST_URI'], i.e. $actual_link = ...READ MORE
Hello @kartik, Use the ampersand & to glue variables together: $url ...READ MORE
Hello, If your whole JavaScript code gets processed ...READ MORE
Hello @kartik, This worked for me: $cmd = "ping ...READ MORE
Use phpseclib, a pure PHP, SSH implementation. An example: <?php include('Net/SSH2.php'); $ssh ...READ MORE
Hello @kartik, Use the below piece of code ...READ MORE
Hello @kartik, Use this: echo '<pre>'; var_dump($_SESSION); echo '</pre>'; Or you can ...READ MORE
Hello @kartik, Add this to the page that ...READ MORE
Hello @kartik, It's trying to run it as ...READ MORE
Hello @kartik, If only using IPv4: use ip2long() to convert the ...READ MORE
OR
Already have an account? Sign in.