What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-03-27 19:50:05
mongodb uploading csv php
<?php $mongo = new Mongo("mongodb://192.168.1.7:27017"); $collection = $mongo->test->cartoons; $row = 1; $handle = fopen(dirname(Yii::app()->request->scriptFile).'/images/importcsv/upload.csv', "r"); while (($data... Add solution -
PHP 2022-03-21 10:35:07
php csv auto download
<?php header('Content-Type: text/csv'); header('Content-Disposition: attachment; filename="sample.csv"'); $list = array ( array('aaa', 'bbb', 'ccc', 'dddd'), array('123', '456', '789'), array('"aaa"', '"bbb"')... Add solution -
C++ 2022-03-19 22:20:17
check file exist cpp
#include <sys/stat.h> #include <unistd.h> #include <string> #include <fstream> inline bool exists_test0 (const std::string& name) { ifstream f(name.c_str()); return f.good(); } inline bool exists_test1 (const std::str... Add solution -
PHP 2022-03-16 19:55:22
set count down CLI php
<?php echo "Continue? (Y/N) - "; $stdin = fopen('php://stdin', 'r'); $response = fgetc($stdin); if ($response != 'Y') { echo "Aborted.\n"; exit; } $seconds = 5; for ($i = $seconds; $i > 0; --$i) { echo $i; usleep(... Add solution -
PHP 2022-03-11 21:45:02
PHP Read Single Character - fgetc()
<?php $myfile = fopen("webdictionary.txt", "r") or die("Unable to open file!"); // Output one character until end-of-file while(!feof($myfile)) { echo fgetc($myfile); } fclose($myfile); ?> Add solution -
Other 2022-03-11 05:15:05
oracle spool blob to file
CREATE OR REPLACE PROCEDURE retrieve_lob_to_file(temp_blob in BLOB, file_path in varchar2, file_name in varchar2) IS data_buffer RAW (32767); position INTEGER := 1; filehandle utl_file.file_type; error_number NUMBER; error_me... Add solution -
PHP 2022-02-28 22:15:14
php open csv
<?php $row = 1; if (($handle = fopen("test.csv", "r")) !== FALSE) { while (($data = fgetcsv($handle, 1000, ",")) !== ... Add solution
Best helpers
Ranking is empty