|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Writing to file --> Please critique my code...
Hi all,
I'm fairly new to PHP code. And I would like experts' help in writing efficient code. Following is a form, once filled, it writes configuration file, which in turn I'll use to include in file(s). PHP Code:
I look forward and welcome comments, critiques and suggestions... Thankx in advance, Arthur |
|
#2
|
|||
|
|||
|
Bind all your data you want to write out the file pointer and only call the fputs() function once.
Another thing I would do is completely seperate the PHP code from the HTML code, making the data more readable...
__________________
~ Joe Penn We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set? Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you. |
|
#3
|
|||
|
|||
|
Hi jpenn,
Quote:
Q: How would I do it? This tutorial is interesting. However, I couldn't use the function-method. Thankx in advance, Arthur Last edited by arthaus : February 10th, 2003 at 07:57 AM. |
|
#4
|
|||
|
|||
|
PHP Code:
|
|
#5
|
|||
|
|||
|
Hi Joe Penn,
Thankx. And I really appreciate your efforts. I applied your suggestions. And It works perfect. Slowly I'm building/learning creating a dynamic web site, with browser-based editing management. Regards, Arthur |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Writing to file --> Please critique my code... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|