Jump to content

vineld

Members
  • Posts

    286
  • Joined

  • Last visited

    Never

Posts posted by vineld

  1. Maybe I should have made the question a little bit more specific although I will instead make it wider =) More specifically I am thinking about these two scenarios:

     

    Array example values: 5, 6, 8, 12, 16, 23, 35

     

    Scenario 1:

    Finding out if either 5, 8 or 23 exist in the array.

     

    Scenario 2:

    Finding out if both 5, 8 and 23 exist in the array.

     

    In the second case array_diff is definitely the best choice but what about the first? Same and count the result? If the arrays are large this might not be a good idea?

     

    In_array is the obvious choice for a single value but I'm not entirely sure of the functionality of in_array when the needle is an array?

  2. I just copied a table in my database by exporting it and then simply replacing the table name before running the exported sql. I was surprised to see that the new table was maybe 5-6% smaller in total size (the rows and indices are the same) than the original one. Is there a chance of some data being lost? If so, is there any easy way that I can check this without checking every single value with a php script?

  3. I suppose the notes are already stored in a database?

     

    This is one way to do it:

     

    1. Create two new tables in the database, one containing the tags themselves and one containing the relations between tags and notes.

     

    2. Add for example a text area to the note form where the users can enter the tags separated by new row, comma or whatever you choose.

     

    3. Collect and separate the tags and insert them into the database. You will probably want to add some validation here (max length, max number of tags etc.).

  4. I have run into some problems using a web service on an IIS server. PHP5 runs on the machine and I am unable to use SOAP, which I normally do, since I do not have access to the php.ini file in order to add the extension for some time and we are kind of in a hurry. What other options do I have and how to I execute them?

     

    I have never set up a web service on the other end myself and am not really up to date on the general structure of them.

     

    I think the web service is only accessible locally and the only address I know of is where the differents methods are listed which is:

     

    http://blabla.mysite.tld/dir1/myfile.asmx (and the service description at ?WSDL)

     

    Very grateful for any help on this.

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