comments below

On Jun 01, 2006, at 10:51, kartikay malhotra wrote:

Hi !

http-post-parameters = fx=true&images[]=%i&text[]=%t

1. I gather fx is merely a variable, which could be used to test some condition, right?


2 .Well Paul, in my case $_FILES is empty. I'm positive about that. I've tried print_r($_FILES), var_dump($_FILES). Nothing works.

var_dump($_POST) gives me some MMS contents: SMIL, text string, name of the image file, but NOT the image part of the MM.

Since I cannot predict the content of the MM (received), therefore I use :

http-post-parameters = userfile[]=%z

%z - All Parts of the MM. I've however tried other combinations as well. $_FILES is empty.


Dude, kill the space between the userfile[] and the '='!  The post parameters are sent *exactly* as entered. So as is, userfile[] is being sent as the empty string. This is the problem.

 I used 

http-post-parameters = userfile[]=%z

On CVS and this is the output of the test PHP script I sent, for a  MMS (attached):
hi This is a test message<br> These are the keys:
ArrayAnd this is the FILES data:<br>Array
(
    [userfile] => Array
        (
            [name] => Array
                (
                    [0] => cats.smil
                    [1] => cats.txt
                    [2] => cats.gif
                )

            [type] => Array
                (
                    [0] => application/smil
                    [1] => text/plain
                    [2] => image/gif
                )

            [tmp_name] => Array
                (
                    [0] => /var/tmp/phpVjlQQS
                    [1] => /var/tmp/phpJ1kKKL
                    [2] => /var/tmp/phpMgNPA4
                )

            [error] => Array
                (
                    [0] => 0
                    [1] => 0
                    [2] => 0
                )

            [size] => Array
                (
                    [0] => 726
                    [1] => 16
                    [2] => 3330
                )

        )

)
<br> And this is the POST array:<br>
Array
(
)
which clearly shows it is working.



3. Is there a way I could save the received MMS (intact) at VASP in some local folder? There are logs, but they don't preserve the format of MM.



You will have to write your PHP to do this. You can of course receive the entire binary MMS using the %b parameter

Thanks & Regards
KM



_______________________________________________
Users mailing list

_______________________________________________
Users mailing list
Users@mbuni.org
http://mbuni.org/mailman/listinfo/users_mbuni.org

Reply via email to