[PHP] Setting allow_url_fopen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, php 5.2.2 I have need of a remote procedure call the requires "allow_url_fopen" to be enabled. The remote call works fine on my test system which does have allow_url_fopen enabled. So I thought, "This is a job for ini_set()." It did not work. :-( $oldval = ini_set("allow_url_fopen", 1); The remote call is made after the above statement. Clearly there is more to it than I expected. What is the correct way to allow URL fopen on the fly? - -- James Moe moe dot james at sohnen-moe dot com 520.743.3936 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/Ag00ACgkQzTcr8Prq0ZNpqACgsPg1UcmiXcxxWYhvl0XaUi7N KDMAn29qcLCYdVDGWWYGTqZhToRtJRfA =gnCT -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Setting allow_url_fopen
James Moe wrote: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >Hello, > php 5.2.2 > > I have need of a remote procedure call the requires >"allow_url_fopen" to be enabled. The remote call works fine on my test >system which does have allow_url_fopen enabled. > So I thought, "This is a job for ini_set()." It did not work. :-( > $oldval = ini_set("allow_url_fopen", 1); > The remote call is made after the above statement. Clearly there is >more to it than I expected. > What is the correct way to allow URL fopen on the fly? > >- -- >James Moe >moe dot james at sohnen-moe dot com >520.743.3936 >-BEGIN PGP SIGNATURE- >Version: GnuPG v2.0.18 (GNU/Linux) >Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > >iEYEARECAAYFAk/Ag00ACgkQzTcr8Prq0ZNpqACgsPg1UcmiXcxxWYhvl0XaUi7N >KDMAn29qcLCYdVDGWWYGTqZhToRtJRfA >=gnCT >-END PGP SIGNATURE- > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php You won't be able to set it with ini_set(), its a PHP_INI_SYSTEM setting, which can only be set from php.ini or httpd.conf. I did read a not that it had changed on recent versions to allow .htaccess setting this, but I forget exactly which version you'll need. Thanks, Ash http://ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] What is The best way/tool for debuging PHP?
Hello, I'm new to this list, and this is the first time ever I send a message to you. I'm learning PHP since a couple of months, and I really wanna be a good PHP programer, and I know that I should work hard for that. Now, I just wanted to know what is the best way or tool for debuging PHP. I have googled for this many many times, and found a lot of these stuff, but I didn't figure out which one is really the best. in fact, I don't care whether it's an easy way or hard way, all what I want is to know what is the best and preferred way or tool. Wish you all the best!
Re: [PHP] What is The best way/tool for debuging PHP?
Thanks for your reply. Dev-PHP is an IDE, and I don't need such tool because I'm using Eclipse, and I'm very comfortable with. what I really want to know is: what is the best "pure" debugging tool which its function is to debug PHP scripts and applications only. Thanks in advance! On Sat, May 26, 2012 at 6:03 PM, saeed ahmed wrote: > Dev-php > from > http://devphp.sourceforge.net/ > > 2012/5/26, LEOPARD Corporation : > > Hello, > > > > I'm new to this list, and this is the first time ever I send a message to > > you. > > > > I'm learning PHP since a couple of months, and I really wanna be a good > PHP > > programer, and I know that I should work hard for that. > > > > Now, I just wanted to know what is the best way or tool for debuging PHP. > > > > I have googled for this many many times, and found a lot of these stuff, > > but I didn't figure out which one is really the best. > > > > in fact, I don't care whether it's an easy way or hard way, all what I > want > > is to know what is the best and preferred way or tool. > > > > Wish you all the best! > > >
Re: [PHP] What is The best way/tool for debuging PHP?
There is nothing you can call best. But whether some tools, technology will perform better depends completely on the context. I know some ways to debug PHP codes. 1. Netbeans IDE. The debugging facility here is excellent. You can debug even a single file without creating a project. It uses xdebug debugging engine. 2. Zend Studio/Eclispe PDT. Recent Zend studios are based on Eclispe PDT. They supports both xdebug and zend debugger. The problem I find with these IDEs that you can not debug a single file without creating a project. May be there is a way but I dont know. Its always better to download those all-in-one package IDEs to start development faster. These packages has zero setup time. So no time wasting. -- Shiplu.Mokadd.im ImgSign.com | A dynamic signature machine Innovation distinguishes between follower and leader
RE: [PHP] What is The best way/tool for debuging PHP?
-Original Message- From: LEOPARD Corporation [mailto:leopardonline@gmail.com] Sent: Saturday, May 26, 2012 12:02 PM To: php-general@lists.php.net Subject: Re: [PHP] What is The best way/tool for debuging PHP? Thanks for your reply. Dev-PHP is an IDE, and I don't need such tool because I'm using Eclipse, and I'm very comfortable with. what I really want to know is: what is the best "pure" debugging tool which its function is to debug PHP scripts and applications only. Thanks in advance! On Sat, May 26, 2012 at 6:03 PM, saeed ahmed wrote: > Dev-php > from > http://devphp.sourceforge.net/ > > 2012/5/26, LEOPARD Corporation : > > Hello, > > > > I'm new to this list, and this is the first time ever I send a > > message to you. > > > > I'm learning PHP since a couple of months, and I really wanna be a > > good > PHP > > programer, and I know that I should work hard for that. > > > > Now, I just wanted to know what is the best way or tool for debuging PHP. > > > > I have googled for this many many times, and found a lot of these > > stuff, but I didn't figure out which one is really the best. > > > > in fact, I don't care whether it's an easy way or hard way, all what > > I > want > > is to know what is the best and preferred way or tool. > > > > Wish you all the best! > > > Yes many IDE's are used when debugging php because they can simulate the environment needed for php. Not to promote them but VSPHP is an amazing product, as a standalone or integrated into Visual Studio 2010. I have enjoyed using this product for the last couple years. I am a HUGE Visual Studio advocate, when VSPHP came along I exclusively use VS and notepad to develop applications in. Is this the BEST product? No clue!! BUT: I can develop and Debug in different versions of PHP. I can integrate with any database, and I will (Toot the horn about) the ability to use global variables instant insert. Saves me time, headaches and I can search an entire project for every instance of variable and no need to open each page. I like the color markup and the debug options of stepping trough a segment of code for a real time analysis. To me it is the BEST tool on the market. I am a .NET PHP developer who switched over from 15+ years of Linux/Unix systems. Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php