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 17 of 17
Search took 0.05 seconds.
Search: Posts Made By: Rhinos
Forum: XHTML, HTML, CSS 05-22-2010, 02:47 PM
Replies: 5
Views: 1,311
Posted By Rhinos
It's a good tool but it doesn't generate good CSS...

It's a good tool but it doesn't generate good CSS files.

Usually something like:


#header #logo { /* ... */ }


is redundant. You don't need the #header as #logo should only appear once and...
Forum: Tips & Tricks 02-28-2010, 08:29 PM
Replies: 12
Views: 2,539
Posted By Rhinos
If you cannot move to a dedicated server or VPS...

If you cannot move to a dedicated server or VPS then the way you suggested is okay, however you have to be aware that if you try and do the limit each hour any other emails that your application may...
Forum: General 02-28-2010, 08:16 PM
Replies: 4
Views: 661
Posted By Rhinos
I also have to say that this is a very bad...

I also have to say that this is a very bad idea.

Not only is it bad it would mean that you cannot use GET and would have to resort to using POST for everything. Even for links which means a lot of...
Forum: Absolute Beginners 02-28-2010, 08:09 PM
Replies: 7
Views: 843
Posted By Rhinos
For the line where you output the checkbox you...

For the line where you output the checkbox you need to make the following changes


$output .= "<input type = 'checkbox'
name = 'checkbox[]'
...
Forum: Absolute Beginners 02-28-2010, 07:55 PM
Replies: 4
Views: 624
Posted By Rhinos
Smile Alternative 5 minute cron job

if you are going to use a 5 minute cron job, make sure it is not going to start taking a long time when the amount of data you have increases.

If the 5 minute cron is updating members then you...
Forum: Advanced PHP Programming 01-23-2010, 05:41 PM
Replies: 5
Views: 780
Posted By Rhinos
Basically what that warning is saying is that...

Basically what that warning is saying is that your trying to use an index of an array in a statement before you have actually defined the index.

So there are two ways you could overcome this. The...
Forum: Advanced PHP Programming 11-01-2009, 10:05 PM
Replies: 19
Views: 1,550
Posted By Rhinos
I understand the need for a salt but your method...

I understand the need for a salt but your method seems redundant. If a hacker could get into the database then they are given the salt, which they can then use to bruteforce a single users password....
Forum: Absolute Beginners 11-01-2009, 09:54 PM
Replies: 5
Views: 856
Posted By Rhinos
Your right. I've tried to work mine a little...

Your right. I've tried to work mine a little since when I tried yours on the javascript tester page it didn't work with the following information:

Regexp: ...
Forum: MySQL & Databases 11-01-2009, 09:21 PM
Replies: 12
Views: 2,800
Posted By Rhinos
I don't know if I fully understand what you are...

I don't know if I fully understand what you are asking without knowing more details but why can't you just select the five columns and use a UNION for the different WHERE conditions.

Kinda...
Forum: Advanced PHP Programming 11-01-2009, 09:10 PM
Replies: 19
Views: 1,550
Posted By Rhinos
So each user will have their own salt stored in...

So each user will have their own salt stored in the database?

I'm still unconvinced by your use of a random string generator for the salt.

Surely ryanmr's method as well as mine would be better?
Forum: Absolute Beginners 11-01-2009, 08:57 PM
Replies: 3
Views: 1,117
Posted By Rhinos
It doesn't look that bad with the parenthesis. ...

It doesn't look that bad with the parenthesis. Also I think indenting each ternary statement may improve readability also.



$timestamp = (isset( $one[$i]['timestamp'] ) ? $one[$i]['timestamp']...
Forum: Absolute Beginners 11-01-2009, 08:51 PM
Replies: 5
Views: 856
Posted By Rhinos
You could use your function and then use a...

You could use your function and then use a regular expression to remove all the <acronym> tags that appear inside <a> tags.

Here is a regular expression I have come up with. I have only tested it...
Forum: Advanced PHP Programming 11-01-2009, 08:20 PM
Replies: 19
Views: 1,550
Posted By Rhinos
@Adamdecaf: Your function does not use the...

@Adamdecaf: Your function does not use the $length variable, I'm guessing you wanted to have a loop in there to make the salt whatever length is given in the arguments. Also you will never be able...
Forum: XHTML, HTML, CSS 08-20-2009, 06:08 PM
Replies: 5
Views: 4,305
Posted By Rhinos
Yes in the internet explorer 6 you must use...

Yes in the internet explorer 6 you must use javascript or at least a CSS hack.
Facebook no longer supports ie6 so it doesn't use any javascript or CSS hacks to position it's 'presence' bar as they...
Forum: XHTML, HTML, CSS 08-19-2009, 06:11 PM
Replies: 4
Views: 809
Posted By Rhinos
Several ways. If the div is going to always be a...

Several ways.

If the div is going to always be a fixed width and height the best way is to use a background image for it. It could be included in a CSS Sprite image and would be quicker and more...
Forum: XHTML, HTML, CSS 08-19-2009, 06:05 PM
Replies: 5
Views: 848
Posted By Rhinos
It should be: #ImgHolder { width: 840px; ...

It should be:


#ImgHolder {
width: 840px;
height: 250px;
background: url(images/image1.jpg) no-repeat 50% 50%;
padding: 29px 0 0;
margin: 0 0 40px 0;
}
Forum: XHTML, HTML, CSS 08-19-2009, 05:57 PM
Replies: 5
Views: 4,305
Posted By Rhinos
Ok this is right out of the facebook CSS (I used...

Ok this is right out of the facebook CSS (I used firebug to inspect the bottom bar):


body #presence {
bottom: 0;
color: #111111;
font-size: 11px;
height: 25px;
padding: 0;
position:...
Showing results 1 to 17 of 17

 

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