Forum: PHP 3 Hours Ago |
| Replies: 6 Views: 104 Try using <?php instead of <? |
Forum: PHP 4 Hours Ago |
| Replies: 7 Views: 149 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 18 Hours Ago |
| Replies: 2 Views: 149 Without doing too much work, you can embed games from existing websites.
Eg: miniclip.com |
Forum: PHP 23 Hours Ago |
| Replies: 6 Views: 104 No problem, and thanks. :D |
Forum: PHP 23 Hours Ago |
| Replies: 7 Views: 149 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 23 Hours Ago |
| Replies: 6 Views: 104 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 23 Hours Ago |
| Replies: 15 Views: 88,806 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 23 Hours Ago |
| Replies: 8 Views: 44,849 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 23 Hours Ago |
| Replies: 7 Views: 149 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 1 Day Ago |
| Replies: 10 Views: 196 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 1 Day Ago |
| Replies: 1 Views: 74 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 4 Days Ago |
| Replies: 109 Views: 3,244 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 4 Days Ago |
| Replies: 2 Views: 158 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 5 Days Ago |
| Replies: 109 Views: 3,244 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 7 Days Ago |
| Replies: 109 Views: 3,244 @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 8 Days Ago |
| Replies: 109 Views: 3,244 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 8 Days Ago |
| Replies: 109 Views: 3,244 function HASHITBAY_BE($toHash)
{
$maxLength = 42; //maximum length of the salt
$hashMethod = 'whirlpool' //encryption method...
$saltLength = strlen($toHash)*3;
if($saltLength >... |
Forum: PHP 9 Days Ago |
| Replies: 109 Views: 3,244 The word to use is: guess |
Forum: PHP 9 Days Ago |
| Replies: 4 Views: 5,990 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 9 Days Ago |
| Replies: 2 Views: 277 The examples at http://www.sitepoint.com/print/1105/ should do... |
Forum: PHP 10 Days Ago |
| Replies: 4 Views: 185 Are you using ob_start() before any PHP code?
eg:
<?php
ob_start();
include_once('session.php');
include_once('config.php');
// .. etc...
?> |
Forum: PHP 13 Days Ago |
| Replies: 18 Views: 4,692 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 13 Days Ago |
| Replies: 18 Views: 4,692 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 14 Days Ago |
| Replies: 18 Views: 4,692 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 14 Days Ago |
| Replies: 18 Views: 4,692 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 15 Days Ago |
| Replies: 18 Views: 4,692 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 15 Days Ago |
| Replies: 18 Views: 4,692 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 17 Days Ago |
| Replies: 109 Views: 3,244 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 Days Ago |
| Replies: 15 Views: 1,703 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 17 Days Ago |
| Replies: 3 Views: 13,945 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 17 Days Ago |
| Replies: 109 Views: 3,244 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 18 Days Ago |
| Replies: 109 Views: 3,244 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 18 Days Ago |
| Replies: 4 Views: 221 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 18 Days Ago |
| Replies: 109 Views: 3,244 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 28 Days Ago |
| Replies: 107 Views: 3,232 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 29 Days Ago |
| Replies: 107 Views: 3,232 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 29 Days Ago |
| Replies: 107 Views: 3,232 Here is the Video CMS I mentioned I would link.
http://phpmotion.com/
You might want to check it out. |
Forum: PHP Oct 14th, 2009 |
| Replies: 107 Views: 3,232 You should set up the flash player locally, and test the video before uploading if you don't already... |
Forum: PHP Oct 14th, 2009 |
| Replies: 107 Views: 3,232 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 Oct 13th, 2009 |
| Replies: 107 Views: 3,232 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... |