[PHP] Using remote include config file and class in a local file
Question is wrt to including a config file on an external server in a local include Lets say that on 127.0.0.1 I have test.php with include http://200.200.1.1/Folder/Config.php $obj = new RemoteClass() do stuff and on server 200.200.1.1 I have my Config.php file which is contains the class RemoteClass() { echo test } If I try to test it locally it says it cannot find RemoteClass ... How can I include/require a config (or any other php classes file) on my local running php script ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using remote include config file and class in a local file
You are including file from external server and you are accessing it via HTTP protocol. So it will include the output of http://200.200.1.1/Folder/Config.php and the output of that script is nothing. If you want to see the output just put http://200.200.1.1/Folder/Config.phpin browser and check. btw what exactly you want to achieve by including external config file? On Tue, Nov 3, 2009 at 2:05 PM, Anton Heuschen anto...@gmail.com wrote: Question is wrt to including a config file on an external server in a local include Lets say that on 127.0.0.1 I have test.php with include http://200.200.1.1/Folder/Config.php $obj = new RemoteClass() do stuff and on server 200.200.1.1 I have my Config.php file which is contains the class RemoteClass() { echo test } If I try to test it locally it says it cannot find RemoteClass ... How can I include/require a config (or any other php classes file) on my local running php script ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Devendra Jadhav
Re: [PHP] Using remote include config file and class in a local file
Including security warning from php.net/ Remote file may be processed at the remote server (depending on the file extension and the fact if the remote server runs PHP or not) but it still has to produce a valid PHP script because it will be processed at the local server. If the file from the remote server should be processed there and outputted only, readfile() is much better function to use. Otherwise, special care should be taken to secure the remote script to produce a valid and desired code. Deos the file produce a valid PHP script? Please make a HTTP request and post output here. You should get valid PHP file. If not you should fix the problem with two possible solutions. By disabling PHP script execution on remote server. This could be impossible if remote server runs an active PHP server. Or by editing file to produce a valid PHP script. For example: echo class RemoteClass() { echo test } would produce a valid PHP script. Cemal Eker On Tue, Nov 3, 2009 at 10:35 AM, Anton Heuschen anto...@gmail.com wrote: Question is wrt to including a config file on an external server in a local include Lets say that on 127.0.0.1 I have test.php with include http://200.200.1.1/Folder/Config.php $obj = new RemoteClass() do stuff and on server 200.200.1.1 I have my Config.php file which is contains the class RemoteClass() { echo test } If I try to test it locally it says it cannot find RemoteClass ... How can I include/require a config (or any other php classes file) on my local running php script ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using remote include config file and class in a local file
Yes your right ... realizing it ... the config file is a class I use to connect to my Database I want to store this config on myt hosting and then I can link to it and use it at my office, or at my PC at home But I now realize including the php ...will just return a blank page so its not like doing a include(/config.php) when its local Anyway to do this ? 2009/11/3 Devendra Jadhav devendra...@gmail.com: You are including file from external server and you are accessing it via HTTP protocol. So it will include the output of http://200.200.1.1/Folder/Config.php and the output of that script is nothing. If you want to see the output just put http://200.200.1.1/Folder/Config.php in browser and check. btw what exactly you want to achieve by including external config file? On Tue, Nov 3, 2009 at 2:05 PM, Anton Heuschen anto...@gmail.com wrote: Question is wrt to including a config file on an external server in a local include Lets say that on 127.0.0.1 I have test.php with include http://200.200.1.1/Folder/Config.php $obj = new RemoteClass() do stuff and on server 200.200.1.1 I have my Config.php file which is contains the class RemoteClass() { echo test } If I try to test it locally it says it cannot find RemoteClass ... How can I include/require a config (or any other php classes file) on my local running php script ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Devendra Jadhav -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using remote include config file and class in a local file
Check if allow_url_fopenhttp://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopenis set in php.ini otherwise you have to set it true by ini_set() On Tue, Nov 3, 2009 at 2:44 PM, Cemal Eker cemale...@gmail.com wrote: Including security warning from php.net/ Remote file may be processed at the remote server (depending on the file extension and the fact if the remote server runs PHP or not) but it still has to produce a valid PHP script because it will be processed at the local server. If the file from the remote server should be processed there and outputted only, readfile() is much better function to use. Otherwise, special care should be taken to secure the remote script to produce a valid and desired code. Deos the file produce a valid PHP script? Please make a HTTP request and post output here. You should get valid PHP file. If not you should fix the problem with two possible solutions. By disabling PHP script execution on remote server. This could be impossible if remote server runs an active PHP server. Or by editing file to produce a valid PHP script. For example: echo class RemoteClass() { echo test } would produce a valid PHP script. Cemal Eker On Tue, Nov 3, 2009 at 10:35 AM, Anton Heuschen anto...@gmail.com wrote: Question is wrt to including a config file on an external server in a local include Lets say that on 127.0.0.1 I have test.php with include http://200.200.1.1/Folder/Config.php $obj = new RemoteClass() do stuff and on server 200.200.1.1 I have my Config.php file which is contains the class RemoteClass() { echo test } If I try to test it locally it says it cannot find RemoteClass ... How can I include/require a config (or any other php classes file) on my local running php script ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Devendra Jadhav
Re: [PHP] Using remote include config file and class in a local file
You can you NFS to mount remote file system on your local system. On Tue, Nov 3, 2009 at 2:50 PM, Anton Heuschen anto...@gmail.com wrote: Yes your right ... realizing it ... the config file is a class I use to connect to my Database I want to store this config on myt hosting and then I can link to it and use it at my office, or at my PC at home But I now realize including the php ...will just return a blank page so its not like doing a include(/config.php) when its local Anyway to do this ? 2009/11/3 Devendra Jadhav devendra...@gmail.com: You are including file from external server and you are accessing it via HTTP protocol. So it will include the output of http://200.200.1.1/Folder/Config.php and the output of that script is nothing. If you want to see the output just put http://200.200.1.1/Folder/Config.php in browser and check. btw what exactly you want to achieve by including external config file? On Tue, Nov 3, 2009 at 2:05 PM, Anton Heuschen anto...@gmail.com wrote: Question is wrt to including a config file on an external server in a local include Lets say that on 127.0.0.1 I have test.php with include http://200.200.1.1/Folder/Config.php $obj = new RemoteClass() do stuff and on server 200.200.1.1 I have my Config.php file which is contains the class RemoteClass() { echo test } If I try to test it locally it says it cannot find RemoteClass ... How can I include/require a config (or any other php classes file) on my local running php script ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Devendra Jadhav -- Devendra Jadhav
Re: [PHP] Using remote include config file and class in a local file
Hmmm yes thats another way of doing it ... Im running a Ubuntu box ..so its quite possible (how will you mount if your on XP?) 2009/11/3 Devendra Jadhav devendra...@gmail.com: You can you NFS to mount remote file system on your local system. On Tue, Nov 3, 2009 at 2:50 PM, Anton Heuschen anto...@gmail.com wrote: Yes your right ... realizing it ... the config file is a class I use to connect to my Database I want to store this config on myt hosting and then I can link to it and use it at my office, or at my PC at home But I now realize including the php ...will just return a blank page so its not like doing a include(/config.php) when its local Anyway to do this ? 2009/11/3 Devendra Jadhav devendra...@gmail.com: You are including file from external server and you are accessing it via HTTP protocol. So it will include the output of http://200.200.1.1/Folder/Config.php and the output of that script is nothing. If you want to see the output just put http://200.200.1.1/Folder/Config.php in browser and check. btw what exactly you want to achieve by including external config file? On Tue, Nov 3, 2009 at 2:05 PM, Anton Heuschen anto...@gmail.com wrote: Question is wrt to including a config file on an external server in a local include Lets say that on 127.0.0.1 I have test.php with include http://200.200.1.1/Folder/Config.php $obj = new RemoteClass() do stuff and on server 200.200.1.1 I have my Config.php file which is contains the class RemoteClass() { echo test } If I try to test it locally it says it cannot find RemoteClass ... How can I include/require a config (or any other php classes file) on my local running php script ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Devendra Jadhav -- Devendra Jadhav -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using remote include config file and class in a local file
No idea about NFS on windows. But you can mount samba share in XP On Tue, Nov 3, 2009 at 3:09 PM, Anton Heuschen anto...@gmail.com wrote: Hmmm yes thats another way of doing it ... Im running a Ubuntu box ..so its quite possible (how will you mount if your on XP?) 2009/11/3 Devendra Jadhav devendra...@gmail.com: You can you NFS to mount remote file system on your local system. On Tue, Nov 3, 2009 at 2:50 PM, Anton Heuschen anto...@gmail.com wrote: Yes your right ... realizing it ... the config file is a class I use to connect to my Database I want to store this config on myt hosting and then I can link to it and use it at my office, or at my PC at home But I now realize including the php ...will just return a blank page so its not like doing a include(/config.php) when its local Anyway to do this ? 2009/11/3 Devendra Jadhav devendra...@gmail.com: You are including file from external server and you are accessing it via HTTP protocol. So it will include the output of http://200.200.1.1/Folder/Config.php and the output of that script is nothing. If you want to see the output just put http://200.200.1.1/Folder/Config.php in browser and check. btw what exactly you want to achieve by including external config file? On Tue, Nov 3, 2009 at 2:05 PM, Anton Heuschen anto...@gmail.com wrote: Question is wrt to including a config file on an external server in a local include Lets say that on 127.0.0.1 I have test.php with include http://200.200.1.1/Folder/Config.php $obj = new RemoteClass() do stuff and on server 200.200.1.1 I have my Config.php file which is contains the class RemoteClass() { echo test } If I try to test it locally it says it cannot find RemoteClass ... How can I include/require a config (or any other php classes file) on my local running php script ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Devendra Jadhav -- Devendra Jadhav -- Devendra Jadhav
RE: [PHP] Using remote include config file and class in a local file
Why dont you try returning config variables as string from remote server. Something like : http://192.XXX.XXX.XXX/getconfig.php?token=123encoded=; And the getconfig.php file can be like ?php /// validate if request is from a friendly server something like the following 2 if statements if(!$_GET[token] || !$_GET[encoded]) return; if(md5($_GET[token]) != $_GET[encoded]) /// just for example. Dont use md5 it can be broken easly. Try to code your own encryption function return; echo 'server=DBServer;user=username;pass=password;dbname=databaseName'; ? And in your requester script you should request remote address content by adding your token and encoded variables. And parse the returning string. -Original Message- From: Devendra Jadhav [mailto:devendra...@gmail.com] Sent: Tuesday, November 03, 2009 12:11 PM To: Anton Heuschen Cc: PHP General List Subject: Re: [PHP] Using remote include config file and class in a local file No idea about NFS on windows. But you can mount samba share in XP On Tue, Nov 3, 2009 at 3:09 PM, Anton Heuschen anto...@gmail.com wrote: Hmmm yes thats another way of doing it ... Im running a Ubuntu box ..so its quite possible (how will you mount if your on XP?) 2009/11/3 Devendra Jadhav devendra...@gmail.com: You can you NFS to mount remote file system on your local system. On Tue, Nov 3, 2009 at 2:50 PM, Anton Heuschen anto...@gmail.com wrote: Yes your right ... realizing it ... the config file is a class I use to connect to my Database I want to store this config on myt hosting and then I can link to it and use it at my office, or at my PC at home But I now realize including the php ...will just return a blank page so its not like doing a include(/config.php) when its local Anyway to do this ? 2009/11/3 Devendra Jadhav devendra...@gmail.com: You are including file from external server and you are accessing it via HTTP protocol. So it will include the output of http://200.200.1.1/Folder/Config.php and the output of that script is nothing. If you want to see the output just put http://200.200.1.1/Folder/Config.php in browser and check. btw what exactly you want to achieve by including external config file? On Tue, Nov 3, 2009 at 2:05 PM, Anton Heuschen anto...@gmail.com wrote: Question is wrt to including a config file on an external server in a local include Lets say that on 127.0.0.1 I have test.php with include http://200.200.1.1/Folder/Config.php $obj = new RemoteClass() do stuff and on server 200.200.1.1 I have my Config.php file which is contains the class RemoteClass() { echo test } If I try to test it locally it says it cannot find RemoteClass ... How can I include/require a config (or any other php classes file) on my local running php script ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Devendra Jadhav -- Devendra Jadhav -- Devendra Jadhav Bu mesaj ve ekleri, mesajda g?nderildi?i belirtilen ki?i/ki?ilere ?zeldir ve gizlidir. Size yanl??l?kla ula?m??sa l?tfen g?nderen kisiyi bilgilendiriniz ve mesaj? sisteminizden siliniz. Mesaj ve eklerinin i?eri?i ile ilgili olarak ?irketimizin herhangi bir hukuki sorumlulu?u bulunmamaktad?r. ?irketimiz mesaj?n ve bilgilerinin size de?i?ikli?e u?rayarak veya ge? ula?mas?ndan, b?t?nl???n?n ve gizlili?inin korunamamas?ndan, vir?s i?ermesinden ve bilgisayar sisteminize verebilece?i herhangi bir zarardan sorumlu tutulamaz. This message and attachments are confidential and intended for the individual(s) stated in this message. If you received this message in error, please immediately notify the sender and delete it from your system. Our company has no legal responsibility for the contents of the message and its attachments. Our company shall have no liability for any changes or late receiving, loss of integrity and confidentiality, viruses and any damages caused in anyway to your computer system.
Re: [PHP] Custom function for inserting values into MySQL
Allen McCabe wrote: Okay friends, I have been wondering about writing a simple function that will help me with my MySQL inserting. Not because I need to save time and space, but because I wanted to. I wrote a function for inserting 10 values (I have not been able to come up with an idea how to make the number of values I'm inserting variable, so I'm sticking with ten). This function takes 22 parameters: #1 is the table name, #2-21 are the row names and the values, and #22 is the integar string. The first 21 parameters are self-explanatory, the 22nd is a string of values that need to be inserted as an integar, basically, not adding single quotes around the value. Eg. $value2 = 5, not $value2 = '5'. I am very hesitant to try this one out on my database, I've got tables of important information and don't want to, I don't know, inadvertantly throw a wrench into the works, AND I want to open up a dialoug about custom PHP functions for working with MySQL, for the fun of it! Here is my 10 value function for inserting data into a MySQL database table. function insertinto10($table, $field1, $value1, $field2, $value2, $field3, $value3, $field4, $value4, $field5, $value5, $field6, $value6, $field7, $value7, $field8, $value8, $field9, $value9, $field10, $value10, $int = NULL) { if (isset($int)) { $sPattern = '/\s*/m'; $sReplace = ''; $int = preg_replace($sPattern, $sReplace, $int); $pieces = explode(,, $int); // $pieces[0], $pieces[1] - each equal to value numbers that are integars $length = count($pieces); // call custom function to create associative array eg. $newarray[2] = 1, $newarray[4] = 1, $newarray[5] = 1 . . . $integarArray = strtoarray($length, $int); } $valuesArray = array($value1, $value2, $value3, $value4, $value5, $value6, $value7, $value8, $value9, $value10); foreach ($valuesArray as $key = $value) { if (isset($integarArray[$key]) $integarArray[$key] == 1) { // INTEGAR VALUE $valuesArray[$key] = mysql_real_escape_string(stripslashes($value)); } else { // STRING VALUE $cleanValue = mysql_real_escape_string(stripslashes($value)); $valuesArray[$key] = '{$cleanValue}'; } } $result = mysql_query(INSERT INTO `{$table}` (`{$field1}`, `{$field2}`, `{$field3}`, `{$field4}`) VALUES ({$valuesArray[1]}, {$valuesArray[2]}, {$valuesArray[3]}, {$valuesArray[4]}, {$valuesArray[5]}, {$valuesArray[6]}, {$valuesArray[7]}, {$valuesArray[8]}, {$valuesArray[9]}, {$valuesArray[10]})); return $result; } You may find copying/pasting into your favorite code-editor helps make it more readable. Do you see any major hangups or screwups on first glance? And is my fear of trying this out on my database unfounded? Does this even seem that useful? I'll echo what the others have said about the parameters. For me personally, if I am passing more than three parameters (sometimes even three) I rethink my function. I'm not sure what you envision using this function for, but the approach I use for forms and databases is always arrays. I get an array from my forms, I insert that array into the database, and of course I fetch arrays out of the database. These are all indexed the same with the index as the field name of the table so it's easy. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Using remote include config file and class in a local file
Anton Heuschen wrote: Question is wrt to including a config file on an external server in a local include Lets say that on 127.0.0.1 I have test.php with include http://200.200.1.1/Folder/Config.php $obj = new RemoteClass() do stuff and on server 200.200.1.1 I have my Config.php file which is contains the class RemoteClass() { echo test } If I try to test it locally it says it cannot find RemoteClass ... How can I include/require a config (or any other php classes file) on my local running php script ? As others have said, you are receiving the output of the config.php after it has been parsed by PHP on the remote server. You could try naming it config.cfg, config.conf, config.ini, config.inc, etc... -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] It's not behaving. Error reporting, that is
Hi all. This seems like a trivial issue to fix, but I'm having issues. I'm running a script via command line and it's throwing out PHP notices. Well, I want to suppress those notices. At the top of my script I have the line... ?php error_reporting (E_ERROR); ? ...thinking that this would get rid of the notices. However, it did not. They still appear. I even attempted using ini_set(), but to no avail. I then set error_reporting in php.ini - this made no difference. (I shouldn't have to restart apache when running via command line, but for giggles, I did.) I then changed display_errors to Off. You guessed it - no change! This immediately brought up the question... Well, what php.ini is this script using? Here's my results... [pthomp...@s-irv-pthompson scripts]$ php --ini Configuration File (php.ini) Path: /etc Loaded Configuration File: /etc/php.ini Scan for additional .ini files in: /etc/php.d ... Yup, according to PHP I'm using the correct ini. Now I'm at a loss. Can anyone shed some light on this big brain fart I'm having? Thanks in advance. ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] It's not behaving. Error reporting, that is
Hi Philip Try to post a link to a page, that prints phpinfo() -- Kind regards Kim Emax Philip Thompson wrote on 2009-11-03 17:11: Hi all. This seems like a trivial issue to fix, but I'm having issues. I'm running a script via command line and it's throwing out PHP notices. Well, I want to suppress those notices. At the top of my script I have the line... ?php error_reporting (E_ERROR); ? ...thinking that this would get rid of the notices. However, it did not. They still appear. I even attempted using ini_set(), but to no avail. I then set error_reporting in php.ini - this made no difference. (I shouldn't have to restart apache when running via command line, but for giggles, I did.) I then changed display_errors to Off. You guessed it - no change! This immediately brought up the question... Well, what php.ini is this script using? Here's my results... [pthomp...@s-irv-pthompson scripts]$ php --ini Configuration File (php.ini) Path: /etc Loaded Configuration File: /etc/php.ini Scan for additional .ini files in: /etc/php.d ... Yup, according to PHP I'm using the correct ini. Now I'm at a loss. Can anyone shed some light on this big brain fart I'm having? Thanks in advance. ~Philip -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] =??Q?Esco=AE?= Frontier Acela High Performance Fume Hoods
Spam. On Tue, Nov 3, 2009 at 5:28 PM, Hanjie Xu iamj...@gmail.com wrote: What's this? 2009/11/4 Esco Biotech Pvt. Ltd. escobiot...@vsnl.net Esco® Frontier Acela High Performance Fume Hoods *ESCO's Industry Leading Frontier Acela Fume Hood gives you ** Maximum Flexibility, Energy Savings and Quality all at an Affordable Price! * · Low Velocity (0.3 m/s) yet High Performance. · Annual energy savings up to US $ 8,000 (Evan Mills, Dale Sartor. Energy use and savings potential for Laboratory Fume Hoods. Energy 30 (2005) 1859-1864) to help reduce your carbon footprint. · CAV or VAV Modes. · Full range of worktop materials including Stainless Steel, Ceramic or Epoxy Resin. · 4, 5, 6, or 8 ft sizes to suit your needs. · Wide range of accessories to tailor your fume cupboard to meet your requirements. · Ergonomically angled sash window to enhance usability. · The tapered fibreglass exhaust collar reduces airflow turbulence, static pressure loss, noise level and increases face velocity uniformity. · Tri-wall construction and chain-and-sprocket sash system for maximum durability. · Certified to EN14175. * * * * Literature http://escoglobal.com/products/download/EFA_brochure.pdf Safe Use of Fume Hoods Videohttp://escoglobal.com/resources/video/video.php?id=Fumehoods Fume Hood Testing According to ANSI/ASHRAE 110 Standardhttp://escoglobal.com/resources/video/video.php?id=fumehood Esco performs testing in accordance with more than 20 of the world's most recognized standards, of local, regional and international scopes Learn About International Standardshttp://escoglobal.com/resources/biological-safety-cabinets/learn-about-international-standards.php Esco Clean Room Construction Componentshttp://escoglobal.com/products/cleanroom-equipment/ Esco PowderMax Powder Weighing Balance Enclosures White Paperhttp://escoglobal.com/products/download/PW1_microbalance.pdf Biological Safety Cabinets Order Free CDhttp://escoglobal.com/resources/biological-safety-cabinets/order-cd.php *Please Visit us at Hall No. H, Booth No. 18, 19 at Pharma Expo 2009 concurrent with 61st Indian Pharmaceutical Congress (IPC), Nirma University of Science Technology, Ahmedabad to be held from 11 - 13 December, 2009.*** *ESCO BIOTECH PVT. LTD.* 101 – 102, Sita Niwas, Plot No. 94, Road No.1, Liberty Garden, Malad (W), Mumbai – 400 064 Tel : + 91 22 4073 0202 / 2880 3636 / 3293 3535 Fax : + 91 22 2880 3738 / 2889 3636 E mail :* *escobiot...@vsnl.net Website : www.escoindia.co.in I Biological Safety Cabinetshttp://escoglobal.com/products/biological-safety-cabinets/I Laminar Flow Cabinets http://escoglobal.com/products/laminar-flow-cabinets/ I Laboratory Fume Hoods http://escoglobal.com/products/laboratory-fume-hoods/ I Ductless Fume Hoods http://escoglobal.com/products/ductless-fume-hoods/ I Cleanroom Equipments http://escoglobal.com/products/cleanroom-equipment/ I Air Showershttp://escoglobal.com/products/cleanroom-equipment/detail.php?id=EASI Sampling Dispensing Booth http://escoglobal.com/products/containment-pharma/ I Hospital Pharmacy Productshttp://escoglobal.com/products/hospital-pharmacy-products/I Cytoculture™ Cytotoxic Safety Cabinetshttp://escoglobal.com/products/hospital-pharmacy-products/detail.php?id=CYT-AI Isoclean Hospital Pharmacy Isolatorshttp://escoglobal.com/products/hospital-pharmacy-products/detail.php?id=HPI-NI IVF Workstations http://escoglobal.com/products/ivf-workstations/ I Lab Animal Research Productshttp://escoglobal.com/products/lab-animal-research-products/I Laboratory Incubators http://escoglobal.com/products/laboratory-incubators/ I Laboratory Ovens http://escoglobal.com/products/laboratory-ovens/ I PCR Cabinetshttp://escoglobal.com/products/pcr-cabinets/I PCR Thermal Cyclershttp://escoglobal.com/products/pcr-thermal-cyclers/detail.php?id=SWT-MXI Real Time Thermal Cyclershttp://escoglobal.com/products/pcr-thermal-cyclers/detail.php?id=SPT-RTI Ultralow Freezers http://escoglobal.com/products/ultralow-freezers/ I Esco on Twitter http://twitter.com/escoglobal I Esco on You Tubehttp://youtube.com/escoglobal I Esco Bio Safety Cabinet Micro-Site http://biologicalsafetycabinet.com/ I -- Xu Han-Jie -- Adam Randall http://www.xaren.net AIM: blitz574 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Free tech talk by Percona tonight in Palo Alto, CA
Hi all, I would like to invite everyone to a Box.net sponsored free tech talk (and free dinner!) in Palo Alto tonight on Goal Oriented Performance Optimization, given by Peter Zaitsev of Percona, the leading MySQL/ LAMP performance consulting firm. Learn more about the event from our blog post http://blog.box.net/?p=1363 and RSVP here: http://www.socializr.com/event/665235025 Please be sure to RSVP so that we have enough food for everyone. Thanks, and hope to see you there! Sam Ghods s...@box.net Box.net - Vice President of Engineering office: (877) 269-6736 ext. 60 fax: (650) 529-0392
RE: [PHP] Re: What PHP version are you using?
From: Lester Caine Israel Ekpo wrote: On Mon, Nov 2, 2009 at 2:15 PM, John Black s...@network-technologies.orgwrote: Bob McConnell wrote: I just checked the Red Hat 5.4 manifest and it shows php-5.1.6-23.el5 - php-5.1.6-23.2.el5_3. CentOS simply repackages the Red Hat kit without the proprietary bits. I don't understand why they are so far behind on a build that was just released last month, but our hosting service only provides what's in the official release. I just check the CentOS repo and the repo lists php-5.1.6-23.2.el5_3.x86_64.rpm as latest. So CentOS is as upto date as RedHat, the way it should be. That is not good. 5.1.6 was released in August 2006. More than 3 years ago. There are a lot of bug fixes since then http://www.php.net/ChangeLog-5.php It looks like the php libraries are not maintained in CentOS and Red Hat Repositories. There are very good reasons why a 'long time supported' build does not keep replacing packages all the time. It is gauranteed NOT to change them, so compatibility problems introduced by PHP such as the 'date' problem will not come up and bit ANY of their customers. I believe that there is a new version due on a couple of 'long time supported' distributions, but the current 'instability' with PHP5.3 potentially requiring changes to deployed applications is the sort of thing that these builds are supposed to avoid. I'll be staying with 5.2.x for a while simply because I know that is stable with my current code base. So it IS good that a stable and understood build of PHP is used as no one would gaurantee that later builds will not introduce problems - especially following a change of minor versions. I agree that stability is good, but at some point reality must enter the picture. Continuing to distribute an obsolete package that is no longer supported nor maintained is not good for anyone, least of all the users of those systems. First, the distribution must also include the obsolete documentation to match the versions it includes, since that is no longer available elsewhere and is difficult to identify when it does. In addition, newer features are assumed by many of the other tools, frameworks and applications that are used on or with those systems, none of which are likely to work with these old versions. In our case we require our hosting service to install 5.2.10, which costs us extra in both time and money. But several of the other third party components used with our applications assume the availability of features in that release. They simply won't work with older versions. That minimum is reviewed every time we consider adding new capabilities to our systems, which generally happens every other month. We already have developers looking forward to 5.3 and drooling over the possibilities. I'm just happy that we will finally rid ourselves of some of the magic features. Bob McConnell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] =??Q?Esco=AE?= Frontier Acela High Performance Fume Hoods
What's this? 2009/11/4 Esco Biotech Pvt. Ltd. escobiot...@vsnl.net Esco® Frontier Acela High Performance Fume Hoods *ESCO's Industry Leading Frontier Acela Fume Hood gives you ** Maximum Flexibility, Energy Savings and Quality all at an Affordable Price! * · Low Velocity (0.3 m/s) yet High Performance. · Annual energy savings up to US $ 8,000 (Evan Mills, Dale Sartor. Energy use and savings potential for Laboratory Fume Hoods. Energy 30 (2005) 1859-1864) to help reduce your carbon footprint. · CAV or VAV Modes. · Full range of worktop materials including Stainless Steel, Ceramic or Epoxy Resin. · 4, 5, 6, or 8 ft sizes to suit your needs. · Wide range of accessories to tailor your fume cupboard to meet your requirements. · Ergonomically angled sash window to enhance usability. · The tapered fibreglass exhaust collar reduces airflow turbulence, static pressure loss, noise level and increases face velocity uniformity. · Tri-wall construction and chain-and-sprocket sash system for maximum durability. · Certified to EN14175. * * * * Literature http://escoglobal.com/products/download/EFA_brochure.pdf Safe Use of Fume Hoods Videohttp://escoglobal.com/resources/video/video.php?id=Fumehoods Fume Hood Testing According to ANSI/ASHRAE 110 Standardhttp://escoglobal.com/resources/video/video.php?id=fumehood Esco performs testing in accordance with more than 20 of the world's most recognized standards, of local, regional and international scopes Learn About International Standardshttp://escoglobal.com/resources/biological-safety-cabinets/learn-about-international-standards.php Esco Clean Room Construction Componentshttp://escoglobal.com/products/cleanroom-equipment/ Esco PowderMax Powder Weighing Balance Enclosures White Paperhttp://escoglobal.com/products/download/PW1_microbalance.pdf Biological Safety Cabinets Order Free CDhttp://escoglobal.com/resources/biological-safety-cabinets/order-cd.php *Please Visit us at Hall No. H, Booth No. 18, 19 at Pharma Expo 2009 concurrent with 61st Indian Pharmaceutical Congress (IPC), Nirma University of Science Technology, Ahmedabad to be held from 11 - 13 December, 2009.*** *ESCO BIOTECH PVT. LTD.* 101 – 102, Sita Niwas, Plot No. 94, Road No.1, Liberty Garden, Malad (W), Mumbai – 400 064 Tel : + 91 22 4073 0202 / 2880 3636 / 3293 3535 Fax : + 91 22 2880 3738 / 2889 3636 E mail :* *escobiot...@vsnl.net Website : www.escoindia.co.in I Biological Safety Cabinetshttp://escoglobal.com/products/biological-safety-cabinets/I Laminar Flow Cabinets http://escoglobal.com/products/laminar-flow-cabinets/ I Laboratory Fume Hoods http://escoglobal.com/products/laboratory-fume-hoods/ I Ductless Fume Hoods http://escoglobal.com/products/ductless-fume-hoods/ I Cleanroom Equipments http://escoglobal.com/products/cleanroom-equipment/ I Air Showershttp://escoglobal.com/products/cleanroom-equipment/detail.php?id=EASI Sampling Dispensing Booth http://escoglobal.com/products/containment-pharma/ I Hospital Pharmacy Productshttp://escoglobal.com/products/hospital-pharmacy-products/I Cytoculture™ Cytotoxic Safety Cabinetshttp://escoglobal.com/products/hospital-pharmacy-products/detail.php?id=CYT-AI Isoclean Hospital Pharmacy Isolatorshttp://escoglobal.com/products/hospital-pharmacy-products/detail.php?id=HPI-NI IVF Workstations http://escoglobal.com/products/ivf-workstations/ I Lab Animal Research Productshttp://escoglobal.com/products/lab-animal-research-products/I Laboratory Incubators http://escoglobal.com/products/laboratory-incubators/ I Laboratory Ovens http://escoglobal.com/products/laboratory-ovens/ I PCR Cabinetshttp://escoglobal.com/products/pcr-cabinets/I PCR Thermal Cyclershttp://escoglobal.com/products/pcr-thermal-cyclers/detail.php?id=SWT-MXI Real Time Thermal Cyclershttp://escoglobal.com/products/pcr-thermal-cyclers/detail.php?id=SPT-RTI Ultralow Freezers http://escoglobal.com/products/ultralow-freezers/ I Esco on Twitter http://twitter.com/escoglobal I Esco on You Tubehttp://youtube.com/escoglobal I Esco Bio Safety Cabinet Micro-Site http://biologicalsafetycabinet.com/ I -- Xu Han-Jie
Re: [PHP] � Frontier Acela High Performan ce Fume Hoods
My guess is that it is some sort of spam. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] libevent; example not working
I installed the libevent package, and as a test, tried [Example #1][http://us2.php.net/manual/en/libevent.examples.php] with a few modifications ( below; read from a file instead of stdin; write output to php log file ). I'm not seeing callback_func() being called, and I'm not seeing any errors, segfaults, etc ( I see my ex1: started event loop debug msg ). I'm using PHP 5.1.6 on Red Hat 3.4.6-2, and re: installation, I followed steps 4-9, and believe everything is installed properly: http://abhinavsingh.com/blog/2009/11/writing-a-custom-unix-style-tail-in-php-using-libevent-api-on-mac-os-x-10-5-x-and-other-platforms/ Any suggestions on how to go about getting this to work ? Thanks, ?php function callback_func($fd, $events, $arg) { error_log( callback_func(): here ! ); static $max_requests; $max_requests++; if ($max_requests == 10) { /* exit loop after 10 writes */ event_base_loopexit($arg[1]); } /* read while we can */ $data = fread($fd, 4096); while (false !== $data) { //echo $data; error_log( callback_func(): data = . $data ); $data = fread($fd, 4096); } } /* create base and event */ $base = event_base_new(); $event = event_new(); //$fd = STDIN; $fd = fopen( /dev/apache/logs/access_log, 'r' ); /* set event flags */ event_set($event, $fd, EV_READ | EV_PERSIST, callback_func, array($event, $base)); /* set event base */ event_base_set($event, $base); /* enable event */ event_add($event); /* start event loop */ error_log( ex1: starting event loop ); event_base_loop($base); error_log( ex1: started event loop ); while( 1 ); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php