View previous topic :: View next topic |
Author |
Message |
Gandalf The Grey -
Joined: 14 Apr 2005 Posts: 9
|
Posted: Sat Apr 16, 2005 7:10 pm Post subject: testing |
|
|
:P |
|
Back to top |
|
|
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Sat Apr 16, 2005 7:18 pm Post subject: Re: testing |
|
|
Gandalf The Grey wrote: | :P |
Really intresting... Tell me more! |
|
Back to top |
|
|
Arctic -
Joined: 24 Sep 2004 Posts: 560
|
Posted: Sat Apr 16, 2005 7:24 pm Post subject: |
|
|
I winz? |
|
Back to top |
|
|
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Sat Apr 16, 2005 8:04 pm Post subject: |
|
|
BTW, how do you guys like my signature?
I wrote it in PHP, using GD.
Yes, it's opensource. Yes, you can have it. Just ask me and I will send it to you. |
|
Back to top |
|
|
Arctic -
Joined: 24 Sep 2004 Posts: 560
|
Posted: Sat Apr 16, 2005 8:12 pm Post subject: |
|
|
I used the Windows installer version of PHP, so I need to redownload it now. >_<
If you can give me the source code, I can start making some neat looking signature for the Abyss Web Server memebers, mostly a 400*100 signature themed with Abyss Web Server in mind, used as a background image for it. Like my idea? Leave the image generation time out, though. Can you make it show my server specs, Memory, CPU, HD space, and User IP address?
Here, have a background image:
I don't know how to work PHP to get the stats to turn up inside the box, though I'm sure Aprelium can give us some help, after all, it is some nice advertising that is being given out ;) |
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Sat Apr 16, 2005 11:59 pm Post subject: |
|
|
Arctic wrote: | I used the Windows installer version of PHP, so I need to redownload it now. >_<
If you can give me the source code, I can start making some neat looking signature for the Abyss Web Server memebers, mostly a 400*100 signature themed with Abyss Web Server in mind, used as a background image for it. Like my idea? Leave the image generation time out, though. Can you make it show my server specs, Memory, CPU, HD space, and User IP address?
Here, have a background image:
I don't know how to work PHP to get the stats to turn up inside the box, though I'm sure Aprelium can give us some help, after all, it is some nice advertising that is being given out ;) |
If you can make it bigger ill squeeze some more onto it too :-) _________________
|
|
Back to top |
|
|
Arctic -
Joined: 24 Sep 2004 Posts: 560
|
Posted: Sun Apr 17, 2005 12:11 am Post subject: |
|
|
MonkeyNation wrote: | Arctic wrote: | I used the Windows installer version of PHP, so I need to redownload it now. >_<
If you can give me the source code, I can start making some neat looking signature for the Abyss Web Server memebers, mostly a 400*100 signature themed with Abyss Web Server in mind, used as a background image for it. Like my idea? Leave the image generation time out, though. Can you make it show my server specs, Memory, CPU, HD space, and User IP address?
Here, have a background image:
I don't know how to work PHP to get the stats to turn up inside the box, though I'm sure Aprelium can give us some help, after all, it is some nice advertising that is being given out ;) |
If you can make it bigger ill squeeze some more onto it too :-) |
Replace the OS with the visitor IP.
Is that a working version? If so, post a link for the download :O |
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Sun Apr 17, 2005 1:14 am Post subject: |
|
|
Its by no means done, and a lot more could be added by someone with too much time :-)
http://monkeynation.org/abyss/sigimg.zip
Memory.exe is for the available RAM function, I stole it from Sysinfo 3.6 :-)
A bigger background image would be better to use more variables, but that is good for now.
I would have made it parse systeminfo if we all used XP, but this is completley windows-friendly.
Enjoy!
MonkeyNation _________________
|
|
Back to top |
|
|
Arctic -
Joined: 24 Sep 2004 Posts: 560
|
Posted: Sun Apr 17, 2005 1:33 am Post subject: |
|
|
Thanks, it's beautiful :D |
|
Back to top |
|
|
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Sun Apr 17, 2005 11:34 am Post subject: |
|
|
Arctic wrote: | Thanks, it's beautiful :D |
Please note: Aprelium does not allow images with the extantion .php. You have to create a directory, called something like "status.jpg". Than put the php file into the map, renamed to index.php. That workd for me.
http://cmx.winxtreme.se/ad/rtfm.gif/index.php
Than the server will return the "image.jpg" like a file, since you've got an indexfile in it. |
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Sun Apr 17, 2005 1:00 pm Post subject: |
|
|
I get this error while trying to use this script
Code: |
Fatal error: Call to undefined function: imagecreatefromjpeg() in E:\abyssws.php on line 9
|
What is causing this? _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Apr 17, 2005 1:48 pm Post subject: |
|
|
The Inquisitor wrote: | I get this error while trying to use this script
Code: |
Fatal error: Call to undefined function: imagecreatefromjpeg() in E:\abyssws.php on line 9
|
What is causing this? |
PHP GD2 extension is not installed/declared in php.ini . _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Apr 17, 2005 2:00 pm Post subject: |
|
|
cmxflash,
A PHP file can return anything including an image, a flash file, or a sound. But you must correctly set the MIME type in the PHP script to have the browser recognize the content type.
For example, create image.php (code taken for the PHP manual):
Code: |
<?php
// create a blank image
$image = imagecreate(400, 300);
// fill the background color
$bg = imagecolorallocate($image, 0, 0, 0);
// choose a color for the ellipse
$col_ellipse = imagecolorallocate($image, 255, 255, 255);
// draw the white ellipse
imagefilledellipse($image, 200, 150, 300, 200, $col_ellipse);
// output the picture
header("Content-type: image/png");
imagepng($image);
?>
|
Now you can include the image using the HTML code:
Code: | <IMG SRC="image.php"> |
When you ask the browser to save the image, it will suggest naming it image.png. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Sun Apr 17, 2005 2:05 pm Post subject: |
|
|
Quote: | PHP GD2 extension is not installed/declared in php.ini |
How do i install/declare this? _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Sun Apr 17, 2005 3:02 pm Post subject: |
|
|
aprelium wrote: | cmxflash,
A PHP file can return anything including an image, a flash file, or a sound. But you must correctly set the MIME type in the PHP script to have the browser recognize the content type.
For example, create image.php (code taken for the PHP manual):
Code: |
<?php
// create a blank image
$image = imagecreate(400, 300);
// fill the background color
$bg = imagecolorallocate($image, 0, 0, 0);
// choose a color for the ellipse
$col_ellipse = imagecolorallocate($image, 255, 255, 255);
// draw the white ellipse
imagefilledellipse($image, 200, 150, 300, 200, $col_ellipse);
// output the picture
header("Content-type: image/png");
imagepng($image);
?>
|
Now you can include the image using the HTML code:
Code: | <IMG SRC="image.php"> |
When you ask the browser to save the image, it will suggest naming it image.png. |
I didn't mean that. What i meant was that your forum (PHPBB) does not allow pictures that has the fileending .PHP, like image.php. It only allow JPG, GIF and such. |
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Sun Apr 17, 2005 4:20 pm Post subject: |
|
|
The Inquisitor wrote: | Quote: | PHP GD2 extension is not installed/declared in php.ini |
How do i install/declare this? |
Assuming you dont allready have it, you need to download the Collection of PECL modules for PHP5 or I think youll need to download it from here for PHP4.
And then uncomment "extension=php_gd2.dll" in your php.ini file.
And cmxflash,
The no php images thing got me too, I set up a second server just to get php to inturpret the image(A little extreme, mabye). _________________
|
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Sun Apr 17, 2005 4:55 pm Post subject: |
|
|
Brilliant! It works! Its a pity i cant get it to work on my pathetically slow server... :(
Works fine on my other one tho! _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Sun Apr 17, 2005 5:12 pm Post subject: |
|
|
Could someone with only one processor/no hyperthreading test CPU support on this for me.
You can download it from here.
Enable $win_nt and disable $multiprocessor and tell me if $cpu and $cpu_mhz work.
Thanks :-)
Note : Loading systeminfo can slow down some pcs. _________________
|
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Sun Apr 17, 2005 5:18 pm Post subject: |
|
|
When i activate the extention for phpGD2 on my main webserver it stops php from working all together. Does anyone know what the problem is? _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Sun Apr 17, 2005 5:51 pm Post subject: |
|
|
The Inquisitor wrote: | When i activate the extention for phpGD2 on my main webserver it stops php from working all together. Does anyone know what the problem is? |
Do you get nasty errors saying php_gd2.dll cannot be loaded etc? _________________
|
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Sun Apr 17, 2005 6:40 pm Post subject: |
|
|
I did but figured that one out, now PHP just wont load anything, not even a simple echo _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Sun Apr 17, 2005 6:45 pm Post subject: |
|
|
BTW, how do i add CPU Speed, CPU Usage and local time? Can you give me the code and ill implement it myself. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Sun Apr 17, 2005 6:49 pm Post subject: |
|
|
The Inquisitor wrote: | BTW, how do i add CPU Speed, CPU Usage and local time? Can you give me the code and ill implement it myself. |
Im not sure of your php problem.
If you want CPU speed and model, download the one I put above.
If you want dates, simply add Code: | date("l dS of F Y h:i:s A") | somewhere on $dynmsg. _________________
|
|
Back to top |
|
|
Arctic -
Joined: 24 Sep 2004 Posts: 560
|
Posted: Sun Apr 17, 2005 6:49 pm Post subject: |
|
|
Arctic here, how many lines of text did you want the next signature image to support? |
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Sun Apr 17, 2005 6:56 pm Post subject: |
|
|
The script can support as many as you like, you just need to change the variable
Code: | $line = explode(" ",$line[4]); |
so $line[4] is the number of lines you want to have _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Sun Apr 17, 2005 7:19 pm Post subject: |
|
|
The Inquisitor wrote: | The script can support as many as you like, you just need to change the variable
Code: | $line = explode(" ",$line[4]); |
so $line[4] is the number of lines you want to have |
No, that is for the netstat bit, to get the 4th line of the netstat command(send&recieved data).
To add more lines you must create a bigger background image. _________________
|
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Sun Apr 17, 2005 7:28 pm Post subject: |
|
|
AWS Signature Image Script - Version 0.2?
Quick Guide
»»Download & Unzip sigimg.zip
»»Make sure you have the latest GD2 library from here.
»»Read Readme.txt
»»Configure the pagefile, multiprocessors, windows NT, font color, background image.
»»Run the script!
This has only been tested on PHP5 and Windows NT.
Enabling $win_nt will slow the script load time down, and is not recommended for slower systems.
A small template for a linux version is included, although this will require a lot more configuring and tampering as I dont have a linux box to test on at the moment.
Enjoy!
MonkeyNation _________________
|
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Sun Apr 17, 2005 7:44 pm Post subject: |
|
|
so what does $win_nt do except slow down the script? :s
I thought the line[4] bit whatever it was was for the number of lines the script had... maybe i was mistaken, never the less, great script when it works! (i am unfortuante, wont work on my main server :( )
BWT, would you allow me to put this script on AbyssUnderground.co.uk ? _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Sun Apr 17, 2005 7:51 pm Post subject: |
|
|
The Inquisitor wrote: | so what does $win_nt do except slow down the script? :s
I thought the line[4] bit whatever it was was for the number of lines the script had... maybe i was mistaken, never the less, great script when it works! (i am unfortuante, wont work on my main server :( )
BWT, would you allow me to put this script on AbyssUnderground.co.uk ? |
Sure,
Spread it where you like :-)
$win_nt will simply not process the cpu infomation if not true, because the script gets the info from running systeminfo.exe(only available with windows NT based systems).
If you have XP/2k/NT leave it enabled, im not sure which error you will get if you enable it on 98, so I put $win_nt in. _________________
|
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Sun Apr 17, 2005 7:53 pm Post subject: |
|
|
OK, Thanks alot, i will upload the zip when i get the chance, i will also link to your site and put your name if you give me a link _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Sun Apr 17, 2005 7:53 pm Post subject: |
|
|
OK, Thanks alot, i will upload the zip when i get the chance, i will also link to your site and put your name if you give me a link.
Also, do you like the new AbyssUnderground template? _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Sun Apr 17, 2005 8:06 pm Post subject: |
|
|
The Inquisitor wrote: | OK, Thanks alot, i will upload the zip when i get the chance, i will also link to your site and put your name if you give me a link.
Also, do you like the new AbyssUnderground template? |
Yeah, nice :-)
And link to monkeynation.org if you use it. _________________
|
|
Back to top |
|
|
Goatie.dk -
Joined: 11 Feb 2005 Posts: 125 Location: Denmark > Herning
|
Posted: Mon Apr 18, 2005 12:51 pm Post subject: |
|
|
''m sitting here trying to get the script to work... but i'm already stuck when i have to edit the file... my computer doesn't have a file named pagefile.sys anywhere :s
i run windows xp pro sp2 _________________ The insane dane who loves AWS :D
http://home.goatie.dk <- pic = online.. no pic, guess ;P |
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Mon Apr 18, 2005 1:30 pm Post subject: |
|
|
Goatie.dk wrote: | ''m sitting here trying to get the script to work... but i'm already stuck when i have to edit the file... my computer doesn't have a file named pagefile.sys anywhere :s
i run windows xp pro sp2 |
It will most likley be ok as long as you didnt specify a differnent location/drive on install.
Leave it as it is and try. _________________
|
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Mon Apr 18, 2005 6:14 pm Post subject: |
|
|
Thanks aprelium, I will take a look at that when I get the chance. I have it working on my new webserver, the 'to be' machine so it may just be win9x causing the problems. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Mon Apr 18, 2005 6:15 pm Post subject: |
|
|
Also, can someone tell me how to get the current cpu usage and speed? I looked on the script from MoneyNation but it doesnt seem to have it ???
I have made the script without the image for my own server, it seems to be faster at the moment.
PS. Ignore my last post, i found it in the newer version of the script! _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Mon Apr 18, 2005 11:21 pm Post subject: |
|
|
The Inquisitor wrote: | Also, can someone tell me how to get the current cpu usage and speed? I looked on the script from MoneyNation but it doesnt seem to have it ???
I have made the script without the image for my own server, it seems to be faster at the moment.
PS. Ignore my last post, i found it in the newer version of the script! |
By "The last post" I take it you dont mean that one?
Its in the options at the top wether the variables work or not.
Personally, I dont use it, as it takes too long to load systeminfo =S _________________
|
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Tue Apr 19, 2005 6:25 pm Post subject: |
|
|
Yeah, I found that as well, over 10 seconds... Also, I expected it to show the current CPU usage which is what i wanted but never the less.
I have redesigned the script to echo the commands rather than use an image, I prefer quickness to looks normally, unless it is the site itself. I'm also using it when I start the free hosting on abyssunderground.co.uk, it will show the stats to members and users :P
I've been looking for one of these scripts for ages, and, I may not know a lot of PHP, but his has helped quite a lot. All I need now is a book to teach me PHP! _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
|