questions/web-development/php
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
Hello @kartik, php_value upload_max_filesize 30M is correct. You will have ...READ MORE
Hello @kartik, If you're using PDO, use PDO::lastInsertId. If you're ...READ MORE
Hello @kartik, This is not a catchable fatal ...READ MORE
Hello @kartik, Use the php_sapi_name() function. if (php_sapi_name() == "cli") { ...READ MORE
Hello @kartik, I found the answer: $mail->AddEmbeddedImage('img/2u_cs_mini.jpg', 'logo_2u'); and on ...READ MORE
Hello @kartik, I have a codeigniter version for ...READ MORE
Hello @kartik, Works with both POST and GET ...READ MORE
Hello @kartik, Here is a version in a functional ...READ MORE
Hello @kartik, You can't run PHP in .html ...READ MORE
Hello @kartik, This can be nearly done by setting a ...READ MORE
Hello, Something like: SELECT id, email, IF(active = 1, ...READ MORE
Hello, You need to set the error mode ...READ MORE
Hello @kartik, it seems that your JSON is ...READ MORE
Hello @kartik, You can change Apaches httpd.conf by ...READ MORE
Hello @kartik, Go to the phpMyAdmin Home page ...READ MORE
Hello @kartik, Another option is to explicitly mark ...READ MORE
Hello @kartik, This is not possible in PHP. All ...READ MORE
Hello @kartik, PHP mail function can send email ...READ MORE
Hello @kartik, Change $data[$parts[0]] = $parts[1]; to if ( ! isset($parts[1])) ...READ MORE
Hello @kartik, This worked for me: $cmd = "ping ...READ MORE
Since Composer works with the current working ...READ MORE
Hello @kartik, You cannot check it from the ...READ MORE
Hello @kartik, You access the property in 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.