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 76
Search took 0.06 seconds.
Search: Posts Made By: ioan1k
Forum: Absolute Beginners 11-06-2009, 02:24 PM
Replies: 3
Views: 753
Posted By ioan1k
$new = $new['username']; echo "Our newest member...

$new = $new['username'];

echo "Our newest member is <a href='$news/'>$new</a><br />';


It's very simple, the variable $new becomes the username from the SQL Query :)

And as far as using the same...
Forum: Show Off 10-29-2009, 12:14 PM
Replies: 8
Views: 997
Posted By ioan1k
Looked through the framework library. There...

Looked through the framework library.


There are a lot of failure points ... places in execution that have a potential to fail because there is no class validation in place
Rewritten PDO, there is...
Forum: Absolute Beginners 10-29-2009, 11:52 AM
Replies: 3
Views: 1,127
Posted By ioan1k
You need to enclose each level isset(...

You need to enclose each level


isset( $one[$i]['timestamp'] ) ? $one[$i]['timestamp'] : ( isset( $two[$i]['timestamp'] ) ? $two[$i]['timestamp'] : ( isset( $three[$i]['timestamp'] ) ?...
Forum: Advanced PHP Programming 10-13-2009, 08:58 PM
Replies: 4
Views: 677
Posted By ioan1k
Why not use...

Why not use

http://php.net/decbin
http://php.net/decoct
http://php.net/dechex

http://php.net/bindec
http://php.net/octdec
http://php.net/hexdec
Forum: Advanced PHP Programming 10-08-2009, 08:57 PM
Replies: 4
Views: 702
Posted By ioan1k
?> A good practice to follow is to exclude this...

?>
A good practice to follow is to exclude this from your code, to avoid future problems such as this one ...

And the error should include where the data is being sent ( File & Line ) before the...
Forum: Absolute Beginners 10-07-2009, 02:05 PM
Replies: 6
Views: 2,728
Posted By ioan1k
I wouldn't recommend storing the singleton itself...

I wouldn't recommend storing the singleton itself within the global session space as this will eventually lead to excessive server loading with all of the singleton data ....

The easier thing to do...
Forum: General 10-07-2009, 01:57 PM
Replies: 6
Views: 1,186
Posted By ioan1k
Easiest thing to do .... Keep the old site in...

Easiest thing to do ....

Keep the old site in the root directory and develop and test your new one in something like /dev or on a subdomain dev.domain.com, once everything works then move it over...
Forum: The Lounge 10-06-2009, 02:33 PM
Replies: 13
Views: 1,144
Posted By ioan1k
Wordpress?

Wordpress?
Forum: Advanced PHP Programming 10-06-2009, 02:02 PM
Replies: 1
Views: 943
Posted By ioan1k
Issue resolved...just used Python & C

Issue resolved...just used Python & C
Forum: Advanced PHP Programming 10-05-2009, 02:33 PM
Replies: 6
Views: 679
Posted By ioan1k
You can use the following function ...

You can use the following function http://us.php.net/date_parse and http://us.php.net/mktime To convert those dates into a timestamp instead of doing the math calculations :)
Forum: Advanced PHP Programming 10-05-2009, 01:55 PM
Replies: 6
Views: 679
Posted By ioan1k
Very simple to do just add or subtract to the...

Very simple to do just add or subtract to the current timestamp

When changing months + or - you just add or subtract
(2678400 * (Number of months))

For a year you would + or minus (31556908 *...
Forum: Advanced PHP Programming 10-02-2009, 07:14 PM
Replies: 1
Views: 943
Posted By ioan1k
Decimal -> Hexidecimal ASCII Conversion

I am currently in need a converting a 128 byte string into a 64 byte hexidecimal string

The way the conversion is to work is by converting each byte of the 128 byte string into a 2 digit hexadecimal...
Forum: Absolute Beginners 09-30-2009, 12:45 AM
Replies: 3
Views: 1,468
Posted By ioan1k
Couple of things here $HTTP_POST_FILES has been...

Couple of things here

$HTTP_POST_FILES has been deprecated since about 4.1 I believe you need to use instead $_FILES
For uploaded files you want to use move_uploaded_file...
Forum: Script Giveaway 09-28-2009, 09:59 PM
Replies: 15
Views: 2,321
Posted By ioan1k
Wouldn't this defeat the purpose of the tinyUrl...

Wouldn't this defeat the purpose of the tinyUrl in the first place,

I could see getting the original link back to parse as you wish, but the user is posting it as that is how they want it displayed...
Forum: General 09-28-2009, 06:59 PM
Replies: 43
Views: 1,873
Posted By ioan1k
Yes I can :) The original string is a Sha1 hash...

Yes I can :)

The original string is a Sha1 hash .... as should the first be, The hash is the hashed version of the key to a 1024 bit key used for a DH Secret Key

Encrypted String:...
Forum: General 09-28-2009, 06:16 PM
Replies: 43
Views: 1,873
Posted By ioan1k
Everyone give up on posting a challenge? Here...

Everyone give up on posting a challenge?

Here is a new one ...

Decrypt the following string


dc:f5:16:77:f2:b6:99:7b
:e4:fc:88:e2:c0:80:44:e8
:6d:26:3e:b5:d2:8e:1f:f5
Forum: Advanced PHP Programming 09-28-2009, 01:30 AM
Replies: 11
Views: 943
Posted By ioan1k
Haha it was not :) Standards to me are extremely...

Haha it was not :)

Standards to me are extremely important and 99% of the time will make or break wither or not I will even use code someone else has written.

A little off-topic but this is the...
Forum: Advanced PHP Programming 09-28-2009, 12:39 AM
Replies: 11
Views: 943
Posted By ioan1k
CamelCasing everything except for array keys...

CamelCasing everything except for array keys there are seperated with a "_"

I also keep a very tidy codestructure ...

I do follow this religiously ... as most experienced programmers do, as far...
Forum: General 09-24-2009, 09:19 PM
Replies: 1
Views: 683
Posted By ioan1k
Pack is used to pack data into a binary...

Pack is used to pack data into a binary string...

You can use cURL for packet sending http://php.net/curl
Forum: General 09-24-2009, 09:15 PM
Replies: 6
Views: 703
Posted By ioan1k
Javascript width = screen.width height =...

Javascript

width = screen.width
height = screen.height


If you wanted to track it just send them to a URL with the WxH in some GET parameters and store them :)
Forum: Absolute Beginners 09-16-2009, 06:31 PM
Replies: 12
Views: 1,065
Posted By ioan1k
PHPED was far to complex and involved for the...

PHPED was far to complex and involved for the tasks you wanted to complete, unfortunately as with a lot of editors out there this one is more focused on developing hard core features and packing the...
Forum: General 09-05-2009, 01:18 PM
Replies: 12
Views: 850
Posted By ioan1k
Step...

Step 1:
http://lmgtfy.com/?q=How+to+create+a+partition+on+Windows+XP

Step 2:
Boot into the CD this should be done once you put it in ur drive and restart, if not you need to go into you bios and...
Forum: General 09-04-2009, 08:14 PM
Replies: 1
Views: 592
Posted By ioan1k
FirePHP Question

Hello!

I have a couple of questions for the usefulness of some debugging tools with Firephp and How much you would really utilize them if available

Database Queries

Log all database queries with...
Forum: Advanced PHP Programming 09-03-2009, 06:12 PM
Replies: 23
Views: 1,281
Posted By ioan1k
Glad I could help Happy Coding :)

Glad I could help

Happy Coding :)
Forum: Advanced PHP Programming 09-03-2009, 03:57 PM
Replies: 23
Views: 1,281
Posted By ioan1k
This would need to be done in a seperate table,...

This would need to be done in a seperate table, something such as

user_friendlist_settings
or
user_settings
Showing results 1 to 25 of 76

 

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