|
Author |
Message |
keerthi
|
 |
Post subject: php | Posted: Wed Jun 29, 2016 7:07 am |
|
Joined: Wed Jun 29, 2016 6:59 am Posts: 1
|
php
Write down the code for save an uploaded file in php.
|
|
|
|
|
|
Guest
|
 |
Post subject: Re: php | Posted: Thu Jun 30, 2016 12:01 am |
|
|
$filename = "/home/user/guest/newfile.txt"; $file = fopen( $filename, "w" ); if( $file == false ) { echo ( "Error in opening new file" ); exit(); } fwrite( $file, "This is a simple test\n" ); fclose( $file );
|
|
|
|
|
LatlonTechnologies
|
 |
Post subject: Re: php | Posted: Thu Jun 30, 2016 12:03 am |
|
Joined: Wed Jun 29, 2016 11:59 pm Posts: 1
|
Code: $filename = "/home/user/guest/newfile.txt"; $file = fopen( $filename, "w" ); if( $file == false ) { echo ( "Error in opening new file" ); exit(); } fwrite( $file, "This is a simple test\n" ); fclose( $file );
|
|
|
|
|
admin
|
 |
Post subject: Re: php | Posted: Thu Jun 30, 2016 5:02 am |
|
Site Admin
Joined: Mon Aug 03, 2009 8:43 am Posts: 104
|
LatlonTechnologies wrote: $filename = "/home/user/guest/newfile.txt"; $file = fopen( $filename, "w" ); if( $file == false ) { echo ( "Error in opening new file" ); exit(); } fwrite( $file, "This is a simple test\n" ); fclose( $file );
You are using same ip class as the original poster. Nice marketing strategy, but doesn't work all the time.
_________________ VPSie - SSD VPS servers in AMS-IX, LINX, DE-CIX https://vpsie.com
|
|
|
|
|
|
Users browsing this forum: No registered users and 0 guests |
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
 News Site map SitemapIndex RSS Feed Channel list
|
|