$file_name = "data.txt";
$fp = fopen ( $file_name, 'r' );
if ($fp) {
$data = fread ( $fp, filesize ( $file_name ) );
fclose ( $fp );
$file_name = "ftp://user:pass@ftp.somedomain.com/home/user/$file_name";
$fp = fopen ( $file_name, 'wt' );
if ($fp) {
echo 'writing data';
fwrite ( $fp, $data );
fclose ( $fp );
}
}
Subscribe to:
Post Comments (Atom)
Customizing the Search form - Drupal
To change the label text and text inside the search box and the text on the submit and changing the Submit button image, you can use the fo...
-
require('fpdf.php'); class PDF extends FPDF { //Page header function Header() { //Logo $this->Image('logo.p...
-
Drupal for Firebug module : This module is a helper module for a customized Firefox plugin that displays Drupal debugging and SQL query i...
-
Linux Crontab Format MIN HOUR DOM MON DOW CMD Example for scheduling a job for 10th June 08:30 AM 30 08 10 06 * /home/ramesh/full-backu...
No comments:
Post a Comment