PHP write csv UTF-8 with BOM character
<?php
$fp = fopen('php://temp', 'w');
fputs( $fp, $bom = chr(0xEF) . chr(0xBB) . chr(0xBF) );
fputcsv($fp, ['test', 'deneme', 'örnek'], ',');
fclose( $fp );
Search for a command to run...
<?php
$fp = fopen('php://temp', 'w');
fputs( $fp, $bom = chr(0xEF) . chr(0xBB) . chr(0xBF) );
fputcsv($fp, ['test', 'deneme', 'örnek'], ',');
fclose( $fp );
No comments yet. Be the first to comment.
rsync -aHAXxv --numeric-ids -e "ssh -T -c arcfour -o Compression=no -x" user@<source>:<source_dir> <dest_dir> rsync -avP -e 'ssh -T -c aes128-ctr -o Compression=no -x' user@<source>:<source_dir> <dest_dir> https://gist.github.com/KartikTalwar/439311...
server { listen 80; server_name web.kaptan.dev; root /var/www/web; location ~ /\.git { return 404; } }
Nginx + PHP https://docs.github.com/en/developers/webhooks-and-events/webhooks/creating-webhooks git clone https://{{TOKEN}}:x-oauth-basic@github.com/ORG_ADI/REPO_ADI.git /var/www/repo chown -R www-data:www-data /var/www/repo/ <?php $ghHookIps = ...
#!/bin/bash FILENAME=file-to-split.csv HDR=$(head -1 ${FILENAME}) split -l 100 ${FILENAME} xyz n=1 for f in xyz* do if [[ ${n} -ne 1 ]]; then echo ${HDR} > part-${n}-${FILENAME}.csv fi cat ${f} >> part-${n}-${FILENAME}.csv rm...