Jump to content

Found this but it doesnt want to work. any other suggestions?


Zyse

Recommended Posts

<?php
$fn = "file.txt";
$file = fopen($fn, "a+");
$size = filesize($fn);
$space.= "\n";
if($_POST['addition']) fwrite($file, $_POST['addition']);

$text = fread($file, $size);
fwrite ($file, $space);
fclose($file);
?>
<form action="<?=$PHP_SELF?>" method="post">
<input type="text" name="addition"/><br/>
<input type="submit"/>
</form>

 

Its sapoosed to add a line to a file save it, then I cant find a script to grab a url from a line in that fil, its so damn frusterating.

 

if anyone knows of a current script similar or any basis I can shoot from for ,

 

text box for digits(no limit on amount) that will place it in url format such as www.url.com/account=xxx which xxx = the digits entered

put that as a line into a text file

 

then anotehr button that opens a random line(url) from the files into a frame to the right.

 

I havent even been able to get any working code that will write a line to a file on my server >_<...

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.