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 24 of 24
Search took 0.04 seconds.
Search: Posts Made By: cachepl0x
Forum: XHTML, HTML, CSS 05-19-2010, 06:02 PM
Replies: 5
Views: 1,305
Posted By cachepl0x
Well, I find nesting easier so I don't have to...

Well, I find nesting easier so I don't have to continuously rewrite certain things. Plus, nesting isn't the only thing in there. You get variables and functions which makes writing CSS infinitely...
Forum: XHTML, HTML, CSS 05-19-2010, 02:33 PM
Replies: 5
Views: 1,305
Posted By cachepl0x
LessCSS

I thought I would share with you all an incredibly amazing tool.

http://lesscss.org/

Basically it is a CSS compiler, that enables you to use variables, functions (mixins) and nesting inside of...
Forum: Advanced PHP Programming 12-27-2009, 06:55 AM
Replies: 20
Views: 2,107
Posted By cachepl0x
X == Horizontal, and Y == Vertical. :P

X == Horizontal, and Y == Vertical. :P
Forum: General 12-06-2009, 09:18 AM
Replies: 5
Views: 620
Posted By cachepl0x
Couldn't you use the regex to remove/convert the...

Couldn't you use the regex to remove/convert the special characters from the file name, and keep the contents of the file the same? Or is that also not what you're looking for?

Also, you could just...
Forum: General 12-06-2009, 06:45 AM
Replies: 5
Views: 620
Posted By cachepl0x
If I am reading this correctly, couldn't you just...

If I am reading this correctly, couldn't you just use a regex to remove any non alphanumeric characters?

http://www.talkphp.com/general/5142-stripping-non-alpha-numeric-characters.html...
Forum: Python to PHP Translation 12-06-2009, 03:32 AM
Replies: 4
Views: 1,005
Posted By cachepl0x
Thanks, Salathe. I wrote the original, I just...

Thanks, Salathe. I wrote the original, I just wanted to see how it would be implemented in PHP. I hadn't really used PHP's sort() function, and I am surprised at how simple it is for a sorting...
Forum: Python to PHP Translation 12-05-2009, 09:53 AM
Replies: 4
Views: 1,005
Posted By cachepl0x
Same as ET..

I need this translated, please. Any takers?

#!/usr/bin/env python
import random

def rand(n):
x = 10000000
r = [random.randint(0, x) for i in xrange(n)]

isrt(r)
Forum: Show Off 10-17-2009, 08:58 AM
Replies: 8
Views: 915
Posted By cachepl0x
That is not entirely true. If Google finds a...

That is not entirely true. If Google finds a useful Description META tag, then they will most definitely use it.
Forum: Advanced PHP Programming 10-16-2009, 11:30 AM
Replies: 19
Views: 1,540
Posted By cachepl0x
How's this for a hashing algorithm?

I was wondering. In terms of security, how is this for a hashing algorithm?

$salt = sha1('Hash');
$pass = sha1('My Password');
$hash = $pass . $salt;

for ($i = 0; $i < 10000; $i++) {
$hash =...
Forum: General 10-16-2009, 12:36 AM
Replies: 3
Views: 614
Posted By cachepl0x
Oh, no, of course not. I would never dream of...

Oh, no, of course not. I would never dream of doing something as amateurish as that.

Well, I was just wondering. No harm in curiosity.
Forum: Absolute Beginners 10-15-2009, 09:40 AM
Replies: 3
Views: 716
Posted By cachepl0x
If I am understanding you correctly, something...

If I am understanding you correctly, something like this:

<?php $loggedin = true; if (!$loggedin) { ?>

<p>Hello World!</p>

<?php } else { header("Location: failed.php"); } ?>Should work. Although,...
Forum: General 10-15-2009, 08:22 AM
Replies: 3
Views: 614
Posted By cachepl0x
Stumbled upon something here..

Well, I was looking through the PHP documentation, and I came across a neat function called parse_str. I was wondering, would it be wise to use this for storing, and using database details?

$str =...
Forum: Tips & Tricks 10-14-2009, 09:47 AM
Replies: 0
Views: 1,000
Posted By cachepl0x
Simple, bored, probably useless.

Well, I haven't had any sleep (woot 26 hours), and I found that PHP's json decode was not simple, nor clean enough for my taste, so I made an incredibly simple, probably useless function for...
Forum: The Lounge 10-14-2009, 09:37 AM
Replies: 9
Views: 674
Posted By cachepl0x
I was going to start this for you, but I forgot....

I was going to start this for you, but I forgot. Haha. Happy 20th, Tan-Chan.
Forum: General 10-13-2009, 10:33 PM
Replies: 5
Views: 661
Posted By cachepl0x
You forgot an "s" on line three in "$string."...

You forgot an "s" on line three in "$string." ;)

Nice find.
Forum: The Lounge 10-12-2009, 07:20 AM
Replies: 8
Views: 912
Posted By cachepl0x
It is extremely important. I remember the first...

It is extremely important. I remember the first time that I started a large project, I did not bother to plan it out, and it ended horribly for me, and my eyes.
Forum: The Lounge 10-12-2009, 07:15 AM
Replies: 15
Views: 1,049
Posted By cachepl0x
I use Ubuntu, and Arch. I use Ubuntu mostly, for...

I use Ubuntu, and Arch. I use Ubuntu mostly, for reasons unknown, and it does well.
Forum: Tips & Tricks 10-12-2009, 05:11 AM
Replies: 4
Views: 1,154
Posted By cachepl0x
I thought this was cute

My friend proposed to his now fiance with this script, and I thought it was cute. He first showed her the output, she was excited, but thought it was lack-luster. Then, he showed her the source, and...
Forum: Advanced PHP Programming 10-07-2009, 10:04 PM
Replies: 27
Views: 122,863
Posted By cachepl0x
It was an example, brosef.

It was an example, brosef.
Forum: The Lounge 10-07-2009, 09:56 PM
Replies: 16
Views: 1,435
Posted By cachepl0x
Waiting for three. ;)

Waiting for three. ;)
Forum: Script Giveaway 09-26-2009, 01:10 PM
Replies: 15
Views: 2,268
Posted By cachepl0x
<?php final class Main { protected static...

<?php

final class Main
{
protected static $result, $address = null;

protected function __construct() {}
protected function __clone() {}

public static function...
Forum: Advanced PHP Programming 09-25-2009, 11:24 AM
Replies: 11
Views: 915
Posted By cachepl0x
# Comment with a pound class Conf { const name...

# Comment with a pound

class Conf
{
const name = "name";
const age = "20";
}

class Main extends Conf # Always capitalize class names.
{
Forum: Advanced PHP Programming 09-25-2009, 11:05 AM
Replies: 35
Views: 14,572
Posted By cachepl0x
I really quite enjoy this thread. It offers a lot...

I really quite enjoy this thread. It offers a lot of information for the new-comers, and a great method for switching database types. Great job, Sketch!
Forum: Advanced PHP Programming 09-25-2009, 10:01 AM
Replies: 27
Views: 122,863
Posted By cachepl0x
Great

Great tutorial. It actually looks a lot like the way I did my singleton pattern.. lol ;-)

Here it is:

class Config
{
const host = "localhost";
const user = "root";
const pass = "pass";
const...
Showing results 1 to 24 of 24

 

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