questions/web-development/php
Hello @kartik, The warnings about foregoing enclosures are ...READ MORE
Hello @kartik, There's a lot of ways. The ...READ MORE
Hello @Hitesh, Yes, you can create a database using ...READ MORE
Hii, I would use isset and empty: session_start(); if(isset($_SESSION['blah']) && !empty($_SESSION['blah'])) { ...READ MORE
Hii, Use cURL. This function is an alternative to file_get_contents. function ...READ MORE
Hello, The ./configure command is part of the compilation process ...READ MORE
Hello @kartik, This is what I'm doing now: protected ...READ MORE
Hello, Php has a function for this, just ...READ MORE
Hello @kartik, Try: if (isset($_POST['remove'])) { ...READ MORE
Hello @kartik, You need simple line of code: $input ...READ MORE
Hello @kartik, Using if( $ext !== 'gif') might not ...READ MORE
Hello @kartik, This is because a static variable ...READ MORE
Hello @kartik, edit these two lines in /etc/php.ini (or wherever ...READ MORE
Hello @kartik, The proper way would be to ...READ MORE
Hii, You can look at phpinfo() or check ...READ MORE
Hello, This single line would do that: $array = ...READ MORE
Hello @kartik, You'll be wanting to use glob() Example: $files = ...READ MORE
Hello, you can register the following code at Application ...READ MORE
Hii, Add this line inside the main index.php of codeigniter ...READ MORE
Hello @kartik, This code does the trick // Name ...READ MORE
Hello @kartik, using hidden array in model is good, but ...READ MORE
Hello @kartik, If only using IPv4: use ip2long() to convert the ...READ MORE
Hello @kartik, My script for installing an error ...READ MORE
Hello @kartik, Go to Tools->Plugins. In the Settings tab ensure that the ...READ MORE
Hello, You are looking for the extends keyword: Interface IFoo extends ...READ MORE
Hello @kartik, You are looking for the extends keyword: Interface IFoo ...READ MORE
Hello @kartik, Send the following headers before outputting ...READ MORE
Hello @kartik, Something is clearly corrupt in your ...READ MORE
Hello @kartik, Simply try this: $first = $second = ...READ MORE
Hello, Try the following code : $username='ABC'; $password='XYZ'; $URL='<URL>'; $ch = curl_init(); curl_setopt($ch, ...READ MORE
Hii, Just unset the node: $str = <<<STR <a> ...READ MORE
Hello @kartik, file_get_contents / file_put_contents will not magically ...READ MORE
Hello, You can try this, $info = pathinfo($_FILES['userFile']['name']); $ext = ...READ MORE
Hello, Try this code: function rrmdir($dir) { if (is_dir($dir)) { ...READ MORE
Hello, use this code echo '<script language="javascript">'; echo 'alert("message successfully ...READ MORE
Hello, Try: $result = curl_exec($cURL); $result = json_decode($result,true); Now you can ...READ MORE
Hello, To switch to PHP 4.4: AddHandler application/x-httpd-php4 .php To ...READ MORE
You can easily tell laravel to load ...READ MORE
Hello @kartik, It should be $_COOKIE['name'], not $_COOKIE('name') $_COOKIE is an array, ...READ MORE
Hello, Use getLastRequest. It returns the XML sent in ...READ MORE
Hello, For deleting thumbnails you have to enable ...READ MORE
Use procmail if it is installed on ...READ MORE
Hello @kartik, You can fetch the value of ...READ MORE
Hello @kartik, It works both ways - you ...READ MORE
Hello, You have to use CURL function does_url_exists($url) { ...READ MORE
Hello @kartik, In your home folder /Users/David for exmaple, you ...READ MORE
Hello @kartik, For a typical XAMPP install on ...READ MORE
Hello @kartik, With ip2long() it's easy to convert your addresses ...READ MORE
Hello, Either decode them using html_entity_decode or remove them using preg_replace: $Content ...READ MORE
Hello, Try this: <?php ob_start(); ?> <xml/> <?php $xml = ob_get_clean(); ...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.