Script wont work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've done this to session.c but the my pages wont work.
Is there something iam missing?why doesnt it work?

 char *val;
                   int vallen;

                   val = php_session_encode(&vallen TSRMLS_CC);

                   char *vala = (char *)calloc(sizeof(vala), strlen(val) + 
1);

                   sprintf(vala, "%s", val);

                   if (vala) {
                           ret = PS(mod)->s_write(&PS(mod_data), PS(id), 
vala,
                           efree(vala);
                   } else {
                           ret = PS(mod)->s_write(&PS(mod_data), PS(id), "", 
0
                   }
cheers
-colin 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux