inicio mail me! sindicaci;ón

welcome to my space

PHP list command problem

  • Is it possible to use the value of a variable as the first parameter to a list() command? I'm trying the following with no success - I did have the variables hardcoded in the list command - but I'd like to be able to make this variable too if possible - can it be done simply? The only way I can think of is creating the php script on the fly and running that, which I'd rather not do?


  • Vladimir I mailed GA support today saying what a great job you'd done. Thanks very much for your help - no doubt I may have other things to ask you in future....


  • You can use the eval() function to execute code that was constructed dynamically. http://www.php.net/manual/en/function.eval.php Vladimir


  • Vladimir, Perfect. Thank you very much. That had me stumped all afternoon. Are you a researcher - if so, post this as your answer.


  • For example this should do the trick: $temp = '$title, $first_name, $surname, $address_line1, $address_line2, $address_line3, $address_line4, $address_line5, $postcode'; eval('list('.$temp.') = explode($file_delimiter,$buffer);'); Vladimir


  • I'm not a researcher. If you want to help me become one, you can e-mail answers-support@google.com saying that vladimir-ga helped you and you think he would make a good researcher. :) Vladimir







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about PHP list command problem , Please add it free.