Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Tue Jun 06, 2023 7:06 am


Author Message
keerthi
Post  Post subject: php  |  Posted: Wed Jun 29, 2016 7:07 am

Joined: Wed Jun 29, 2016 6:59 am
Posts: 1

Offline
 

php

Write down the code for save an uploaded file in php.





Top
Guest
Post  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 );


Top
LatlonTechnologies
Post  Post subject: Re: php  |  Posted: Thu Jun 30, 2016 12:03 am

Joined: Wed Jun 29, 2016 11:59 pm
Posts: 1

Offline
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 );


Top
admin
Post  Post subject: Re: php  |  Posted: Thu Jun 30, 2016 5:02 am
Site Admin

Joined: Mon Aug 03, 2009 8:43 am
Posts: 104

Offline
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


Top
Display posts from previous:  Sort by  
E-mail friendPrint view
Who is online
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
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO