Jump to content

flaab

Members
  • Posts

    56
  • Joined

  • Last visited

    Never

Everything posted by flaab

  1. Hello all =) I'm from Spain so sorry about my lame english. I'm programming a little search engine for my website. It looks up over keywords(tags) stored in the database. My question is...what if i want to suggest to the user "alike" tags to search for? Here is an example. John searches for "kiss" and nothing is retrieved. But in the database there is a keywords named "kisses". How can i tell John..."We suggest you to try kisses"?? I tried a query like this but it did not work: SELECT tag FROM `tags` WHERE name = 'kiss*' I'll appreciate any help. Thanks in advance.
  2. Hello =) I have the same...an array like this... array = ["name1", "name2", "name1", "name2"]; I did an array_unique and then i want the keys to be consistent. But sort its not working. How should i do it? Thanks.,
  3. Good morning =) I'm having a little problem retrieving a text field(not varchar) from a Mysql Table. Here is the code... $result=mysql_query("SELECT desc FROM `retosP` WHERE id = '$pid' "); Desc it's a text field. Every other fields just work fine. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc FROM `retosP` WHERE id = '' at line 1 How can i do this?
  4. Hi =) Maybe i'm wrong but i think that "exec whatever" will keep the user waiting till it's finished...right? If not, that is my solution xD. About sockets...i don't know anything about them...How would that be done? Thx in advance.
  5. Good night everyone!! I'm from Spain so sorry about my grammar mistakes xD. I'll go straight to the point: I'm programming an Online Game that uses video feeding as an important part of it. I've decided that all the videos displayed in the web are going to be encoded with FLV format. This means i've to run a script behind the web to encode each video uploaded by users to FLV format. I've already created those Scripts using the following and a bit more stuff. They work just fine. system("ffmpeg -whatever args -are neccesary"); My problem is the following. I 've to launch those php encode scripts right after a video upload is completed by the user. But I must avoid the user to wait for that to finish, because it might take a long while, depending of how busy the server is at the moment. So I need sort like this in pseudocode: ( * lines are solved) > Receive video upload from user * > Once it's completed, launch convert script. -------------------------------------------- > Users goes away to navigate or whatever, while his video is still being converted. * | > Video encoding is finished. Mysql fields are updated. * <-------------------------------- I hope have been clear enough for you to understand my problem. Hope to receive answers =) Thanks in advanced. Cheers.
×
×
  • 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.