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 >_<...

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.