Forum: PHP 2 Hours Ago |
| Replies: 18 Views: 4,413 The whole array or string does not need to be kept in memory, in order to generate the hash. The hash can be generated by writing the input in 1 byte at a time.
Example:
// sha1_stream.php... |
Forum: PHP 15 Hours Ago |
| Replies: 18 Views: 4,413 After thinking about this again, I realized I made an assumption that is very incorrect. I assumed hash functions require the whole input in order to produce the hash.
But it appears the hash is... |
Forum: PHP 1 Day Ago |
| Replies: 18 Views: 4,413 Looks great. I modified the class I wrote a bit after looking at your code.
Just a few suggestions:
You could optimize the string concatenation.
$buffer .= hash($algo, $input . $salt);
... |
Forum: PHP 1 Day Ago |
| Replies: 18 Views: 4,413 Thought I'd write an example:
note: for PHP4 just remove the "public static" in front of each function declaration.
The class:
/**
* Generate cryptographic Hashes for passwords
*
*... |
Forum: PHP 2 Days Ago |
| Replies: 18 Views: 4,413 You can save the number of iterations used on the hash. That way you can start with just a few, say 1000, then add more if needed. Computation speed is always increasing so to keep the password safe... |
Forum: PHP 2 Days Ago |
| Replies: 18 Views: 4,413 There really is no reason to use 2 way encryption on passwords. Retrieving the password is not the concern, gaining access to their account is. So if the user forgets their password, send them a... |
Forum: PHP 4 Days Ago |
| Replies: 44 Views: 1,612 There is a finite set of possible hashes, since hashes are of a finite length.
You're right, you don't need to store all the hashes, such as what rainbow tables do ... |
Forum: PHP 4 Days Ago |
| Replies: 15 Views: 1,598 If you are after optimized queries, another way is to save the day, month, and year as individual INT columns.
That way you can use the indexes on the INT columns, just as you would a timestamp,... |
Forum: PHP 4 Days Ago |
| Replies: 3 Views: 13,740 Please post your question in a new thread instead of resurrection a thread that is years old.
Here is the documentation to the syntax of a mysql update query: ... |
Forum: PHP 4 Days Ago |
| Replies: 44 Views: 1,612 SHA256 are Whirlpool are definitely secure. For most applications sha1 and md5 are also secure, though many will recommend using SHA2 and up. http://en.wikipedia.org/wiki/SHA_hash_functions
You... |
Forum: PHP 5 Days Ago |
| Replies: 44 Views: 1,612 CRC32b is not designed to be a secure hash: http://en.wikipedia.org/wiki/Cyclic_redundancy_check
There is nothing wrong with SHA256, Whirlpool etc. are designed to be secure thus they should be... |
Forum: PHP 5 Days Ago |
| Replies: 4 Views: 142 Why not just save the whole hash generated by whirlpool? Using md5 effectively reduces the size of the hash, making it easier to guess (find collisions).
Taking a substr() of 7 characters makes... |
Forum: PHP 5 Days Ago |
| Replies: 44 Views: 1,612 Sorry for resurrecting an old thread. But it was referenced recently and I thought I'd add to it.
crc32b should not be used with passwords as it is an insecure hash function. ... |
Forum: PHP 15 Days Ago |
| Replies: 104 Views: 2,840 Your web host support should be helpful there.
From the shell, do:
echo $PATH
To see each folder that is searched for commands.
You can then just search each folder like: |
Forum: PHP 15 Days Ago |
| Replies: 104 Views: 2,840 You can download the docs which explains how to install the extension here:
http://www.phpshield.com/encrypt_php/documentation.php?action=dload |
Forum: PHP 16 Days Ago |
| Replies: 104 Views: 2,840 Here is the Video CMS I mentioned I would link.
http://phpmotion.com/
You might want to check it out. |
Forum: PHP 24 Days Ago |
| Replies: 104 Views: 2,840 You should set up the flash player locally, and test the video before uploading if you don't already... |
Forum: PHP 24 Days Ago |
| Replies: 104 Views: 2,840 Here is the tutorial on how to get seeking possible in the JW Player.
http://www.longtailvideo.com/support/tutorials/HTTP-Video-Streaming
This allows seeking to a not yet buffered part of the... |
Forum: PHP 26 Days Ago |
| Replies: 104 Views: 2,840 In my personal experience, it usually takes a lot longer. I worked on a video site last year. It took about 1 week to get a basic working prototype (2 developers). The actual project went on for 6... |
Forum: PHP 26 Days Ago |
| Replies: 10 Views: 397 You won't know what is wrong, unless you view the errors. |
Forum: PHP 27 Days Ago |
| Replies: 104 Views: 2,840 I remember reading about that limit. I think you're pretty much bound by it. |
Forum: PHP 27 Days Ago |
| Replies: 10 Views: 397 Here is a good reference to error handling in PHP: http://www.addedbytes.com/php/php-ini-guide-error-handling-and-logging/ |
Forum: PHP 27 Days Ago |
| Replies: 10 Views: 397 You can only insert into one table per SQL query.
http://dev.mysql.com/doc/refman/5.1/en/insert.html
However, there is nothing preventing you from doing two MySQL queries on the same PHP script. ... |
Forum: PHP 27 Days Ago |
| Replies: 1 Views: 303 What PDF library are you using? They should have documentation on how to include HTML. |
Forum: PHP 28 Days Ago |
| Replies: 9 Views: 360 Just copy and paste the code kkeith29 sent. That way you can work with it easily.
Then try removing all the @ references in front of @mail(). Then place:
error_reporting(E_ALL);... |
Forum: PHP 28 Days Ago |
| Replies: 104 Views: 2,840 I just tried the video capture and the other tools they have, that is some really good stuff. Thanks for recommending it.
Btw, the link is:
http://www.nchsoftware.com/ |
Forum: PHP 28 Days Ago |
| Replies: 104 Views: 2,840 For transcoding media files you're best bet is FFMpeg, http://en.wikipedia.org/wiki/FFmpeg
You can invoke it from the command line. If you want a graphical interface, VLC is also Open Source and... |
Forum: PHP 28 Days Ago |
| Replies: 1 Views: 370 A simple method is to just send emails, to the phone service providers Email to SMS/TXT gateway. A list is here:
http://en.wikipedia.org/wiki/List_of_carriers_providing_SMS_transit
For example,... |
Forum: PHP 28 Days Ago |
| Replies: 9 Views: 360 Could you please post your code. Even if it is encoded. |
Forum: PHP 29 Days Ago |
| Replies: 104 Views: 2,840 A tutorial on how to create your first PHP page. A single step by step, that would be the easiest way to start a total noob on PHP. |
Forum: PHP 33 Days Ago |
| Replies: 1 Views: 162 Take a look at this class:
http://code.google.com/p/php-calendar-class/source/browse/trunk/calendar.class.php
The PHP datetime class would also be a starting point:... |
Forum: PHP 33 Days Ago |
| Replies: 8 Views: 228 You can't place a WHERE clause inside a SELECT statement.
http://dev.mysql.com/doc/refman/5.1/en/insert.html
However, you can do the SELECT and then INSERT if needed.
SELECT 1 FROM... |
Forum: PHP 34 Days Ago |
| Replies: 4 Views: 357 I find the stream_context_create() function simpler then cURL since you don't have to remember or look up all those CURLOPT_* constants.
// the xml to send
$xml = 'your xml payload';
//... |
Forum: PHP 34 Days Ago |
| Replies: 4 Views: 357 PHP5+, you can also use the stream functions.
http://www.php.net/manual/en/book.stream.php
http://www.php.net/manual/en/function.stream-socket-client.php
or the similar fsockopen() in PHP4:... |
Forum: PHP 34 Days Ago |
| Replies: 1 Views: 229 What you want is quite broad and there are many ways to achieve it.
Apart from the development of the website, you'll need to get a list of RSS feeds to use to build your content. You can go... |
Forum: PHP 34 Days Ago |
| Replies: 2 Views: 309 There are a lot of good examples of forcing a download at:
http://www.php.net/manual/en/function.header.php
The example posted at: http://elouai.com/force-download.php
does not validate the... |
Forum: JavaScript / DHTML / AJAX Sep 30th, 2009 |
| Replies: 12 Views: 734 The new window must be interpreted as HTML. If you name the page with a php extension (.php) then the server should interpret it as HTML, and execute the JavaScript.
However, you can also send... |
Forum: JavaScript / DHTML / AJAX Sep 29th, 2009 |
| Replies: 1 Views: 247 Usually, if it is a regular download, then the filename is in the Content-Disposition header.
However, it really depends on how you structure your HTTP Response. You can easily send the filename... |
Forum: PHP Sep 29th, 2009 |
| Replies: 5 Views: 425 You can use gethostbyname().
http://us2.php.net/manual/en/function.gethostbyname.php
eg:
if (gethostbyname('example.com')) {
echo 'Domain exists';
} else {
echo 'Domain does not... |