Home
Forums
Articles
Glossary
Awards
Register
Rules
Members
Search
Today's Posts
Mark Forums Read
Account Login
User Name
Password
Remember Me?
Latest Articles
The basic usage of PHPTAL, a XML/XHTML template library for PHP
by
awuehr
on
11-10-2008
in
Tips & Tricks
Vulnerable methods and the areas they are commonly trusted in.
by
Village Idiot
on
11-04-2008
in
Classes & Objects
Simple way to protect a form from bot
by
codefreek
on
10-23-2008
in
Basic
The Basics On: How Session Stealing Works
by
wiifanatic
on
09-12-2008
in
Security & Permissions
How to keep your forms from double posting data
by
drewbee
on
07-03-2008
in
Tips & Tricks
IRC Channel
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
Wired Flame
ClientExec
Handy PHP
PHP Kitchen
PHP Tutorials
Insane Visions
Associates
TalkPHP
>
Search Forums
»
Search Results
Page 1 of 2
1
2
>
Page 1 of 2
1
2
>
Showing results 1 to 25 of 37
Search took
0.72
seconds.
Search:
Posts Made By:
SOCK
Forum:
Advanced PHP Programming
05-05-2008, 01:10 AM
Replies:
13
Extends? Implements? Private, Public, Protected?
Views:
5,432
Posted By
SOCK
Yes, extending a class means your child classes...
Yes, extending a class means your child classes inherit all properties and methods. No, if they are declared private, then only the parent class has access to them. This is why I recommend to give...
Forum:
Advanced PHP Programming
05-04-2008, 08:50 AM
Replies:
13
Extends? Implements? Private, Public, Protected?
Views:
5,432
Posted By
SOCK
All very basic OO concepts. Take a look at some...
All very basic OO concepts. Take a look at some tutorials (http://www.google.com/search?&q=object%20oriented%20tutorials), particularly the ones on Java as PHP's current OO implementation resembles...
Forum:
The Lounge
03-12-2008, 06:54 PM
Replies:
17
Offline Article Editor for Windows
Views:
844
Posted By
SOCK
No, the SQL / CODE / PHP blocks to not display...
No, the SQL / CODE / PHP blocks to not display properly. When the page is loaded in the browser, I get something to the effects of
CODE tags do the same, and PHP tags don't display anything. A...
Forum:
Absolute Beginners
03-08-2008, 09:39 AM
Replies:
7
Blank Page =(
Views:
951
Posted By
SOCK
If when you say the file you're including is...
If when you say the file you're including is "external", meaning it's a URL, then yes. Check for the 'allow_url_fopen (http://us.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen)' and...
Forum:
MySQL & Databases
03-02-2008, 10:28 PM
Replies:
8
Empty a DB?
Views:
1,379
Posted By
SOCK
Most of the time when forum posts request info on...
Most of the time when forum posts request info on "how to do this with a database", they're referring to the table, not the actual database. I naturally assumed you wanted to empty the table, not...
Forum:
General
03-02-2008, 09:41 AM
Replies:
4
PHPBB3 Password Encryption
Views:
26,646
Posted By
SOCK
They use a proprietary hash method using...
They use a proprietary hash method using /dev/urandom and md5; check it out in the includes/functions.php file. The function is named 'phpbb_hash'.
Forum:
MySQL & Databases
03-02-2008, 02:33 AM
Replies:
8
Empty a DB?
Views:
1,379
Posted By
SOCK
Ok, well as long as the connecting user has...
Ok, well as long as the connecting user has DELETE permissions, TRUNCATE will work from a PHP script.
MySQL Manual : TRUNCATE (http://dev.mysql.com/doc/refman/5.0/en/truncate.html)
Forum:
MySQL & Databases
03-02-2008, 01:35 AM
Replies:
8
Empty a DB?
Views:
1,379
Posted By
SOCK
The best method, IMHO, is to use TRUNCATE...
The best method, IMHO, is to use TRUNCATE (similar to DELETE on all records, but resets the table as well).
I don't know what you mean by 'direct access'. If you don't have 'direct access' one way...
Forum:
The Lounge
02-27-2008, 01:47 AM
Replies:
1
Neat Firefox extensions
Views:
614
Posted By
SOCK
Neat Firefox extensions
I don't know how many of you use Firefox, I use it almost exclusively. Anyway, I hadn't bothered to look at the extensions in awhile, as Venkman (the JS debugger) always crashed and I didn't use it...
Forum:
Javascript, AJAX, E4X
02-26-2008, 02:07 PM
Replies:
2
uncaught exception: [Exception... "Component returned failure code: 0xc1f30001 (NS_ER
Views:
13,549
Posted By
SOCK
You've confused / swapped the 'open' and 'send'...
You've confused / swapped the 'open' and 'send' methods. You should be using
xmlHttp.open("GET", "a.php", true);
xmlHttp.onreadystatechange= responseAsx;
xmlHttp.send(void);
You're also not using...
Forum:
Javascript, AJAX, E4X
02-23-2008, 06:19 AM
Replies:
9
AJAX Help
Views:
1,414
Posted By
SOCK
There is no 'getElementByName' method. There is...
There is no 'getElementByName' method. There is 'getElementsByName' and 'getElementsByTagName', both return arrays of element names and tag names, respectively.
Use 'getElementById' and the...
Forum:
MySQL & Databases
02-23-2008, 01:41 AM
Replies:
10
Is this a good query?
Views:
981
Posted By
SOCK
I agree with DeMo, you need to consider the...
I agree with DeMo, you need to consider the `password` field and how it relates to what hash you're storing there.
In addition, make sure you add a UNIQUE index on the `name` field.
SMALLINT is...
Forum:
MySQL & Databases
02-22-2008, 12:29 AM
Replies:
2
mysql problem
Views:
874
Posted By
SOCK
You're trying to insert unescaped data. One of...
You're trying to insert unescaped data. One of those variables is a string that has a single quote in it somewhere, indicated by "s foremost network protocol analyzer, and is the de facto (and often...
Forum:
Absolute Beginners
02-21-2008, 03:25 AM
Replies:
10
Accessing Variables from Conf file to Upload Class
Views:
952
Posted By
SOCK
Ok, it's as I thought. You expect that your...
Ok, it's as I thought. You expect that your 'conf_global.php' script makes those variables global. Then you attempt to access it in your class as part of the SQL statement, additionally creating a...
Forum:
Absolute Beginners
02-18-2008, 03:51 PM
Replies:
23
refresh, clear (dont know)????
Views:
1,333
Posted By
SOCK
Well, the problem with that is, if the script is...
Well, the problem with that is, if the script is using sessions to store state from page to page, and you kill that on each page request, it's a moot point.
Honestly, the application is a bit messy...
Forum:
Javascript, AJAX, E4X
02-18-2008, 12:31 AM
Replies:
3
Problem with Prototype and PHP
Views:
942
Posted By
SOCK
You'll have to provide more detail than that....
You'll have to provide more detail than that. What's the context of the code snippet you provided? The alert() function is supposed to trigger when the page loads?
<script...
Forum:
Absolute Beginners
02-15-2008, 03:13 PM
Replies:
33
First Login Script
Views:
1,830
Posted By
SOCK
Two important things here: The first assignment...
Two important things here:
The first assignment is not 'encrypting' the value, it's simply escaping it.
More importantly, $md5reg_password != $reg_password
As to the comments whether to use...
Forum:
Absolute Beginners
02-15-2008, 01:11 AM
Replies:
33
First Login Script
Views:
1,830
Posted By
SOCK
It looks like you edited your post as I was...
It looks like you edited your post as I was responding here. I'll have to take a look at your use of MD5 again. Remember, the idea is to store an MD5 hashed value of the password, and then check that...
Forum:
Absolute Beginners
02-14-2008, 07:57 PM
Replies:
33
First Login Script
Views:
1,830
Posted By
SOCK
//setting variables $reg_username =...
//setting variables
$reg_username = ($_POST['reg_username']);
$reg_email = ($_POST['reg_email']);
$reg_password = md5($_POST['reg_password']);
//creating a query that inserts the data into the...
Forum:
Absolute Beginners
02-14-2008, 03:22 PM
Replies:
33
First Login Script
Views:
1,830
Posted By
SOCK
No, but you do have to compare an MD5 hashed...
No, but you do have to compare an MD5 hashed value with another MD5 hashed value. You need to either hash the $pass value again prior to the query, or hash it within the query, e.g.
// use $md5pass...
Forum:
General
02-14-2008, 03:49 AM
Replies:
22
Never ending increment?
Views:
1,098
Posted By
SOCK
UPDATE table SET view_count= view_count+1 WHERE...
UPDATE table
SET view_count= view_count+1
WHERE pageID= 1;
Forum:
Absolute Beginners
02-14-2008, 01:33 AM
Replies:
33
First Login Script
Views:
1,830
Posted By
SOCK
Alan@CIT> Not to nitpick, but that INSERT format...
Alan@CIT> Not to nitpick, but that INSERT format is perfectly fine. You just don't see it as often as the (column list) VALUES (data list) format.
MySQL Manual : INSERT syntax...
Forum:
Absolute Beginners
02-14-2008, 12:28 AM
Replies:
33
First Login Script
Views:
1,830
Posted By
SOCK
Ok, the error message is really odd. It almost...
Ok, the error message is really odd. It almost looks like the httpd server isn't parsing PHP correctly and instead outputting all your PHP code. It seems as if it begins with the call to...
Forum:
Absolute Beginners
02-13-2008, 11:00 PM
Replies:
33
First Login Script
Views:
1,830
Posted By
SOCK
Something else to consider when designing the...
Something else to consider when designing the `user` table, make sure you use a UNIQUE index on the `username` column - keep people from registering the same name, and makes the logic simple when...
Forum:
Absolute Beginners
02-13-2008, 10:50 PM
Replies:
33
First Login Script
Views:
1,830
Posted By
SOCK
Yes; in my table designs I will often use an...
Yes; in my table designs I will often use an AUTO_INCREMENT INT value as the PRIMARY KEY to link tables on. So each user has a `userID` field that is the most basic, simple method to refer to that...
Showing results 1 to 25 of 37
Page 1 of 2
1
2
>
All times are GMT. The time now is
03:14 AM
.
Contact Us
-
TalkPHP - PHP Community
-
Archive
-
Top
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