New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Joodle Monitor Released
Joodle Monitor is now officially done
It had some delay because i was busy working for school
Anyway, you can download it here: http://173.208.240.138/download/JoodleMonitor.zip
Demo: http://173.208.240.138/demo/
Suggestions are welcome!
Thanked by 1Amfy
Comments
Is it open source or what license is it?
It's open source
It still needs some sort of license (just say GPL and everyone will be happy^^)
I prefer the WTFPL
Well
You can do what u want with it, only no redistributing shit
@joodle looks really nice. Only one small thing is strange: The last line of every output is double?
Yeah, i don't know howto fix that problem
But i'll look into this soon
But i'll look into this soon
http://php.net/manual/en/function.system.php
Maybe that helps?
Just don't use echo.
Btw why you do something like this
Also, I am not sure, but I recommend you to use echo just when you really need it, and not for outputting tags, like
or even if you like short tags
instead of
Additionally, use http://www.php.net/manual/en/function.escapeshellarg.php or http://www.php.net/manual/en/function.escapeshellcmd.php even if your function doesn't take user input.
Why this?
Well, I know it probably will cause a mess depending on how is the command, but nothing dangerous, is correct?
Installed it on my server in Germany.
Will try to fix that small system() problem.
Ah, and don't ping google.com instead of a real-usa-location. Getting 2-3ms, that can't be the usa :P
A small solution would be system("free -m > free.txt");
echo file_get_contents("file.txt"); but that's a spagethi-way :P
echo file_get_contents("file.txt"); but that's a spagethi-way :P
Too much, read my comment, just remove the echoes
@yomero: Oh, sorry, I haven't seen it. Will edit the .php's as you said, thanks.
Don't use functions if the code not called more than once!
@LES: Make sense, right. But are there more reasons, unless the expenditure?
Can you explain?
It's unneeded and sloppy. It uses more cpu cycles for no reason at all. Most likely he just found a code snippet on some website and used it without really knowing how it worked.
+1 on this. PHP is not robust enough to create it's own internal pointers, and therefore when referencing something that's not a variable, never realizes that you're asking for the same data.
It's one of those "it'll be in the next major version" issues that was supposed to have been part of PHP 3, then PHP 4, then PHP 5... probably been put off til PHP 6 now.
Now I get it. Maybe he did it to make it cleaner?
Example of used code:
would be enough if it was:
Just to save some bytes
@Damian: Thought that there is no more developing at PHP6?
It's nice Joodle. But don't know why it is unable to detect my CPU