[PHP] Writing new code vs. re-writing someone else's code

2004-12-21 Thread Eakin, W
Hello,
   This question could be seen as a general programming question, but 
because PHP is what I know best, I'll ask it here.

A good friend of mine is the person who got me more interested in 
programming as a career. She's a professional COBOL programmer, and 
works for a large bank. She once told me that 75% of her time was spent 
going over and rewriting/repairing old code that she didn't write, and 
only 25% writing new code. From what I know about COBOL, it seems that 
it might need more rewriting than other languages, because of all the 
built up old code. But as I look forward to the day when I can work as a 
full-time PHP coder, I wonder. The question is, how much of your time 
(you, the professional PHP coder reading this), is spent 
rewriting/repairing old code vs. writing new code. Although this is a 
PHP list, and my question is in regards to PHP, if you want to give me 
your opinion on this same question in regards to other languages you've 
programmed in, I wouldn't mind.

thanks,
William
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] a question about the PHP manual

2004-12-09 Thread Eakin, W
Hello,
   As I'm studying, and learning, PHP, I use certain resources again 
and again. A few books I've bought, some web sites, this mailing list, 
and the PHP manual. I've taken the often repeated 'RTFM' to heart, and I 
attempt to google or RTFM before considering a post to the list with a 
question, but now I have a question about the manual itself.
I've noticed that most of the replies to the questions on this list, 
when they refer to a part of the manual,  point to the same few sections 
over and over. Such as arrays, strings, sessions, objects, and a few others.
My question is this, when I'm reading the manual, is just that I should 
be concentrating on a few sections (and if so, which?), or should I be 
giving equal attention to all the sections, including some (I suppose) I 
might never use.

Thoughts?
thanks,
William
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Problems running PHP.

2004-11-22 Thread Eakin, W
snip
?php
// variables para capturar desde la orderform
$tireqty = $HTTP_GET_VARS['tireqty'];
$oilqty = $HTTP_GET_VARS['oilqty'];
$sparkqty = $HTTP_GET_VARS['sparkqty'];
?
 

/snip
snip

I am sure that this code works because I tried it on
a server who is running php 4.0, I know that in php
5.0.2, I can use $_POST and $_GET instead of
$HTTP_GET_VARS or $HTTP_POST_VARS. But, I have tried
them and they are not working.
So, I hope you can help me to fix it, because I
really want to learn how to program with PHP.
Best Regards,
 Jose
 

/snip
Hello Jose,
   You may have already tried this, but have you checked your php.ini 
file to see if you have

register_globals = Off
If you don't, change it to 'Off', and try your code again.
William
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Images problem

2004-11-17 Thread Eakin, W
Phpu wrote:
If i have 2 images:
$im1 = imagecreate (100, 100); 
$white = ImageColorAllocate ($im1, 255, 255, 255);

$im2 = imagecreate (50, 50); 
$black = ImageColorAllocate ($im2, 0, 0, 0);

How can i put $im2 over $im1 and result one single image? Is there a 
function to do this?
Thank You
 

this looks like what you need
http://www.php.net/manual/en/function.imagecopymerge.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php