FAO: Anyone who wants stats in their sig

Good point - I must hav emissed that wehen I adapted the script. I've changed the code in my first post. Can anyone who has taken a copy take note and modift the highlighted line as appropriate
 
That's what comes from adapting the script to do something else (cache a web page, in my case), and learning PHP at the same time.:)

Edit: as for the MySQL problem, if you want to go that route, registering with e-mail and password may be enough, but if you want, you could borrow a page out of this forum's code and e-mail your new users with a code to 'activate' their account. Don't forget to delete their account if they don't activate it within a reasonable time.
 
Last edited:
Well just for fun I am trying to build an ASP/SQL version, it'll probably never work or cause tremendous problems for anyone who uses it.. but hey what do I care :)

I've got it reading the data from b0rkely and displaying it after an hour of hacking some stuff together, now I've just got to put that data into a database and do the hard work :cool:
 
PHP on Windows - Nooooooooooooooooooooooooo.........:)

(Sorry, had to post that to get my postcount off you know what)

Seriously, I've read that PHP on Windows tends to be just a bit awkward at times.
 
The whole things ackward :)
Maybe because i don't know what i'm doing with it yet :confused:
In your opion what would be a better scripting language to use on a windows based server...bearing in mind i'm a total n00b to this webserver stuf :)

Would like to get a seti stats sig cracked one way or another and be able to offer it and hosting to other members as well as use my server to build and host more interactive web pages.

cheers

sirgaz
 
I'm a bit of a n00b in this area (having just tried PHP for the first time yesterday) - it looks like you have the right sort of stuff, so It should just be a matter of configuring Apache and/or PHP correctly.
 
I seem to be getting somewhere..i've now got it to create an image...hooray :)
But the image doesn't get the text put on it :(

Just tried with an img thats just a white block and still nothing :confused:

But i'm gettin gthere :)

sirgaz
 
You may get a warning the first time, because it's trying to get the modification time of a file that doesn't exist - I know I did.

Oh, and you'll have to create the directory - it won't do it for you. If that doesn't work, try using backslashes, but make sure you double them - like this:

$LocalFile="C:\\files\\home3\\kaiowas\\cmp\\WUTotal.dat";

Although you should probably change that path anyway.:)
 
Judging by the error messages you want something along the lines of

$LocalFile="/home/domain/domain17/web/temp/WUTotal.dat";

as stated earlier you will have to create the 'temp' directory and maek it writable before running the script

It also looks like you need to install Freetype on your server (see earlier in this thread)
 
OOooohhhh!!!

Almost there...just one last bit i think...when it get my wu's from berkley it seems to be also putting a <td> into the same file

<td>
6000

like that so when it goes to the file for the amount of wu's it picks up <td> instead :confused:

Also I had to change the text colour to black instead of using the imagecolorclosest bit as before that i'm guessing that the text colour was the same as the img colour.

Any way of stopping the <td> or getting the data from the second line in the file eg the 6000?

cheeers

sirgaz
 
sorted the td bit out...was missing a <
Getting used to this php stuff a bit now :)

Now just to get the colour to work right and position it right in my sig :)

sirgaz
 
Wooooo and Hooooo


sorted..even with the colorclosest thing too...thanks kaiowas
and all the others that helped out..

I is happy :D


sirgaz

edit now to mess with it and put both my accounts on there :)
 
Back
Top Bottom