Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
[SOLVED] what OS is good to host a php and mysql data driven website
Daniel0 replied to cluce's topic in Miscellaneous
Where did you get those statistics from? I don't know the real numbers, but I seriously doubt that 95% of all servers run Linux. IIS has a 30% market share according to Wikipedia's 'Web server' article IIS does not run on Linux. Here are some other statistics and surveys: http://news.netcraft.com/archives/2007/05/01/may_2007_web_server_survey.html http://www.securityspace.com/s_survey/data/200610/index.html -
Notice that the ping command will run until it is stopped unless otherwise specified using -c count
-
Yes, except it would be something like this: if(count($errors) > 0) { echo implode('<br />', $errors); }
-
Please help me... which is the best php editor?
Daniel0 replied to dream25's topic in PHP Coding Help
FCK Editor is not a PHP editor, but a WYSIWYG editor for web sites. -
Please help me... which is the best php editor?
Daniel0 replied to dream25's topic in PHP Coding Help
There is no definite answer to that. Everybody has their own opinion as to which is the best. Some prefer to use notepad while others prefer a full-blown IDE. There has been numerous posts about this subject, here is one of them: http://www.phpfreaks.com/forums/index.php/topic,54859.0.html -
exec('ping google.com');
-
While being almost the same as Glyde's, this works for me: <?php function delete_folder($folder) { if(!is_dir($folder)) { trigger_error("'{$folder}' is not a folder", E_USER_ERROR); return false; } $folder = str_replace('\\', '/', $folder); if($folder[strlen($var)-1] == '/') { $folder = substr($folder,0,strlen($folder)-1); } $dh = opendir($folder); while($item = readdir($dh)) { if($item == '.' || $item == '..') { continue; } if(is_dir("{$folder}/{$item}")) { delete_folder("{$folder}/{$item}"); } else { unlink("{$folder}/{$item}"); } } closedir($dh); return rmdir($folder); } ?>
-
You need a value attribute in the <option> tag.
-
Just do like this: $errors[] = "The error message here"; Then when you are done checking for errors, see if count($errors) > 0 and then display the errors in the array.
-
Not that I know of. test of underline tag... Edit: WTF?
-
By providing something people will use. Something new which they don't already have/can get better another place.
-
Is it all URLs ending with .php? Can you read this page?: http://www.phpfreaks.com/tutorials.php I doubt it is file association problem. I have .php files associated with my editor as well. No problem.
-
If in Firefox try: Tools > Options > Content > File types > Manage There might be an association there.
-
registration....for phpfreaks.com
Daniel0 replied to freakstyle's topic in PHPFreaks.com Website Feedback
Noticed the link saying "Request another image". This will generate a new image with the same text. E.g. if you can't read character number 2 and 4, then try clicking that link and then maybe you can read them. I don't really have problems with the CAPTCHA images. -
Bunch of crap. There is in no way it's a thing of the past. And how are you supposed to prove that there is no other option? Cron is designed specifically to run a job at a specific interval and is IMO the best way to do it in Unix/Linux.
-
Did you even look at what I told you? E.g. in Education Store Europe Flash CS3 Professional is listed as €249 ex VAT ($335.58). (699-335.58)/699 = 0.52 = 52% There you got it. A student edition with a 52% discount.
-
It's your choice, but why buy an old version of Flash? Why not buy CS3? http://store1.adobe.com/cfusion/store/html/index.cfm?event=displayStoreSelector&keyword=flash > Education Stores (on the right side)
-
color-coded code on the message board
Daniel0 replied to johnrcornell's topic in PHPFreaks.com Website Feedback
I prefer the tags to the [php] tags simply because the [code] will have a monospaced font and it gives you a box which will have scrollbars if it is long code. -
It's just a matter of knowing the filenames. With password protected directories they would have to enter a password whether they knew that or not. So it is not as secure as that.
-
Hmm, I somehow failed to notice there were more pages. Just nevermind my above post...
-
Try this echo /usr/bin/env php to get the path of the binary file.
-
Does it support POST requests? It reset the connection when trying to comment on wordpress. Still pretty cool though.
-
You might need some HTML (and CSS).
-
I think he means that they broke the law by saying (writing on their page) he would have cron jobs, then when he tries to make a cron job they tell him that he needs some sort of special privileges in order to setup a cron job. I.e. "to make a statement which is known to be false or misleading".
-
Ah. Okay. Let's say I supply this line: 17:25 That is in GMT+1. In my settings on your system I set the timezone to be that (meaning that $timezone in the below example holds int 1). <?php //... $time_gmt = strtotime($_POST['when'])-3600*$timezone; //... ?>