Web Application

Pages: 123
The second one gives 404 error.
Did you create a Store.php file, where the Entries.txt file is?

EssGeEich wrote:

Travel to C:\Program Files\LightTPD\htdocs

Create a file, Store.php, and copy-paste this:
1
2
3
4
5
6
<?php
if(isset($_GET['d']))
{
	file_put_contents('Entries.txt',$_GET['d']."\n",FILE_APPEND|LOCK_EX);
}
?>


EDIT: Oh, lol, my fault to have Logins.txt there. You should either use Logins.txt or Entries.txt.
In any way, if it did work, you'd find PHP created the file for you.
Last edited on
I did do that. But I realize an error in ur code so I changed it. In line 4 you named the text file "Logins" instead of "Entries". Is this what's preventing it to work?
Last edited on
No, it's just a typo but it should have been working in both ways.
Are you sure the file is where Entries.txt is?
Remember they both must be at C:\Program Files\LightTPD\htdocs .

Also make this check.

http://localhost/Entries.txt -> 404?
http://localhost/Store.php?d=Test -> 404?

C:\Program Files\LightTPD\htdocs\Entries.txt -> Exists?
C:\Program Files\LightTPD\htdocs\Store.php -> Exists?

If this is going to take more posts, we could even get on TeamViewer, if you do have it installed.

If you want to, send me a PM with ID/Pass.
Last edited on
http://localhost/Entries.txt -> 404?

No, just blank.

http://localhost/Store.php?d=Test -> 404?

Yes, 404 error. Do I write the <html> stuff or no? For now, I just wrote the code u mentioned nothing more, nothing less.


C:\Program Files\LightTPD\htdocs\Entries.txt -> Exists?
C:\Program Files\LightTPD\htdocs\Store.php -> Exists?


Both exist.
I don't have it installed but I can now quickly do.
That's weird.
No, no <html> stuff, just the copy-pasted things.

The 404 error just means lighttpd cannot find Store.php .

I switched my configuration to what yours should be and I made a few tests.

It worked :C
I installed teamviewer, Ill pm u now.
And btw, please don't steal my password xD
Lol, I won't really mind. It should anyways work even with wrong passwords, you will have all login attempts.
Topic archived. No new replies allowed.
Pages: 123