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 10 of 10
Search took 0.00 seconds.
Search: Posts Made By: Ross
Forum: Absolute Beginners 09-09-2008, 06:59 PM
Replies: 15
Views: 1,597
Posted By Ross
I don't use hash because it just looks ugly to me...

I don't use hash because it just looks ugly to me :-)
Forum: Absolute Beginners 09-03-2008, 12:19 PM
Replies: 15
Views: 1,597
Posted By Ross
In Java, Javadoc (the equivalent of PHPdoc) uses...

In Java, Javadoc (the equivalent of PHPdoc) uses /** */ comments for Javadoc comments and /* */ for plain comments.

I tend to use a /** */ when doing a multiline comment, a /* */ on an line comment...
Forum: MySQL & Databases 09-03-2008, 12:15 PM
Replies: 1
Views: 1,036
Posted By Ross
In the PHP.net manual methods are shown with a...

In the PHP.net manual methods are shown with a double colon/scope-resolution-operator (the Paamayim Nekudotayim) and properties are shown with an arrow.

For...
Forum: General 07-28-2008, 11:13 AM
Replies: 5
Views: 632
Posted By Ross
I'd go for something like this: public function...

I'd go for something like this:

public function replace_while($name, Array $data)
{
if(strstr('<% beginwhile:' . strtolower($name) . ' %>', $this->template) && strstr('<% beginwhile:' ....
Forum: General 07-18-2008, 08:06 PM
Replies: 7
Views: 744
Posted By Ross
It's still a poor way of doing it (and I don't...

It's still a poor way of doing it (and I don't think it's supported in PHP5) - no errors should be shown on a production site anyway.

Just use php.ini or error_reporting to set E_STRICT and E_ALL on.
Forum: Absolute Beginners 07-18-2008, 08:04 PM
Replies: 6
Views: 907
Posted By Ross
It's a frontend thing - PHP only handles server...

It's a frontend thing - PHP only handles server side requests, you're looking for some sort of JavaScript to use the onclick="" attribute. You could always use AJAX with onclick to call a PHP file.
Forum: TalkPHP Developer Team 07-16-2008, 09:42 PM
Replies: 18
Views: 1,300
Posted By Ross
Coding Standards

We need to make a decision on this before any code is written - and we all want to get started.

Below is my natural way of coding - there will almost certainly be parts you disagree on and will want...
Forum: Advanced PHP Programming 07-14-2008, 04:51 PM
Replies: 2
Views: 664
Posted By Ross
I woukld prefer it all in the __constructor, like...

I woukld prefer it all in the __constructor, like so:

$select = new x3Database_Select($database_conn, '*', 'tbl_name', array( 'user_id' => '2', 'active' => '1'), 0, 30);

And then return results in...
Forum: TalkPHP Developer Team 07-05-2008, 04:06 PM
Replies: 138
Views: 5,104
Posted By Ross
I have a model I've been working on that breaks...

I have a model I've been working on that breaks out of restrictive usergroups and is much more flexible - it also 'masks' a user depending on their rights to show them as an administrator or another...
Forum: Absolute Beginners 06-03-2008, 01:47 PM
Replies: 3
Views: 960
Posted By Ross
The easiest method is to use a function called...

The easiest method is to use a function called get_browser (http://uk3.php.net/manual/en/function.get-browser.php).
Showing results 1 to 10 of 10

 

All times are GMT. The time now is 05:09 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