| | |
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 |
Tag cloud for PHP
# .htaccess 5.2.10 ajax apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date directory display dissertation download dynamic echo email error file files folder form forms function functions google href htaccess html image images include insert integration ip java javascript joomla ldap legislation limit link login loop mail memberships menu mlm mod_rewrite multiple mysql mysqlquery oop open paypal pdf persist php problem query radio random recursion regex remote script search server sessions sms soap sockets source space sql syntax system table tutorial update upload url validation validator variable video web xml youtube





