Jump to content

Archived

This topic is now archived and is closed to further replies.

l3lade

im new, thick and the tutorials scare me

Recommended Posts

well im not quite sure how to say it but hear goes.

how do i get a php that automaticly at 12.00 downloads and overwrites the old .txt file then saves it to the local server and then how do i make a php thing that detirmins the long line of numbers and puts them in a table then sends some of the later numbers to different pages (or ignores them and other pages use them) to make little bars that fill up the higher the mumber. just like this page

[a href=\"http://www.rentnerschwemme.com/modules.php?name=Stats_mani\" target=\"_blank\"]the rank page for you to look at[/a]


ill explian better if you want me to but my english is bad and im in a rush at the moment :(

Share this post


Link to post
Share on other sites
Can someone exsplain this more clearly please.


Are you asking how to set up a rating system ?

Are you using a database or flat files?

Share this post


Link to post
Share on other sites
flat files and yes sort of. hears the format that the game server gives me

86.27.54.50,1142103157,1,1509,371,238,648,8,0,39218,138494,217,429,743,500,537,161,238,216,121,197,1,3,6,30,1,17,0,19,0,0,1,13,131,90,11,5,1,1,1,0,0,0,0,0,0,0,13279,3041,1,0,0,4,0,0,12,0,0,0,415,247,328,163,[RmmS] ├ćnima (uk)

just want some of the numbers ignored and some in a table

Share this post


Link to post
Share on other sites
no one :( ?

all i want to know is how to get a file then put it in a table

i would also like it if i could modify my website

[a href=\"http://www.rmmsclan.com\" target=\"_blank\"]http://www.rmmsclan.com[/a]

and convert it to php, is that possible?

so when i enter news i dont have to go through the hassle and if its bigger then the page it promps a new page or somthink please help

Share this post


Link to post
Share on other sites
ok... i dont like bumping but ive waited quite a long time so...

im i being compleatly think or does no one know how to do this?

Share this post


Link to post
Share on other sites
please try to be more clear in what you are asking. I have no idea what you are trying to do.

Share this post


Link to post
Share on other sites
[u]Main things[/u]

1: download file

2: put in table

3: also put some in bars that increase on a bigger number

[u]My hopes and dreams[/u]

3: convert html to php (possible?)

4: be able to edit my site. some sort of admin thing?

Share this post


Link to post
Share on other sites
do you have any code started so we can see what you are working with because no one here is gonna want to write out a long and really coplex code for someone else to use but if you have a code that is started or just needs tweeling you will get alot of help and for future reference if you have a problem post your code in your first topic and you will get helped if help is possible for the code much quicker sorry if that sounds like i am comming off rude i am not meaning to

Share this post


Link to post
Share on other sites
The best thing to help you on your way would be a list of the functions I would use here, then you can look them up in the manual to see how they work and how they are used. Most manual pages have examples scripts and plenty of user input to get a good idea of where to start. If you are unaware of the manual, you can find it at php.net.


[b][u]Downloading the file[/u][/b]
fopen()
fread() / file_get_contents()
fclose()

[b][u]Put in table[/u][/b]
explode()
count()
for()
mysql_query()

[b][u]Creating bars[/u][/b]
mysql_query()
mysql_fetch_assoc()
while()
Probably best to do this with a set of images, maybe 10 different ones, each one with the bar slightly more filled in, then use a switch() or elseif() control structure to decide which image to use for the current number.

Share this post


Link to post
Share on other sites
[!--quoteo(post=355004:date=Mar 14 2006, 07:06 PM:name=l3lade)--][div class=\'quotetop\']QUOTE(l3lade @ Mar 14 2006, 07:06 PM) [snapback]355004[/snapback][/div][div class=\'quotemain\'][!--quotec--]
thank you at long last some one knows what i want
[/quote]

[a href=\"http://www.phpfreaks.com/tutorials/9/0.php\" target=\"_blank\"]http://www.phpfreaks.com/tutorials/9/0.php[/a]


Look at this link tell me if this is what your looking for the idear i mean know work it out how to add small images to appear on a bar and increase.
good luck.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.