Jump to content

Asheeown

Members
  • Posts

    471
  • Joined

  • Last visited

Posts posted by Asheeown

  1. Sure. Have my amazing money-spinning idea. Why wouldn't i want you to have it?

     

    In all seriousness, if anyone has a good idea, they'll be keeping it to themselves.

     

    What the hell is your problem?

     

    I said I didn't even want it to make money, I DON'T CARE, it's a personal project.

  2. A Proxy site!

     

    Actually I already have that as a subdomain for both my domains, doesn't do much really and I didn't program it so I don't like that.  I want a project I can really sink my teeth into.  I do some freelancing apart from this so like I said it doesn't need to make money, it would be nice if it did though.

  3. I have the world of the web open to me, I have my own server in a data center can order and domain name I want for a nice cheap price.  Yet, I don't know what to do with it all.  I used to run a nice little application some people used but the program it monitored went under and now I'm stuck with basically nothing running on the server.

     

    I love to script and I want to make something nice, either informative or useful in some way to people.  Doesn't matter if it makes money or not.  Anyone have any ideas?

  4. I was trying to avoid Ajax this time, not that I don't think it would work in this situation it's just it seems that all I really need to do is pass the arrays and then get a nice foreach statement in there and it would work perfectly, the rest, like highlighting answers and giving results is a piece of cake.

  5. Okay, I'm making a simple online quiz, the PHP part gets 35 random questions and posts them on the page.

    All questions that are pulled from the DB are stored in an array with their ID (Example: $Questions[1] = "16", So questions 1's ID is 16)

    All the IDs of the correct answers are also stored in an array with their ID (Example: $Answers[1] = "20", So the answer to question 1 is the answer with the ID of 20)

     

    Now, before I go too far with the PHP and make it seem like I'm asking a question about that I need to parse the user input and display results without reloading the page.

     

    I'm not looking for someone to do it for me, I just need an idea of where to start with this.  I need to pass the two arrays to javascript, and for each one I need to check it against the radio buttons the user filled out to see if they got the right answer, if not highlight theirs with red and print "Incorrect answer" next to it and print "Correct answer" next to the correct one always.

     

    The radio buttons hold the question ID in the name directive and the answer ID in the value directive.

     

    Any help would be great, I don't know where to begin.

  6. Okay, I have a scrapper tool to pull information via xml parsing from a site (They do allow it at certain intervals).  Now, currently there are three possible messages that are created from the tool when it tries to pull an item.  The first is that the item already exists in the local database, so it is skipped.  The second is that the item was successfully extracted and imported into the local database.  And the third is that the item extraction failed.  As the script continues to execute it throws the messages out in chunks as they come in.  Is their any way I can populate a three column table accordingly as they come out or do I have to wait until execution is over and display variable that is populated with the all the messages through out the script?

  7. You got it:

     

    Here is the full string of data inside all the text:

    new Listview({template: 'item', id: 'sells', name: LANG.tab_sells, tabs: tabsRelated, parent: 'lkljbjkb574', extraCols: [Listview.extraCols.cost], note: sprintf(LANG.lvnote_createafilter, '/?items&filter=cr=129;crs=0;crv=66'), data: [{id:5956,name:'6Blacksmith Hammer',level:1,reqlevel:1,dps:0.8,speed:2.00,slot:21,source:[5],classs:2,subclass:14,stack:[1],avail:-1,cost:[18]},{id:2324,name:'6Bleach',level:5,slot:0,source:[5],classs:7,subclass:11,stack:[1],avail:-1,cost:[25]},{id:6260,name:'6Blue Dye',level:10,slot:0,source:[5],classs:7,subclass:11,stack:[1],avail:-1,cost:[50]},{id:2320,name:'6Coarse Thread',level:5,slot:0,source:[5],classs:7,subclass:5,stack:[1],avail:-1,cost:[10]},{id:10648,name:'6Common Parchment',level:40,slot:0,source:[5],classs:7,subclass:11,stack:[1],avail:-1,cost:[125]},{id:6217,name:'6Copper Rod',level:5,slot:0,source:[5],classs:7,subclass:12,stack:[1],avail:-1,cost:[124]},{id:3371,name:'6Empty Vial',level:1,slot:0,source:[2,5],sourcemore:[{t:7,ti:4395,n:'Dalaran'}],classs:7,subclass:11,stack:[5],avail:-1,cost:[20]},{id:6256,name:'6Fishing Pole',level:1,dps:1.0,speed:3.00,slot:17,source:[4,5],sourcemore:[{t:5,ti:9452,n:'Red Snapper - Very Tasty!',c:3524,c2:1}],classs:2,subclass:20,stack:[1],avail:-1,cost:[23]},{id:39354,name:'6Light Parchment',level:1,slot:0,source:[5],classs:7,subclass:11,stack:[1],avail:-1,cost:[15]},{id:2678,name:'6Mild Spices',level:5,slot:0,source:[5],classs:7,subclass:11,stack:[5],avail:-1,cost:[10]},{id:2901,name:'6Mining Pick',level:4,reqlevel:1,dps:1.5,speed:2.00,slot:21,source:[5],classs:2,subclass:14,stack:[1],avail:-1,cost:[81]},{id:6270,name:'6Pattern: Blue Linen Vest',level:12,slot:0,skill:55,source:[5],classs:9,subclass:2,stack:[1],avail:1,cost:[200]},{id:6325,name:'6Recipe: Brilliant Smallfish',level:5,slot:0,skill:1,source:[5],classs:9,subclass:5,stack:[1],avail:-1,cost:[40]},{id:6328,name:'6Recipe: Longjaw Mud Snapper',level:15,slot:0,skill:50,source:[5],classs:9,subclass:5,stack:[1],avail:-1,cost:[400]},{id:2604,name:'6Red Dye',level:10,slot:0,source:[5],classs:7,subclass:11,stack:[1],avail:-1,cost:[50]},{id:4289,name:'6Salt',level:10,slot:0,source:[5],classs:7,subclass:6,stack:[1],avail:-1,cost:[50]},{id:6529,name:'6Shiny Bauble',level:10,slot:0,source:[4,5],sourcemore:[{t:5,ti:9452,n:'Red Snapper - Very Tasty!',c:3524,c2:1}],classs:0,subclass:-3,stack:[1],avail:-1,cost:[50]},{id:30817,name:'6Simple Flour',level:5,slot:0,source:[5],classs:7,subclass:11,stack:[5],avail:-1,cost:[25]},{id:7005,name:'6Skinning Knife',level:4,reqlevel:1,dps:1.3,speed:1.60,slot:13,source:[2,5],sourcemore:[{t:3,ti:33857,n:'Crate of Meat',q:1}],classs:2,subclass:14,stack:[1],avail:-1,cost:[82]},{id:2880,name:'6Weak Flux',level:5,slot:0,source:[5],classs:7,subclass:11,stack:[1],avail:-1,cost:[100]}]});

     

    I need everything from data: to the semicolon at the end the parent ID "parent: 'lkljbjkb574'" is never the same so that needs to be a wildcard and also "/?items&filter=cr=129;crs=0;crv=66" is never the same so that needs to be a wildcard also.

  8. I currently have this string

    preg_match('/data: (.*);/', $Contents, $Matches);

     

    It doesn't work the way I want it to because sometimes data: 'wildcard'; appears more than once, I need more info behind the word data so it should look like this:

     

    new Listview({template: 'item', id: 'sells', name: LANG.tab_sells, tabs: tabsRelated, parent: 'WILDCARD', extraCols: [Listview.extraCols.cost], note: WILDCARD, data:

     

    Wherever WILDCARD appears it just needs to be set to a wildcard.  Problem is I wasn't the original person to right this regex code I just modded it to fit my needs but I tried to do this one and the array $Matches comes up empty everytime.  Can anyone help?

  9. I'm using a site to find a value I need.  When I pull the HTML for the site I put it into the variable $Info.  I need to find "Requires level xx" in all that text.  There are no unique HTML tags around it, I need the number after it, 'xx'.  Almost always it's a two digit number, could possibly be a one.  Anyone know how I could do this?

  10. I have a string of HTML and I need to get everything in between <span class="q2">  and  </span>, it happens multiple times throughout the string so I assumed the match_all function would work best?  I've worked with php for over six years and never could figure out the search queries for preg_match.

  11. The real reason I want to use something like this can get confusing, which is why I don't like to type it out, I guess I'll try to be as clear as possible.

     

    I need an app that receives information from a telnet server and displays it on the screen, with options to send commands back to the telnet server.  It is basically like chatting with the server and I want to do it in realtime so I can have a full log of all messages instead of restarting the socket connection over and over again to send commands.

     

    I don't know if that is clear enough but Rhodesa I am looking into that Orbited site, it looks pretty neat, I will definitely be doing some research on that.

  12. This is just a general question.  Is it possible to make a realtime php script, like for instance a shoutbox that will display messages as they are posted.  That's just an example, not what I really intend to do.

×
×
  • 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.