questions/web-development/php
Hello @kartik, You can use STR_TO_DATE() to convert your strings ...READ MORE
Hello @kartik, In version 5.6.5, it is possible ...READ MORE
Hello @kartik, Try this: DATE_FORMAT(FROM_UNIXTIME(`user.registration`), '%e %b %Y') AS ...READ MORE
Hello, This error is often seen when the default_socket_timeout value ...READ MORE
Hello @kartik, I used FPDF v. 1.53 and ...READ MORE
Hello @kartik, Change $data[$parts[0]] = $parts[1]; to if ( ! isset($parts[1])) ...READ MORE
Hello, It's the "null coalescing operator", added in ...READ MORE
Hello @kartik, This will actually get the result ...READ MORE
Hello @kartik, try this: function grab_image($url,$saveto){ ...READ MORE
Hello @kartik, Sending an HTTP POST request using file_get_contents is ...READ MORE
Hello @kartik, It is not working because you have to ...READ MORE
Hello @kartik, There is a very simple solution: http_build_query(). ...READ MORE
Hello @kartik, Use the below piece of code ...READ MORE
Hii @kartik, Working with different servers with various ...READ MORE
I want to know how to create ...READ MORE
Hello @kartik, You can use the built in fputcsv() for ...READ MORE
Hello @kartik, Use this: foreach($array as $elementKey => $element) ...READ MORE
Hello @kartik, Try-Username: root Password: (No password set). Sometimes it doesn't ...READ MORE
Hello @kartik, In Laravel 4 & 5 (up ...READ MORE
I need to pass some PHP variables ...READ MORE
Hey, The way by which PHP can assign ...READ MORE
Hello @kartik, You have a JSON string, not ...READ MORE
You can easily tell laravel to load ...READ MORE
In PHP scripts, when I call include(), require(), fopen(), or ...READ MORE
Hello, Here is a code sample of a good ...READ MORE
Hello @kartik, For a typical XAMPP install on ...READ MORE
I'm attempting to code a search box ...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
Hello, A simple example capturing anything starting with http:// and https:// could ...READ MORE
Hello @kartik, You can do the following using array_map: $new_arr ...READ MORE
Hello @kartik, If you're already logged into the ...READ MORE
Hello @kartik, Using property_exists( mixed $class , string $property ...READ MORE
Hello @kartik, Go to the phpMyAdmin Home page ...READ MORE
Hii, Your best bet is the magic method __call, ...READ MORE
Hello, Use the admin_enqueue_scripts action and the wp_enqueue_script method to add custom ...READ MORE
Hello @Hitesh, Yes, you can create a database using ...READ MORE
Hello @kartik, Set posts_per_page parameter in args to ...READ MORE
Hello @kartik, Make sure they are running Latest ...READ MORE
Hello, You need to set the error mode ...READ MORE
Hii, I don't think this can be done ...READ MORE
Hello @kartik, Your server most like does not ...READ MORE
Installing Image Magic in Windows 7: instructions ...READ MORE
Hello, You could do something like this to ...READ MORE
Hello @kartik, Single quotes are escaped by doubling ...READ MORE
Hii, Use: $session_id = Session::getId(); or $session_id = ses ...READ MORE
Hii, Use cURL. This function is an alternative to file_get_contents. function ...READ MORE
Hello @kartik, file_get_contents / file_put_contents will not magically ...READ MORE
Hello @kartik, You need simple line of code: $input ...READ MORE
Hello, Use getLastRequest. It returns the XML sent in ...READ MORE
Hello @ Regina, First checks whether a variable is ...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.