GetDotted Domains

Viewing Thread:
"Good PHP OO tutorials"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Fri 20/05/05 at 10:51
Regular
"Lisan al-Gaib"
Posts: 7,093
Anyone got any good ones? Interesting ones?

The usual google search has thrown a few up, but they're all beginners level. I'm moving from a C++ OO background to PHP OO. I demand something with a little more meat on it's bones.

Can anyone help?
Fri 20/05/05 at 12:50
Regular
"Lisan al-Gaib"
Posts: 7,093
Sure, will do.

Just written a HTTP variable grabber. Might be useful to some.

call using (for example): -

(remove spaces)

index.php? CountryCode=GB &ProductCode=00215X &AccountNo=12345& WareHouseNo=11& OuterPostCode=NE11


index.php
-=-=-=-=-
require_once('cUtils.php');

$cUtils = new cUtils();

$varList = array ( 'CountryCode',
'ProductCode',
'AccountNo',
'WareHouseNo',
'OuterPostCode'
);
$gotVarList=array(); $err=NULL;
list($err, $gotVarList)=$cUtils->getHTTPVars($HTTP_GET_VARS, $varList, $gotVarList);

if ($err){
foreach ($err as $element){
echo "Error - No ".$element." passed.
";
}
} else {
foreach ($gotVarList as $element){
echo $element."
";
}
}

CUtils.php
-=-=-=-=-=

class cUtils {
/*vars
*/

/*functions
*/
function getHTTPVars($HTTP_GET_VARS,$varList,$gotVarList){
for ($n=0 ; $n < count($varList) ; $n++){
if (isset($HTTP_GET_VARS[$varList[$n]])){
$gotVarList[$n]= $HTTP_GET_VARS[$varList[$n]];
} else { $gotVarList[$n] = NULL;
}
if($gotVarList[$n] == NULL)
if (is_array($err)) array_push($err,$varList[$n]);
else $err=array($varList[$n]);
}
return array($err,$gotVarList);
}
/*End of functions
*/
}
Fri 20/05/05 at 12:28
Regular
"NULL"
Posts: 1,384
I'm quite interested in this as well - it's an area of PHP I've never really delved into before and would be useful for getting a job over summer.

If you find any more good links, could ya post them in here please, Panda?
Fri 20/05/05 at 11:51
Regular
Posts: 78
No problem.
Fri 20/05/05 at 11:48
Regular
"Lisan al-Gaib"
Posts: 7,093
Freeola wrote:
> Pandaemonium wrote:
> polymorphism and the lot.
>
> Try [URL]http://www.devshed.com/c/a/PHP/[/URL]

Hmmm, the form generator (prts 1 - 4) might do the job nicely. It's really just converting existing knowledge into the PHP snytax. Cheers! Appreciated.
Fri 20/05/05 at 11:47
Regular
Posts: 78
Pandaemonium wrote:
polymorphism and the lot.

Try [URL]http://www.devshed.com/c/a/PHP/[/URL]
Fri 20/05/05 at 11:44
Regular
Posts: 78
Hmm... thinks
Fri 20/05/05 at 11:32
Regular
"Lisan al-Gaib"
Posts: 7,093
Freeola wrote:
> Really depends on how complicated you need the tutorial to be. If
> you're just beginning at PHP-OO you might want to try
> [URL]http://poof.sourceforge.net/[/URL].

"POOF" Unfortunate name for a project. ;D

Nah, I need quite advanced stuff. polymorphism and the lot. Not via a third
party framework either. I'm fluent in C++ OO, but need to get up to speed with PHP OO quickly and painlessly.

Cheers for the link.
Fri 20/05/05 at 11:24
Regular
Posts: 78
Really depends on how complicated you need the tutorial to be. If you're just beginning at PHP-OO you might want to try [URL]http://poof.sourceforge.net/[/URL].
Fri 20/05/05 at 10:51
Regular
"Lisan al-Gaib"
Posts: 7,093
Anyone got any good ones? Interesting ones?

The usual google search has thrown a few up, but they're all beginners level. I'm moving from a C++ OO background to PHP OO. I demand something with a little more meat on it's bones.

Can anyone help?

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Very pleased
Very pleased with the help given by your staff. They explained technical details in an easy way and were patient when providing information to a non expert like me.
Top-notch internet service
Excellent internet service and customer service. Top-notch in replying to my comments.
Duncan

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.