Previous Thread
Next Thread
Print Thread
Rate Thread
#68824 03/28/2001 3:00 AM
Joined: Feb 1999
Posts: 1,379
cal
Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
Very Good!

The way it works basically, i to combine the numbers from two arrays (@a and @b) to get the ascii values of the characters. Since @a is just the numbers 0 to 23, all the real work is done by @b.

Now, the variables $a to $h are loaded with various values (mostly small primes). The @c array is then loaded with expressions which evaluate to the numbers needed to make @b. If ($a+$b)-$c is needed to make the value (and we can make any value since we chose good primes) then it's written to @c as "(ab)-c".A quick regex later and we can add $'s before each letter and +'s where nessacery. Now eval'ing these into @b give us our second list.

Line 3 ($a=q;$b=3; wink is meant to throw you. At first glane it looks like $a='q'; $b=3; which would override the previous value of $b. It actually just tricky use of the single quotish operator using a semi comma to delimit.

Right. Now for something slightly different:

Code
code:

Just a thought smile

Sponsored Links
Entire Thread
Subject Posted By Posted
Impress Me cal 03/27/2001 9:02 PM
Re: Impress Me AllenAyres 03/27/2001 9:20 PM
Re: Impress Me cal 03/27/2001 9:43 PM
Re: Impress Me JohnM 03/28/2001 12:22 AM
Re: Impress Me Greg Hard 03/28/2001 1:58 AM
Re: Impress Me Jamin 03/28/2001 2:10 AM
Re: Impress Me JohnM 03/28/2001 2:26 AM
Re: Impress Me Greg Hard 03/28/2001 2:31 AM
Re: Impress Me el84 03/28/2001 2:45 AM
Re: Impress Me Mark Badolato 03/28/2001 7:50 AM
Re: Impress Me el84 03/28/2001 9:15 AM
Re: Impress Me cal 03/28/2001 10:00 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)