questions/web-development/php
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
Hello @kartik, Use SERVER_NAME. echo $_SERVER['SERVER_NAME'] ...READ MORE
Hello, Try this without regular expressions: <?php ...READ MORE
Hii, Edit the php.ini file: change extension_dir = "ext" into extension_dir = "D:\php\ext" (please write ...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, ou can use php_ini_loaded_file() Taken from php.net: $inipath = ...READ MORE
Hii, I don't think this can be done ...READ MORE
You can use isset function: if(isset($_GET['id'])) { ...READ MORE
Hii, Your best bet is the magic method __call, ...READ MORE
Use phpseclib, a pure PHP, SSH implementation. An example: <?php include('Net/SSH2.php'); $ssh ...READ MORE
Hello @kartik, The problem is that the package ...READ MORE
Hello @kartik, The PHP and the HTML should ...READ MORE
Hello @kartik, You can use instanceof: if ($pdo instanceof PDO) ...READ MORE
Hello @kartik, I used FPDF v. 1.53 and ...READ MORE
Hello @kartik, In Ubuntu for install imap use sudo ...READ MORE
Hello @kartik, Try below code snippet if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) ...READ MORE
The PHP and the HTML should each ...READ MORE
Hello @kartik, You have to modify the php.ini ...READ MORE
Hello @kartik, file_put_contents() does not create the directory structure. ...READ MORE
Hello @kartik, The right way is this one: <script ...READ MORE
Hello @kartik, Try using batch file Open notepad type php -S ...READ MORE
Hello @kartik, If you only have 2 keys ...READ MORE
Hello @kartik, You can use the built in fputcsv() for ...READ MORE
Hello @kartik, You have to use br when ...READ MORE
Hello @kartik, Try this: preg_replace('/\\?.*/', '', $str) Hope ...READ MORE
Hello @kartik, Use this SQL command: ALTER USER 'mysqlUsername'@'localhost' ...READ MORE
Hello @kartik, This will unset all of the ...READ MORE
Hello @kartik, __CLASS__ always returns the name of the ...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.