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 168
Search took 0.01 seconds.
Search: Posts Made By: maZtah
Forum: General 11-22-2009, 11:15 AM
Replies: 2
Views: 751
Posted By maZtah
You should take a look at this article:...

You should take a look at this article: http://www.phpro.org/tutorials/Introduction-to-PHP-PDO.html#10
Forum: General 11-19-2009, 08:13 AM
Replies: 2
Views: 733
Posted By maZtah
Thanks tony. But; how would I make the...

Thanks tony. But; how would I make the multidimensional array from the mysql results?

I did something like this, but this works only for 2 levels.


public function...
Forum: General 11-18-2009, 01:25 PM
Replies: 2
Views: 733
Posted By maZtah
Recursive arrays

Hi guys.

I have a MySQL table 'categories'. Every category has a 'parent_id' field. All the main elements have parent_id=0.

What I want is to make an multidimensional array which I can loop through...
Forum: Advanced PHP Programming 08-20-2009, 07:54 AM
Replies: 2
Views: 8,922
Posted By maZtah
Take a read on this one:...

Take a read on this one: http://nl.php.net/manual/en/function.file.php !
Forum: General 07-15-2009, 09:50 AM
Replies: 2
Views: 583
Posted By maZtah
Threat subdomain as root

I have a domain where I want to use subdomains, but all via files in the root.

I've added a wildcard (*) A dns record on my domain so all subdomains link to the root per default.

Now I want, f.e.,...
Forum: Advanced PHP Programming 07-09-2009, 10:20 AM
Replies: 3
Views: 725
Posted By maZtah
I have a dedicated server. I will look up on...

I have a dedicated server. I will look up on ffmpeg.org. Thanks!
Forum: Advanced PHP Programming 07-07-2009, 02:03 PM
Replies: 3
Views: 725
Posted By maZtah
Video uploading and converting to flv

Hi guys!

For a website I'll be creating, I want a user to be able to upload videos.

I will use JW FLV Media Player (http://www.longtailvideo.com/players/jw-flv-player/) to play the movies on the...
Forum: Python to PHP Translation 07-02-2009, 09:28 AM
Replies: 34
Views: 2,824
Posted By maZtah
wHY cANT yOU wRITE a wHOLE sENTENCE wITH cAPSLOCK...

wHY cANT yOU wRITE a wHOLE sENTENCE wITH cAPSLOCK oN?
Forum: Python to PHP Translation 06-29-2009, 07:30 AM
Replies: 34
Views: 2,824
Posted By maZtah
Great forum! :)

Great forum! :)
Forum: General 06-06-2009, 10:03 AM
Replies: 16
Views: 630
Posted By maZtah
We're all looking forward to your writings,...

We're all looking forward to your writings, Village Idiot!
Forum: Tips & Tricks 06-05-2009, 07:39 AM
Replies: 11
Views: 2,572
Posted By maZtah
Nice article! But, somehow I'm still afraid to...

Nice article!

But, somehow I'm still afraid to go with the Zend Framework. I don't know why really. Maybe we should make a list with starters tutorials.

Anyways, thanks for this post!
Forum: The Lounge 06-05-2009, 07:35 AM
Replies: 10
Views: 698
Posted By maZtah
Congratulations on the new favicon! :)

Congratulations on the new favicon!

:)
Forum: General 05-26-2009, 08:17 AM
Replies: 4
Views: 506
Posted By maZtah
These are the steps to achieve this: Download...

These are the steps to achieve this:


Download a PHP to PDF class (FPDF) (http://www.fpdf.org/en/download.php)
Retrieve the data from the Database...
Forum: General 05-20-2009, 10:04 AM
Replies: 6
Views: 3,938
Posted By maZtah
What I did now instead of the global defined...

What I did now instead of the global defined LOCAL variable, I made a Registry class where I save global variables. Then i pass the Registry class to every other class which might need the global...
Forum: General 05-19-2009, 07:39 PM
Replies: 1
Views: 469
Posted By maZtah
You can define a variable on every page. Then...

You can define a variable on every page. Then check within the login.php file if the variable is defined before.

So on every page:


define('ACCESS', TRUE);


Then on the login.php page:
Forum: General 05-18-2009, 08:36 PM
Replies: 6
Views: 3,938
Posted By maZtah
Thanks for the feedback. The first file which...

Thanks for the feedback. The first file which gets loaded is init.php:


<?php
// Check if we are local
if ($_SERVER['SERVER_ADDR'] == '127.0.0.1')
{
define('LOCAL', TRUE);
}
else
Forum: General 05-18-2009, 03:33 PM
Replies: 6
Views: 3,938
Posted By maZtah
I've made a little update to the database class,...

I've made a little update to the database class, here it is:

Again, tips and suggestions are more than welcome!


<?php

class Database
{
private static $m_pInstance;
Forum: Absolute Beginners 05-15-2009, 06:04 AM
Replies: 13
Views: 881
Posted By maZtah
I'm also using the ternary operator alot. I think...

I'm also using the ternary operator alot. I think it's very well readable. I'm using it alot for HTML output like this:


<li<?php echo ($i % 4 == 0 ? '" class=first" ' : ''); ?>>
Forum: General 04-28-2009, 04:27 PM
Replies: 6
Views: 3,938
Posted By maZtah
Singleton PDO Database class, tips/suggestions?

Hi all,

This is a singleton PDO Database class I wrote. Do you have any tips/suggestions?


<?php

class Database
{
private static $m_pInstance = NULL;
Forum: MySQL & Databases 04-10-2009, 11:46 AM
Replies: 7
Views: 898
Posted By maZtah
I would also store the date/time as a unix...

I would also store the date/time as a unix timestamp (integer).
Forum: XHTML, HTML, CSS 03-26-2009, 09:57 PM
Replies: 39
Views: 3,418
Posted By maZtah
allworknoplay: You really should take a look at...

allworknoplay:

You really should take a look at this html/css tutorial (going from beginner to advanced):

http://www.htmldog.com/guides/

All the basics will be explained to you, and thus you'll...
Forum: XHTML, HTML, CSS 02-16-2009, 07:56 PM
Replies: 39
Views: 3,418
Posted By maZtah
I will come back with a reply tomorrow! ;-)

I will come back with a reply tomorrow! ;-)
Forum: Advanced PHP Programming 02-12-2009, 07:07 PM
Replies: 8
Views: 3,372
Posted By maZtah
I'm using the method Wildhoney...

I'm using the method Wildhoney mentioned.


define('SALT', 'SD9isd9034K#J$Ldfdf9I_DLKAMSD;l=');

$szPassword = sha1(SALT . $_POST['password']);


Then for every website I'm setting another SALT.
Forum: General 02-12-2009, 07:03 PM
Replies: 5
Views: 2,211
Posted By maZtah
Kohana (http://www.kohanaphp.com) is the big...

Kohana (http://www.kohanaphp.com) is the big brother of CI. If you're starting to using a MVC framework I would recommend using Kohana over CI.
Forum: XHTML, HTML, CSS 02-12-2009, 02:57 PM
Replies: 39
Views: 3,418
Posted By maZtah
Oh no!! Using CSS really has much benefits over...

Oh no!! Using CSS really has much benefits over using tables.

Read up on this "article" to get convinced: http://www.hotdesign.com/seybold/index.html
Showing results 1 to 25 of 168

 

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