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 18 of 18
Search took 0.00 seconds.
Search: Posts Made By: CHASE
Forum: Advanced PHP Programming 09-09-2008, 09:02 AM
Replies: 1
Views: 748
Posted By CHASE
Nevermind, got it to work This is the code I...

Nevermind, got it to work

This is the code I used
$result = preg_replace("@<!doctype html><head>.*<\/head>@si", '', $result);
Forum: Advanced PHP Programming 09-09-2008, 08:58 AM
Replies: 1
Views: 748
Posted By CHASE
preg_replace issue..

Okay.. so i'm trying to chop out the entire header of my document i'm reading.. but it just wont seem to do it.. any help?

$result = preg_replace("/<!doctype html><head>(.*)head>/", '', $result);
Forum: General 03-12-2008, 04:07 PM
Replies: 2
Views: 828
Posted By CHASE
MySQL Database Duplication or Creation

I have a website that needs to recreate a database based off of a core .sql file.

Do any of you have functions that can read + query a .sql file

Or as an alternative, is there a way to clone...
Forum: Script Giveaway 03-12-2008, 10:43 AM
Replies: 15
Views: 1,307
Posted By CHASE
Oh cool, I didn't know that, thanks for the tip.

Oh cool, I didn't know that, thanks for the tip.
Forum: Script Giveaway 03-12-2008, 02:29 AM
Replies: 15
Views: 1,307
Posted By CHASE
I would recommend using the function I built, and...

I would recommend using the function I built, and then just removing the echos, and having it $var++

That would probably do what you want :)
Forum: Script Giveaway 03-11-2008, 10:41 PM
Replies: 15
Views: 1,307
Posted By CHASE
Glob will only return files of a certain...

Glob will only return files of a certain extension, and supports only two arguments though.. This does an entire directory + sub directories :D
Forum: Script Giveaway 03-11-2008, 10:57 AM
Replies: 15
Views: 1,307
Posted By CHASE
As opposed to two ;) Not much of a difference,...

As opposed to two ;) Not much of a difference, but thank you for the pointer :)
Forum: Script Giveaway 03-11-2008, 10:51 AM
Replies: 15
Views: 1,307
Posted By CHASE
I don't really see how that code is "better"..?...

I don't really see how that code is "better"..? It's pretty much the same thing..
Forum: Script Giveaway 03-11-2008, 09:40 AM
Replies: 15
Views: 1,307
Posted By CHASE
Smile Read Directory Function

Most of you developing websites or having portfolios, this function may come in use in your PHP endeavors.

Example: Directory Quick Browse Script (http://www.clanproject.com/test/)

Added Note: If...
Forum: XHTML, HTML, CSS 02-28-2008, 09:58 PM
Replies: 7
Views: 1,030
Posted By CHASE
That is true. I guess it all depends on who uses...

That is true. I guess it all depends on who uses your page. I personally never really tab through links, so I don't have this problem =\
Forum: Feedback 02-28-2008, 09:39 PM
Replies: 38
Views: 3,423
Posted By CHASE
I mean...

I mean like

database_interface.php
class_database.php
/databases/mysql_driver.php
/databases/mysqli_driver.php

etc..

So the database class can work with any type of SQL.
Forum: Tips & Tricks 02-28-2008, 04:29 PM
Replies: 32
Views: 3,288
Posted By CHASE
Had to make a fix to my code. It wasn't swapping...

Had to make a fix to my code. It wasn't swapping the two variables, just overwriting them with 1 or 2. Now it's back on track ;)
Forum: Feedback 02-28-2008, 04:22 PM
Replies: 38
Views: 3,423
Posted By CHASE
I'd really like to see a tutorial that gives...

I'd really like to see a tutorial that gives starting grounds for an advanced SQL class.

In essence, you could start off with a Database interface, and be able to build plugins for MySQL, MySQLi,...
Forum: XHTML, HTML, CSS 02-28-2008, 04:07 PM
Replies: 7
Views: 1,030
Posted By CHASE
CSS Trick that's commonly overlooked.

This isn't really anything of intense value, but it can help add that extra edge to your website.

On links, and some other objects in XHTML, when clicked, a dotted border...
Forum: General 02-28-2008, 12:28 AM
Replies: 11
Views: 1,514
Posted By CHASE
Just because I can't find the answer to this...

Just because I can't find the answer to this question myself, I just:

sha1(md5($string));

:)
Forum: Tips & Tricks 02-28-2008, 12:06 AM
Replies: 32
Views: 3,288
Posted By CHASE
I'm not sure if this follows the rule of 8 lines...

I'm not sure if this follows the rule of 8 lines perfectly, but I did my best, and wasn't sure what a "line" was defined at.

<?php

$a = 1;
$b = 2;

$string = "The quick brown fox jumps over the...
Forum: Member Introductions 02-27-2008, 10:03 PM
Replies: 5
Views: 743
Posted By CHASE
Uhm.. Not much I suppose. Just thought i'd join...

Uhm.. Not much I suppose.

Just thought i'd join a php community. I'm working on my open source engine that i'll use for projects. I'll give you guys a snippet here in a bit. It's not all that...
Forum: Member Introductions 02-27-2008, 10:01 PM
Replies: 5
Views: 743
Posted By CHASE
Hello

Hey. i'm new.. Not much to say about me.. But hi
Showing results 1 to 18 of 18

 

All times are GMT. The time now is 10:45 AM.

 
     

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