Computing.Net > Forums > Web Development > PHP site modification

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

Reply to Message Icon

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

Anyone care to help me?
Michele



Sponsored Link
Ads by Google

Response Number 1
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
Reply:

You can use the file functions in PHP:
http://nl3.php.net/manual/en/ref.filesystem.php

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: PHP site modification

Convert PHP Site to Static HTML www.computing.net/answers/webdevel/convert-php-site-to-static-html/4295.html

index.php?id=main/news Doesnt Work www.computing.net/answers/webdevel/indexphpidmainnews-doesnt-work/2370.html

.php and windows www.computing.net/answers/webdevel/php-and-windows/2307.html