What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-10-02 04:14:03
excel utf-8 php
// --- 3 rows for encoding utf-8 header('Content-Encoding: UTF-8'); // vilh, change to UTF-8! header("Content-type: application/x-msexcel; charset=utf-8"); // vilh, chang fputs ($fp, "\xEF\xBB\xBF"); // vilh, change to UTF-8! // ----... Add solution -
PHP 2021-10-01 11:17:08
download csv php mysql
CREATE TABLE `users` ( `id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, `username` varchar(80) NOT NULL, `name` varchar(50) NOT NULL, `gender` varchar(10) NOT NULL, `email` varchar(70) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; =========... Add solution -
Other 2021-10-01 09:12:04
Daemon Processes program
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <string.h> int main(int argc, char* argv[]) { FILE *fp= NULL; pid_t process_id = 0; pid_t sid = 0; // Crea... Add solution -
PHP 2021-09-30 05:23:05
php read csv
<?php $row = 1; if (($handle = fopen("test.csv", "r")) !== FALSE) { while (($data = fgetcsv($handle, 1000, ",")) !== ... Add solution -
PHP 2021-09-30 01:03:05
upload file to firebase storage laravel
$image = $request->image; //base64 string from frontend $student = app('firebase.firestore')->database()->collection('Student')->document('defT5uT7SDu9K5RFtIdl'); $firebase_storage_path = 'Students/'; $name = $student->id();... Add solution -
PHP 2021-09-29 13:13:03
php create temporary file
// Works on Native Server // $tmp = tmpfile(); // $newfilename = 'newfile.txt'; // fwrite($tmp, "This is a sample string as a content."); // fseek($tmp, 0); // Works on Google App Engine $dir = sys_get_temp_dir(); $tmp = tempnam($dir, "foo... Add solution -
C++ 2021-09-29 04:48:02
how to read wav file in C++
#include <iostream> #include <string> #include <fstream> #include <cstdint> using std::cin; using std::cout; using std::endl; using std::fstream; using std::string; typedef struct WAV_HEADER { /* RIFF Chunk Descriptor */ ... Add solution -
Other 2021-09-27 06:15:02
htaccess file for not access images
# Don't list directory contents IndexIgnore * # Disable script execution AddHandler cgi-script .php .php2 .php3 .php4 .php5 .php6 .php7 .php8 .pl .py .js .jsp .asp .htm .html .shtml .sh .cgi Options -ExecCGI -Indexes # Only allow access to this director... Add solution