Reply to RE: [PHP] Having resource variables over several scripts

Your name:

Reply:


Posted by "Jeffrey Santos" on 10/10/05 19:46

Ben,

If you grab the resource and store it in a variable, you certainly should be
able to send it via GET or POST. For that matter, you should be able to
store the information in a SESSION variable too, so I'm not sure what is
going wrong. Could you email the code you are using to grab the resource
variable and the code to store it in a session?


- Jeff

-----Original Message-----
From: Benjamin Mack [mailto:benni@mediales.de]
Sent: Monday, October 10, 2005 11:03 AM
To: php-general@lists.php.net
Subject: [PHP] Having resource variables over several scripts

Hey,

I am trying to have e.g. a file opened over several scripts. When
opening a file with "fopen" I receive a variable of the type resource
(like "Resource ID #3"), but when I try to save this variable in the
SESSION and try to use it on another page, I get a "null" variable.

Because I need to have the same and exact resource (not opened every
time I load a new page) and since it is apparently not possible to store
it in a session, I wanted to ask if somebody had the same issue once,
and maybe there is some help out there.
Could I somehow serialize the resource, then give it to another page via
GET or POST?

I would really appreciate if somebody has some hints...

Thanks,
benni.
-SDG-

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация