PHP Config file parser for selected people

Results 1 to 8 of 8
  1. #1
    Alpha Member Zen is offline
    MemberRank
    Dec 2006 Join Date
    MelbourneLocation
    2,291Posts

    PHP Config file parser for selected people

    I built a config file parser in PHP, its only about 60 lines of code, but alot of people aren't familiar with regex and stuff.

    Basically, you can get item names, descriptions, mix names, prefix names etc just from the item Index, which when building any kind of web application for a server is very useful.

    Its only something quick I threw together for the project I'm working on, its commented out, and I will give it to anyone I think will understand how to use it, won't go and dump it in the releases section in 5mins, and won't whine too much.


    If interested please post below.


  2. #2
    Account Upgraded | Title Enabled! Arturasult is offline
    MemberRank
    Feb 2007 Join Date
    AustraliaLocation
    375Posts

    Re: PHP Config file parser for selected people

    i would like to take a look at it

  3. #3
    Alpha Member Zen is offline
    MemberRank
    Dec 2006 Join Date
    MelbourneLocation
    2,291Posts

    Re: PHP Config file parser for selected people

    Quote Originally Posted by Arturasult View Post
    i would like to take a look at it
    How do you handle item names and prefixes in your CMS?

    PM'd you.

  4. #4
    Account Upgraded | Title Enabled! Arturasult is offline
    MemberRank
    Feb 2007 Join Date
    AustraliaLocation
    375Posts

    Re: PHP Config file parser for selected people

    C# | using System; using System.Collections.Generic; - KML Reader

    this is my kml reader class for C#, took me about 3 tries to get this.

    for the last site i did with items i used an earlier version of this to add all info to a db.

    i wonder how this would run in php.

    to show you just how simple my dll is:

    Code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using Kml;
    using System.Xml;
    
    namespace KalMarkupLanguage
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
    
                KmlDocument kdoc = new KmlDocument();
                kdoc.LoadFromFile("Test.kml");
    
                KmlNodeCollection nodeCollection = kdoc.SelectNodes("item");
                foreach (KmlNode knode in nodeCollection)
                {
                    textBox1.AppendText(knode.SelectSingleNode("Index").Values[1] + "\r\n");
                }
            }
        }
    }
    this code lists all Index's from Inititem.

    works pretty fast too (0.4 seconds) well that is a bit slow, but it works XD

    maybe i will release it some time, still testing it tho.

    edit: heres a screenshot http://picasaweb.google.com/lh/photo...eat=directlink
    Last edited by Arturasult; 21-01-11 at 10:43 AM.

  5. #5
    Yes, it's really me HuninHune is offline
    MemberRank
    Sep 2006 Join Date
    ::1Location
    1,085Posts

    Re: PHP Config file parser for selected people

    gimme gimme gimme O_O i wanna post it in release section can i have it ;)?

  6. #6
    Apprentice TheFighter is offline
    MemberRank
    Feb 2011 Join Date
    15Posts

    Re: PHP Config file parser for selected people

    Thanks alot :))

  7. #7
    LordJustice crosenblum is offline
    MemberRank
    Apr 2007 Join Date
    Burnsville, MNLocation
    417Posts

    Re: PHP Config file parser for selected people

    Zen, I'd like to see that :P

  8. #8
    Member Soa is offline
    MemberRank
    Sep 2006 Join Date
    gerLocation
    76Posts

    Re: PHP Config file parser for selected people

    I only have a homeserver (for my family) but i like to like to see your script too.



Advertisement