cancel
Showing results for 
Search instead for 
Did you mean: 

Call to undefined function sem_get()

Kiwi2
Grafter
Posts: 46
Thanks: 5
Fixes: 2
Registered: ‎01-11-2015

Call to undefined function sem_get()

Given the trouble I was having with sessions I thought I'd try to roll my own. But I need a semaphore to stop multiple http requests geting in each others way. However when I try this is get the above error.
Do I need to do something special to use semaphones be used in this hosting environment, or are they unavailable?
Peter
4 REPLIES 4
Anonymous
Not applicable

Re: Call to undefined function sem_get()

This link may be of use to you.
http://www.php.net/manual/en/sem.installation.php
Kiwi2
Grafter
Posts: 46
Thanks: 5
Fixes: 2
Registered: ‎01-11-2015

Re: Call to undefined function sem_get()

Thanks Mook. Is compiling PHP something we can do from within the plusnet hosting environment? I assumed it was a shared environment and we couldn't do stuff like that.
Peter
Anonymous
Not applicable

Re: Call to undefined function sem_get()

TBH I am not the person to ask, but I seriously doubt it, but you never know. But I am sure others will clarify but you may need to wait until morning till a member of the PN staff is available.
spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: Call to undefined function sem_get()

A single PHP binary is provided by Hostopia to be shared by all users of the Plusnet cgi cluster. We aren't able to compile our own.
As far as I can tell semaphore support has not been compiled into our copy so associated functions will not be available.
David
David