$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...
-
Query from the DB to retrieve the contents. $query = "SELECT title, link, description, pubDate FROM articles LIMIT 10" ; $re...
-
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...
-
Code to validate: if (eregi('^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.([a-zA-Z]{2,4})$',$_REQUEST['email'])) { echo 'Va...
No comments:
Post a Comment