Search Results

Showing results 1 to 40 of 1000
Search took 0.06 seconds.
Search: Posts Made By: digital-ether
Forum: PHP 15 Hours Ago
Replies: 44
Views: 1,540
Posted By digital-ether
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 17 Hours Ago
Replies: 15
Views: 1,541
Posted By digital-ether
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 18 Hours Ago
Replies: 3
Views: 13,679
Posted By digital-ether
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 1 Day Ago
Replies: 44
Views: 1,540
Posted By digital-ether
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 1 Day Ago
Replies: 44
Views: 1,540
Posted By digital-ether
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 2 Days Ago
Replies: 4
Views: 110
Posted By digital-ether
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 2 Days Ago
Replies: 44
Views: 1,540
Posted By digital-ether
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 11 Days Ago
Replies: 104
Views: 2,787
Posted By digital-ether
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 12 Days Ago
Replies: 104
Views: 2,787
Posted By digital-ether
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 12 Days Ago
Replies: 104
Views: 2,787
Posted By digital-ether
Here is the Video CMS I mentioned I would link.
http://phpmotion.com/

You might want to check it out.
Forum: PHP 21 Days Ago
Replies: 104
Views: 2,787
Posted By digital-ether
You should set up the flash player locally, and test the video before uploading if you don't already...
Forum: PHP 21 Days Ago
Replies: 104
Views: 2,787
Posted By digital-ether
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 22 Days Ago
Replies: 104
Views: 2,787
Posted By digital-ether
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 23 Days Ago
Replies: 10
Views: 377
Posted By digital-ether
You won't know what is wrong, unless you view the errors.
Forum: PHP 23 Days Ago
Replies: 104
Views: 2,787
Posted By digital-ether
I remember reading about that limit. I think you're pretty much bound by it.
Forum: PHP 23 Days Ago
Replies: 10
Views: 377
Posted By digital-ether
Here is a good reference to error handling in PHP: http://www.addedbytes.com/php/php-ini-guide-error-handling-and-logging/
Forum: PHP 23 Days Ago
Replies: 10
Views: 377
Posted By digital-ether
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 23 Days Ago
Replies: 1
Views: 291
Posted By digital-ether
What PDF library are you using? They should have documentation on how to include HTML.
Forum: PHP 24 Days Ago
Replies: 9
Views: 350
Posted By digital-ether
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 24 Days Ago
Replies: 104
Views: 2,787
Posted By digital-ether
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 24 Days Ago
Replies: 104
Views: 2,787
Posted By digital-ether
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 25 Days Ago
Replies: 1
Views: 354
Posted By digital-ether
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 25 Days Ago
Replies: 9
Views: 350
Posted By digital-ether
Could you please post your code. Even if it is encoded.
Forum: PHP 26 Days Ago
Replies: 104
Views: 2,787
Posted By digital-ether
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 29 Days Ago
Replies: 1
Views: 156
Posted By digital-ether
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 29 Days Ago
Replies: 8
Views: 221
Posted By digital-ether
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 30 Days Ago
Replies: 4
Views: 343
Posted By digital-ether
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 30 Days Ago
Replies: 4
Views: 343
Posted By digital-ether
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 30 Days Ago
Replies: 1
Views: 227
Posted By digital-ether
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 30 Days Ago
Replies: 2
Views: 302
Posted By digital-ether
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: 723
Posted By digital-ether
Forum: JavaScript / DHTML / AJAX Sep 30th, 2009
Replies: 12
Views: 723
Posted By digital-ether
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: 244
Posted By digital-ether
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: 420
Posted By digital-ether
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...
Forum: PHP Sep 29th, 2009
Replies: 26
Views: 1,211
Posted By digital-ether
The reason you don't get duplicates is that a SHA1 is very unique. Thus even with the redundancy introduced by the function, it still does not collide with others.

It is the same as just cutting...
Forum: PHP Sep 28th, 2009
Replies: 26
Views: 1,211
Posted By digital-ether
Multiplication is associative, so you'll get numerous collisions.

$v=($charconvert[$char[0]]*$charconvert[$char[1]])+32;

eg:


compress_string('42'); // p
compress_string('24'); // p
Forum: PHP Sep 28th, 2009
Replies: 26
Views: 1,211
Posted By digital-ether
It is actually very basic.

The only odd operations used are:

% - modulo or remainder
chr() - return the character represented by a number in ASCII table
floor() - round down the float to an...
Forum: PHP Sep 28th, 2009
Replies: 26
Views: 1,211
Posted By digital-ether
You'll get blank strings in some cases. However, if you check the string length, you'll noticed it is comprised of chars. Not all characters in the ASCII table are visible. You however, still have...
Forum: PHP Sep 28th, 2009
Replies: 26
Views: 1,211
Posted By digital-ether
Here is a function that can convert a decimal to a base below 255, basically using all the ASCII characters.

/**
* Convert Decimal to a base less then 255
*
* @param Int $num
* @param Int...
Forum: PHP Sep 28th, 2009
Replies: 26
Views: 1,211
Posted By digital-ether
You need a valid base. 10 is not a valid base for a string containing a-f.

With sha1() the string is a hex, base 16. ie: 0-9a-f

echo base_convert(sha('test'), 16, 36);
Showing results 1 to 40 of 1000

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC