Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Go to Google Groups Home
  
Discussions for Apple Inc. View all discussions

Message from discussion Dear Apple Finance Diary.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Infinity Style Destiny  
View profile  
 More options Apr 28 2012, 2:15 am
From: Infinity Style Destiny <vo...@ymail.com>
Date: Fri, 27 Apr 2012 23:15:34 -0700 (PDT)
Local: Sat, Apr 28 2012 2:15 am
Subject: Re: Dear Apple Finance Diary.
Dear Apple Finance Diary;
=====================================
I need to create random keys for my void.is web site's
articles.

for example, lets say there is a folder name /articles
there will be a file named index.php in that folder
or 0.php most likely 0.php given that we will use mod_rewrite
to redirect /article/___KEY____ to the /article/0.php?id=____KEY___

=====================================

I do not want to use just numbers, or just letters
i believe i need to mix letters and numbers, and it should be
perhaps case insensitive although it will look like
key sensitive so maybe in the future it will become key sensitive.

=====================================

to do this i must create 2 arrays within php.

$letters =
$numbers =

letters will be A to Z. and a to z
numbers will be 1 to 0

=====================================

i grab 3 random letters
and then 1 random number
and then 2 random letters
and then 1 random number
and then 1 random letter

this is a key. it is to be verified if it already exists or not
if not it becomes a key to an article. it becomes an article id.

i believe this is a good way of doing it.

perhaps it should be shorter. perhaps we do not need a letter
at the end.

======================================

this tumi jacket has been good to me.
it's keeping me warm while i am coding my web site.

Amen to that. * blush *

http://www.youtube.com/watch?v=hULUa9IecTo
http://www.youtube.com/watch?v=xcm9wLjKxME

- Sumer_Kolcak


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Google Home - Terms of Service - Privacy Policy

©2013 Google