silentwf
-
Posts
10 -
Joined
-
Last visited
Never
Posts posted by silentwf
-
-
Ya, thanks guys. I happened to stumble over the idea maybe "file reading" would do.
Then I searched it up on php.net. It gave me that, but didnt work, and on the bottom it said "see also" and it gave me "file_get_contents"
So! Thanks for helping out ^^ -
use <span> <p> <font> and there are many more tags
just use a class. like: <span class="right"> and such -
use the "width" attribute
-
W3C...ah yes...W3C
Basically in IE, they have a bunch of customized tags and attributes THAT ONLY WORK ON IE!
So the problem is just compatibility, I suggest you add something like this to your website
[code]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
[/code]
for "loose.dtd", there are the options of "transitional" (or was it transition?) and "strict"
add that to the VERY top of your code (before <HTML>) -
[quote author=RockingGroudon link=topic=103077.msg410148#msg410148 date=1154777193]
but the best one is sha1 because md5 can be decrypted by some providers on the net, use it like this
[code=php:0]
<?php
$encryptme="Hello World!";
$encryptme=sha1($encryptme); // Encrypted
?>
[/code]
[/quote]
[url=http://www.schneier.com/blog/archives/2005/02/sha1_broken.html]http://www.schneier.com/blog/archives/2005/02/sha1_broken.html[/url]
Ouch?
Always remember, NOTHING is absolutely secure. -
How come?
-
I'm trying to make a highlight replacing function just like GeSHi (but I need to mod it for my needs and stuff)
My code is:
[code]
<?php
$string = include("test.php");
$r = "<a href='whoknowswhat.html'>apples</a>";
$p = "apples";
$s2 = eregi_replace($p, $r, $string);
echo $s2;
?>
[/code]
i THINK that my $s2 declaration has no problems and I think the problem resides in $string. Is my declaration incorrect, 'cause once I change $string into something like "I love to eat apples" or something, the eregi_replace function works like magic. -
Actually i dont think its that hard...
The VERY simple one I think is: (pseudo code)
set up the db
make the fields
and edit
So like you could have db with teh fields: id, txt, eTime; setting id as autoincremement.
and then for every post you set up, add an id. and then when you want to modify it, just use the sql query with: "UPDATE dbname SET txt='$text', eTime=now()"; -
Hello bilis
Anyways, I ran into this problem myself, but now I can provide you with the answer :D
[code]
$query = "SELECT username FROM users WHERE username='$username'";
$result = mysql_query($query);
$checkUsername = mysql_fetch_array($result);
if!isset($checkUsername['username']){ //if the username is not taken
//do something
} else {
//report error
}
[/code]
Hope this helps
How to make login secure?
in PHP Coding Help
Posted
Just decrypt the Sha1, then decrypt the MD5.
And plus, it adds a BIG load to the db, the encryption is uber long