TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Showing results 1 to 9 of 9
Search took 0.00 seconds.
Search: Posts Made By: Measter
Forum: Advanced PHP Programming 12-26-2008, 10:32 PM
Replies: 20
Views: 1,768
Posted By Measter
I understand that whitespace after the ?> php tag...

I understand that whitespace after the ?> php tag can cause problems with header stuff, you checked that?
Forum: General 12-24-2008, 12:59 AM
Replies: 25
Views: 1,767
Posted By Measter
I also had a lot of trouble understand OOP, even...

I also had a lot of trouble understand OOP, even after reading several tutorials. I only really started to understand how classes worked after I wrote one.
I suggest you get stuck in with something...
Forum: General 12-11-2008, 12:13 AM
Replies: 9
Views: 1,486
Posted By Measter
I don't use the proper Hungarian Notation, but...

I don't use the proper Hungarian Notation, but something similer:

iVar contains an integer
fVar contains a float
sVar contains a string
aVar contains an array
oVar is an object
rVar is some sort of...
Forum: Advanced PHP Programming 11-17-2008, 11:36 AM
Replies: 6
Views: 1,693
Posted By Measter
You would flip a variable every time the loop is...

You would flip a variable every time the loop is run. For example:

$flipper = false;

foreach($array as $something)
{
$flipper = !$flipper;

$echo '<div class="someclass' ....
Forum: Show Off 11-14-2008, 02:37 PM
Replies: 3
Views: 1,240
Posted By Measter
Actually I was already doing if (something) { ...

Actually I was already doing

if (something)
{
do something
}

for the brackets, but realised through reading here that doing it that way is easier to read.
For the variable names, I started...
Forum: General 11-14-2008, 12:31 PM
Replies: 7
Views: 800
Posted By Measter
If the keys are named rather than numbered, you...

If the keys are named rather than numbered, you could do a for loop, and output the counter.
Forum: Show Off 11-13-2008, 09:03 PM
Replies: 3
Views: 1,240
Posted By Measter
XHTML Strict Table Class

I mentioned this class in my intro thread, and thought I'd put it here for you lot to rip apart.

<?php
/**
* Table Class
*
* Will create an XHTML 1.0 Strict compliant table.
*
*...
Forum: Member Introductions 11-13-2008, 11:51 AM
Replies: 4
Views: 745
Posted By Measter
I have a few months of PHP experience, just...

I have a few months of PHP experience, just something I do as a hobby. I've created a couple classes, a simple table creation class, and a template class, so am somewhat comfortable with OOP.

I hope...
Forum: Member Introductions 11-13-2008, 11:15 AM
Replies: 4
Views: 745
Posted By Measter
'allo 'allo

Hello all, come across this site on stumbleupon a couple weeks ago, and figured I'd join in all the fun.
Showing results 1 to 9 of 9

 

All times are GMT. The time now is 08:38 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design