[PHP] Re:[PHP] dreading OOP

2003-01-21 Thread Sukrit
>>>>> "Larry" == Larry Brown <[EMAIL PROTECTED]> writes:

Larry> places.  However, my mind apparently works different and I
Larry> keep trying to relate the OOP structure to what I already
Larry> know which equates an object to a function.  I am resolving

This happens a lot with me too :) 

Larry> to purchase a book dedicated to instruction in the inns and
Larry> outs of OOP.  Specifically at it relates to PHP would be
Larry> great but my emphasis is towards something that teaches
Larry> someone that is stubborn in his reliance on previously
Larry> learned methods.  I hope this makes sense and I'm not alone
Larry> on this. :) Any suggestions would be greatly appreciated!

i am having a hard time with OOP too. i did buy a book Object Oriented
Analysis and Design Andrew Haigh. Well, it doesn't have PHP but it's
otherwise very lucid and clear. It also covers UML. Haven't read much
of it till now but i think it might help you.

Learning to think in terms of object is really diffucult imho, for
someone who is still stuck in the older procedural paradigm like
us. It'll take time. 

Wishing us all OO enlightenment :)
regards
sukrit


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




[PHP] setcookie function

2003-01-23 Thread Sukrit
Hi listers,

I have some webspace on a Unix server running apache. Things look like
this there:

Path to dir with files - /home/username/public_html/
URL - www.somesite.net/~username

setcookie("id",$randval,time()+3600,"Q1","Q2",0);

What do I plug into Q1 and Q2? I want to set cookie for only my part
of the site and not the whole site.

regards
sukrit


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