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.
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?
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?
> 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.
polymorphism and the lot.
Try [URL]http://www.devshed.com/c/a/PHP/[/URL]
> 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.
If you find any more good links, could ya post them in here please, Panda?
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
*/
}