Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > php program i made

php program i made
Thread Tools
kzo
Fresh-Faced Recruit
Join Date: Apr 2001
Status: Offline
Reply With Quote
Apr 18, 2001, 08:38 PM
 
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
Reply With Quote
May 2, 2001, 09:01 PM
 
Perhaps a link? Its hard to judge, based on your description.
     
kzo  (op)
Fresh-Faced Recruit
Join Date: Apr 2001
Status: Offline
Reply With Quote
May 3, 2001, 01:47 AM
 
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
Reply With Quote
May 3, 2001, 06:01 PM
 
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.
     
kzo  (op)
Fresh-Faced Recruit
Join Date: Apr 2001
Status: Offline
Reply With Quote
May 3, 2001, 10:34 PM
 
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
Reply With Quote
May 4, 2001, 07:34 PM
 
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...
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:08 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2