About 11,900,000 results
Open links in new tab
  1. PHP short-ternary ("Elvis") operator vs null coalescing operator

    Can someone explain the differences between ternary operator shorthand (?:) and null coalescing operator (??) in PHP? When do they behave differently and when in the same way (if that …

  2. How to call a PHP function on the click of a button

    I have created a page called functioncalling.php that contains two buttons, Submit and Insert. I want to test which function is executed when a button gets clicked. I want the output to appear …

  3. How to write into a file in PHP? - Stack Overflow

    A very important sidenote: file_put_contents () is a memory nightmare in comparison to fopen (). I love to use it but when handling large files you want to be able to "stream" data into it. PHP will …

  4. syntax - What does '<?=' mean in PHP? - Stack Overflow

    Note that the ; is redundant; as the answers suggest this short-tag expands to an echo with a semicolon added to the end, as per the php documents.

  5. How to use PHP to connect to sql server - Stack Overflow

    I want to use PHP to connect to sql server database. I installed xampp 1.7.0 (php 5.2) and SQLSRV20. I've added the extensions in php.ini and I get this error: Warning: mssql_connect …

  6. How can I write to the console in PHP? - Stack Overflow

    Set the PHP error_log variable in the .ini file to write to that file Open the file in Windows File Explorer and open a preview pane for it Use the error_log('myTest'); PHP command to send …

  7. command line - Running PHP in Windows: how to fix "PHP …

    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/ext\php_curl.dll' - The specified module could not be found. in Unknown on line 0

  8. Upgrading PHP in XAMPP for Windows? - Stack Overflow

    219 I would like to know how you upgrade PHP in Xampp for Windows? I tried to download the latest PHP version from the main PHP site but when I check (phpinfo) I still get that the …

  9. php - How to enable zip.dll in xampp - Stack Overflow

    14 To enable zip.dll download php_zip.dll download it from here extract php_zip.dll to C:\xampp\php\ext edit php.ini and add a new line extension=php_zip.dll restart apache This …

  10. PHP, cURL, and HTTP POST example? - Stack Overflow

    Can anyone show me how to do a PHP cURL with an HTTP POST? I want to send data like this: username=user1, password=passuser1, gender=1 To www.example.com I expect the cURL to …