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 287
Search took 0.12 seconds.
Search: Posts Made By: adamdecaf
Forum: Absolute Beginners 04-04-2011, 02:58 PM
Replies: 4
Views: 804
Posted By adamdecaf
An idea: // Forward: This is an idea, and is...

An idea:


// Forward: This is an idea, and is incomplete.
date_default_timezone_set('UTC');

// If you take the unix time from the start.
// http://us3.php.net/manual/en/function.mktime.php
$start =...
Forum: Member Introductions 04-04-2011, 02:48 PM
Replies: 4
Views: 797
Posted By adamdecaf
I'm back after a long break.

Hey all,

I apparently got really busy for the last several months (last post was 07/2010) and have missed out on TalkPHP. At any rate, I'm less busy now and so I decided to come back with all of the...
Forum: Advanced PHP Programming 07-15-2010, 11:03 PM
Replies: 10
Views: 706
Posted By adamdecaf
So, even if you do have permission, we don't.

So, even if you do have permission, we don't.
Forum: Tips & Tricks 07-15-2010, 11:00 PM
Replies: 12
Views: 917
Posted By adamdecaf
if ($_GET['count'] == 8) { echo...

if ($_GET['count'] == 8) {
echo $_GET['count'];
} else {
if ($_GET['count'] > 8) {
header("Location: index.php?count=0");
} else {
header("Location: index.php?count=" ....
Forum: General 07-15-2010, 10:48 PM
Replies: 5
Views: 500
Posted By adamdecaf
wordwrap("QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ...

wordwrap("QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ", 15, "<br />\n");
Forum: General 06-04-2010, 02:10 AM
Replies: 6
Views: 745
Posted By adamdecaf
Are you looking to sort the results be word...

Are you looking to sort the results be word length or by relevance?
Forum: General 05-17-2010, 10:04 PM
Replies: 8
Views: 627
Posted By adamdecaf
Then just pull the data normally and put in a...

Then just pull the data normally and put in a numeric array. That way you can print off the array from the 2nd element.


$result = mysql_query('SELECT * ... ');
$list = array();

while ($row =...
Forum: Feedback 05-17-2010, 09:51 PM
Replies: 49
Views: 2,444
Posted By adamdecaf
There might be a cache (Google, Yahoo...) of the...

There might be a cache (Google, Yahoo...) of the post around.
Forum: General 05-17-2010, 09:49 PM
Replies: 8
Views: 627
Posted By adamdecaf
If the array is numeric: $list = array(0 =>...

If the array is numeric:


$list = array(0 => 'adam', 1 => 'dave');
$length = count($list);

for ($n = 1; $n < $length; n++) {
echo $list[$n];
}
Forum: General 04-03-2010, 10:39 PM
Replies: 3
Views: 529
Posted By adamdecaf
PHP's sin($x)...

PHP's sin($x) (http://us2.php.net/manual/en/function.sin.php) expects the value to be in radians. So, you should always send it in radians.

You can convert any angle in degrees to radians with this...
Forum: General 04-03-2010, 07:14 PM
Replies: 3
Views: 435
Posted By adamdecaf
Where did the includes come from? The code that...

Where did the includes come from? The code that I posted above needs to be loaded on the same page [after it is completed] (how ever it's done doesn't matter).
Forum: General 04-03-2010, 04:31 PM
Replies: 3
Views: 435
Posted By adamdecaf
There is a simple way to do this. <select...

There is a simple way to do this.


<select name="mydropdown" onchange="change_content(this.options[this.selectedIndex].value);">
<option value="List">View as list</option>
<option...
Forum: Absolute Beginners 03-24-2010, 02:48 AM
Replies: 3
Views: 1,167
Posted By adamdecaf
A simple way of doing this would be to store the...

A simple way of doing this would be to store the admin information in a database (or file if you don't have access to a database). Then on the index.php (or what ever page is loaded by default)...
Forum: Show Off 03-24-2010, 02:42 AM
Replies: 4
Views: 712
Posted By adamdecaf
When you say "secure downloads" what do you mean?...

When you say "secure downloads" what do you mean? I visited a few products and was meet with sourceforge links (the dl was on HTTP lines), or I was presented with no download link.

The site looks...
Forum: General 03-19-2010, 03:34 AM
Replies: 3
Views: 518
Posted By adamdecaf
Then pick the other windows binary that fits your...

Then pick the other windows binary that fits your need. I believe they have a thread safe and a non-thread safe, pick the one that you need.
Forum: General 03-15-2010, 03:24 AM
Replies: 16
Views: 808
Posted By adamdecaf
If you find out what his IP is (ping the domain)...

If you find out what his IP is (ping the domain) you can do a simple .htaccess block.


order allow,deny
deny from 123.45.6.7
allow from all
Forum: General 02-18-2010, 10:06 PM
Replies: 7
Views: 657
Posted By adamdecaf
Your upload.php should look something like...

Your upload.php should look something like this.


$to = "e mail@hotmail.com";
$subject = "New template!";
$filename = str_replace(" ", "%20", $filename);
$email = $_POST['email'];

// Run a simple...
Forum: General 02-18-2010, 03:05 AM
Replies: 7
Views: 657
Posted By adamdecaf
So long as you submit the form via the "brew...

So long as you submit the form via the "brew (http://tools.ietf.org/rfc/rfc2324.txt)" method, it should work fine. Otherwise the message is improperly dissolved.
Forum: Tips & Tricks 02-18-2010, 03:00 AM
Replies: 2
Views: 962
Posted By adamdecaf
The Top 25 Most Dangerous Programming Errors

I found this on slashdot and thought it would be good to share, The top 25 most dangerous (and common) programming errors (http://cwe.mitre.org/top25/#Listing). The list is filled with the usual...
Forum: General 02-18-2010, 02:54 AM
Replies: 4
Views: 656
Posted By adamdecaf
I think what you mean is AJAX (Asynchronous...

I think what you mean is AJAX (Asynchronous JavaScript (http://en.wikipedia.org/wiki/Ajax_(programming))). AJAX involves special functions in JavaScript to load content (usually text, images, html,...
Forum: General 02-18-2010, 02:50 AM
Replies: 7
Views: 657
Posted By adamdecaf
The easiest way will be to check that the email...

The easiest way will be to check that the email is not blank, (if ($email == '')) [Use two equals to allow php to trap a lot of exceptions since you're still new.], and then to send an email with a...
Forum: Javascript, AJAX, E4X 02-06-2010, 04:47 PM
Replies: 13
Views: 811
Posted By adamdecaf
Adding on sketch's post, if you have just over an...

Adding on sketch's post, if you have just over an hour of free time you should check out this Google Tech Talk on: "Javascript -- The Good Parts (http://www.youtube.com/watch?v=hQVTIJBZook)". It's...
Forum: Javascript, AJAX, E4X 02-05-2010, 03:56 AM
Replies: 13
Views: 811
Posted By adamdecaf
I'm just glad that I hunkered down and learned JS...

I'm just glad that I hunkered down and learned JS and the DOM from the bottom up, now I can read jQuery/MooTools/$fx()... code and understand each step that it would take to do on a built in...
Forum: Javascript, AJAX, E4X 02-05-2010, 12:55 AM
Replies: 13
Views: 811
Posted By adamdecaf
It's not that hard to learn javascript and the...

It's not that hard to learn javascript and the DOM, I just don't know jQuery very well, so I think somethings were lost in the process. (I taught myself the 'old fashioned' way of writing javascript.)
Forum: The Lounge 02-05-2010, 12:28 AM
Replies: 16
Views: 2,686
Posted By adamdecaf
If I remember correctly, they wrote Tornado...

If I remember correctly, they wrote Tornado (http://www.tornadoweb.org/) which is a web server.
Showing results 1 to 25 of 287

 

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