Thank you OlafDoschke,
I read this url and learned about better building blocks for uniqueness:
http://httpd.apache.org/docs/2.2/mod/mod_unique_id.html
In short I learned:
On one machine, including multiprocessor machines, no two processes that overlap on the timeline can possibly have the...
The follwing function returns a microtime(stamp) with 10 digits for the integer,
and most of the time 18 digits sometimes less for the fractional part.
18 digits decimal is nearly a 64 bits number, so a very hi resolution/subdivision
of the second.
function mts()
{
$_p = ini_get('precision')...
the dot in:
this.increaseHeight
is like the slash in a path, in which the final destination is being expressed.
The only knowledge setInterval() and setTimeout() will receive when this.increaseHeight() is being passed is the function body of increaseHeight(), and further have no knowledge about...
For explanation see the bottom comments labeled REASON and EXAMPLE.
<?php
[color #AAAAAA]/*
DESC:
Calculates the zero based offset of a record in a table, using
any given ORDER BY subquery
PARAM:
+ $rec (IN, ARRA, PBRS=REQ)
associative array representing the selected record that...
Thank you for making it more clear to me, and for the FAQ. I don't visit this forum that much so I'm not that familiar with all the features yet. The other day I saw a thread about someone looking for a way to store variables on disk and I have this function that does it, so I made a tip page...
I do care about it. That's why I posted it, sleipnir.
At least it is code what is posted...
It seems me that you know your way around here much better than me, and are much more organized. Why don't you make sure this piece of code ends up in exactly the right place if you really care this code...
Don't feel it is necessary to make a FAQ for this. I knew about var_export() but I just like doing some things myself.
var_export() is more advanced but I don't like the unneeded array keys it sets for a zero based array.
...or make enhancements please let anyone know through this page. I spend a day searching on the net for this, found same questions but no answers.
/*
DESC:
Calculates the zero based offset of a record in a table, using
any given ORDER BY subquery
PARAM:
+ $rec (IN, ARRA, PBRS=REQ)
associative...
...called 'arr_code', which makes a php code text representation of an array. The comments explain the ins and outs and how it works.
arr_code.php:
/*
DESC:
Make a php code text representation of an array.
PARAM:
+ $code (OUT, STR, PBRS=REQ)
Receives the code text which can be stored inside a...
See a table with 1000 entries in front of you. The table contains columns 'id', 'first_name' and 'last_name'.
Record with id=435, is selected/highlighted in the gui, and has...
first_name='Albert'
last_name='Zucchini'
The html gui of the table has column headers labeled 'first_name' and...
In a table browse control with [first] [prev] [next] [last] buttons and a LIMIT setting, the records in a db table are devided and browsed in virtual pages.
In the GUI for these pages a record can be selected, and columns can be sorted.
When I sort with a record selected, changes are big that...
In a table browse control with [first] [prev] [next] [last] buttons and a LIMIT setting, the records in a db table are devided and browsed in virtual pages.
In the GUI for these pages a record can be selected, and columns can be sorted.
When I sort with a record selected, changes are big that...
Here is working generator code:
http://www.phpfreaks.com/quickcode/Sudoku/585.php
Tested it only on difficulty level 3.
Notes:
+ The function only generates the integers; you'll have to build your own interface.
+ make this the last statement of the function:
return array($puzzle, $solution)...
Encryption en decryption using openssl_pkcs7_() functions goes well.
Only when openssl_pkcs7_encrypt() encrypts with the flag PKCS7_BINARY, the decrypted result after openssl_pkcs7_decrypt() is different and I don't know how to decode it into readable text, and parse the originial encrypted...
Each database having its own username and password provides access to that database for a particular user. This implies a separate connection to the same database server, weather the access privileges for the databases are identical or not.
The site owner wants a free query page in the backend...
For now I only remove it from the blinker array.
The reason for obj not removed by the browser is most probably not because I have a reference to it, but should have some other purpose.
What to do with cross frame references to objects that do no longer exist?
Inside the page that publishes the frameset, index.php, there is a javascript blinking object, ojs.blinker, that alternates a html element its classname, between two css rule names, every 500ms.
In the content page this...
A shared hosting provider allows to setup 10 MySQL databases. The only thing is that each database is forced into having its own username and password, which means a separate connection has got to be made to each database.
Is there a way to join tables over the two connections?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.