# help with zend objects and resources

- Thread: https://externals.io/message/23599
- Original archive: https://news-web.php.net/php.internals/23599
- Started by Gareth Ardron on 2006-05-20T23:48:38+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #23599 — Gareth Ardron — 2006-05-20T23:48:38+00:00

URL: https://externals.io/message/23599#23599

Hi

I'm having problems with an extension I'm writing atm - basically, I 
want to do the following in php:

$foo = myclass;
$foo->load("somefile");
$foo->save("somefile");

Now, I can form the load() method correctly within the module but can't 
find any documentation on how to make the resource that it returns 
persistent so that the save() method can access it.

I'm probably being really dumb here, but I've been staring at the screen 
for a few hours and going slightly mad. If anybody can point me at the 
relevant docs or just tell me how to do it, brilliant.

Cheers

-- 
Gareth Ardron
