| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I am using cpp with php 4.3.2 as: $object = myphpclass(); $object->setstring("Hello how are you"); which is working fine. Now when I register $object in session and use it in another page like this: $obj=$_SESSION['object']; $obj->getstring() Following error come: Fatal error: underlying object is of wrong type in getstring(). Please help Regards Devendra |
|
#2
|
|||
|
|||
|
No answer?
Hi,
should I think no one have answer of my question. |
|
#3
|
||||
|
||||
|
Code:
$obj->getstring() think you could post the code for the class? meanwhile, it is my assumption that getstring() returns something... hence you'd have to do: $str = $obj->getstring() echo $str |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > c++ and php |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|