Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
PHP site modification
Name: Spinal Date: October 23, 2004 at 12:26:45 Pacific OS: Unix Based CPU/Ram: Irrelevant
Comment:
Hello! I am coding a site that has a section with articles on it. Every now and then, the owner wants to be able to log-into an admin section and modify these articles. I think php should be able to do this, on the lines of the article being included in a external file, say "article1" <text format> and and a <? include 'article1'; ?> for the body of the page. The html formatting can be done outside as it doesn't need to change. My main problem is creating the sript for the administrator page, it needs to: a- read the article1 file (and any other file necessary b-allow the user to modify (maybe in forms?) c-save the changes to the article1 file
Name: Spinal Date: October 23, 2004 at 16:37:47 Pacific
Reply:
What I think im asking, is.. - what script opens and reads a file - what script closes a file - what script writes (Saves) a file - what script deletes a file - what script creates a file
Thanks!
0
Response Number 2
Name: Khalid Date: October 24, 2004 at 02:13:13 Pacific
Be aware that the storage of data in files isnt real save, unless you store it in protected directories. If you have the opportunity to use a database, it is far more suitable for you situation.
0
Response Number 3
Name: Spinal Date: October 25, 2004 at 12:13:05 Pacific
Reply:
Thanks! I'll do my best to use PHP file functions; setting up a database on our servers is a real pain in the neck! There are forms on forms to fill! Michele
Summary: Hello, everyone. I am taking over development duties on a small website that was done in PHP. I do not know PHP, and don't have the time to learn it before the launch deadline. I want to convert mos...
Summary: it's not that simple, the ?id=main/news is called "query" to a processor inside the file (index.php in this case). this is a sample processor on top of index.php <?php if (isset ($_GET['id']) && fi...
Summary: I am about to get started on a .php site. I have dreamweaver 8 but according to the php tutorial, for local developement, I need .php package, apache, and mySql. I am about to install all 3. My quest...