Search found 66 matches

by wrichards8
Wed Jun 19, 2013 5:12 pm
Forum: Tutorials
Topic: SSL Tip
Replies: 1
Views: 1301

SSL Tip

I just wanted to give you guys a tip for when you all go over to SSL. Even though your site use a secure connection, you need to use [syntax=php]session_set_cookie_params();[/syntax] before calling [syntax=php]session_start();[/syntax] otherwise your session cookies will be sent in the clear.
by wrichards8
Tue May 14, 2013 9:36 pm
Forum: CSS / Styling
Topic: Image Size Definition
Replies: 2
Views: 2352

Image Size Definition

Are there any disadvantages of not defining the width and height of an image withing an <img> tag apart from making the browser waste cycles working out how big the image should be? I am using CSS to set a maximum width and height, within a custom <div> tag. I am doing this in order to make the site...
by wrichards8
Sun Feb 17, 2013 4:01 pm
Forum: Suggestions
Topic: Two Factor Authentication
Replies: 4
Views: 8997

Two Factor Authentication

Hi,

Are you planning to do a two-factor authentication tutorial? This would, I think, be a really good thing. I suggest using SMS to send the user a 5 digit code and log-in with that.

Will
by wrichards8
Thu Jan 10, 2013 12:18 pm
Forum: PHP
Topic: Random String Goodyness
Replies: 4
Views: 821

Re: Random String Goodyness

I don't, I just wanted to see what it would output, The point of going for 0 was to demonstrate my point (that you could put in any number and it'd return a string of a different length). I got a string length of 26 when I passed '10' to the function, 13 gave 23. I'm guessing there is just something...
by wrichards8
Wed Jan 09, 2013 10:33 pm
Forum: PHP
Topic: Random String Goodyness
Replies: 4
Views: 821

Random String Goodyness

I am trying to build an API for the MovieStop website, and I'm using a random string generator to produce an API key, I notice that, when I tell it what length I want, it spits out a different length key. My code is as follows:[syntax=php]<?php function randomstring($length) /* This forms a string o...
by wrichards8
Tue Nov 27, 2012 9:47 pm
Forum: General Chat
Topic: Another opinion needed on a website..
Replies: 9
Views: 1728

Re: Another opinion needed on a website..

still haven't decided whether I should sell it or just give it away for free (but with limited accounts if free..). It would be less of a hassle. I'd be in favor of offering free accounts and, for more money, paid accounts. Charging for access is nice but, as there are free services available that ...
by wrichards8
Mon Nov 26, 2012 3:29 pm
Forum: General Chat
Topic: A New Project?
Replies: 4
Views: 1104

Re: A New Project?

I have been working on my new project over the past few weeks. It is supposed to be an IMDb type movie search engine. Check it out at http://www.moviestop.org.uk. If it doesn't work right, let me know and I'm sure I will get round to fixing it at some point.
by wrichards8
Tue Oct 30, 2012 7:00 pm
Forum: General Chat
Topic: I'm a Huge Criminal
Replies: 22
Views: 3749

Re: I'm a Huge Criminal

It really amuses me how the YouTube bot picks out some videos and not others. i think you might be able to claim fair use on the video as its a tutorial
by wrichards8
Fri Oct 19, 2012 1:45 pm
Forum: General Chat
Topic: A New Project?
Replies: 4
Views: 1104

A New Project?

I have pretty much finished working on Twisted Media, so I thought I'd ask the forum what my next project should be? I would create my own blog or forum, but there seems little point seeing as how we have phpBB and Wordpress.
by wrichards8
Tue Oct 16, 2012 11:00 pm
Forum: PHP
Topic: Undefined index on array output
Replies: 3
Views: 764

Re: Undefined index on array output

Line 14 was this line [syntax=php] $topicid = (int)$listresult['topicid'];
[/syntax] but I have changed it so now the value is assigned to a variable which is passed to the other function (so now not using the array as input)
by wrichards8
Tue Oct 16, 2012 2:16 pm
Forum: PHP
Topic: Undefined index on array output
Replies: 3
Views: 764

Undefined index on array output

Hi, I just wondered if you can help me. I have a function which returns an array [syntax=php]<?php function topicname() { $querylist = mysql_query("SELECT `topicid`,`topicname` FROM `topiclist`"); $topiclist = array(); while ($listresult = mysql_fetch_assoc($querylist)) { $topiclist[] = $l...
by wrichards8
Fri Sep 28, 2012 10:10 pm
Forum: General Chat
Topic: Doctor Who
Replies: 5
Views: 1178

Doctor Who

I know this is really off topic but hey this is why I post in the general section. What are peoples' thoughts on the new series of Doctor Who. Which is your favourite Doctor? I can't decide but wasn't a fan of Sylvester McCoy, William Hartnell, Patrick Troughton or Jon Pertwee
by wrichards8
Fri Aug 31, 2012 11:05 pm
Forum: Code
Topic: Secure Password Class
Replies: 6
Views: 2172

Re: Secure Password Class

The issue surrounding the SQL table being dumped is virtually non-existent because although the bad guys have the user portion of the salt, they do not have the static key or a knowledge of how many times your password was hashed. They would only be able to retrieve the static part of your salt, as ...
by wrichards8
Thu Aug 30, 2012 9:17 pm
Forum: Code
Topic: Secure Password Class
Replies: 6
Views: 2172

Secure Password Class

This function will salt a password and stretch it by 5120 rounds of encryption [syntax=php]<?php function passcrypt($username, $password) { $coresalt = "XtyuNfG8AaX7CrerGaAaeEacCmQkRygdFvPu34"; /* or whatever random string you like to form the basis of the salt*/ $usersalt = md5($username)...
by wrichards8
Sun Aug 19, 2012 12:16 am
Forum: CSS / Styling
Topic: Float left doesn't work yet display inline block does
Replies: 1
Views: 1236

Float left doesn't work yet display inline block does

Hi, I am using the following CSS to produce a horizontal menu for the new system I'm working on. The code look like this [syntax=css]nav { border: #000000 thin solid; color: #FFFFFF; width: 100%; background: #000056; } nav ul { margin: 0; padding: 0; } nav ul li { float: left; } nav ul li a { displa...
by wrichards8
Tue Aug 14, 2012 12:19 am
Forum: General Chat
Topic: LDAP Servers
Replies: 0
Views: 2145

LDAP Servers

Hi,

I'm not much good at command line, so I need GUI stuff. Does anyone know any open source LDAP servers which have a graphical frontend?

WIll
by wrichards8
Sat Aug 11, 2012 3:12 pm
Forum: PHP
Topic: Survey Security
Replies: 3
Views: 836

Re: Survey Security

Hmm... it seems OK however, for each question you're giving users a choice, I would put each choice in an array and check against that because someone could easily view the forms' source, inject their own string, and submit the form. If you put all possible allowable answers in an array, this cannot...
by wrichards8
Sat Aug 11, 2012 3:00 pm
Forum: PHP
Topic: Database Searching + Pagination
Replies: 1
Views: 552

Database Searching + Pagination

Hey. I am attempting to conbine database searching with pagination but am having problems. The function I have writen looks like this[syntax=php]function searchDB($condition, $value, $page, $per_page) { $condition = htmlentities(trim(mysql_real_escape_string($condition))); $value = htmlentities(trim...
by wrichards8
Tue Aug 07, 2012 8:31 pm
Forum: General Chat
Topic: Best way to do login
Replies: 17
Views: 2870

Re: Best way to do login

You should probably have the users' ID, from the database, in the session and then the username. Then you can check to see whether the user ID and the username match.
by wrichards8
Tue Aug 07, 2012 7:30 pm
Forum: General Chat
Topic: Windows XP
Replies: 2
Views: 777

Windows XP

I know we're nearing the end of extended support for Windows XP (I declare 08/04/2014 a day of mourning, although I hope Microsoft will extend its life) but I will be downgrading to Windows XP. This is because the Metro interface.
P. S. I will also be installing Ubuntu
by wrichards8
Mon Aug 06, 2012 8:06 pm
Forum: Suggestions
Topic: LDAP Login Integration
Replies: 3
Views: 1737

Re: LDAP Login Integration

Yeah