You are here: Resizing shmop ? « PHP Programming Language « IT news, forums, messages
Resizing shmop ?

Posted by vmirage on 10/30/07 07:20

Hi,

I need to resize the shmop but it seems that I can't seem to get it
right. Here's what I did

// initialize with 100 byte
$shm_id = shmop_open(0xff3, "c", 0644, 100);
echo shmop_size($shm_id);
shmop_delete($shm_id);
shmop_close($shm_id);

// trying to resize to 200 byte but not working
$shm_id = shmop_open(0xff3, "c", 0644, 200);
echo shmop_size($shm_id);
shmop_delete($shm_id);
shmop_close($shm_id);


However, if I try creating shmop with a large memory allocation, i can
open the shmop with smaller memory allocation. But it still does not
resize the allocation.

The delete doesn't seem to delete even though no resources are using
the shmop.

Thanks

 

Navigation:

[Reply to this 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

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