Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP






SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Pseudocode


pseudocode:

function generate_unique_id()
{
mkdir("lock");

if successful
{
$id = 10 digit random number;
make sure that $id does not exist in our table
if it does, generate a new one

insert $id into our table;

rmdir("lock");
}
else try mkdir again
}




View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:
Using A Pseudocode To Sort An Array
I want to sort an array, but the problem is that I can't use sort, rsort, asort, etc. So I want a Pseudocode to order the array.

View Replies !   View Related
Pseudocode - Add Slashes And Also Replace ++" With Just "
Anyway, I have a string like this:

++"Hello, This is a "STRING". and it is very very 'cool' dont ya think?++"

Now, inbetween the ++" i would like to add slashes and also replace ++" with just "

Pseudocode:

Look for a ++" then store where it is in a variable
Look for another ++" then store it in a varialbe
So now I have a start and finish
Then somehow take whatever is in between variable1 and variable 2 then addslashes()

then put it all back to gether again... Anyone know how I can do this?

View Replies !   View Related

Copyright © 2005-08 www.BigResource.com, All rights reserved