Search Results

Showing results 1 to 40 of 892
Search took 0.04 seconds.
Search: Posts Made By: digital-ether ; Forum: PHP and child forums
Forum: PHP 7 Days Ago
Replies: 2
Views: 220
Posted By digital-ether
Try benchmarking the xml parsing process:

You can simply use:

$start = microtime(true);
// do a few
$lapse = microtime(true)-$start;

and:
Forum: PHP 7 Days Ago
Replies: 2
Views: 195
Posted By digital-ether
Try this bridge. I don't know if user's are integrated or not.

http://extensions.joomla.org/extensions/news-production/blog/6659

However, it shouldn't be that hard to do with a custom Joomla...
Forum: PHP 12 Days Ago
Replies: 6
Views: 501
Posted By digital-ether
The last post in the thread is an example of a HTTP POST of XML content. Are you having problems with it?
Forum: PHP 12 Days Ago
Replies: 7
Views: 327
Posted By digital-ether
You need to do:

echo $code;

After the:

$code = str_replace('{id}', $id, $code);
Forum: PHP 12 Days Ago
Replies: 7
Views: 327
Posted By digital-ether
Try using <?php instead of <?
Forum: PHP 12 Days Ago
Replies: 7
Views: 335
Posted By digital-ether
A good resource on regex is: http://www.regular-expressions.info/
The special characters in regex are documented here: http://www.regular-expressions.info/reference.html

so href|src means href...
Forum: PHP 13 Days Ago
Replies: 2
Views: 285
Posted By digital-ether
Without doing too much work, you can embed games from existing websites.

Eg: miniclip.com
Forum: PHP 13 Days Ago
Replies: 7
Views: 327
Posted By digital-ether
No problem, and thanks. :D
Forum: PHP 13 Days Ago
Replies: 7
Views: 335
Posted By digital-ether
It is daunting to try and understand a large piece of code. That is why I posted the process, in a few simple lines.

Great script by the way.. :D

And yes, the regex can be improved, that is...
Forum: PHP 13 Days Ago
Replies: 7
Views: 327
Posted By digital-ether
This it the embed code for that particular page:

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/NMAYr709-9Y&hl=en_US&fs=1&"></param><param...
Forum: PHP 13 Days Ago
Replies: 16
Views: 90,391
Posted By digital-ether
To ensure an image is reloaded, send a unique URL.

eg:

<img src="image.php?random-number123" />

Where random_number123 can be generated by:

<?php
Forum: PHP 13 Days Ago
Replies: 8
Views: 45,501
Posted By digital-ether
If you're getting the error:

Cannot modify header information - headers already sent by

Add ob_start() to the beginning of the script.
Forum: PHP 13 Days Ago
Replies: 7
Views: 335
Posted By digital-ether
To explain how this is done:

First you make a http request to the page you want to parse.

eg:

$url = 'http://example.com/';
$content = file_get_contents($url);

Then you parse the HTML....
Forum: PHP 13 Days Ago
Replies: 10
Views: 565
Posted By digital-ether
You can send SMS for free to most carriers by sending an email to their Email to SMS gateway.

A list of carriers is here:
http://en.wikipedia.org/wiki/List_of_carriers_providing_SMS_transit
...
Forum: PHP 13 Days Ago
Replies: 1
Views: 210
Posted By digital-ether
Since the links are external domains, you'll need to have PHP act as a proxy.

You'll have PHP make a HTTP request to the site, and fetch the meta, title and images by parsing the returned HTML. ...
Forum: PHP 16 Days Ago
Replies: 109
Views: 3,563
Posted By digital-ether
adler32 and crc32 were developed for a different purpose then security. They are used more for verifying data integrity or error detection.

They do not provide means to secure against intentional...
Forum: PHP 17 Days Ago
Replies: 2
Views: 208
Posted By digital-ether
You cannot stop a firefox addon from loading on your site. The reason it doesn't load on those websites is because it is configured that way.

Your website runs in a security sandbox in the...
Forum: PHP 17 Days Ago
Replies: 109
Views: 3,563
Posted By digital-ether
CRC32 should NOT be used at all. Not as the last hash output, or before you hash it again with a secure hash. Just not at all.

Even if you take a crc32 hash and rehash it with sha256. It doesn't...
Forum: PHP 20 Days Ago
Replies: 109
Views: 3,563
Posted By digital-ether
@OmniX The length of the salt does matter. The salt should be random, yes, but it should also be long enough to make the precomputation attack infeasible.

I've also read those statements that the...
Forum: PHP 21 Days Ago
Replies: 109
Views: 3,563
Posted By digital-ether
Wouldn't you just love to prove it?
http://en.wikipedia.org/wiki/Millennium_Prize_Problems
I think I'll try and solve it tonight. Or maybe just buy a lottery ticket, better chance of winning that.
Forum: PHP 21 Days Ago
Replies: 109
Views: 3,563
Posted By digital-ether
function HASHITBAY_BE($toHash)
{
$maxLength = 42; //maximum length of the salt
$hashMethod = 'whirlpool' //encryption method...
$saltLength = strlen($toHash)*3;
if($saltLength >...
Forum: PHP 21 Days Ago
Replies: 109
Views: 3,563
Posted By digital-ether
The word to use is: guess
Forum: PHP 22 Days Ago
Replies: 4
Views: 6,231
Posted By digital-ether
There manual page on the readfile() function has some really good information and examples on sending a HTTP response with different headers. For example, if you want to support resuming downloads. ...
Forum: PHP 22 Days Ago
Replies: 2
Views: 427
Posted By digital-ether
The examples at http://www.sitepoint.com/print/1105/ should do...
Forum: PHP 22 Days Ago
Replies: 4
Solved: header problem
Views: 225
Posted By digital-ether
Are you using ob_start() before any PHP code?

eg:

<?php
ob_start();
include_once('session.php');
include_once('config.php');
// .. etc...
?>
Forum: PHP 25 Days Ago
Replies: 18
Views: 4,834
Posted By digital-ether
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 26 Days Ago
Replies: 18
Views: 4,834
Posted By digital-ether
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 27 Days Ago
Replies: 18
Views: 4,834
Posted By digital-ether
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 27 Days Ago
Replies: 18
Views: 4,834
Posted By digital-ether
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 28 Days Ago
Replies: 18
Views: 4,834
Posted By digital-ether
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 28 Days Ago
Replies: 18
Views: 4,834
Posted By digital-ether
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 29 Days Ago
Replies: 109
Views: 3,563
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 30 Days Ago
Replies: 15
Views: 1,783
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 30 Days Ago
Replies: 3
Views: 14,167
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 30 Days Ago
Replies: 109
Views: 3,563
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 30 Days Ago
Replies: 109
Views: 3,563
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 31 Days Ago
Replies: 4
Views: 280
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 31 Days Ago
Replies: 109
Views: 3,563
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 Oct 24th, 2009
Replies: 107
Views: 3,390
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 Oct 23rd, 2009
Replies: 107
Views: 3,390
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
Showing results 1 to 40 of 892

 


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

©2003 - 2009 DaniWeb® LLC