Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
What do you mean? Do you wish to get rid of the horizontal scroll bar? If so, try overflow:auto instead.
-
Ahhh, ok... then you would use this CSS code: [code]#menubar a { background-color:inherit; text-decoration:none; border-left:2px solid #FFF; border-right:2px solid #FFF; border-top:none; border-bottom:none; color:#066; } #menubar a:hover, a.highlight { background-color:inherit; color:#F90; border-left:2px solid #F90; border-right:2px solid #F90; border-top:none; border-bottom:none; }[/code] Note: Please use the [nobbc][code][/nobbc]-tag instead of the [nobbc][php][/nobbc]-tag because of these reasons: 1. It is CSS code, not PHP code. 2. You cannot copy the code. 3. The [nobbc][code][/nobbc]-tag makes a box where you can scroll, that takes up less space if there is a lot of code.
-
It probably wont happen to them. You might have got the code that you have made wrong at some time in your cache so it shouldn't happen to your users.
-
Try to look at this http://www.phpfreaks.com/forums/index.php/topic,95433.0.html :)
-
Hmm... you're right. It's a connection reset error (well at least in FF).
-
Make a function that calculates an attack score based like this: [code]function calculate($level,$troops,$bonus=false) { $result = pow(sqrt(pow(($level*22),2)/($troops*18)+$troops/100),3); if($bonus==true) { $result *= 1.25; $result += 3; } $result = round($result); return $result; }[/code] Highest score wins. The bonus is given if you are attacking a higher leveled person. Example 1: Player1 wins (P1: 45; P2: 43) - bonus to Player2 Example 2: Player2 wins (P1: 59; P2: 84) - bonus to Player2 Edit: Here is the formula: [img]http://img223.imageshack.us/img223/5219/formulayx1.png[/img] and for the bonus: [img]http://img134.imageshack.us/img134/6052/formula2tv3.png[/img] (S: Score; T: Troops; L: Level)
-
When showing user admin page - Password Question
Daniel0 replied to shaggycap's topic in Application Design
Make some sort of "leave empty to not change" sort of field. Check if anything is entered into it, and if there is, then change it (you should possibly make a typing error check and a "current password" check). -
Ctrl+F5 OR In Firefox you go to Tools > Clear Private Data > Check only cache (or anything else you'd like cleared) > Clear Private Data Now In IE6 you go to* Tools > Internet Settings > Temporary Internet Files > Check "Delete all offline contents" > OK * I have a Danish version installed, so my translations may not be exactly correct of what it is in the English version.
-
It's probably due to the IPS (Intrusion Prevention System [see sticky topic]). If you have script tags, then put spaces in like this: [code]< script >[/code]
-
Try to clear your cache.
-
scandir is PHP5 and higher, but you can use this snippet to ensure that it exists (from PHP manual comments): [code]<?php if(!function_exists('scandir')) { function scandir($dir, $sortorder = 0) { if(is_dir($dir)) { $dirlist = opendir($dir); while( ($file = readdir($dirlist)) !== false) { if(!is_dir($file)) { $files[] = $file; } } ($sortorder == 0) ? asort($files) : rsort($files); // arsort was replaced with rsort return $files; } else { return FALSE; break; } } } ?>[/code]
-
Try editing phpMyAdmin's config file and check if it uses the correct settings.
-
Try this: [code]#menubar a:hover[class="hightlightme"] {[/code]
-
A sample...? Well, for IE7 specific CSS code you would put that in the ie7.css file. For the print media, put that in the print.css etc.
-
You'll need to send these headers as well: [code]MIME-Version: 1.0 Content-type: text/html; charset=iso-8859-1[/code] (note that you can of course change it to another character set/encoding)
-
Your form could be like this: [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"> <head> <title>Form</title> </head> <body> <form action="send.php" method="post"> <table> <tr> <td><label for="name">Name:</label></td> <td><input type="text" name="name" id="name" /></td> </tr> <tr> <td><label for="address">Address:</label></td> <td><input type="text" name="address" id="address" /></td> </tr> <tr> <td><label for="city">City:</label></td> <td><input type="text" name="city" id="city" /></td> </tr> <tr> <td><label for="state">State:</label></td> <td><input type="text" name="state" id="state" /></td> </tr> <tr> <td><label for="zip">ZIP:</label></td> <td><input type="text" name="zip" id="zip" /></td> </tr> <tr> <td><label for="email">Email:</label></td> <td><input type="text" name="email" id="email" /></td> </tr> <tr> <td><label for="username">Username:</label></td> <td><input type="text" name="username" id="username" /></td> </tr> <tr> <td>Radio button 1:</td> <td><label><input type="radio" name="rb1" id="rb1_v1" value="value 1" /> Value 1</label> <label><input type="radio" name="rb1" id="rb1_v2" value="value 2" /> Value 2</label></td> </tr> <tr> <td>...</td> <td>...</td> </tr> <tr> <td colspan="2"><button type="submit">Send</button></td> </tr> </table> </form> </body> </html>[/code]
-
Use table-less layouts... that fixes most of the issues in IE.
-
[url=http://xaos-ia.com/daniel/us_cities_by_state.csv]CSV (365 KB)[/url], [url=http://xaos-ia.com/daniel/us_cities_by_state.xml]XML (1.9 MB)[/url] I used the database [url=http://www.micahcarrick.com/v2/content/view/4/3/]here[/url] to generate the files.
-
problem with zend and ioncube installation on localhost/windows xp platform
Daniel0 replied to jesi's topic in Miscellaneous
Edit: For support of PHP 5.2.0 you will need [url=http://downloads.zend.com/optimizer/3.2.0/ZendOptimizer-3.2.0-Windows-i386.exe]Zend Optimizer 3.2.0[/url]. Earlier versions will not work with PHP 5.2.0. Edit 2: You might want to consider Zend Platform instead. It is free for development purposes. -
problem with zend and ioncube installation on localhost/windows xp platform
Daniel0 replied to jesi's topic in Miscellaneous
You said you have two versions of PHP installed. Which one is used by the webserver or which one handles the .php files? You need to make sure that Zend Optimizer is enabled for both of the PHP installations. -
[quote author=zanus link=topic=117181.msg477834#msg477834 date=1165141173] one thing I always do to people's pcs is open msconfig and disable all in the startup... [/quote] There might be programs they need in the startup list...
-
Add [tt]checked="checked"[/tt] to the one that should be checked.
-
[quote author=phpPunk link=topic=117037.msg477514#msg477514 date=1165063828] In a purely business sense, aesthetics are *everything* [/quote] Marketing is important as well. If people cannot find you, then they will not buy from you. Search engines prefer text to images. Another thing is accessibility... Text readers cannot read images (I think). [url=http://www.sitepoint.com/article/surfing-web-eyes-closed]Tried Surfing The Web With Your Eyes Closed?[/url], [url=http://www.sitepoint.com]Sitepoint[/url] I definitely vote for text.