HeaDmiLe
Members-
Posts
36 -
Joined
-
Last visited
Never
Everything posted by HeaDmiLe
-
latin1_swedish_ci supports croatian, latin2_croatian_ci too, but problem is that I use phpmyadmin from time to time and it shows "?" instead od "č" for example. On OS X, on Windows there is no problem. I know it's up to phpmyadmin, but it makes me mad sometimes
-
I see many guys prefer latin1 instead od utf-8 collation. Do you know why? My problem is that I live in Croatia and we have some "special" characters like č and ć and because of that I have moved to utf-8. Thank u
-
i forgot to write sth... i don't need a code, i just nead a theoretical solution...
-
i want to make script that will change image source but first should get image width and height so that can slide old picture width up to a new image's width and same action related to height. the problem is i don't know how to get image dimension before image has loaded or there is some better way of doing this? (ex. moving image out of the screen until loading ended and then moving to right position) i use jquery... thank you...
-
[SOLVED] Echo array elements randomly, and each only once?
HeaDmiLe replied to dogfighter's topic in PHP Coding Help
maybe the shuffle (http://hr.php.net/manual/en/function.shuffle.php) function? -
header('location:'.basename(__FILE__)); maybe this?
-
I think you missed extract($_POST); above the if condition in _block_user.php... but i do not recomment you to use it... try if ($_POST['ip'] and $_POST['reason'] and $_POST['user']) { instead od extract... Tip: check some html rules like writing html attributes... Going to bed now, post if you success...
-
you don't need 255... xxx.xxx.xxx.xxx [4x3+3=15]... $ip = $_SERVER['REMOTE_ADDR'];
-
$sql = 'SELECT * FROM phptut ORDER BY id ASC'; $result = mysql_query($sql); function strLength($str,$len){ $lenght = strlen($str); if($lenght > $len){ return substr($str,0,$len).'...'; }else{ return $str; } } while($row = mysql_fetch_assoc($result)) { echo '<div id="tutorial"><a href="'.$_SERVER['REQUEST_URI'].'&id='.$row['id'].'">'.$row['title'].'</a></div>'; $str = $row['article']; //The fist part is the string, the second part is how long it can be echo '<div id="tutorial2">'; echo strLength($str,150); echo '<a href="'.$_SERVER['REQUEST_URI'].'&id='.$row['id'].'">Read More</a>'; echo '</div>'; } } ?>
-
Oh, you're totally right, I haven't seen it... bannally mistake, sry
-
Simple... change the nema of function... this have been used somewhere else
-
that means that username is not set really... problem is somewhere before this script... username isn't stored into session
-
please copy the output of print_r($_SESSION); if there is sth or just a blank?
-
put print_r($_SESSION); line before if condition if(isset[$_SESSION....
-
I think there is no way to use session_destroy without session_start... did you tested if script passes if condition?
-
Tried CakePHP and Zend Framework. Both are great.
-
You have all this stuff into cakephp cookbook. I think there is the point you're looking for http://book.cakephp.org/view/544/Prefix-Routing. Am I wrong?
-
DarkWater is right... It totally depends. If I have to build a large non-extensible system and I have to build it quickly, I use CakePHP. If I have to build large extensible system like CMS or sth like that, Zend Fw is recommended. I suggest you to learn both and see what you like more... Cheerz
-
I told you that sth in the include paths isn't ok
-
Class is istanced... weird problem, some guys tells you should use require for it, but i'm not sure, require results fatal error also. I think here are many of people that is more competentive to solve your problem
-
Look at the adress bar, you don't have the right url in php.ini, correct this first.
-
Problem solved, right? Nice, I learned sth new... This is great community