Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-27-2003, 05:03 AM   #1
Registered User
Join Date: Oct 2001
Location: CFA2h (respect the HEX)
Posts: 48
Default PHP/Write to TXT file help??

Ok.... I am just trying to get the BARE minimums working here....until I fully undestand..(then Im sure I would add more advanced things like HTML , error checking..etc..etc..)

But what I have is an input text field. with the variable name of "input".

A blank text file called "posts.txt"

and I have a button that calls my PHP script

$fp = fopen("posts.txt", "a");
fputs($fp, $textboxname);

//(*I actually have $input in the PHP script..I have that to show my "logic" behind it)
I can NOT get anything to be written to the text file.
They are in the same directory. I have CHMOD'd the text file so it can be written too (666).

What am I mising here? Does the text file need something in it? Is there more that I need to have in the PHP script?

whispers is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 05:43 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.