I am trying to learn PHP, and was interested in using shared memory functionality. <br />The documentation I can find ( <a href="http://jamesthornton.com/php/manual/ref.shmop.html" target="_blank">http://jamesthornton.com/php/manual/ref.shmop.html</a> ) is for 4.0.3 - is this supported on the TCH servers? is there a reason that it wouldn't be supported? <br /><br />Thank you.<!--content-->
PHP's shared memory functions are not enabled on TCH's servers. I presume this is because functions like these are not safe in a shared hosting environment (one user could conceivably hose the entire server).<!--content-->
wolvesb: FWIW...One program I've found (recommended by several family members here) is Xampp. It's basically a whole Apache server complete with PHP that you can store on a CD or on a USB memory stick. It's excellent for learning PHP (or other programming) without hosing up your site or a server. (Plus it doesn't affect your bandwidth on your site, either!) Just do a google search and you'll find it.<br /><br />Just my $.02 worth!<!--content-->
I second <a href="http://www.apachefriends.org/en/xampp.html" target="_blank">xampp</a>,<br />I use the lite version.<br />Its so nice to just edit a page and view it on my computer instantly <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/clapping.gif" style="vertical-align:middle" emoid=":clapping:" border="0" alt="clapping.gif" /><!--content-->
<!--QuoteBegin-TCH-David+Jun 23 2005, 01:59 AM--><div class='quotetop'>QUOTE(TCH-David @ Jun 23 2005, 01:59 AM)</div><div class='quotemain'><!--QuoteEBegin-->PHP's shared memory functions are not enabled on TCH's servers. I presume this is because functions like these are not safe in a shared hosting environment (one user could conceivably hose the entire server).<br /><div align="right"><a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=136601"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Are there any lightweight mechanisms to communicate between two simultaneously running PHP scripts that will work in the TCH environment? Or do I just do file or database I/O?<!--content-->
I am not aware of any, but I don't really know much about this particular subject. I have to admit I'm at a bit of a loss to understand how or why you'd have 2 PHP scripts running at the same time that needed to communicate with each other on the server. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/goof.gif" style="vertical-align:middle" emoid=":goof:" border="0" alt="goof.gif" /> <br /><br />I think you could do what you want with the methods you describe (file or database I/O), if there are no other options available on the server.<!--content-->
PHP's shared memory functions are not enabled on TCH's servers. I presume this is because functions like these are not safe in a shared hosting environment (one user could conceivably hose the entire server).<!--content-->
wolvesb: FWIW...One program I've found (recommended by several family members here) is Xampp. It's basically a whole Apache server complete with PHP that you can store on a CD or on a USB memory stick. It's excellent for learning PHP (or other programming) without hosing up your site or a server. (Plus it doesn't affect your bandwidth on your site, either!) Just do a google search and you'll find it.<br /><br />Just my $.02 worth!<!--content-->
I second <a href="http://www.apachefriends.org/en/xampp.html" target="_blank">xampp</a>,<br />I use the lite version.<br />Its so nice to just edit a page and view it on my computer instantly <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/clapping.gif" style="vertical-align:middle" emoid=":clapping:" border="0" alt="clapping.gif" /><!--content-->
<!--QuoteBegin-TCH-David+Jun 23 2005, 01:59 AM--><div class='quotetop'>QUOTE(TCH-David @ Jun 23 2005, 01:59 AM)</div><div class='quotemain'><!--QuoteEBegin-->PHP's shared memory functions are not enabled on TCH's servers. I presume this is because functions like these are not safe in a shared hosting environment (one user could conceivably hose the entire server).<br /><div align="right"><a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=136601"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Are there any lightweight mechanisms to communicate between two simultaneously running PHP scripts that will work in the TCH environment? Or do I just do file or database I/O?<!--content-->
I am not aware of any, but I don't really know much about this particular subject. I have to admit I'm at a bit of a loss to understand how or why you'd have 2 PHP scripts running at the same time that needed to communicate with each other on the server. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/goof.gif" style="vertical-align:middle" emoid=":goof:" border="0" alt="goof.gif" /> <br /><br />I think you could do what you want with the methods you describe (file or database I/O), if there are no other options available on the server.<!--content-->