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 38
Search took 0.08 seconds.
Search: Posts Made By: Kalle
Forum: Advanced PHP Programming 08-07-2009, 09:51 PM
Replies: 11
Views: 737
Posted By Kalle
Simply, deactivate the horrible safe_mode or...

Simply, deactivate the horrible safe_mode or disable the open_basedir configuration as the warning says :)
Forum: General 07-02-2009, 03:00 PM
Replies: 9
Views: 1,525
Posted By Kalle
Actually we didn't deprecate create_function() (I...

Actually we didn't deprecate create_function() (I however suggested it that we did on IRC), the create_function is horrible, what it internally does is to eval() the code and create a runtime...
Forum: Javascript, AJAX, E4X 04-24-2009, 08:37 AM
Replies: 22
Views: 1,907
Posted By Kalle
You only have to escape the type of quotation...

You only have to escape the type of quotation mark that you are using to define the string with like Salathe said, so you need to escape " if you use double quotation marks for surrounding a string,...
Forum: Absolute Beginners 04-23-2009, 01:08 AM
Replies: 3
Views: 698
Posted By Kalle
I would suggest abit different database...

I would suggest abit different database structure.

Make a language table that contains all the languages available:

CREATE TABLE `languages`
(
`id` INT NOT NULL auto_increment,
`title`...
Forum: Javascript, AJAX, E4X 04-22-2009, 06:10 PM
Replies: 5
Views: 776
Posted By Kalle
DHTML is an rather old term for HTML that may...

DHTML is an rather old term for HTML that may change during browsing, for example an event that occurs when you click a button which may spawn something. But in theory yes then AJAX can be classified...
Forum: Javascript, AJAX, E4X 04-21-2009, 10:43 PM
Replies: 15
Views: 894
Posted By Kalle
But Javascript variables may contain $ (its...

But Javascript variables may contain $ (its called a sigil, PHP and PERL's sigil is $ for example. But in Javascript you may choose to prefix with a sigil or not) if you want, the following is...
Forum: Script Giveaway 04-18-2009, 04:42 PM
Replies: 21
Views: 3,901
Posted By Kalle
No thats just because the method is meant for an...

No thats just because the method is meant for an expression, and true/false are both booleans
Forum: Absolute Beginners 04-18-2009, 07:43 AM
Replies: 10
Views: 735
Posted By Kalle
Paamayim Nekudotayim means "Double colon" in...

Paamayim Nekudotayim means "Double colon" in hebrew.

You cannot call a property like that in versions prior to PHP 5.3, in 5.3 and newer it will call the constants named 'starting_no' and...
Forum: Script Giveaway 04-17-2009, 10:55 PM
Replies: 21
Views: 2,127
Posted By Kalle
yes escape $_SERVER['PHP_SELF'] like:...

yes escape $_SERVER['PHP_SELF'] like: $_SERVER['PHP_SELF'] = htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES);

=)
Forum: Advanced PHP Programming 04-15-2009, 02:07 AM
Replies: 10
Views: 736
Posted By Kalle
I would rather use a set of procedural functions...

I would rather use a set of procedural functions for debugging than a class, instead of making a class where almost all methods are better served static (from my point of view).

All you need is a...
Forum: Advanced PHP Programming 04-14-2009, 01:24 PM
Replies: 10
Views: 736
Posted By Kalle
error_get_last() or register your own error...

error_get_last() or register your own error handlers (set_error_handler & set_exception_handler) which pops all the errors onto a stack and then list all registered errors upon debugging shutdown.
Forum: Advanced PHP Programming 03-31-2009, 07:27 AM
Replies: 23
Views: 1,654
Posted By Kalle
If you want to generate PDF's in PHP, I would...

If you want to generate PDF's in PHP, I would recommed to use Haru, instead of FPDF, its well documented on php.net and is better supported, plus its not only available as a PHP binding.

PHP...
Forum: Absolute Beginners 11-22-2008, 06:16 AM
Replies: 11
Views: 1,092
Posted By Kalle
Hmm your parameters on that iplog function...

Hmm your parameters on that iplog function doesn't really make sense as you're overriding them just below.

Also you may need to know that some of the _SERVER values such as HTTP_CACHE_CONTROL,...
Forum: Script Giveaway 09-27-2008, 03:05 AM
Replies: 0
Views: 4,562
Posted By Kalle
imagecreatefrom() function

This simple CVS Diff (against PHP 5.3 Alpha 2) will add a new function to PHP's gd extension called "imagecreatefrom", it sort of works like getimagesize(), but it just creates an image instance...
Forum: Tips & Tricks 09-12-2008, 11:59 PM
Replies: 3
Views: 1,261
Posted By Kalle
The code was written for debugging proposes where...

The code was written for debugging proposes where it sometimes is needed to check the values of private/protected properties to make sure everything is in place.
Forum: Tips & Tricks 09-11-2008, 08:27 PM
Replies: 3
Views: 1,261
Posted By Kalle
Accessing data in protected and private properties

Today I decided to look though a small trick by Derick Rethans on how to access private properties in PHP and I ended up making a function to collect Reflection-like information and wanted to share...
Forum: Absolute Beginners 09-11-2008, 07:48 AM
Replies: 6
Views: 1,871
Posted By Kalle
You can load COM objects using the com...

You can load COM objects using the com extension:
PHP: COM - Manual (http://www.php.net/com)

For DLL's the only thing I see is to use the w32api extension to use the Windows API on a dll:
PHP:...
Forum: Absolute Beginners 09-02-2008, 10:50 PM
Replies: 3
Views: 2,499
Posted By Kalle
Copy the C:\wamp\mysql\data\ folder as a backup,...

Copy the C:\wamp\mysql\data\ folder as a backup, unininstall MySQL from C:\ and reinstall it on M:\ and then copy the data folder into it =P ?
Forum: The Lounge 08-26-2008, 12:35 AM
Replies: 6
Views: 1,058
Posted By Kalle
It seems to be up now =)

It seems to be up now =)
Forum: Absolute Beginners 08-19-2008, 08:32 PM
Replies: 4
Views: 899
Posted By Kalle
It might also be worth to notice that $this is a...

It might also be worth to notice that $this is a reserved keyword and cannot be overridden when called inside a method.

$this is only available when a method is called from an intialized object, and...
Forum: Advanced PHP Programming 08-18-2008, 02:25 AM
Replies: 7
Views: 3,345
Posted By Kalle
I personally use a mix of the Singleton and...

I personally use a mix of the Singleton and Registry pattern with some property overloading.

Example:

<?php
final class Project
{
protected static $instance;
protected static $objects =...
Forum: Script Giveaway 07-26-2008, 12:11 PM
Replies: 1
Views: 914
Posted By Kalle
Simple pixelate + negative functions

So over the last few months I've developed a few helper functions for some image related stuff I've been working on using PHP and GD and thought I would share them...

The filters simply introduces a...
Forum: Absolute Beginners 07-22-2008, 09:55 AM
Replies: 5
Views: 1,035
Posted By Kalle
Are you working with PHP4 since you use a...

Are you working with PHP4 since you use a function called file_put_contents() cause in PHP5 theres one called that (=
Forum: TalkPHP Developer Team 07-06-2008, 07:45 AM
Replies: 138
Views: 5,152
Posted By Kalle
I think it was regrading it under IIS which uses...

I think it was regrading it under IIS which uses either ISAPI, FCGI or CGI. So under the ISAPI there was a product called ISAPI_rewrite or something and i guess we could use PATHINFO or something on...
Forum: TalkPHP Developer Team 07-06-2008, 04:50 AM
Replies: 138
Views: 5,152
Posted By Kalle
Hey VI I do not agree with the limited Windows...

Hey VI

I do not agree with the limited Windows support if thats the case then I will be on the "Windows Port" part of the team, supporting cross platforms is an absolute must aswell as supporting...
Showing results 1 to 25 of 38

 

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