Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Unmarshal object with PHP

Reply
Thread Tools

Unmarshal object with PHP

 
 
drogus@gmail.com
Guest
Posts: n/a
 
      08-19-2007
Hi,

Is there any implamentation of something like Marshal.dump in PHP? Or
any implementation that is easily readable, so I could rewrite it into
PHP? (I can't figure out what's going on in C files from ruby
core

Thanks,
Peter

 
Reply With Quote
 
 
 
 
Eric Hodel
Guest
Posts: n/a
 
      08-20-2007
On Aug 19, 2007, at 16:24, wrote:
> Is there any implamentation of something like Marshal.dump in PHP? Or
> any implementation that is easily readable, so I could rewrite it into
> PHP? (I can't figure out what's going on in C files from ruby
> core


http://www.aagh.net/projects/ruby-php-serialize

--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars



 
Reply With Quote
 
 
 
 
Robert Klemme
Guest
Posts: n/a
 
      08-20-2007
2007/8/20, <>:
> Hi,
>
> Is there any implamentation of something like Marshal.dump in PHP? Or
> any implementation that is easily readable, so I could rewrite it into
> PHP? (I can't figure out what's going on in C files from ruby
> core


If you can switch formats, YAML might be easier:

http://www.google.com/search?q=yaml+php

Kind regards

robert

 
Reply With Quote
 
Piotr Sarnacki
Guest
Posts: n/a
 
      08-20-2007
Thanks for replies

On Aug 20, 3:30 am, Eric Hodel <drbr...@segment7.net> wrote:
> http://www.aagh.net/projects/ruby-php-serialize
>


I should specify more precisely I need something like Ruby PHP
serializer, but "the other way". (PHP Ruby Marshalizer? )

Session data in Rails is marshaled and I want to read it in PHP
application to find out if user is logged in.

> If you can switch formats, YAML might be easier:


Yes, YAML would be much easier But as you see I can't use it.


If there is no easy way to do this I'd have to change session
behaviour a little bit.... :]

 
Reply With Quote
 
Eric Hodel
Guest
Posts: n/a
 
      08-20-2007
On Aug 20, 2007, at 05:45, Piotr Sarnacki wrote:
> Thanks for replies
>
> On Aug 20, 3:30 am, Eric Hodel <drbr...@segment7.net> wrote:
>> http://www.aagh.net/projects/ruby-php-serialize
>>

>
> I should specify more precisely I need something like Ruby PHP
> serializer, but "the other way". (PHP Ruby Marshalizer? )
>
> Session data in Rails is marshaled and I want to read it in PHP
> application to find out if user is logged in.
>
> If there is no easy way to do this I'd have to change session
> behaviour a little bit.... :]


That's probably optimal. Porting Ruby's marshal format to PHP is
going to take you longer than using PHP serialize instead of marshal
on your session data.

--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Training Institute In Delhi, Live Projects on PHP. Short TermPHP Courses, PHP Scripts, PHP Training with Live Projects. Rajive Narain Java 0 09-18-2009 10:47 AM
lxml + mod_python: cannot unmarshal code objects in restricted execution mode Dmitri Fedoruk Python 4 09-14-2007 08:33 AM
marshal and unmarshal leo Python 1 08-27-2006 10:08 AM
unmarshal XML from String using CastorXML crash.test.dummy Java 2 01-30-2006 02:26 AM
Unmarshal modified EJB Remote interface without redeploying the client Serge Corbucci Java 0 01-14-2004 04:09 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57