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 25 of 82
Search took 0.00 seconds.
Search: Posts Made By: dschreck
Forum: Absolute Beginners 06-26-2011, 06:05 PM
Replies: 3
Views: 944
Posted By dschreck
your query needs to change: if...

your query needs to change:


if (!isset($_GET['title']) || !is_string($_GET['title'])) {
die("Missing title");
}

$title = (string)mysql_real_escape_string($_GET['title']);
$sql = "SELECT * FROM...
Forum: Absolute Beginners 07-21-2010, 09:32 PM
Replies: 1
Views: 588
Posted By dschreck
Since you're limiting them to two entries, you're...

Since you're limiting them to two entries, you're going to need some application side logic to control that.

This could be pretty simple to integrate into the user flow if you have a specific page...
Forum: Mentor's Switchboard 11-15-2009, 06:57 AM
Replies: 1
Views: 911
Posted By dschreck
[mentor] dschreck

Specialty: LAMP Development

Skills:
PHP/MySQL: 9 years, 5 professional (Current)
HTML: 12 years, 6 professional (Current)
CSS/JavaScript: 8 years, 6 professional (Current)
C/C++: 9 years, 4...
Forum: Advanced PHP Programming 11-07-2009, 07:01 AM
Replies: 2
Views: 818
Posted By dschreck
shouldn't it be: set_error_handler(array($this,...

shouldn't it be:

set_error_handler(array($this, 'handleError'));


?
Forum: Advanced PHP Programming 11-07-2009, 06:53 AM
Replies: 3
Views: 1,059
Posted By dschreck
creating custom page URL's isn't that...

creating custom page URL's isn't that complicated. You'll just need to create a lookup system of some type, and store the look ups in a DB or in MC.
Forum: MySQL & Databases 07-27-2009, 04:25 AM
Replies: 14
Views: 950
Posted By dschreck
It's pretty straight forward, just break it down...

It's pretty straight forward, just break it down into these steps:

1) Accept a posted user name

ie:


<form method='post' action='validate_username.php' name='validate_username'>
<input...
Forum: MySQL & Databases 07-27-2009, 04:17 AM
Replies: 2
Views: 613
Posted By dschreck
could always do an EAV data scheme

could always do an EAV data scheme
Forum: Advanced PHP Programming 07-15-2009, 09:30 AM
Replies: 1
Views: 2,545
Posted By dschreck
ever so quickly i came up with this...

ever so quickly i came up with this example:

SQL:

CREATE TABLE rentals (
rental_id INT unsigned NOT NULL AUTO_INCREMENT,
customer_name VARCHAR(120) NOT NULL,
phone_number VARCHAR(20),
message...
Forum: Tips & Tricks 07-03-2009, 12:47 AM
Replies: 28
Views: 2,177
Posted By dschreck
I find it scary that...

I find it scary that http://code.google.com/speed/articles/optimizing-php.html doesn't even bother to mention variable optimization with PHP Garbage Collection, which is a huge waste of cpu ticks,...
Forum: General 06-14-2009, 09:44 AM
Replies: 9
Views: 2,967
Posted By dschreck
On this topic... I have this funny feeling...

On this topic...


I have this funny feeling that PHP is in this state where people are trying to wrap their heads around the idea that PHP can scale to handle more than 1k hits per day.

A LAMP...
Forum: General 06-14-2009, 09:38 AM
Replies: 9
Views: 2,967
Posted By dschreck
1. PHP is not a truly Object-Oriented...

1. PHP is not a truly Object-Oriented Language

Is any language a true OOP language - sure, in some languages, everything is an object. But is that Object Oriented Programming?

PHP has become a...
Forum: General 06-11-2009, 09:49 AM
Replies: 11
Views: 585
Posted By dschreck
include comes back as a boolean

include comes back as a boolean
Forum: The Lounge 06-11-2009, 09:40 AM
Replies: 24
Views: 1,044
Posted By dschreck
$camelCase = 42; $arr['and_indent'] =...

$camelCase = 42;

$arr['and_indent'] = 1;
$arr['like_variables'] = 2;
$arr['as_its_easier'] = 3;
$arr['to_read'] = 4;


if($a == 1)
{
Forum: General 06-11-2009, 09:24 AM
Replies: 2
Views: 473
Posted By dschreck
serialize & db sharding.

serialize & db sharding.
Forum: MySQL & Databases 06-11-2009, 09:20 AM
Replies: 10
Views: 958
Posted By dschreck
I used to always start on the Dry Erase Board......

I used to always start on the Dry Erase Board... lately i'll just use a UML program like OmniGraffle or Visio to get the idea down. If it's something I'm going to be tinkering with a lot, i'll go...
Forum: MySQL & Databases 06-11-2009, 09:19 AM
Replies: 1
Views: 774
Posted By dschreck
very painfully. There's a few utilities that...

very painfully.

There's a few utilities that will do a gross migration. Not sure of any off of the top of my head, google should help there.

After that, you'll need to comb over it by hand and...
Forum: Tips & Tricks 06-11-2009, 09:17 AM
Replies: 5
Views: 5,884
Posted By dschreck
i dont really appreciate continuously running...

i dont really appreciate continuously running into your posts that state nothing more than a link to your own blog...
Forum: General 06-11-2009, 09:14 AM
Replies: 2
Views: 512
Posted By dschreck
There's no reason to stop apache/mysql on...

There's no reason to stop apache/mysql on prod.

If you have database migrations, you should be able to run them live, prior to pushing your code.

What i've done, is simply set the doc root on...
Forum: General 06-11-2009, 09:10 AM
Replies: 2
Views: 609
Posted By dschreck
The way i've done it in the past... this may vary...

The way i've done it in the past... this may vary depending on your server set up.

What I've done, is have a common base path for my core files.

So my CMS core may reside...

/home/cms/core

while...
Forum: TalkPHP Developer Team 06-11-2009, 08:54 AM
Replies: 4
Views: 1,033
Posted By dschreck
im not exactly sure how stackoverflow has...

im not exactly sure how stackoverflow has anything to relate to this... project...
Forum: TalkPHP Developer Team 06-11-2009, 08:42 AM
Replies: 49
Views: 3,069
Posted By dschreck
shouldn't really need a 'SQL' class, just use...

shouldn't really need a 'SQL' class, just use PDO, all you need is an extension/wrapper for your DB's

Your SQL class can't even handle multiple servers (Master(s), Slave(s)) ... not good start :/
Forum: Absolute Beginners 04-12-2009, 08:22 PM
Replies: 3
Views: 1,166
Posted By dschreck
Hah! I misread :(

Hah! I misread :(
Forum: Absolute Beginners 04-12-2009, 01:49 AM
Replies: 3
Views: 1,166
Posted By dschreck
Depends. I'd have to say though, I'd rather just...

Depends.

I'd have to say though, I'd rather just use flash for that type of board game. ActionScript 3 offers you a lot of control in flow, and the ability to create movie files for each piece....
Forum: General 04-12-2009, 01:16 AM
Replies: 8
Views: 2,880
Posted By dschreck
I agree. Lots of large sites use different...

I agree.

Lots of large sites use different languages.

YouTube uses python, Hi5 uses Java, Microsoft uses... well, you can guess.

PHP can scale just as well as those other languages. You just need...
Forum: General 03-27-2009, 10:38 AM
Replies: 25
Views: 1,771
Posted By dschreck
While I learned Java OOP before i started really...

While I learned Java OOP before i started really understanding the concepts, things didn't really click for me until PHP.

By "click" - I mean how to use OOP in a practical manner.

My advice, just...
Showing results 1 to 25 of 82

 

All times are GMT. The time now is 12:36 PM.

 
     

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