[PHP] Using remote include config file and class in a local file

2009-11-03 Thread Anton Heuschen
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 Re

Re: [PHP] Using remote include config file and class in a local file

2009-11-03 Thread Devendra Jadhav
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.

Re: [PHP] Using remote include config file and class in a local file

2009-11-03 Thread Cemal Eker
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 remo

Re: [PHP] Using remote include config file and class in a local file

2009-11-03 Thread Anton Heuschen
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

Re: [PHP] Using remote include config file and class in a local file

2009-11-03 Thread Devendra Jadhav
Check if 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 wrote: > Including security warning from php.net/ > > "Remote file may be processed

Re: [PHP] Using remote include config file and class in a local file

2009-11-03 Thread Devendra Jadhav
You can you NFS to mount remote file system on your local system. On Tue, Nov 3, 2009 at 2:50 PM, Anton Heuschen 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 a

Re: [PHP] Using remote include config file and class in a local file

2009-11-03 Thread Anton Heuschen
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 : > You can you NFS to mount remote file system on your local system. > > On Tue, Nov 3, 2009 at 2:50 PM, Anton Heuschen wrote: >> >> Yes your

Re: [PHP] Using remote include config file and class in a local file

2009-11-03 Thread Devendra Jadhav
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 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 : > > You c

RE: [PHP] Using remote include config file and class in a local file

2009-11-03 Thread Mert Oztekin
Why dont you try returning config variables as string from remote server. Something like : "http://192.XXX.XXX.XXX/getconfig.php?token=123&encoded="; And the getconfig.php file can be like And in your requester script you should request remote address content by adding your token

Re: [PHP] Custom function for inserting values into MySQL

2009-11-03 Thread Shawn McKenzie
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 ide

[PHP] Re: Using remote include config file and class in a local file

2009-11-03 Thread Shawn McKenzie
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 m

[PHP] It's not behaving. Error reporting, that is

2009-11-03 Thread Philip Thompson
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... ...thinking that this would get rid of the notices. Howeve

Re: [PHP] It's not behaving. Error reporting, that is

2009-11-03 Thread Kim Madsen
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

Re: [PHP] =??Q?Esco=AE?= Frontier Acela High Performance Fume Hoods

2009-11-03 Thread Adam Randall
Spam. On Tue, Nov 3, 2009 at 5:28 PM, Hanjie Xu wrote: > What's this? > > 2009/11/4 Esco Biotech Pvt. Ltd. > >>     Esco® Frontier Acela High Performance Fume Hoods >> >> >> >> *ESCO's Industry Leading Frontier Acela Fume Hood gives you ** >> Maximum Flexibility, Energy Savings and Quality all a

[PHP] Free tech talk by Percona tonight in Palo Alto, CA

2009-11-03 Thread Sam Ghods
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

RE: [PHP] Re: What PHP version are you using?

2009-11-03 Thread Bob McConnell
From: Lester Caine > Israel Ekpo wrote: >> On Mon, Nov 2, 2009 at 2:15 PM, John Black wrote: >> >>> 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

Re: [PHP] =??Q?Esco=AE?= Frontier Acela High Performance Fume Hoods

2009-11-03 Thread Hanjie Xu
What's this? 2009/11/4 Esco Biotech Pvt. Ltd. > 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 H

Re: [PHP] � Frontier Acela High Performan ce Fume Hoods

2009-11-03 Thread Brian Hazelton
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

2009-11-03 Thread pk
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 error