Tuesday, November 4, 2008

Where to code : Appending the upload content

I could use a suggestion:
I'm to the stage where I'm trying to get my image path, username and caption to write to a txt file. I'm able to print those variables to screen but not to the file. I'm more than certain it isn't a file permission thing because I created an else in the loop that would state an error but the code isn't getting to that point.

Right now my result is a blank screen and I know it is due to the highlighted code in the following image.

Is this the correct place to try to code in a fwrite?
I figured if the image file could be moved to also write to the txt file in the same move_uploaded_file function but maybe that is incorrect.

Does anyone have some incite?

1 comment:

gpspacey said...

Seems like you forgot to comment out the closing bracket right before the grey block.

Also you'll find it helpful to be more diligent on indenting the brackets correctly.

-Webdev student Summer 2007