What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-18 02:31:10
read file using php
/* In php to read file first you have to use 'fopen' method to open the file after that you perform different operation on it. Like Reading file, Writing file etc. TO read file data we have to use 'fread' method. */ <?php $myfile = fopen("read... Add solution -
Other 2021-11-17 10:26:05
fgetcsv utf8_encode
$csvFile = fopen('file/path', "r"); fgetcsv($csvFile); while(($row = fgetcsv($csvFile, 1000, ";")) !== FALSE){ for ($c=0; $c < count($row); $c++) { echo iconv( "Windows-1252", "UTF-8", $row[$c]); ... Add solution -
PHP 2021-11-14 20:20:08
php get final redirect url
/** * get_redirect_url() * Gets the address that the provided URL redirects to, * or FALSE if there's no redirect. * * @param string $url * @return string */ function get_redirect_url($url){ $redirect_url = null; $url_parts = @parse_url(... Add solution -
C 2021-11-11 08:44:21
copy file content from one file to other in c
#include <stdio.h>#include <stdlib.h> main(){ char ch, source_file[20], target_file[20]; FILE *source, *target; printf("Enter name of file to copy\n"); gets(source_file); source = fopen(source_file, "r"); if(... Add solution -
C 2021-11-10 13:27:16
c read word from file
#include <stdio.h> #include <stdlib.h> int main(int argc, char * argv[]) { // This program reads a file from its arguments and prints a word by word. Additionally, it counts the words in the file. if (argc < 2) return 1; char * f... Add solution -
PHP 2021-11-10 04:24:21
set_magic_quotes_runtime php 7
if (version_compare(PHP_VERSION, '5.3.0', '<')) { set_magic_quotes_runtime(0); } else { ini_set('magic_quotes_runtime', 0); } $magic_quotes = get_magic_quotes_runtime(); $file_buffer = fread($fd, filesize($path)); $file_buffer = $this->EncodeStr... Add solution -
C 2021-11-08 04:14:15
how to ascii art in c
#include <stdio.h> #define MAX_LEN 128 void print_image(FILE *fptr); int main(void) { char *filename = "image.txt"; FILE *fptr = NULL; if((fptr = ... Add solution
Best helpers
Aethon
+5
Jiimms
+5
Kiran
+5
Rob Boersma
+5
Felix Jordan
+5
Jax frost
+5
Brocolio
+5
Trilarion
+5
Filipe Silva
+5
Philip
+5
Azil
+5
Lee Wright
+5
Hoang Speed
+5
WordLover
+5
Vkarve
+5
Tiberia
+5
Jwood54321
+5
Appy
+5
Morgan falk
+5
Shlomo
+5
SooDesuNe
+5
Geke
+5
Chelem7
+5
Kamchatka
+5
Dan Povlich
+5