Jump to content

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 :(
Link to comment
https://forums.phpfreaks.com/topic/4714-im-new-thick-and-the-tutorials-scare-me/
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
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
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
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.
[!--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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.