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