Jump to content

interpim

Members
  • Posts

    303
  • Joined

  • Last visited

    Never

Everything posted by interpim

  1. I honestly don't want to have to use usernames/passwords. I really don't want the files permanently on my server either. I just want a form that someone can point to a file on their computer and basically click a button that parses that file and displays the results. i don't want to save the results... just display them after the parse. I don't have a log with me now at work, but they go similar to [00:00:00] you hit name for 888 damage [00:00:00] name hits you for 888 damage [00:00:01] namey heals you for 500 hit points [00:00:02] you killed name [00:00:03] you earned 8 gold etc. etc. Basically i want to pull out kill counts, average damage done to you, done by you, and gold etc. earned by you.
  2. hiya all... I've done a bit of programming in the past, Taken a few basic programming classes in #C and taught myself a little bit of Visual Basic. I am also self taught HTML, and have now decided to move on to some PHP. I have PHP installed on my webserver now, and am using some programs that I have installed. The most I have done with PHP so far is built a generic php include to quickly change or add to my website navigation. I am ready to build a program in PHP and have the idea of what I need, but not really sure on how to go about it. What i need is a page where someone can point to a local file on their computer... this is a log file for a online video game. Then i want my program to process that file to basically pull out information from each of the lines. I was thinking through this a bit, and have an idea how to go about it, but not really sure how to start since I have very little PHP experience. Any help will be GREATLY appreciated. Thank you.
  3. Hi all... I have a question, every once in a while I get an internal server error on my website, and to be quite honest I am a complete PHP newbie. I read that sometimes PHP errors can cause this, so I looked into my scripts.log file and found a re-occuring error there. Can someone help me decipher it and help me out with what I need to change? here is the error... [14-Apr-2006 02:40:55] PHP Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /fenrisguild/mainfile.php on line 565 and here is the code for that area of the php file. Website is [a href=\"http://fenrisguild.com\" target=\"_blank\"]http://fenrisguild.com[/a] and I am using phpnuke for it. Actual physical location of the site is [a href=\"http://fenrisguild.interpim.com\" target=\"_blank\"]http://fenrisguild.interpim.com[/a] if the forwarded address doesn't work. [code] 559 /*********************************************************/ 560 /* formatting stories                                    */ 561 /*********************************************************/ 562 563 function formatTimestamp($time) { 564     global $datetime, $locale; 565     setlocale ("LC_TIME", "$locale"); 566     ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime); 567     $datetime = strftime(""._DATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1])); 568     $datetime = ucfirst($datetime); 569     return($datetime); 570 } [/code] Thanks to anyone that can help :)
×
×
  • 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.