NameSilo

Need help quick!!!

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

ammo

VIP Member
Impact
13
Im using this code i just made when some adds a site, it sends it to the php file and its saves it to a .txt file. perfect. Except i need it to put each new entry on a new line, but i dont know how, can anyone help?

Code:
<?php
$input = $_POST["site"];


$fp = fopen( "sites.txt" , "a" );
fwrite( $fp, $input );

fclose( $fp );

echo "done, thanks for your contribution to our site!";
?>

I need this asap. can anyone help!
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Easiest way would be to append a newline char to it:

PHP:
$input = $_POST["site"]."\n";
 
0
Close
Yeah just got that from a tutorial, cheers anyway!
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back