Jump to content

Form -> Config.php


Cell0518

Recommended Posts

Yes php can write/create and delete files on the server. You'll want to look at the following functions if you want to write something to file:
- [a href=\"http://uk2.php.net/manual/en/function.fopen.php\" target=\"_blank\"]fopen[/a] - open a file
- [a href=\"http://uk2.php.net/manual/en/function.fread.php\" target=\"_blank\"]fread[/a] - read contents of a file
- [a href=\"http://uk2.php.net/manual/en/function.fwrite.php\" target=\"_blank\"]fwrite[/a] - write contents to file

For a quick example of how to write data to a file check out the example for fwrite function (linked above)

In order for these functions to function well make sure the file(s) have the correct CHMOD permissions (you can set these in an FTP client).
Link to comment
Share on other sites

Thanks for the quick reply. I know that's probably an "over asked" question, but I just couldn't seem to locate an answer. I guess I wasn't generalizing enough. (is that spelled right? [img src=\"http://www.phpfreaks.com/forums/style_images/1/folder_post_icons/icon1.gif\" border=\"0\" alt=\"IPB Image\" /] ) I'll take a look into it.

Thanks again,
Chris
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.