 |
 |
php program i made
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Apr 2001
Status:
Offline
|
|
I've made a program that allows the full editing of text on a web site for this non-profit org. It was my first time experimenting with OOP so it took around 40 hours, but I think it would be about 15 if I had to do it again. I'm charging the organization next to nothing, but I was just curios what others would charge for this type of custom app?
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Sep 2000
Status:
Offline
|
|
Perhaps a link? Its hard to judge, based on your description.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Apr 2001
Status:
Offline
|
|
I would have a link, but I've run into a problem with my server. They only support php 4.0.3 and I've been testing on my computer with 4.0.4. I used the get_defined_vars() function to use concatenated strings for variable names. I create variables named txt1, txt2, txt3, etc. And then use that function to to access the variables. Does anybody know another way to concatenate variables?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2001
Status:
Offline
|
|
Originally posted by kzo:
I would have a link, but I've run into a problem with my server. They only support php 4.0.3 and I've been testing on my computer with 4.0.4. I used the get_defined_vars() function to use concatenated strings for variable names. I create variables named txt1, txt2, txt3, etc. And then use that function to to access the variables. Does anybody know another way to concatenate variables?
You might want to check out the documentation at php.net
Pay attention to the string section in the beginning.
Also, now that you know how powerful PHP is, get some good books on it. I like Php Developers Cookbook by Sams. It takes on a problem-based focus and shows you best practices that you can incorporate into your scripts immediately.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Apr 2001
Status:
Offline
|
|
I believe I can fix it now. I emailed someone for help and they said to use the $HTTP_POST_VARS(). Sometimes I can't think of the simplest things. I havn't been using that array cause you can just use the form field name to refer to them in PHP4. Like $txt instead of $HTTP_POST_VARS('txt'). I do have PHP3 Programming Browser-Based Applications, but I should probably get a better more comprehensive book. However, php.net has great documentation and I refer to it all the time.
Thank you,
kzo
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2001
Status:
Offline
|
|
Originally posted by kzo:
I believe I can fix it now. I emailed someone for help and they said to use the $HTTP_POST_VARS(). Sometimes I can't think of the simplest things. I havn't been using that array cause you can just use the form field name to refer to them in PHP4. Like $txt instead of $HTTP_POST_VARS('txt'). I do have PHP3 Programming Browser-Based Applications, but I should probably get a better more comprehensive book. However, php.net has great documentation and I refer to it all the time.
Thank you,
kzo
Out of sight.. out of mind.. heh heh heh.. I have a script with nothing but...
<?php
phpinfo();
?>
..in it just to remind me of what var's are usually available... i often end up saying "DOH!" after I realize that the solution to my problem is sitting under my nose. I have the uncanny nack of making everything harder than it really is...
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|