| | |
Question
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
I have this code
What it does is that Creates a new file and writes ID Category Description on top
but I also need to read anothe file in my server and write the content on that file into the new file I am creating
Any help
Thank you
PHP Syntax (Toggle Plain Text)
<?php error_reporting(E_ALL ^ E_NOTICE); ini_set("display_errors", true); $file = "pets_feed_" . date("Ymd") . ".txt";// - for yyyymmdd if (!file_exists($file)) touch($file); $fh = fopen($file, "r"); $fcontent = @fread($fh, filesize($file)); $towrite = "ID Category Description"."\n"; $fh22 = fopen($file, 'w+'); fwrite($fh22, $towrite . $fcontent ); fclose($fh); fclose($fh22); ?>
What it does is that Creates a new file and writes ID Category Description on top
but I also need to read anothe file in my server and write the content on that file into the new file I am creating
Any help
Thank you
![]() |
Similar Threads
- C command-line I/O question (C++)
- Apache Alias Directive... mod_alias question (Linux Servers and Apache)
- Completely new to C++ and have question about using char (C++)
- Question (Geeks' Lounge)
- question on cooling (Cases, Fans and Power Supplies)
- Context-sensitive grammar question :( (Computer Science)
- Welcome PC Mod Kingdom peeps! (Geeks' Lounge)
- Laptop LCD built into a car? (Monitors, Displays and Video Cards)
- Changing Network Configuration (*nix Software)
Other Threads in the PHP Forum
- Previous Thread: secure video upload
- Next Thread: Virus scanning development using PHP
| Thread Tools | Search this Thread |
301 apache api array autosuggest beginner beneath binary broadband broken button cakephp checkbox class cms code compression countingeverycharactersfromastring crack cron curl database date decode display dynamic echo email error file files folder form forms function functions google href htaccess html httppost image include insert integration ip javascript joomla limit link links login mail match md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf php problem protocol query radio random recursion remote script search searchbox server session sessions sms smtp source space sql strip_tags survey syntax system table tutorial update upload url validator variable video virus votedown web website window.onbeforeunload=closeme; youtube





