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 19 of 19
Search took 0.00 seconds.
Search: Posts Made By: jordie
Forum: Absolute Beginners 10-01-2007, 01:53 AM
Replies: 6
Views: 3,055
Posted By jordie
Cool, I actually didn't know that! That would...

Cool, I actually didn't know that! That would probably be the better choice then :)
Forum: Tips & Tricks 09-30-2007, 06:30 PM
Replies: 22
Views: 5,239
Posted By jordie
Sorry for the double post. But I'd also like to...

Sorry for the double post. But I'd also like to add Attack 4: Malicious files through form uploads

We're discussing it in this thread. (http://www.talkphp.com/showthread.php?p=2798) Summary: Check...
Forum: Absolute Beginners 09-30-2007, 06:23 PM
Replies: 3
Views: 6,279
Posted By jordie
Cool! Nice tutorial. :) IE is kinda funny with...

Cool! Nice tutorial. :)

IE is kinda funny with how it gives it's mime types. For example it sends image/pjpeg where firefox or other browsers would just use image/jpeg. You've already got it in your...
Forum: Absolute Beginners 09-30-2007, 05:52 PM
Replies: 6
Views: 6,710
Posted By jordie
I also find it very handy to log the referrer...

I also find it very handy to log the referrer using:

$_SERVER['HTTP_REFERER']

Its great to see where your visitors come from. Though this will include internal pages. So I run a check to see if my...
Forum: Absolute Beginners 09-30-2007, 05:43 PM
Replies: 6
Views: 3,055
Posted By jordie
Okay, Well I'd just like to say I've found one...

Okay, Well I'd just like to say I've found one more function particularly useful when dealing with arrays:

array_map
A handy way to run a function on each element of an array. It saves running a...
Forum: Tips & Tricks 09-30-2007, 05:27 PM
Replies: 22
Views: 5,239
Posted By jordie
Understandable. :) Valid addresses in the mail()...

Understandable. :) Valid addresses in the mail() function do also include: "John Smith <email@example.com>"

Also, from what I've read, injection can be put into almost any mail() parameter. So if...
Forum: Tips & Tricks 09-30-2007, 05:15 PM
Replies: 8
Views: 2,553
Posted By jordie
Thats very interesting. I too thought preg_match...

Thats very interesting. I too thought preg_match would be a lot faster, so i ran your tests as well. To my surprise, I found that I got a second faster for eregi. However, this is running PHP 5.2 on...
Forum: Advanced PHP Programming 09-30-2007, 04:56 PM
Replies: 2
Views: 793
Posted By jordie
Ah ha yes, but as far as I know that requires PHP...

Ah ha yes, but as far as I know that requires PHP 5, yes? Our current minimum requirements are PHP 4.3, and I seriously had to push to get that far. (Previously it was 4.1) I would absolutely love to...
Forum: Tips & Tricks 09-29-2007, 04:36 AM
Replies: 8
Views: 2,553
Posted By jordie
Tips: Fastest PHP Code

Hey everyone!

We all know that there are some methods in PHP that are just damn slow... But there are others we don't know are slowing us down.

When it comes down to it, any speed saved is good as...
Forum: Advanced PHP Programming 09-29-2007, 04:08 AM
Replies: 2
Views: 793
Posted By jordie
I need your thoughts...

I work on an application that uses OOP heavily.

Because the classes are intermingled a lot (I'm trying to reduce this) they are stored in globals like:

$GLOBALS['MY_CLASS_NAME'] = new...
Forum: Absolute Beginners 09-29-2007, 03:52 AM
Replies: 6
Views: 3,055
Posted By jordie
Nice, simple, to the point. =) You have "part...

Nice, simple, to the point. =)

You have "part 1". This this a series about arrays or php in general?
Forum: Tips & Tricks 09-29-2007, 03:32 AM
Replies: 22
Views: 5,239
Posted By jordie
Oh and seeing as this seems to be generic php...

Oh and seeing as this seems to be generic php security thread, I'd like to add: Attack Three: Mail injection

I found this other thread by William (http://www.talkphp.com/showthread.php?t=12) that...
Forum: Tips & Tricks 09-29-2007, 03:13 AM
Replies: 22
Views: 5,239
Posted By jordie
It seems OK, only problem is with the output...

It seems OK, only problem is with the output you'll need to run html_entity_decode if you've got html in there you need to work in the browser.

In regards to my earlier post, yeah I didn't mean to...
Forum: Member Introductions 09-18-2007, 01:11 AM
Replies: 3
Views: 673
Posted By jordie
Gday

Hey all!

Thought I'd say hi here :)

I'm from Sydney, Australia. It'd be great to know if there were any others from around here too.
Forum: MySQL & Databases 09-13-2007, 11:35 AM
Replies: 7
Views: 2,083
Posted By jordie
I do understand that, but the data does need to...

I do understand that, but the data does need to be filtered. For example, I only need to count the number of items that are marked as visible. Just doing a count(*) on the entire table without...
Forum: Advanced PHP Programming 09-13-2007, 09:23 AM
Replies: 10
Views: 2,882
Posted By jordie
Wow thats really cool :) I never thought of using...

Wow thats really cool :) I never thought of using it like that! At work we're trapped at PHP4 as we need to support as many server setups as possible, so I haven't delved into much of the php5...
Forum: Tips & Tricks 09-13-2007, 09:08 AM
Replies: 22
Views: 5,239
Posted By jordie
Another note (possibly for use in the safe_sql()...

Another note (possibly for use in the safe_sql() function above, or at least in addition to), when using get/post data in a query. If you're expecting a number, e.g. a table primary index ID, then...
Forum: MySQL & Databases 09-13-2007, 08:51 AM
Replies: 7
Views: 2,083
Posted By jordie
I agree its rather handy, and I've been actually...

I agree its rather handy, and I've been actually using it in all my scripts lately, however I did find its not always the fastest. Sometimes doing 2 queries: a
select count(ID) from blah where...
Forum: Absolute Beginners 09-13-2007, 08:39 AM
Replies: 1
Views: 1,639
Posted By jordie
I suppose you could use PHP's file() function...

I suppose you could use PHP's file() function which reads in a file into an array with each line being a new element of the array.


$file_array = file('/home/mypath/file.txt');

foreach ($file_array...
Showing results 1 to 19 of 19

 

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