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
Showing results 1 to 24 of 24
Search took
0.04
seconds.
Search:
Posts Made By:
adamdecaf
Forum:
Absolute Beginners
04-04-2011, 02:58 PM
Replies:
4
Date/Time Loop ...
Views:
811
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:
General
04-03-2010, 10:39 PM
Replies:
3
Trigonometry...
Views:
534
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:
Tips & Tricks
02-18-2010, 03:00 AM
Replies:
2
The Top 25 Most Dangerous Programming Errors
Views:
973
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:
Javascript, AJAX, E4X
02-04-2010, 10:34 PM
Replies:
13
Class names and reducing onclick events...
Views:
825
Posted By
adamdecaf
This won't allow you to remove them, but it will...
This won't allow you to remove them, but it will allow you to only assign the onclick event handlers to specific elements. Just pass it an array of element ID's that you want it to watch and it...
Forum:
Absolute Beginners
11-07-2009, 06:34 PM
Replies:
3
<a href...> question
Views:
746
Posted By
adamdecaf
Not always, the default file that is loaded is...
Not always, the default file that is loaded is called the "DirectoryIndex". Your server (I'm guessing Apache) will use what are called .htaccess (http://en.wikipedia.org/wiki/Htaccess) files...
Forum:
The Lounge
10-27-2009, 02:19 AM
Replies:
2
Mozilla 1.9 branch?
Views:
580
Posted By
adamdecaf
I think that you're thinking about Gecko, the...
I think that you're thinking about Gecko, the rendering engine behind the Mozilla Firefox browser.
Forum:
Absolute Beginners
10-22-2009, 09:57 PM
Replies:
6
Search, having "any" as an option
Views:
782
Posted By
adamdecaf
if (isset($_REQUEST["type"])) { $type_lettings =...
if (isset($_REQUEST["type"])) {
$type_lettings = $_REQUEST["type"];
if ($_REQUEST["type"] == 'any') {
$type_lettings = '%';
}
}
Or something like that.
Forum:
General
10-22-2009, 09:54 PM
Replies:
5
[ASK] get parent url in iframe
Views:
2,138
Posted By
adamdecaf
You don't, in PHP you can't grab the outer frame....
You don't, in PHP you can't grab the outer frame. You can grab it via the DOM (javascript) and then send an XMLHttpRequest (Ajax) to a php script.
Forum:
MySQL & Databases
10-22-2009, 09:47 PM
Replies:
4
Help me for Fade in/Out in Dynamic Table.
Views:
1,103
Posted By
adamdecaf
What exactly are you trying to do? Grab data...
What exactly are you trying to do? Grab data from a database every time something is faded in/out?
Edit: 2**8 posts!
Forum:
Javascript, AJAX, E4X
10-04-2009, 06:08 PM
Replies:
7
Timebased event
Views:
907
Posted By
adamdecaf
$(document).ready(function() { // This will...
$(document).ready(function() {
// This will hold our timer
var myTimer = {};
// Set the timer for 2 seconds
myTimer = $.timer(2000, function(){
// Load the new image.
...
Forum:
Absolute Beginners
09-29-2009, 09:50 PM
Replies:
1
Warning:
Views:
719
Posted By
adamdecaf
It seems that the permissions for that file are...
It seems that the permissions for that file are set to make it not readable.
Forum:
Javascript, AJAX, E4X
09-27-2009, 07:21 PM
Replies:
4
Accessing screen-resolution?
Views:
897
Posted By
adamdecaf
That is a browser specific setting, each browser...
That is a browser specific setting, each browser has different amounts that it "zooms" and not all even "zoom" the same way. Some only increase text size while others bring your view closer.
You...
Forum:
General
09-24-2009, 10:06 PM
Replies:
6
Screenresolution
Views:
699
Posted By
adamdecaf
Or use ajax to send a HTTP request to a php...
Or use ajax to send a HTTP request to a php script that collects the data.
Forum:
Absolute Beginners
09-15-2009, 08:52 PM
Replies:
12
Any thoughts on PHP_ED (IDE) from Nusphere?
Views:
1,055
Posted By
adamdecaf
Nope, all I need is syntax highlighting and a...
Nope, all I need is syntax highlighting and a server to test on. To me [sub]folders are projects.
For C++ I always use an IDE, but php just feels so much simpler than C++ so I don't see a need for...
Forum:
Absolute Beginners
09-10-2009, 12:29 AM
Replies:
6
foreach statement?
Views:
940
Posted By
adamdecaf
// Credit should be given to wordpress, I've been...
// Credit should be given to wordpress, I've been studying
// their code and came across this, it really is nice.
$query = mysql_query('SELECT * FROM entries ORDER BY ID DESC');
foreach ($query as...
Forum:
Advanced PHP Programming
09-01-2009, 03:03 AM
Replies:
7
Extra IP account.
Views:
653
Posted By
adamdecaf
Also, you will not be able to view their accounts...
Also, you will not be able to view their accounts because the script will grab and use your IP address. You could create a log of the IP addresses and then manually search the DB(s) or save a log of...
Forum:
Absolute Beginners
08-26-2009, 11:05 PM
Replies:
5
Returning pointer to 1st element in associative array
Views:
944
Posted By
adamdecaf
I'm not sure but the ID of the array values may...
I'm not sure but the ID of the array values may not change, so it looks like you are printing out the first value's data (array).
Forum:
Absolute Beginners
08-14-2009, 04:40 PM
Replies:
4
$_GET error
Views:
1,286
Posted By
adamdecaf
His worked because you were not setting a default...
His worked because you were not setting a default value if none was found, so PHP was using a[n] ''. <-- {Blank Space}
Forum:
XHTML, HTML, CSS
07-14-2009, 07:20 PM
Replies:
6
doctype problem
Views:
844
Posted By
adamdecaf
Ah, a classic issue of IE modifying your design...
Ah, a classic issue of IE modifying your design settings. Your doing nothing wrong it's just that Internet Explorer has horrible record of not being standards specific (FF isn't either but it's not...
Forum:
MySQL & Databases
07-12-2009, 05:15 PM
Replies:
14
username checker
Views:
952
Posted By
adamdecaf
Well, once you grab the username you can do a...
Well, once you grab the username you can do a simple mysql query.
<?php
// connect
$connect = mysql_connect("host", "username", "password");
$result = mysql_query("SELECT * FROM...
Forum:
Absolute Beginners
07-10-2009, 03:51 PM
Replies:
2
what is a framework??
Views:
732
Posted By
adamdecaf
I swear there was a thread like this, but I can't...
I swear there was a thread like this, but I can't find it.
anyway...
A framework (one word) is a collection of code designed to made coding easier. Frameworks can simplify multi-step processes. ...
Forum:
Absolute Beginners
07-05-2009, 08:06 PM
Replies:
5
need help tweeking a sweetcron site
Views:
798
Posted By
adamdecaf
Is that guy there, or did I get "scammed" out of...
Is that guy there, or did I get "scammed" out of helping him? agh...
Forum:
Absolute Beginners
07-03-2009, 05:56 PM
Replies:
5
need help tweeking a sweetcron site
Views:
798
Posted By
adamdecaf
I don't see an API, if they have one it would be...
I don't see an API, if they have one it would be the answer to this question.
*EDIT*
Alright This should get you started.
<?php
// Set the detauls
$hostname = "db1932.perfora.net";
$dbname =...
Forum:
The Lounge
07-02-2009, 01:39 AM
Replies:
14
yay 1000 posts!
Views:
783
Posted By
adamdecaf
Congrats, now you only have ~10^97 left for a...
Congrats, now you only have ~10^97 left for a Googol (http://en.wikipedia.org/wiki/Googol)!
Showing results 1 to 24 of 24
All times are GMT. The time now is
09:47 PM
.
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