Jump to content


Photo

PHP File Uploading


  • Please log in to reply
2 replies to this topic

#1 jbehnke

jbehnke
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 25 July 2006 - 07:58 PM

I couldn't find any posts on this (this is my first visit here... hello all).

How would I go about making a site where I could either:
A)  Make an upload page that a user could upload a new .txt file to a website to change the text in a blog-type atmosphere.

For example, I have an <?php include file="/source/file.txt" ?> include in my site... is there a way I can make a page that will allow a user to just upload a new 'file.txt' to update their site?

OR

B) Can I make a form-based (Wordpress-type) page where the user could just type in an update and the PHP updates the 'file.txt' or 'file.php' file?

#2 PHPSpirit

PHPSpirit
  • Members
  • PipPip
  • Member
  • 21 posts

Posted 25 July 2006 - 09:49 PM

Read this:

http://www.php.net/f...res.file-upload

#3 AdRock

AdRock
  • Members
  • PipPipPip
  • Advanced Member
  • 911 posts

Posted 25 July 2006 - 10:20 PM

Try this:

http://www.tizag.com.../fileupload.php
If your topic has been solved, please mark the topic as SOLVED.

This helps others from identifying which topics need help still




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users