[PHP] PHP Fatal error: Call to undefined function ()
We have a server that gets a large number of requests each month. After a period of time I began to see this error in our error logs this weekend. PHP Fatal error: Call to undefined function () It does not reference a function, so I found it odd. It did give a line to a function with array_merge on it. Has anyone seen this in the apache error logs? We are using PHP 5.3.3. Mike
Re: [PHP] PHP Fatal error: Call to undefined function ()
On 7 Oct 2013, at 14:24, Michael Alaimo malaimo...@gmail.com wrote: We have a server that gets a large number of requests each month. After a period of time I began to see this error in our error logs this weekend. PHP Fatal error: Call to undefined function () It does not reference a function, so I found it odd. It did give a line to a function with array_merge on it. Has anyone seen this in the apache error logs? We are using PHP 5.3.3. Show us the line, and a few lines around it. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Fatal error: Call to undefined function ()
public static function getInfo($params = array()) { $results = array(); $url = 'http://google.com'; $props = array ( 'key'= Yii::app()-params['param1'], 's'= Yii::app()-params['param2'] ); if (!empty($params)) { $props = array_merge($props, $params); $url = $url . http_build_query($props, '', '/'); It may be possible that params has unsafe data in it. The previous dev did not validate the data passed in via get. The code populating params looks like: $params = array ( 'd' = $_GET['d'], ); $job = Job::getInfo($params); On Mon, Oct 7, 2013 at 9:29 AM, Stuart Dallas stu...@3ft9.com wrote: On 7 Oct 2013, at 14:24, Michael Alaimo malaimo...@gmail.com wrote: We have a server that gets a large number of requests each month. After a period of time I began to see this error in our error logs this weekend. PHP Fatal error: Call to undefined function () It does not reference a function, so I found it odd. It did give a line to a function with array_merge on it. Has anyone seen this in the apache error logs? We are using PHP 5.3.3. Show us the line, and a few lines around it. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/
Re: [PHP] PHP Fatal error: Call to undefined function ()
On 7 Oct 2013, at 14:34, Michael Alaimo malaimo...@gmail.com wrote: On Mon, Oct 7, 2013 at 9:29 AM, Stuart Dallas stu...@3ft9.com wrote: On 7 Oct 2013, at 14:24, Michael Alaimo malaimo...@gmail.com wrote: We have a server that gets a large number of requests each month. After a period of time I began to see this error in our error logs this weekend. PHP Fatal error: Call to undefined function () It does not reference a function, so I found it odd. It did give a line to a function with array_merge on it. Has anyone seen this in the apache error logs? We are using PHP 5.3.3. Show us the line, and a few lines around it. public static function getInfo($params = array()) { $results = array(); $url = 'http://google.com'; $props = array ( 'key'= Yii::app()-params['param1'], 's'= Yii::app()-params['param2'] ); if (!empty($params)) { $props = array_merge($props, $params); $url = $url . http_build_query($props, '', '/'); It may be possible that params has unsafe data in it. The previous dev did not validate the data passed in via get. The code populating params looks like: $params = array ( 'd' = $_GET['d'], ); $job = Job::getInfo($params); My best guess is that either $props or $params contain a function reference or similar construct. Examine their contents with var_dump. As a check you could expand out the effect of array_merge and see if you still get the same with a PHP implementation. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and curl
Unfortunately this isn't anything to do with PHP. I don't have any info on the app, what it's supposed to return or what the parameter passed should be. The PHP soap call is working, but the app isn't returning what you want or expect I guess. On Thu, Sep 26, 2013 at 8:36 AM, Alf Stockton a...@stockton.co.za wrote: Shawn, that was silly of me. I have now removed the echo but I still do not get the expected result from the server. var_dump of $result returns:- object(stdClass)#2 (1) { [GetSequenceNoResult]= object(stdClass)#3 (6) { [iServerNo]= int(0) [iClientNo]= int(0) [bNoLimitDownload]= bool(false) [dtStartDate]= string(19) 0001-01-01T00:00:00 [dtEndDate]= string(19) 0001-01-01T00:00:00 [dtServerTime]= string(19) 0001-01-01T00:00:00 } } whereas the expected result is to have each of those fields containing data. My code now looks like ?php $strTerminalname = CIS; $version = 1.2; $client = new SoapClient( http://192.168.0.10/CISWebService/Mediamanager.asmx?WSDL;http://192.168.0.10/CISWebService/Mediamanager.asmx?WSDL ); $result = $client-GetSequenceNo($strTerminalname); print_r($result); var_dump($result); ? On 25/09/13 17:23, Shawn McKenzie wrote: $result = $client-GetSequenceNo( CIS ); shouldn't be throwing that error. Maybe you are trying to do something with $result afterwards? Try var_dump($result); On Wed, Sep 25, 2013 at 10:12 AM, Alf Stockton a...@stockton.co.za wrote: On 25/09/13 16:52, Shawn McKenzie wrote: $client-GetSequenceNo( $parameters ); That unfortunately returns alf@alf-ThinkPad-T500:~/Development/PHP/DevIt$ php php-soap-web-service.php test.txt PHP Catchable fatal error: Object of class stdClass could not be converted to string in /home/alf/Development/PHP/DevIt/php-soap-web-service.php on line 7 No matter if I use $result = $client-GetSequenceNo( CIS ); or $result = $client-GetSequenceNo($strTerminalname); -- Regards, Alf Stockton www.stockton.co.za -- -- Thanks! -Shawn -- -- Regards, Alf Stockton www.stockton.co.za -- Thanks! -Shawn
[PHP] php fopen https error
With RHEL/CentOS 5 php I get an SSL Error RHEL/CentOS 5 php is at 5.1.6 with security fixes backported. ?php $handle = fopen(https://maps.google.com;, r); $contents = stream_get_contents($handle); fclose($handle); ? will result in something like Warning: stream_get_contents(): SSL: fatal protocol error in bla.php on line 3 Some https pages do not raise this error, e.g. https://www.redhat.com is fine What is wrong? How to debug? How to resolve? How to mitigate? Thanks -- Markus Falb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP and curl
In an attempt to interface with a webservice on a Windows 7 server I have started writing the following:- [code] ?php $strTerminalname = CIS; $version = 1.2; $client = new SoapClient(http://192.168.0.10/CISWebService/Mediamanager.asmx?WSDL;); var_dump($client-__getFunctions()); $result = $client-__doRequest(GetSequenceNo,$strTerminalname,$version, $one_way = 0); ? [/code] and I execute it via php php-soap-web-service.php test.txt on my Ubuntu 13.04 laptop using php version Zend Engine v2.4.0 in return I get array(20) { [0]= string(59) GetMediaListResponse GetMediaList(GetMediaList $parameters) [1]= string(68) GetMediaListAllResponse GetMediaListAll(GetMediaListAll $parameters) [2]= string(59) GetSoundListResponse GetSoundList(GetSoundList $parameters) [3]= string(77) GetTerminalDataXMLResponse GetTerminalDataXML(GetTerminalDataXML $parameters) [4]= string(59) GetRouterXmlResponse GetRouterXml(GetRouterXml $parameters) [5]= string(80) GetTerminalSoundXMLResponse GetTerminalSoundXML(GetTerminalSoundXML $parameters) [6]= string(62) SetSequenceNoResponse SetSequenceNo(SetSequenceNo $parameters) [7]= string(50) GetConfigResponse GetConfig(GetConfig $parameters) [8]= string(62) GetSequenceNoResponse GetSequenceNo(GetSequenceNo $parameters) [9]= string(95) UpdateClientMediaLogTimeResponse UpdateClientMediaLogTime(UpdateClientMediaLogTime $parameters) [10]= string(59) GetMediaListResponse GetMediaList(GetMediaList $parameters) [11]= string(68) GetMediaListAllResponse GetMediaListAll(GetMediaListAll $parameters) [12]= string(59) GetSoundListResponse GetSoundList(GetSoundList $parameters) [13]= string(77) GetTerminalDataXMLResponse GetTerminalDataXML(GetTerminalDataXML $parameters) [14]= string(59) GetRouterXmlResponse GetRouterXml(GetRouterXml $parameters) [15]= string(80) GetTerminalSoundXMLResponse GetTerminalSoundXML(GetTerminalSoundXML $parameters) [16]= string(62) SetSequenceNoResponse SetSequenceNo(SetSequenceNo $parameters) [17]= string(50) GetConfigResponse GetConfig(GetConfig $parameters) [18]= string(62) GetSequenceNoResponse GetSequenceNo(GetSequenceNo $parameters) [19]= string(95) UpdateClientMediaLogTimeResponse UpdateClientMediaLogTime(UpdateClientMediaLogTime $parameters) } now this is all great but my question is how do I call each of these functions with parameters. The call I immediately need to make is to GetSequenceNo() which requires a parameter of CIS in my current configuration. How do I do this ? Obviously $client-__doRequest is not the way to go. -- Regards, Alf Stockton www.stockton.co.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and curl
SOAP functions can be called as methods of the SoapClient object. Maybe: $client-GetSequenceNo( $parameters ); -Shawn On Wed, Sep 25, 2013 at 9:17 AM, Alf Stockton a...@stockton.co.za wrote: In an attempt to interface with a webservice on a Windows 7 server I have started writing the following:- [code] ?php $strTerminalname = CIS; $version = 1.2; $client = new SoapClient(http://192.168.0.** 10/CISWebService/Mediamanager.**asmx?WSDLhttp://192.168.0.10/CISWebService/Mediamanager.asmx?WSDL ); var_dump($client-__**getFunctions()); $result = $client-__doRequest(**GetSequenceNo,$**strTerminalname,$version, $one_way = 0); ? [/code] and I execute it via php php-soap-web-service.php test.txt on my Ubuntu 13.04 laptop using php version Zend Engine v2.4.0 in return I get array(20) { [0]= string(59) GetMediaListResponse GetMediaList(GetMediaList $parameters) [1]= string(68) GetMediaListAllResponse GetMediaListAll(**GetMediaListAll $parameters) [2]= string(59) GetSoundListResponse GetSoundList(GetSoundList $parameters) [3]= string(77) GetTerminalDataXMLResponse GetTerminalDataXML(**GetTerminalDataXML $parameters) [4]= string(59) GetRouterXmlResponse GetRouterXml(GetRouterXml $parameters) [5]= string(80) GetTerminalSoundXMLResponse GetTerminalSoundXML(**GetTerminalSoundXML $parameters) [6]= string(62) SetSequenceNoResponse SetSequenceNo(SetSequenceNo $parameters) [7]= string(50) GetConfigResponse GetConfig(GetConfig $parameters) [8]= string(62) GetSequenceNoResponse GetSequenceNo(GetSequenceNo $parameters) [9]= string(95) **UpdateClientMediaLogTimeRespon**se UpdateClientMediaLogTime(**UpdateClientMediaLogTime $parameters) [10]= string(59) GetMediaListResponse GetMediaList(GetMediaList $parameters) [11]= string(68) GetMediaListAllResponse GetMediaListAll(**GetMediaListAll $parameters) [12]= string(59) GetSoundListResponse GetSoundList(GetSoundList $parameters) [13]= string(77) GetTerminalDataXMLResponse GetTerminalDataXML(**GetTerminalDataXML $parameters) [14]= string(59) GetRouterXmlResponse GetRouterXml(GetRouterXml $parameters) [15]= string(80) GetTerminalSoundXMLResponse GetTerminalSoundXML(**GetTerminalSoundXML $parameters) [16]= string(62) SetSequenceNoResponse SetSequenceNo(SetSequenceNo $parameters) [17]= string(50) GetConfigResponse GetConfig(GetConfig $parameters) [18]= string(62) GetSequenceNoResponse GetSequenceNo(GetSequenceNo $parameters) [19]= string(95) **UpdateClientMediaLogTimeRespon**se UpdateClientMediaLogTime(**UpdateClientMediaLogTime $parameters) } now this is all great but my question is how do I call each of these functions with parameters. The call I immediately need to make is to GetSequenceNo() which requires a parameter of CIS in my current configuration. How do I do this ? Obviously $client-__doRequest is not the way to go. -- Regards, Alf Stockton www.stockton.co.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php fopen https error
I believe this was a bug, is only a warning that may be suppressed and may have been fixed in 5.2.0. Are you aware that PHP is at 5.5.4 and that 5.1.6 is over 7 years old? -Shawn On Wed, Sep 25, 2013 at 9:09 AM, Markus Falb markus.f...@fasel.at wrote: With RHEL/CentOS 5 php I get an SSL Error RHEL/CentOS 5 php is at 5.1.6 with security fixes backported. ?php $handle = fopen(https://maps.google.com;, r); $contents = stream_get_contents($handle); fclose($handle); ? will result in something like Warning: stream_get_contents(): SSL: fatal protocol error in bla.php on line 3 Some https pages do not raise this error, e.g. https://www.redhat.com is fine What is wrong? How to debug? How to resolve? How to mitigate? Thanks -- Markus Falb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php fopen https error
Just as I thought: 5.2.0 Fixed bug #39039 SSL: fatal protocol error when fetching HTTPS from servers running Google web server). (Ilia) On Wed, Sep 25, 2013 at 10:03 AM, Shawn McKenzie shawn.mcken...@gmail.comwrote: I believe this was a bug, is only a warning that may be suppressed and may have been fixed in 5.2.0. Are you aware that PHP is at 5.5.4 and that 5.1.6 is over 7 years old? -Shawn On Wed, Sep 25, 2013 at 9:09 AM, Markus Falb markus.f...@fasel.at wrote: With RHEL/CentOS 5 php I get an SSL Error RHEL/CentOS 5 php is at 5.1.6 with security fixes backported. ?php $handle = fopen(https://maps.google.com;, r); $contents = stream_get_contents($handle); fclose($handle); ? will result in something like Warning: stream_get_contents(): SSL: fatal protocol error in bla.php on line 3 Some https pages do not raise this error, e.g. https://www.redhat.com is fine What is wrong? How to debug? How to resolve? How to mitigate? Thanks -- Markus Falb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and curl
Keep on list. $result = $client-GetSequenceNo( CIS ); shouldn't be throwing that error. Maybe you are trying to do something with $result afterwards? Try var_dump($result); On Wed, Sep 25, 2013 at 10:12 AM, Alf Stockton a...@stockton.co.za wrote: On 25/09/13 16:52, Shawn McKenzie wrote: $client-GetSequenceNo( $parameters ); That unfortunately returns alf@alf-ThinkPad-T500:~/Development/PHP/DevIt$ php php-soap-web-service.php test.txt PHP Catchable fatal error: Object of class stdClass could not be converted to string in /home/alf/Development/PHP/DevIt/php-soap-web-service.php on line 7 No matter if I use $result = $client-GetSequenceNo( CIS ); or $result = $client-GetSequenceNo($strTerminalname); -- Regards, Alf Stockton www.stockton.co.za -- -- Thanks! -Shawn --
Re: [PHP] php fopen https error
On 25.9.2013 17:12, Shawn McKenzie wrote: Just as I thought: 5.2.0 Fixed bug #39039 SSL: fatal protocol error when fetching HTTPS from servers running Google web server). (Ilia) Thanks, but ... I am not sure how what I am supposed to do with this information. #39039 says it is a bug and it was fixed. How do I proceed to understand this bug? Where can I find the appropiate patch? Where is this bug discussed? I am sorry if I strain it (too much?) but the link to this bug does not give a solution to the problem and it does not help to understand the problem. I understand that somewhere in cvs there is the solution, but I can not see an obvious way to get it from the information in #39039 -- Markus Falb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php fopen https error
On 25.9.2013 17:03, Shawn McKenzie wrote: I believe this was a bug, is only a warning that may be suppressed and may have been fixed in 5.2.0. Are you aware that PHP is at 5.5.4 and that 5.1.6 is over 7 years old? Please understand that some Distributions do the only backport security stuff thing, e.g. RedHat is supporting for 10 years nowadays. I do not complain, I just try to understand the issue. Thanks -- Markus Falb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php fopen https error
I thought I covered that. The bug was fixed 7 years ago. Upgrade PHP, I doubt there is a patch. I understand that not all coders or distributions will have the latest version of PHP, but come on, how many thousands of bugs have been fixed in 7 years? You're going to run into more. Alternatively you could try and suppress it. From the bug it sounded like it was only the warning that was the bug, so the code should work. I can't test because my PHP on CentOS is only 3 years old (5.3.3). $contents = @stream_get_contents($handle); On Wed, Sep 25, 2013 at 11:20 AM, Markus Falb markus.f...@fasel.at wrote: On 25.9.2013 17:12, Shawn McKenzie wrote: Just as I thought: 5.2.0 Fixed bug #39039 SSL: fatal protocol error when fetching HTTPS from servers running Google web server). (Ilia) Thanks, but ... I am not sure how what I am supposed to do with this information. #39039 says it is a bug and it was fixed. How do I proceed to understand this bug? Where can I find the appropiate patch? Where is this bug discussed? I am sorry if I strain it (too much?) but the link to this bug does not give a solution to the problem and it does not help to understand the problem. I understand that somewhere in cvs there is the solution, but I can not see an obvious way to get it from the information in #39039 -- Markus Falb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.5.4 has been released
Hi! The PHP development team announces the immediate availability of PHP 5.5.4. This release fixes several bugs against PHP 5.5.3. All PHP users are encouraged to upgrade to this new version. For source downloads of PHP 5.5.4 please visit our downloads page: http://www.php.net/downloads.php Windows binaries can be found on: http://windows.php.net/download/ The list of changes is recorded in the ChangeLog at: http://www.php.net/ChangeLog-5.php#5.5.4 We would like to thank the contributors and the PHP community for making this release available. Regards, Julien Pauli David Soria Parra
[PHP] PHP 5.4.20 released!
Hello! The PHP development team announces the immediate availability of PHP 5.4.20. About 30 bugs were fixed. All users of PHP 5.4 are encouraged to upgrade to this release. For source downloads of PHP 5.4.20 please visit our downloads page: http://www.php.net/downloads.php Windows binaries can be found on windows.php.net/download/ The list of changes are recorded in the ChangeLog: http://www.php.net/ChangeLog-5.php#5.4.20 Stanislav Malyshev PHP 5.4 Release Master -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Dependency Injector
Hey Juan, before sharing your work, you should spend some time on class and method documentation and putting stuff into the readme ;) This can be very helpful for others. Regards, Marco Juan Sebastian Scatularo sebastianscatul...@gmail.com hat am 5. September 2013 um 22:30 geschrieben: Sorry guys if disturbed. 2013/9/5 Bastien Koert phps...@gmail.com Jee, that should have been a friday comment...how does your dic standout On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea sorin.bade...@gmail.comwrote: There are few tutorials about home made dic. How does your dic stand out from the crowd ? Regards. On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo sebastianscatul...@gmail.com wrote: Hello people, I want to share with you a simple and small Dependency Injector made for me. https://github.com/abloos/Sofia Regards -- Facebook: www.facebook.com/JuanSebastianScatularo Twitter: www.twitter.com/js_scatularo Web: www.sebastianscatularo.com.ar -- Sorin Badea - Software Engineer -- Bastien Cat, the other other white meat -- Facebook: www.facebook.com/JuanSebastianScatularo Twitter: www.twitter.com/js_scatularo Web: www.sebastianscatularo.com.ar -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218 Seevetal http://www.behnke.biz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP CLI setting cooked terminal mode
Hi, I am running a PHP script at the command line and piping the output through less: ./myScript | less Since less is an interactive program it puts the terminal into 'raw' mode so that it can read characters one at a time. However, when I do the above I find that the commands that I type to less are echoed back to me and not acted on until I type RETURN. This is not as it should be. The sript is not doing anything really clever, just looking at a few files and printing out directory contents, time stamps, ... If I run the script under strace I see: ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0 I can get it to not do this by connect stdout to /dev/null: ./myScript /dev/null | less another way of getting it to work is (and this shows that it really is PHP that is messing the tty modes): ./myScript /dev/null | (sleep 10;less) However: PHP should not set the terminal to cooked mode in the first place Is there any way in which I can get PHP to not do this ? TIA I am running PHP 5.3.3 on CentOS 6. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include std_disclaimer.h -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP CLI setting cooked terminal mode
On Wed, Sep 11, 2013 at 05:45:45PM +0100, Stuart Dallas wrote: On 11 Sep 2013, at 17:37, Alain Williams a...@phcomp.co.uk wrote: Make sure output buffering is off by putting this at the top of your script: while(ob_end_clean()); Sorry, that does not fix the problem - but thanks for trying. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include std_disclaimer.h -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP CLI setting cooked terminal mode
On 11 Sep 2013, at 17:37, Alain Williams a...@phcomp.co.uk wrote: Hi, I am running a PHP script at the command line and piping the output through less: ./myScript | less Since less is an interactive program it puts the terminal into 'raw' mode so that it can read characters one at a time. However, when I do the above I find that the commands that I type to less are echoed back to me and not acted on until I type RETURN. This is not as it should be. The sript is not doing anything really clever, just looking at a few files and printing out directory contents, time stamps, ... If I run the script under strace I see: ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0 I can get it to not do this by connect stdout to /dev/null: ./myScript /dev/null | less another way of getting it to work is (and this shows that it really is PHP that is messing the tty modes): ./myScript /dev/null | (sleep 10;less) However: PHP should not set the terminal to cooked mode in the first place Is there any way in which I can get PHP to not do this ? TIA I am running PHP 5.3.3 on CentOS 6. Make sure output buffering is off by putting this at the top of your script: while(ob_end_clean()); -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Dependency Injector
Jee, that should have been a friday comment...how does your dic standout On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea sorin.bade...@gmail.com wrote: There are few tutorials about home made dic. How does your dic stand out from the crowd ? Regards. On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo sebastianscatul...@gmail.com wrote: Hello people, I want to share with you a simple and small Dependency Injector made for me. https://github.com/abloos/Sofia Regards -- Facebook: www.facebook.com/JuanSebastianScatularo Twitter: www.twitter.com/js_scatularo Web: www.sebastianscatularo.com.ar -- Sorin Badea - Software Engineer -- Bastien Cat, the other other white meat
Re: [PHP] PHP Dependency Injector
Sorry guys if disturbed. 2013/9/5 Bastien Koert phps...@gmail.com Jee, that should have been a friday comment...how does your dic standout On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea sorin.bade...@gmail.comwrote: There are few tutorials about home made dic. How does your dic stand out from the crowd ? Regards. On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo sebastianscatul...@gmail.com wrote: Hello people, I want to share with you a simple and small Dependency Injector made for me. https://github.com/abloos/Sofia Regards -- Facebook: www.facebook.com/JuanSebastianScatularo Twitter: www.twitter.com/js_scatularo Web: www.sebastianscatularo.com.ar -- Sorin Badea - Software Engineer -- Bastien Cat, the other other white meat -- Facebook: www.facebook.com/JuanSebastianScatularo Twitter: www.twitter.com/js_scatularo Web: www.sebastianscatularo.com.ar
Re: [PHP] PHP Dependency Injector
Thanks Sorin, I will do that and I will have more care the next time. You have no reason to apologize. You shared a project you made by yourself, way to go. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Dependency Injector
On Thu, Sep 5, 2013 at 1:40 PM, Juan Sebastian Scatularo sebastianscatul...@gmail.com wrote: Thanks Sorin, I will do that and I will have more care the next time. You can also check out Pimple [1] by the creator of the Symfony Framework. Peace, David [1] http://pimple.sensiolabs.org/
Re: [PHP] PHP Dependency Injector
There are few tutorials about home made dic. How does your dic stand out from the crowd ? Regards. On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo sebastianscatul...@gmail.com wrote: Hello people, I want to share with you a simple and small Dependency Injector made for me. https://github.com/abloos/Sofia Regards -- Facebook: www.facebook.com/JuanSebastianScatularo Twitter: www.twitter.com/js_scatularo Web: www.sebastianscatularo.com.ar -- Sorin Badea - Software Engineer
Re: [PHP] PHP Dependency Injector
Juan, the problem with this list is that that there are too damn many dumb questions. You did something nice but it doesn't stand out. You can check Symfony2 DiC. You can use it as a stand alone component. On Thu, Sep 5, 2013 at 11:30 PM, Juan Sebastian Scatularo sebastianscatul...@gmail.com wrote: Sorry guys if disturbed. 2013/9/5 Bastien Koert phps...@gmail.com Jee, that should have been a friday comment...how does your dic standout On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea sorin.bade...@gmail.comwrote: There are few tutorials about home made dic. How does your dic stand out from the crowd ? Regards. On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo sebastianscatul...@gmail.com wrote: Hello people, I want to share with you a simple and small Dependency Injector made for me. https://github.com/abloos/Sofia Regards -- Facebook: www.facebook.com/JuanSebastianScatularo Twitter: www.twitter.com/js_scatularo Web: www.sebastianscatularo.com.ar -- Sorin Badea - Software Engineer -- Bastien Cat, the other other white meat -- Facebook: www.facebook.com/JuanSebastianScatularo Twitter: www.twitter.com/js_scatularo Web: www.sebastianscatularo.com.ar -- Sorin Badea - Software Engineer
Re: [PHP] PHP Dependency Injector
On Thu, Sep 05, 2013 at 04:19:18PM -0400, Bastien Koert wrote: Jee, that should have been a friday comment...how does your dic standout Don't send emails like that to the list when I've got a mouthful of water! It all came out my nose! ;-} Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Dependency Injector
Thanks Sorin, I will do that and I will have more care the next time. Regards 2013/9/5 Sorin Badea sorin.bade...@gmail.com Juan, the problem with this list is that that there are too damn many dumb questions. You did something nice but it doesn't stand out. You can check Symfony2 DiC. You can use it as a stand alone component. On Thu, Sep 5, 2013 at 11:30 PM, Juan Sebastian Scatularo sebastianscatul...@gmail.com wrote: Sorry guys if disturbed. 2013/9/5 Bastien Koert phps...@gmail.com Jee, that should have been a friday comment...how does your dic standout On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea sorin.bade...@gmail.comwrote: There are few tutorials about home made dic. How does your dic stand out from the crowd ? Regards. On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo sebastianscatul...@gmail.com wrote: Hello people, I want to share with you a simple and small Dependency Injector made for me. https://github.com/abloos/Sofia Regards -- Facebook: www.facebook.com/JuanSebastianScatularo Twitter: www.twitter.com/js_scatularo Web: www.sebastianscatularo.com.ar -- Sorin Badea - Software Engineer -- Bastien Cat, the other other white meat -- Facebook: www.facebook.com/JuanSebastianScatularo Twitter: www.twitter.com/js_scatularo Web: www.sebastianscatularo.com.ar -- Sorin Badea - Software Engineer -- Facebook: www.facebook.com/JuanSebastianScatularo Twitter: www.twitter.com/js_scatularo Web: www.sebastianscatularo.com.ar
[PHP] PHP Dependency Injector
Hello people, I want to share with you a simple and small Dependency Injector made for me. https://github.com/abloos/Sofia Regards -- Facebook: www.facebook.com/JuanSebastianScatularo Twitter: www.twitter.com/js_scatularo Web: www.sebastianscatularo.com.ar
[PHP] PHP-5.5.2 +opcache segfaults with Piwik
I've tried php-5.5.2 and 5.5.3 but both segfault with piwik unless the opcache is disabled. Someone filed a piwik bug but was told it's a php bug: http://dev.piwik.org/trac/ticket/4093 - Grant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.4.19 and PHP 5.5.3 Released!
Hello! The PHP development team announces the immediate availability of PHP 5.4.19 and PHP 5.5.3. These releases fix a bug in the patch for CVE-2013-4248 in OpenSSL module and compile failure with ZTS enabled in PHP 5.4, which were introduced in previously released 5.4.18 and 5.5.2. All PHP users are encouraged to upgrade to either PHP 5.5.3 or PHP 5.4.19. For source downloads of PHP 5.4.19 and PHP 5.5.3 please visit our downloads page: http://www.php.net/downloads.php Windows binaries can be found on: http://windows.php.net/download/ The list of changes is recorded in the ChangeLog at: http://www.php.net/ChangeLog-5.php Regards, Stanislav Malyshev PHP 5.4 Release Manager -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP vs JAVA
Hi guys: A teacher at my college made the statement that JAVA for Web Development is more popular than PHP. Where can I go to prove this right or wrong -- and/or -- what references do any of you have to support your answer? (sounds like a teacher, huh?) Here are my two references: http://w3techs.com/technologies/details/pl-php/all/all http://w3techs.com/technologies/history_overview/programming_language/ms/y But I do not know how accurate they are. What say you? Cheers, tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
Tedd Sperling t...@sperling.com wrote: Hi guys: A teacher at my college made the statement that JAVA for Web Development is more popular than PHP. Where can I go to prove this right or wrong -- and/or -- what references do any of you have to support your answer? (sounds like a teacher, huh?) Here are my two references: http://w3techs.com/technologies/details/pl-php/all/all http://w3techs.com/technologies/history_overview/programming_language/ms/y But I do not know how accurate they are. What say you? Cheers, tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Is he possibly getting confused with Javascript? Thanks, Ash -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
On 13-08-20 10:00 AM, Tedd Sperling wrote: Hi guys: A teacher at my college made the statement that JAVA for Web Development is more popular than PHP. Where can I go to prove this right or wrong -- and/or -- what references do any of you have to support your answer? (sounds like a teacher, huh?) Here are my two references: http://w3techs.com/technologies/details/pl-php/all/all http://w3techs.com/technologies/history_overview/programming_language/ms/y But I do not know how accurate they are. I think you can use w3techs.com as a very reliable source. But your teacher may have been talking about javascript which is not the same thing as java despite the similarity in their names. Javascript is part of the web page, and executes in the users browser. It is very common and may rival PHP in frequency of use. -- Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
On Aug 20, 2013, at 10:04 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Is he possibly getting confused with Javascript? Thanks, Ash No, this guy is smarter than that -- he's pretty sharp -- so I listen to what he has to say. Here's an interesting link: http://www.sitepoint.com/best-programming-language-of-2013/ But the link does not divide languages between Web and Other -- other than Android Java, which I do not believe is also included in the above Java number. I think there is more going on here than what I know. For example, my college has numerous (over 3) JAVA classes filled to the max, whereas my PHP class was canceled due to lack of students. Granted the college could have advertised my PHP class more, but still there is an overwhelming demand for Java Programmers. My questions is Why? Cheers, tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
On 13-08-20 10:19 AM, Tedd Sperling wrote: On Aug 20, 2013, at 10:04 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Is he possibly getting confused with Javascript? Thanks, Ash No, this guy is smarter than that -- he's pretty sharp -- so I listen to what he has to say. Here's an interesting link: http://www.sitepoint.com/best-programming-language-of-2013/ But the link does not divide languages between Web and Other -- other than Android Java, which I do not believe is also included in the above Java number. I think there is more going on here than what I know. For example, my college has numerous (over 3) JAVA classes filled to the max, whereas my PHP class was canceled due to lack of students. Granted the college could have advertised my PHP class more, but still there is an overwhelming demand for Java Programmers. My questions is Why? I think that the overwhelming majority of Android apps are written in JAVA. That explains its popularity. -- Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
2013/8/20 Tedd Sperling t...@sperling.com On Aug 20, 2013, at 10:04 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Is he possibly getting confused with Javascript? Thanks, Ash No, this guy is smarter than that -- he's pretty sharp -- so I listen to what he has to say. Here's an interesting link: http://www.sitepoint.com/best-programming-language-of-2013/ But the link does not divide languages between Web and Other -- other than Android Java, which I do not believe is also included in the above Java number. I think there is more going on here than what I know. For example, my college has numerous (over 3) JAVA classes filled to the max, whereas my PHP class was canceled due to lack of students. Granted the college could have advertised my PHP class more, but still there is an overwhelming demand for Java Programmers. My questions is Why? Just tell your teacher: Java isn't more popular than PHP as _web_-language ;) I think too, that he actually meant javascript, which is indeed a very popular client-side language. But javascript and PHP has different use-cases, thus saying one is more popular doesn't tell you anything about whether they are in competition against each other, or not (hint: they arent : :D). Cheers, tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- github.com/KingCrunch
Re: [PHP] PHP vs JAVA
The article very clearly says.. No language can be considered as good just because there are more jobs for the same. Yes, but I am not making a value (good/bad) judgment -- Instead I am asking for references supporting which language (Java or PHP) as being the most popular for Web Development? Do you have any? Cheers, tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
I think the big takeaway there is that JAVA is one of the primary language for larger companies and applications. Start ups tend to use smaller easier to use tools like php / javascript / python / ruby. I saw one figure recently that put php at 75% of websites out there (i think that came out when google decided to support php for the app engine) On Tue, Aug 20, 2013 at 10:19 AM, Tedd Sperling t...@sperling.com wrote: On Aug 20, 2013, at 10:04 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Is he possibly getting confused with Javascript? Thanks, Ash No, this guy is smarter than that -- he's pretty sharp -- so I listen to what he has to say. Here's an interesting link: http://www.sitepoint.com/best-programming-language-of-2013/ But the link does not divide languages between Web and Other -- other than Android Java, which I do not believe is also included in the above Java number. I think there is more going on here than what I know. For example, my college has numerous (over 3) JAVA classes filled to the max, whereas my PHP class was canceled due to lack of students. Granted the college could have advertised my PHP class more, but still there is an overwhelming demand for Java Programmers. My questions is Why? Cheers, tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Bastien Cat, the other other white meat
Re: [PHP] PHP vs JAVA
On Aug 20, 2013, at 10:29 AM, Sebastian Krebs krebs@gmail.com wrote: Just tell your teacher: Java isn't more popular than PHP as _web_-language ;) I think too, that he actually meant javascript, which is indeed a very popular client-side language. But javascript and PHP has different use-cases, thus saying one is more popular doesn't tell you anything about whether they are in competition against each other, or not (hint: they arent : :D). Two things: 1. He's not my teacher -- he is a fellow teacher AND a smart one! He knows the difference between Java and JavaScript. 2. In life, you will find that popularity (often over which is best) is the main reason why things prosper. Cheers, tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
On Aug 20, 2013, at 10:36 AM, Liam l...@3sharpltd.com wrote: You do realise you are on a PHP based user subscription, so the vast majority will go with PHP, so you will get a one sided argument. Regards, Liam I realize that many, maybe the majority, will be bias. HOWEVER -- there are professionals on this list that do know and it is to them I am asking. Remember, I am also asking for supporting documentation of their view. The people who respond with just their opinion are doing just that -- there is no support. My nature is to seek the truth regardless of my bias. Cheers, tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
Here are two references from the Wikipedia article on Java in case you haven't looked at them already. http://www.langpop.com/ http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html On 20 August 2013 10:43, Tedd Sperling t...@sperling.com wrote: On Aug 20, 2013, at 10:36 AM, Liam l...@3sharpltd.com wrote: You do realise you are on a PHP based user subscription, so the vast majority will go with PHP, so you will get a one sided argument. Regards, Liam I realize that many, maybe the majority, will be bias. HOWEVER -- there are professionals on this list that do know and it is to them I am asking. Remember, I am also asking for supporting documentation of their view. The people who respond with just their opinion are doing just that -- there is no support. My nature is to seek the truth regardless of my bias. Cheers, tedd ___ tedd sperling t...@sperling.com -- 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] PHP vs JAVA
On Tue, Aug 20, 2013 at 10:43 AM, Tedd Sperling t...@sperling.com wrote: On Aug 20, 2013, at 10:36 AM, Liam l...@3sharpltd.com wrote: You do realise you are on a PHP based user subscription, so the vast majority will go with PHP, so you will get a one sided argument. Regards, Liam I realize that many, maybe the majority, will be bias. HOWEVER -- there are professionals on this list that do know and it is to them I am asking. Remember, I am also asking for supporting documentation of their view. The people who respond with just their opinion are doing just that -- there is no support. My nature is to seek the truth regardless of my bias. Cheers, tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
On Tue, Aug 20, 2013 at 10:56 AM, David OBrien dgobr...@gmail.com wrote: On Tue, Aug 20, 2013 at 10:43 AM, Tedd Sperling t...@sperling.com wrote: On Aug 20, 2013, at 10:36 AM, Liam l...@3sharpltd.com wrote: You do realise you are on a PHP based user subscription, so the vast majority will go with PHP, so you will get a one sided argument. Regards, Liam I realize that many, maybe the majority, will be bias. HOWEVER -- there are professionals on this list that do know and it is to them I am asking. Remember, I am also asking for supporting documentation of their view. The people who respond with just their opinion are doing just that -- there is no support. My nature is to seek the truth regardless of my bias. Cheers, tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php If your looking for popularity... http://w3techs.com/technologies/overview/programming_language/all
Re: [PHP] PHP vs JAVA
2013/8/20 Tedd Sperling t...@sperling.com On Aug 20, 2013, at 10:29 AM, Sebastian Krebs krebs@gmail.com wrote: Just tell your teacher: Java isn't more popular than PHP as _web_-language ;) I think too, that he actually meant javascript, which is indeed a very popular client-side language. But javascript and PHP has different use-cases, thus saying one is more popular doesn't tell you anything about whether they are in competition against each other, or not (hint: they arent : :D). Two things: 1. He's not my teacher -- he is a fellow teacher AND a smart one! He knows the difference between Java and JavaScript. OKOK, sorry -_- But @topic: For example see http://w3techs.com/technologies/overview/programming_language/all Really: Java is a good and mature language, but it is not a web-language. 2. In life, you will find that popularity (often over which is best) is the main reason why things prosper. I am not saying, that Java is bad, or it is not popular. It is just not that popular in the web-ecosystem :) There was one statement I remember (I don't know, where I got it from): A static language doesn't fit very well into the dynamic web. :) Cheers, tedd ___ tedd sperling t...@sperling.com -- github.com/KingCrunch
Re: [PHP] PHP vs JAVA
Sebastian Krebs wrote: 1. He's not my teacher -- he is a fellow teacher AND a smart one! He knows the difference between Java and JavaScript. OKOK, sorry -_- But @topic: For example see http://w3techs.com/technologies/overview/programming_language/all Really: Java is a good and mature language, but it is not a web-language. 2. In life, you will find that popularity (often over which is best) is the main reason why things prosper. I think he is simply wrong in his interpretation of the facts. The number of websites powered by PHP vastly exceeds Java and every other language http://w3techs.com/technologies/overview/programming_language/all Says it all! But you would never use PHP for a distributed application, and then http://www.langpop.com/ comes into play when the fight is between Java and C/C++ and personally I'm happier with C/C++ than Java even on Android. But even though you would not use PHP for distributed applications, it still gets a good 4th in that chart as well. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
On Tue, Aug 20, 2013 at 10:00 AM, Tedd Sperling t...@sperling.com wrote: Hi guys: A teacher at my college made the statement that JAVA for Web Development is more popular than PHP. Where can I go to prove this right or wrong -- and/or -- what references do any of you have to support your answer? (sounds like a teacher, huh?) Here are my two references: http://w3techs.com/technologies/details/pl-php/all/all http://w3techs.com/technologies/history_overview/programming_language/ms/y But I do not know how accurate they are. What say you? While I couldn't find anything comparable - from the same source and window of time - for Java trends on the web, there was an article released by Netcraft in January of this year that shows PHPs continued growth[1]. It may, at the least, provide a basis for comparison should you or your adversary be so inclined to dig deeper. ^1: http://news.netcraft.com/archives/2013/01/31/php-just-grows-grows.html -- /Daniel P. Brown Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
What a co-incidence! I was searching PHP vs Python in google and reading articles. Now a similar mail on my inbox. When any language war goes on, everyone gets biased by the language he/she loves. It applies here too. I think your college teacher loves Java. During PHPvsPython search I found this info graphic https://www.udemy.com/blog/modern-language-wars/#. Some of the statistics contain Java too. Also you can search PHP and Web Development in big job sites and compare with same search but with Java. On Tue, Aug 20, 2013 at 8:00 PM, Tedd Sperling t...@sperling.com wrote: Hi guys: A teacher at my college made the statement that JAVA for Web Development is more popular than PHP. Where can I go to prove this right or wrong -- and/or -- what references do any of you have to support your answer? (sounds like a teacher, huh?) Here are my two references: http://w3techs.com/technologies/details/pl-php/all/all http://w3techs.com/technologies/history_overview/programming_language/ms/y But I do not know how accurate they are. What say you? Cheers, tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Shiplu.Mokadd.im ImgSign.com | A dynamic signature machine Innovation distinguishes between follower and leader -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
shiplu wrote: During PHPvsPython search I found this info graphic https://www.udemy.com/blog/modern-language-wars/#. Some of the statistics contain Java too. Also you can search PHP and Web Development in big job sites and compare with same search but with Java. 'Python is arguably the most readable programming language' probably says it all? Personally I find it almost impossible to understand when coming in cold to someone elses code ... Java is not much better ... but I still have to persist with both since some key elements of a usable PHP IDE now rely on both :( -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
On Tue, Aug 20, 2013 at 05:09:37PM +0100, Lester Caine wrote: shiplu wrote: During PHPvsPython search I found this info graphic https://www.udemy.com/blog/modern-language-wars/#. Some of the statistics contain Java too. Also you can search PHP and Web Development in big job sites and compare with same search but with Java. 'Python is arguably the most readable programming language' probably says it all? Personally I find it almost impossible to understand when coming in cold to someone elses code ... Java is not much better ... but I still have to persist with both since some key elements of a usable PHP IDE now rely on both :( Python may be most readable, but it's a huge fail for two reasons: 1. There are no statement terminators. Lose your indentation for ANY reason and your program is well and truly screwed, in ways you can't imagine. 2. Python programs fail in the most ungraceful way I've ever seen in an interpreted programming language. (Don't even start in on C. It's a compiled language.) Java is an incredibly heavy language for web work. Much like Ruby but more so. I'll say it again-- one of the reasons for the popularity of PHP is its similarity to C, at least a passing skill in which is common to most programmers. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
On 20/08/13 15:00, Tedd Sperling wrote: Hi guys: A teacher at my college made the statement that JAVA for Web Development is more popular than PHP. Where can I go to prove this right or wrong -- and/or -- what references do any of you have to support your answer? (sounds like a teacher, huh?) Here are my two references: http://w3techs.com/technologies/details/pl-php/all/all http://w3techs.com/technologies/history_overview/programming_language/ms/y But I do not know how accurate they are. What say you? Cheers, tedd ___ tedd sperling t...@sperling.com tedd, Java is a meticulously-constructed language with very strict typing and a large commercial organisation which purports to support and develop it. PHP is a scruffy heap of loosely typed cruft which is easy to knock together and build big things from, but has a semi-commercial and community support structure. Guess which one the big commercial organistations (banks, industry etc.) prefer to trust? Guess which is then popular for college courses since it provides the students with a basis in something that is commercially desirable? From my personal point of view, I started with BASIC, then FORTRAN (in a scientific environment), then C/C++, then Java (which I saw as the language C++ should have been), and then moved on to PHP in a search to find a way of building web apps in the sort of timescales that small-medium enterprises are prepared to accept. Popularity is in the eye of the beholder... Cheers Pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
On 8/20/13 9:00 AM, Tedd Sperling wrote: Hi guys: A teacher at my college made the statement that JAVA for Web Development is more popular than PHP. Where can I go to prove this right or wrong -- and/or -- what references do any of you have to support your answer? (sounds like a teacher, huh?) Here are my two references: http://w3techs.com/technologies/details/pl-php/all/all http://w3techs.com/technologies/history_overview/programming_language/ms/y But I do not know how accurate they are. What say you? Cheers, tedd As others have said, he's simply wrong. :-) Goodness of either language aside, the data (W3Techs is what I usually cite) is clear: For server-side web dev, PHP is the 800 lb gorilla. For all programming combined? Java may be bigger than PHP, sure. For embedded? No question, Java PHP as PHP has almost no presence. For enterprise shops? There probably are segments of the market that are very Java-centric, even on the web, no question. It's all how you define your scope. I'm sure he could come up with some definition of market that would show Java having a bigger marketshare than PHP, within that market. The question is whether that is a valid definition of market in context. Lies, damned lies, and statistics. :-) As countering data-points: Wordpress alone is 18% of the web. Drupal is the #1 CMS used to power US government websites. Universities and Museums are very big on Drupal. (That's my day job. g) PHP's marketshare is huge, even in enterprise. --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
I'll chime in on this one. I've been job hunting recently, and I can say that while I've seen a lot of people asking for Java experience, I'm not sure I've seen a single posting asking specifically for PHP. There've been a few looking for Drupal, or Wordpress, but no You must be able to write PHP code to work here. I can also say that the more I work with Java-based programs, the more I want to see Java written into history books as a terrible idea that sadly persisted until nearly 2014. As an example: I need to provide IT support to people using a tool written in Java. It turns out that if you install Java 7, the tool doesn't work at all. If you install Java 6 with the newest updates, it works, but occasionally crashes the entire computer. No, you have to have Java 6 update 22 in order for this software to be reliable. There are other tools I've used that failed completely on minor version switches, and that just plain SHOULDN'T HAPPEN. Yes, there are going to be minor changes when a language upgrades, that's why there are upgrades. But they're usually minor, in a This didn't work the way it was supposed to, so we fixed it kind of way. If you were taking advantage of that bug, you get knocked down, but the vast majority of software will keep running. Java doesn't seem to work that way, at least from an IT worker's perspective. Andy McKenzie On Tue, Aug 20, 2013 at 10:00 AM, Tedd Sperling t...@sperling.com wrote: Hi guys: A teacher at my college made the statement that JAVA for Web Development is more popular than PHP. Where can I go to prove this right or wrong -- and/or -- what references do any of you have to support your answer? (sounds like a teacher, huh?) Here are my two references: http://w3techs.com/technologies/details/pl-php/all/all http://w3techs.com/technologies/history_overview/programming_language/ms/y But I do not know how accurate they are. What say you? Cheers, tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
2013/8/20 Lester Caine les...@lsces.co.uk Sebastian Krebs wrote: 1. He's not my teacher -- he is a fellow teacher AND a smart one! He knows the difference between Java and JavaScript. OKOK, sorry -_- But @topic: For example see http://w3techs.com/**technologies/overview/**programming_language/allhttp://w3techs.com/technologies/overview/programming_language/all Really: Java is a good and mature language, but it is not a web-language. 2. In life, you will find that popularity (often over which is best) is the main reason why things prosper. I think he is simply wrong in his interpretation of the facts. The number of websites powered by PHP vastly exceeds Java and every other language http://w3techs.com/**technologies/overview/**programming_language/allhttp://w3techs.com/technologies/overview/programming_language/all Says it all! But you would never use PHP for a distributed application, and then http://www.langpop.com/ comes into play when the fight is between Java and C/C++ and personally I'm happier with C/C++ than Java even on Android. But even though you would not use PHP for distributed applications, it still gets a good 4th in that chart as well. Exactly, but the initial explicitly states, that this is about web development :D Don't know, what I should think about langpop.com. A popularity listing, that doesn't take github (or any other repo hoster, than google code) into account? :? Its also quite outdated... -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=**contacthttp://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.**ukhttp://rainbowdigitalmedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- github.com/KingCrunch
Re: [PHP] PHP vs JAVA
2013/8/20 Andy McKenzie amckenz...@gmail.com I'll chime in on this one. I've been job hunting recently, and I can say that while I've seen a lot of people asking for Java experience, I'm not sure I've seen a single posting asking specifically for PHP. There've been a few looking for Drupal, or Wordpress, but no You must be able to write PHP code to work here. Thats interesting. I am from Berlin and here, when you say you know PHP and a little bit of one, or two frameworks, they will jump onto you :D I can also say that the more I work with Java-based programs, the more I want to see Java written into history books as a terrible idea that sadly persisted until nearly 2014. As an example: I need to provide IT support to people using a tool written in Java. It turns out that if you install Java 7, the tool doesn't work at all. If you install Java 6 with the newest updates, it works, but occasionally crashes the entire computer. No, you have to have Java 6 update 22 in order for this software to be reliable. There are other tools I've used that failed completely on minor version switches, and that just plain SHOULDN'T HAPPEN. Yes, there are going to be minor changes when a language upgrades, that's why there are upgrades. But they're usually minor, in a This didn't work the way it was supposed to, so we fixed it kind of way. If you were taking advantage of that bug, you get knocked down, but the vast majority of software will keep running. Java doesn't seem to work that way, at least from an IT worker's perspective. Andy McKenzie On Tue, Aug 20, 2013 at 10:00 AM, Tedd Sperling t...@sperling.com wrote: Hi guys: A teacher at my college made the statement that JAVA for Web Development is more popular than PHP. Where can I go to prove this right or wrong -- and/or -- what references do any of you have to support your answer? (sounds like a teacher, huh?) Here are my two references: http://w3techs.com/technologies/details/pl-php/all/all http://w3techs.com/technologies/history_overview/programming_language/ms/y But I do not know how accurate they are. What say you? Cheers, tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- github.com/KingCrunch
Re: [PHP] PHP vs JAVA
On Aug 20, 2013, at 12:24 PM, Paul M Foster pa...@quillandmouse.com wrote: On Tue, Aug 20, 2013 at 05:09:37PM +0100, Lester Caine wrote: shiplu wrote: During PHPvsPython search I found this info graphic https://www.udemy.com/blog/modern-language-wars/#. Some of the statistics contain Java too. Also you can search PHP and Web Development in big job sites and compare with same search but with Java. 'Python is arguably the most readable programming language' probably says it all? Personally I find it almost impossible to understand when coming in cold to someone elses code ... Java is not much better ... but I still have to persist with both since some key elements of a usable PHP IDE now rely on both :( Python may be most readable, but it's a huge fail for two reasons: 1. There are no statement terminators. Lose your indentation for ANY reason and your program is well and truly screwed, in ways you can't imagine. 2. Python programs fail in the most ungraceful way I've ever seen in an interpreted programming language. And no ternary operator. tedd ___ tedd sperling tedd.sperl...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
1. There are no statement terminators. Lose your indentation for ANY reason and your program is well and truly screwed, in ways you can't imagine. 2. Python programs fail in the most ungraceful way I've ever seen in an interpreted programming language. 1. Indent properly. In php, if you put an open or close brace out of place your code will break in unexpected ways as well. If it's hard to tell if something is indented properly, your code should be refactored so that it is. 2. In my experience this has a lot to do with how some people use python and not python itself. On Tue, Aug 20, 2013 at 12:12 PM, Tedd Sperling tedd.sperl...@gmail.comwrote: On Aug 20, 2013, at 12:24 PM, Paul M Foster pa...@quillandmouse.com wrote: On Tue, Aug 20, 2013 at 05:09:37PM +0100, Lester Caine wrote: shiplu wrote: During PHPvsPython search I found this info graphic https://www.udemy.com/blog/modern-language-wars/#. Some of the statistics contain Java too. Also you can search PHP and Web Development in big job sites and compare with same search but with Java. 'Python is arguably the most readable programming language' probably says it all? Personally I find it almost impossible to understand when coming in cold to someone elses code ... Java is not much better ... but I still have to persist with both since some key elements of a usable PHP IDE now rely on both :( Python may be most readable, but it's a huge fail for two reasons: 1. There are no statement terminators. Lose your indentation for ANY reason and your program is well and truly screwed, in ways you can't imagine. 2. Python programs fail in the most ungraceful way I've ever seen in an interpreted programming language. And no ternary operator. tedd ___ tedd sperling tedd.sperl...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- From the desk of Dan Munro
Re: [PHP] PHP vs JAVA
On Aug 20, 2013, at 12:24 PM, Pete Ford p...@justcroft.com wrote: tedd, Java is a meticulously-constructed language with very strict typing and a large commercial organisation which purports to support and develop it. PHP is a scruffy heap of loosely typed cruft which is easy to knock together and build big things from, but has a semi-commercial and community support structure. Thanks for the info. :-) FYI -- I am teaching both PHP and JAVA at college level and have taught both for several years as well as other Web Languages. My recent question was simply an attempt to get documentation to support which server-side Web Language is the most popular. Both PHP and Java can be used server-side. I also realize that Java is used for native Android because I also teach Mobile Application Development (MAD -- I even coined the name). So, I am up to my butt in languages (and people who think different than me) -- I'm just trying to get documentation to back up my what I think I know. Thanks, tedd ___ tedd sperling tedd.sperl...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
On Tue, Aug 20, 2013 at 3:18 PM, Dan Munro d...@danmunro.com wrote: 1. There are no statement terminators. Lose your indentation for ANY reason and your program is well and truly screwed, in ways you can't imagine. 2. Python programs fail in the most ungraceful way I've ever seen in an interpreted programming language. 1. Indent properly. In php, if you put an open or close brace out of place your code will break in unexpected ways as well. If it's hard to tell if something is indented properly, your code should be refactored so that it is. 2. In my experience this has a lot to do with how some people use python and not python itself. I can't argue on point two, since that's where all of my worst failure have come from. But as to indenting, I have had the problem of opening a file on a new OS, only to find that the default editor there has wiped out my formatting. With PHP, that's not a big deal: as long as I put my braces in the right places, everything will continue to work. With Python -- or any whitespace delimited language -- it's fatal, and I have to hope I can exit without saving anything. Andy
Re: [PHP] PHP vs JAVA
On Aug 20, 2013, at 2:19 PM, Sebastian Krebs krebs@gmail.com wrote: Thats interesting. I am from Berlin and here, when you say you know PHP and a little bit of one, or two frameworks, they will jump onto you I'll stay away from Berlin. :-) tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
2013/8/20 Andy McKenzie amckenz...@gmail.com On Tue, Aug 20, 2013 at 3:18 PM, Dan Munro d...@danmunro.com wrote: 1. There are no statement terminators. Lose your indentation for ANY reason and your program is well and truly screwed, in ways you can't imagine. 2. Python programs fail in the most ungraceful way I've ever seen in an interpreted programming language. 1. Indent properly. In php, if you put an open or close brace out of place your code will break in unexpected ways as well. If it's hard to tell if something is indented properly, your code should be refactored so that it is. 2. In my experience this has a lot to do with how some people use python and not python itself. I can't argue on point two, since that's where all of my worst failure have come from. But as to indenting, I have had the problem of opening a file on a new OS, only to find that the default editor there has wiped out my formatting. Who is with me? Thats a good point to restart the tabs-vs-spaces-discussion, isn't? *duckandrun* :D With PHP, that's not a big deal: as long as I put my braces in the right places, everything will continue to work. With Python -- or any whitespace delimited language -- it's fatal, and I have to hope I can exit without saving anything. Andy -- github.com/KingCrunch
RE: [PHP] PHP vs JAVA
My recent question was simply an attempt to get documentation to support which server-side Web Language is the most popular. Both PHP and Java can be used server-side. I also realize that Java is used for native Android because I also teach Mobile Application Development (MAD -- I even coined the name). So, I am up to my butt in languages (and people who think different than me) -- I'm just trying to get documentation to back up my what I think I know. Well, technically any language can be used server side, it is all on how you set up your server, no? I would tend to think that the biggest out there, is html/php/javascript... and next to that, would be asp, and then java. Do I have proof of this? No, can I get proof, I doubt it, and are there stats on this? To be honest, in my opinion, that would be like asking how big is the internet?. It is virtually an immeasurable object. There are so many websites out there, that you can't search them all... PHP is simple, and yet powerful to use, and is pretty much the standard for all hosting companies. Now, there is this link... http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html It shows Java as #1, and php as #5, but this is also for PROGRAMMING, does not specify web based programming vs desktop vs MAD (thanks tedd ;) ) so the numbers do not really speak out in this application. Does it really matter? PHP is very huge, widely used, and I would even go so far as to say the 'norm' for website developers, and hosting providers. But that is my $0.02, and for me, I have been with PHP for 7 years professionally, and in college I took VB.net, ASP.net, C++, JAVA and PHP. Only recently have I gotten into C# for desktop applications. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
2013/8/20 Steven Staples sstap...@mnsi.net My recent question was simply an attempt to get documentation to support which server-side Web Language is the most popular. Both PHP and Java can be used server-side. I also realize that Java is used for native Android because I also teach Mobile Application Development (MAD -- I even coined the name). So, I am up to my butt in languages (and people who think different than me) -- I'm just trying to get documentation to back up my what I think I know. Well, technically any language can be used server side, it is all on how you set up your server, no? No. But since node.js I lack an example :D But of course you need the link between the language and the network. I would tend to think that the biggest out there, is html/php/javascript... and next to that, would be asp, and then java. Do I have proof of this? No, can I get proof, I doubt it, and are there stats on this? To be honest, in my opinion, that would be like asking how big is the internet?. It is virtually an immeasurable object. There are so many websites out there, that you can't search them all... Of course you cannot search them _all_, but again the link: http://w3techs.com/technologies/overview/programming_language/all There are good hints, how the internet looks like. For example a hoster can simply look at the products he sell. Services like w3techs.com use the reports from the server themself (in most cases the headers), or the file-ending (doesn't work anymore that good, since most sites hide them ;)) and extrapolate this. Of course they are not exact, but I think they show the direction quite accurate. PHP is simple, and yet powerful to use, and is pretty much the standard for all hosting companies. Now, there is this link... http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html It shows Java as #1, and php as #5, but this is also for PROGRAMMING, does not specify web based programming vs desktop vs MAD (thanks tedd ;) ) so the numbers do not really speak out in this application. Also it is the Tiobe-Index. Although it is widely-referenced, the way it calculates their rankings is ... interesting. In fact it only tells you how loud a community around a specific language is. So for example maybe Java is #1, because it is so complex, that it leads to many questions in forums and on stackoverflow. Or PHP is only #5, because most communication is on IRC, or mailinglists. (disclaimer: Of course I faked this examples. Actually I have no idea how the communities around Java and PHP as a whole interacts primary, but I don't think, that they are all equal). I just think, that the Tiobe-Index has a completely different view on what is a popular language, than I have. Does it really matter? PHP is very huge, widely used, and I would even go so far as to say the 'norm' for website developers, and hosting providers. Nope, it doesn't matter :) But that is my $0.02, and for me, I have been with PHP for 7 years professionally, and in college I took VB.net, ASP.net, C++, JAVA and PHP. Only recently have I gotten into C# for desktop applications. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- github.com/KingCrunch
Re: [PHP] PHP vs JAVA
in my opinion, that would be like asking how big is the internet?. http://www.washingtonpost.com/blogs/the-switch/wp/2013/08/18/heres-what-you-find-when-you-scan-the-entire-internet-in-an-hour/ On Tue, Aug 20, 2013 at 1:08 PM, Sebastian Krebs krebs@gmail.comwrote: 2013/8/20 Steven Staples sstap...@mnsi.net My recent question was simply an attempt to get documentation to support which server-side Web Language is the most popular. Both PHP and Java can be used server-side. I also realize that Java is used for native Android because I also teach Mobile Application Development (MAD -- I even coined the name). So, I am up to my butt in languages (and people who think different than me) -- I'm just trying to get documentation to back up my what I think I know. Well, technically any language can be used server side, it is all on how you set up your server, no? No. But since node.js I lack an example :D But of course you need the link between the language and the network. I would tend to think that the biggest out there, is html/php/javascript... and next to that, would be asp, and then java. Do I have proof of this? No, can I get proof, I doubt it, and are there stats on this? To be honest, in my opinion, that would be like asking how big is the internet?. It is virtually an immeasurable object. There are so many websites out there, that you can't search them all... Of course you cannot search them _all_, but again the link: http://w3techs.com/technologies/overview/programming_language/all There are good hints, how the internet looks like. For example a hoster can simply look at the products he sell. Services like w3techs.com use the reports from the server themself (in most cases the headers), or the file-ending (doesn't work anymore that good, since most sites hide them ;)) and extrapolate this. Of course they are not exact, but I think they show the direction quite accurate. PHP is simple, and yet powerful to use, and is pretty much the standard for all hosting companies. Now, there is this link... http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html It shows Java as #1, and php as #5, but this is also for PROGRAMMING, does not specify web based programming vs desktop vs MAD (thanks tedd ;) ) so the numbers do not really speak out in this application. Also it is the Tiobe-Index. Although it is widely-referenced, the way it calculates their rankings is ... interesting. In fact it only tells you how loud a community around a specific language is. So for example maybe Java is #1, because it is so complex, that it leads to many questions in forums and on stackoverflow. Or PHP is only #5, because most communication is on IRC, or mailinglists. (disclaimer: Of course I faked this examples. Actually I have no idea how the communities around Java and PHP as a whole interacts primary, but I don't think, that they are all equal). I just think, that the Tiobe-Index has a completely different view on what is a popular language, than I have. Does it really matter? PHP is very huge, widely used, and I would even go so far as to say the 'norm' for website developers, and hosting providers. Nope, it doesn't matter :) But that is my $0.02, and for me, I have been with PHP for 7 years professionally, and in college I took VB.net, ASP.net, C++, JAVA and PHP. Only recently have I gotten into C# for desktop applications. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- github.com/KingCrunch -- From the desk of Dan Munro
Re: [PHP] PHP vs JAVA
On 20 Aug 2013, at 21:08, Sebastian Krebs krebs@gmail.com wrote: 2013/8/20 Steven Staples sstap...@mnsi.net My recent question was simply an attempt to get documentation to support which server-side Web Language is the most popular. Both PHP and Java can be used server-side. I also realize that Java is used for native Android because I also teach Mobile Application Development (MAD -- I even coined the name). So, I am up to my butt in languages (and people who think different than me) -- I'm just trying to get documentation to back up my what I think I know. Well, technically any language can be used server side, it is all on how you set up your server, no? No. But since node.js I lack an example :D But of course you need the link between the language and the network. The language and the 'link between the language and the network' are two completely separate things. The link, as you put it, is the web server. A web server doesn't need to do anything more than set up environment variables and run an executable, and even setting up the environment is technically optional. BASH can build web pages. I wouldn't recommend using BASH, but there's nothing technically preventing it. Node.js is not the only way to run Javascript outside a browser, and other ways of doing so existed long before Node.js arrived. Most limitations people put on technology are artificial constructions rather than real constraints. tedd: I wouldn't trust any stats you might find since, as has been pointed out, it's incredibly difficult to accurately measure. I'd be careful with the word popular because it really depends on what you're measuring. If you're talking public websites then I'd agree that, anecdotally at least, PHP is more common than any other server-side language. If you're talking about public site visitors or page views it's definitely the most popular, but that's massively skewed by Facebook if you accept that their way of using PHP can still be called PHP. Enterprise usage of PHP is far lower, mainly due to Microsoft's dominance, but I get the feeling this is changing, albeit incredibly slowly. If he means Java is the most popular as in developers would prefer to use it then I'd definitely disagree, but I wouldn't necessarily say that PHP is at the top of that list either. Ultimately I'd want to know what he's trying to prove by saying that. If he's purely engaging in a mine's bigger than yours discussion I'd walk away, leave him to his petty games and actually accomplish something with the time instead. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
On 20 Aug 2013, at 21:30, Dan Munro d...@danmunro.com wrote: in my opinion, that would be like asking how big is the internet?. http://www.washingtonpost.com/blogs/the-switch/wp/2013/08/18/heres-what-you-find-when-you-scan-the-entire-internet-in-an-hour/ That's scanning IP addresses and doesn't come close to answering how big is the internet, assuming that means how many sites are there rather than how many publicly responsive edge servers exist. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
On Tue, 2013-08-20 at 21:44 +0100, Stuart Dallas wrote: On 20 Aug 2013, at 21:30, Dan Munro d...@danmunro.com wrote: in my opinion, that would be like asking how big is the internet?. http://www.washingtonpost.com/blogs/the-switch/wp/2013/08/18/heres-what-you-find-when-you-scan-the-entire-internet-in-an-hour/ That's scanning IP addresses and doesn't come close to answering how big is the internet, assuming that means how many sites are there rather than how many publicly responsive edge servers exist. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ I'd argue that a large proportion of really secure servers out there won't respond to a lot of what Zmap pings out. Nmap works by throwing out requests on a bunch of different ports, not just ping, which is slow, so I'd be surprised if Zmap could really rival that while giving the same results. Bearing in mind there are over 4,000 million (I won't say billion, because that's a million million, despite what the Americans say!) IPv4 address out there, 40 minutes is a ridiculous amount of time to even scan half of that, especially given the fact that IPv6 is being majorly pushed because IPv4 is apparently running out of free address space! Then not forgetting that lots of websites exist on the same IP address/range, I would say the article is lacking on so many details as to be untrue. Thanks, Ash http://www.ashleysheridan.co.uk
Re: [PHP] PHP vs JAVA
On 20 Aug 2013, at 22:00, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2013-08-20 at 21:44 +0100, Stuart Dallas wrote: On 20 Aug 2013, at 21:30, Dan Munro d...@danmunro.com wrote: in my opinion, that would be like asking how big is the internet?. http://www.washingtonpost.com/blogs/the-switch/wp/2013/08/18/heres-what-you-find-when-you-scan-the-entire-internet-in-an-hour/ That's scanning IP addresses and doesn't come close to answering how big is the internet, assuming that means how many sites are there rather than how many publicly responsive edge servers exist. I'd argue that a large proportion of really secure servers out there won't respond to a lot of what Zmap pings out. Nmap works by throwing out requests on a bunch of different ports, not just ping, which is slow, so I'd be surprised if Zmap could really rival that while giving the same results. Bearing in mind there are over 4,000 million (I won't say billion, because that's a million million, despite what the Americans say!) IPv4 address out there, 40 minutes is a ridiculous amount of time to even scan half of that, especially given the fact that IPv6 is being majorly pushed because IPv4 is apparently running out of free address space! Then not forgetting that lots of websites exist on the same IP address/range, I would say the article is lacking on so many details as to be untrue. I wouldn't go so far as to say it's untrue, but it's certainly written with exaggerated implications. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
Tedd Sperling wrote: I'm just trying to get documentation to back up my what I think I know. http://en.wikipedia.org/wiki/Programming_languages_used_in_most_popular_websites may be a better starting point, but there are no citations to the facts, they are a little dated, and some sites are a little biased in their choices? Move to the top 40 sites and PHP fares a little better - http://rogchap.com/2011/09/06/top-40-website-programming-languages/ but but this data is a little dataed now. Personally I've always used the W3techs figures when I'm doing talks as it is the only consistent source I've found. The netcraft figures would be nice but they only run this intermittently, and last January's figure of 244 million sites at 39% of machines seems a little at odds with the W3techs ones? http://w3techs.com/technologies/history_overview/programming_language continues to show PHP rising at the expense of ASP and Java with Perl, Ruby and Python having trouble to stay above 1% combined over the last year. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs JAVA
Zmap works by being stateless, so while nmap records which requests go out, zmap fires and forgets, and encodes the request in such a way that the response can provide whatever details it needs to continue the scan. No magic here. On Tue, Aug 20, 2013 at 2:28 PM, Lester Caine les...@lsces.co.uk wrote: Tedd Sperling wrote: I'm just trying to get documentation to back up my what I think I know. http://en.wikipedia.org/wiki/**Programming_languages_used_in_** most_popular_websiteshttp://en.wikipedia.org/wiki/Programming_languages_used_in_most_popular_websitesmay be a better starting point, but there are no citations to the facts, they are a little dated, and some sites are a little biased in their choices? Move to the top 40 sites and PHP fares a little better - http://rogchap.com/2011/09/06/**top-40-website-programming-**languages/http://rogchap.com/2011/09/06/top-40-website-programming-languages/but but this data is a little dataed now. Personally I've always used the W3techs figures when I'm doing talks as it is the only consistent source I've found. The netcraft figures would be nice but they only run this intermittently, and last January's figure of 244 million sites at 39% of machines seems a little at odds with the W3techs ones? http://w3techs.com/ **technologies/history_overview/**programming_languagehttp://w3techs.com/technologies/history_overview/programming_languagecontinues to show PHP rising at the expense of ASP and Java with Perl, Ruby and Python having trouble to stay above 1% combined over the last year. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=**contacthttp://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.**ukhttp://rainbowdigitalmedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- From the desk of Dan Munro
Re: [PHP] PHP vs JAVA
On 8/20/2013 10:00 AM, Tedd Sperling wrote: Hi guys: A teacher at my college made the statement that JAVA for Web Development is more popular than PHP. Where can I go to prove this right or wrong -- and/or -- what references do any of you have to support your answer? (sounds like a teacher, huh?) While I don't have any references to back it up - my guess would be that Java may be seen as more versatile in general programming terms. A staggering number of enterprise level web applications are built with Java, add to that the possibility of writing Android apps with the same knowledge. Of course, there are many ways to make Android apps without Java - I've written a few myself with simple HTML and Flash Builder. I would say that, in general, the other teacher is incorrect speaking strictly in terms of web development. PHP has already won that crown many times over. That said, when I was in University, it was difficult to find a programming class that taught anything but Java - and that was 10yrs ago now. I chalked it up to the education bubble not being able to see what the rest of the world is actually doing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [php-general] gibberish output when using the loadHTMLFile() function.
Hi there!! When I'm trying to load an external html document with the loadHTMLFile() function and then I use the saveHTML() function to output its content, some text in the external html document which is written in hebrew is displayed in a gibberish format. is anyone here has an idea how to solve this problem? NOTE: the document itself is encoded in utf-8 character set. Thanks in advance!! atar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php 5.3.15 and exception for disabled_functions
Hi there, in the php.ini file I've disabled some functions (exec and similar). In the php script we must use binary execution - so I had to enable function exec again. And here is a question - does php have an option, that I could set : this binary file could use this disabled function ? Like : disable_functions_binary_exception = /usr/local/bin/compute_doomsday disable_functions_function_exception = exec :) Thanks and best regards J.Karliak -- Ma domena pouziva zabezpeceni a kontrolu SPF (www.openspf.org) a DomainKeys/DKIM (with ADSP) . Pokud mate problemy s dorucenim emailu, zacnete pouzivat metody overeni puvody emailu zminene vyse. Dekuji. My domain use SPF (www.openspf.org) and DomainKeys/DKIM (with ADSP) policy and check. If you've problem with sending emails to me, start using email origin methods mentioned above. Thank you. This message was sent using IMP, the Internet Messaging Program. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php 5.3.15 and exception for disabled_functions
Hi, Maybe you think for ini_set() http://php.net/manual/en/function.ini-set.php On Tue, Jul 30, 2013 at 9:22 AM, Josef Karliak karl...@ajetaci.cz wrote: Hi there, in the php.ini file I've disabled some functions (exec and similar). In the php script we must use binary execution - so I had to enable function exec again. And here is a question - does php have an option, that I could set : this binary file could use this disabled function ? Like : disable_functions_binary_**exception = /usr/local/bin/compute_**doomsday disable_functions_function_**exception = exec :) Thanks and best regards J.Karliak -- Ma domena pouziva zabezpeceni a kontrolu SPF (www.openspf.org) a DomainKeys/DKIM (with ADSP) . Pokud mate problemy s dorucenim emailu, zacnete pouzivat metody overeni puvody emailu zminene vyse. Dekuji. My domain use SPF (www.openspf.org) and DomainKeys/DKIM (with ADSP) policy and check. If you've problem with sending emails to me, start using email origin methods mentioned above. Thank you. --**--** This message was sent using IMP, the Internet Messaging Program. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php 5.3.15 and exception for disabled_functions
Hi, interesting function, but disable_function is configurable only from php.ini file :-/ J.K. Cituji Bálint Horváth hbal...@gmail.com: Hi, Maybe you think for ini_set() http://php.net/manual/en/function.ini-set.php On Tue, Jul 30, 2013 at 9:22 AM, Josef Karliak karl...@ajetaci.cz wrote: Hi there, in the php.ini file I've disabled some functions (exec and similar). In the php script we must use binary execution - so I had to enable function exec again. And here is a question - does php have an option, that I could set : this binary file could use this disabled function ? Like : disable_functions_binary_**exception = /usr/local/bin/compute_**doomsday disable_functions_function_**exception = exec :) Thanks and best regards J.Karliak -- Ma domena pouziva zabezpeceni a kontrolu SPF (www.openspf.org) a DomainKeys/DKIM (with ADSP) . Pokud mate problemy s dorucenim emailu, zacnete pouzivat metody overeni puvody emailu zminene vyse. Dekuji. My domain use SPF (www.openspf.org) and DomainKeys/DKIM (with ADSP) policy and check. If you've problem with sending emails to me, start using email origin methods mentioned above. Thank you. --**--** This message was sent using IMP, the Internet Messaging Program. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Ma domena pouziva zabezpeceni a kontrolu SPF (www.openspf.org) a DomainKeys/DKIM (with ADSP) . Pokud mate problemy s dorucenim emailu, zacnete pouzivat metody overeni puvody emailu zminene vyse. Dekuji. My domain use SPF (www.openspf.org) and DomainKeys/DKIM (with ADSP) policy and check. If you've problem with sending emails to me, start using email origin methods mentioned above. Thank you. This message was sent using IMP, the Internet Messaging Program. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Powershell
Hi, Thanks for your change. I understand what has happend, from MSDN forums http://social.technet.microsoft.com/Forums/windowsserver/en-US/4b841530-9d8c-4d09-a77c-b89c6e0bafab/how-do-i-capture-data-from-invokecommand http://technet.microsoft.com/en-us/library/jj612804.aspx describes that Get-IscsiServerTarget returns an instance of Microsoft.Iscsi.Target.Commands.IscsiServerTarget. De output also includes the runspaceid and pscomputername. Invoke-Command also returns a runspaceid (when executed with -computername). You need to use Select-Object to output only the relevant fields instead. HTH Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table 2013/7/19 Alan Loos alan.l...@genco.com Serge, I have, the script itself allows for easy transition into a .ps1, what I have done is removed the # from the debug section to get the full command that is then easily ‘copy and paste’-able into a Powershell prompt and I get the same response in Powershell directly. Also in response to the lastest post to the thread I will snip off some content here. (Sorry first time at this) The ultimate goal is to pull the two variables so I can pass them forward via a PHP script to a MySQL Database. (ie iqn.2013-04.com.widget:Target1 and NotConnected in this case) I believe that the command in Powershell is trying to gather the $Status on both the Invoke-Command and Get-iSCSIServerTarget commands. Which is why I am getting a table in the Powershell Console and browser. Per your request I have rewritten the scripts: (Included inline) TestGetServerTarget.php -- ?php ### ## Variables ## ### $psCMD = powershell.exe -ExecutionPolicy Unrestricted; $psFILE = C:\\Arc\\scripts\\TestGetTarget.ps1; $runCMD = $psCMD. .$psFILE; ## Variable Checking (For Debug Mode) ## #echo \$psCMD = $psCMD; ## Run Script ## exec($runCMD, $out); ## Output ## echo ('pre'); print_r($out); echo ('/pre'); ### ## End Of Script ## ### echo End Of Scene; ? -- TestGetTarget.ps1 -- ### ## Variables ## ### $cred = New-Object System.Management.Automation.PSCredential -ArgumentList @('administra...@widget.com',(ConvertTo-SecureString -String 'MyPassword' -AsPlainText -Force)) $command = Invoke-Command -computername localhost -credential $cred -scriptblock { Get-IscsiServerTarget -TargetName Target1 | % { $_.TargetIqn, $_.Status}} -SessionOption (New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck) # ## Execute Scriptblock ## # $command -- Powershell output of TestGetTarget.ps1: -- PS C:\Arc\Scripts .\TestGetTarget.ps1 iqn.2013-04.com.widget:Target1 PSComputerName RunspaceId Value -- -- - localhost f3c5063a-85df-49a3-a5ed-7df04a930684NotConnected -- PHP output webbrowser (Much in the same): -- Array ( [0] = iqn.2013-04.com.widget:Target1 [1] = [2] = PSComputerName RunspaceId Value [3] = -- -- - [4] = localhost f46c9f15-70b4-496c-a9d6... NotConnected [5] = [6] = ) End Of Scene -- *Alan Loos* CONFIDENTIALITY NOTICE: This e-mail and the attachment(s) hereto (if any) contain confidential information that is privileged and intended only for the addressee(s) hereof. If you are not an intended recipient, you are hereby notified that any disclosure, copying, distribution or use of this e-mail and/or the accompanying attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by return e-mail. *From:* Serge Fonville [mailto:serge.fonvi...@gmail.com] *Sent:* Friday, July 19, 2013 12:16 PM *To:* Alan Loos *Cc:* php-general@lists.php.net *Subject:* Re: [PHP] PHP and Powershell Thank you for your clarification. Have you considered placing the whole powershell -command parameter in a .ps1 script and executing that instead? The benefit would be that it is easier to read and test accordingly. HTH Kind regards/met vriendelijke groet
RE: [PHP] PHP and Powershell
Serge, Won't lie, read this from my phone this morning and thought 'No it can't be that easy'. Now that I'm at work in front of a computer I've updated the command to the following: GetTarget.ps1 ### ## Variables ## ### $cred = New-Object System.Management.Automation.PSCredential -ArgumentList @('administra...@widget.com',(ConvertTo-SecureString -String 'MyPassword' -AsPlainText -Force)) $command = Invoke-Command -computername localhost -credential $cred -scriptblock { Get-IscsiServerTarget -TargetName Target1 | select-object TargetIqn,Status | Format-List} -SessionOption (New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck) # ## Execute Scriptblock ## # $command And it returns: Array ( [0] = [1] = [2] = TargetIqn : iqn.2013-04.com.widget:Target1 [3] = Status: NotConnected [4] = [5] = [6] = ) 0 End Of Scene In effect, you're a genius! Thank you for all your help I should be able to tackle it from here! Alan Loos CONFIDENTIALITY NOTICE: This e-mail and the attachment(s) hereto (if any) contain confidential information that is privileged and intended only for the addressee(s) hereof. If you are not an intended recipient, you are hereby notified that any disclosure, copying, distribution or use of this e-mail and/or the accompanying attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by return e-mail. From: Serge Fonville [mailto:serge.fonvi...@gmail.com] Sent: Monday, July 22, 2013 4:09 AM To: Alan Loos Cc: php-general@lists.php.net Subject: Re: [PHP] PHP and Powershell Hi, Thanks for your change. I understand what has happend, from MSDN forums http://social.technet.microsoft.com/Forums/windowsserver/en-US/4b841530-9d8c-4d09-a77c-b89c6e0bafab/how-do-i-capture-data-from-invokecommand http://technet.microsoft.com/en-us/library/jj612804.aspx describes that Get-IscsiServerTarget returns an instance of Microsoft.Iscsi.Target.Commands.IscsiServerTarget. De output also includes the runspaceid and pscomputername. Invoke-Command also returns a runspaceid (when executed with -computername). You need to use Select-Object to output only the relevant fields instead. HTH Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table --Snip-- --Big Snip-- Please make note of my new email address: alan.l...@genco.com.
Re: [PHP] PHP and Powershell
Hi, Although this is more powershell related than PHP... When Powershell returns an object, you can pipe the output through Select-Object to get only certain object properties. To better answer your question: First, why do you specify ComputerName as 127.0.0.1 if the credential is already specified? Also, perhaps it is easier to create a .ps1 file that you run, especially for readability. HTH Wh Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table 2013/7/18 Alan Loos alan.l...@genco.com Good morning everyone, First time posting in here, although I've been listening in for a few weeks now. So this one has got me stumped, I am fairly new to PHP but I cannot seem to Google through this one. I cannot figure out how to 'exclude' PSComputerName and RunspaceId, which is ultimately what I'm struggling with. Please see below for script snips and explanations. Also if there are any best practices you would recommend I'm open to it being that I am fairly new and self-taught to PHP scripting. I have a bit of code I've put together (as ugly as it is) as follows in line: ?php ### ## Variables ## ### $TargetName = Target1; $login = \$cred = New-Object System.Management.Automation.PSCredential -ArgumentList @('administra...@widget.com',(ConvertTo-SecureString -String 'MyPassword' -AsPlainText -Force)); $command = Invoke-Command -computername 127.0.0.1 -credential \$cred -scriptblock { Get-IscsiServerTarget -TargetName . $TargetName . | % { \$_.TargetIqn, \$_.Status}} -SessionOption (New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck); $psCMD = powershell -ExecutionPolicy Unrestricted -command \$login; $command\ NUL; ## Variable Checking (For Debug Mode) ## #echo \$psCMD = $psCMD; ## Run Script ## exec($psCMD,$out); ## Output ## echo ('pre'); print_r($out); echo ('/pre'); ### ## End Of Script ## ### echo End Of Scene; ? The issue I have is that it feeds back: Array ( [0] = iqn.2013-04.com.widget:Target1 [1] = [2] = PSComputerName RunspaceId Value [3] = -- -- - [4] = 127.0.0.1 52fb8b1b-8d8b-4eec-9419... NotConnected [5] = [6] = ) End Of Scene What I should see so I can then turn it into variables is what I run when I run the command straight through the local Powershell command prompt which would return: PS C:\Users\administrator.WIDGET.000 Get-IscsiServerTarget | % { $_.TargetIqn, $_.Status} iqn.2013-04.com.widget:Target1 NotConnected iqn.2013-04.com.widget:Target2 NotConnected iqn.2013-04.com.widget:Target3 NotConnected iqn.2013-04.com.widget:Target4 Connected iqn.2013-04.com.widget:Target5 NotConnected iqn.2013-04.com.widget:Target6 NotConnected I cannot figure out how to 'exclude' PSComputerName and RunspaceId Sorry in advance for the wordy explanation. Cheers! Alan Please make note of my new email address: alan.l...@genco.com. CONFIDENTIALITY NOTICE: This e-mail and the attachment(s) hereto (if any) contain confidential information that is privileged and intended only for the addressee(s) hereof. If you are not an intended recipient, you are hereby notified that any disclosure, copying, distribution or use of this e-mail and/or the accompanying attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by return e-mail.
[PHP] PHP 5.5.1 is now available
Hello, The PHP Development team would like to inform you the immediate availability of PHP 5.5.1. All users are encouraged to upgrade their version. This release includes bug fixes as well as a security fix (Bug #65236). For changes in PHP 5.5.1, please consult the PHP 5 ChangeLog. Release Announcement: http://www.php.net/release_5_5_1.phphttp://www.php.net/release_5_5_0.php Downloads:http://www.php.net/downloads.php#v5.5 Changelog: http://www.php.net/ChangeLog-5.php#5.5.http://www.php.net/ChangeLog-5.php#5.5.0 1 regards, Julien Pauli David Soria Parra
RE: [PHP] PHP and Powershell
Thank you for your response Serge! The computer name is for the invoke-command, ComputerName has to be specified to tell the computer where the command is to be routed. Since I want this to run locally over PHP I figured that it would be a good way to avoid running a script as I have read online that when it can be avoided it's a good practice (I also couldn't get this to work properly... :) But that is a side note). The piece that outputs the extra RunSpaceID and the PSComputerName is the $_.Status portion of everything. If someone knows how to cut it out that would be fine but really I just need to pull the Target Name and the Value from result. For the attached example it would be $IQNTarget = iqn.2013-04.com.widget:Target1 and $Value = NotConnected (Which there are two options for this which is Connected or NotConnected). To use Select Object here would I do Select-Object $Value? Alan Loos | Flash Anywhere Project T 925-640-2977 | alan.l...@genco.commailto:alan.l...@genco.com CONFIDENTIALITY NOTICE: This e-mail and the attachment(s) hereto (if any) contain confidential information that is privileged and intended only for the addressee(s) hereof. If you are not an intended recipient, you are hereby notified that any disclosure, copying, distribution or use of this e-mail and/or the accompanying attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by return e-mail. From: Serge Fonville [mailto:serge.fonvi...@gmail.com] Sent: Friday, July 19, 2013 3:05 AM To: Alan Loos Cc: php-general@lists.php.net Subject: Re: [PHP] PHP and Powershell Hi, Although this is more powershell related than PHP... When Powershell returns an object, you can pipe the output through Select-Object to get only certain object properties. To better answer your question: First, why do you specify ComputerName as 127.0.0.1 if the credential is already specified? Also, perhaps it is easier to create a .ps1 file that you run, especially for readability. HTH Wh Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table 2013/7/18 Alan Loos alan.l...@genco.commailto:alan.l...@genco.com Good morning everyone, First time posting in here, although I've been listening in for a few weeks now. So this one has got me stumped, I am fairly new to PHP but I cannot seem to Google through this one. I cannot figure out how to 'exclude' PSComputerName and RunspaceId, which is ultimately what I'm struggling with. Please see below for script snips and explanations. Also if there are any best practices you would recommend I'm open to it being that I am fairly new and self-taught to PHP scripting. I have a bit of code I've put together (as ugly as it is) as follows in line: ?php ### ## Variables ## ### $TargetName = Target1; $login = \$cred = New-Object System.Management.Automation.PSCredential -ArgumentList @('administra...@widget.commailto:administra...@widget.com',(ConvertTo-SecureString -String 'MyPassword' -AsPlainText -Force)); $command = Invoke-Command -computername 127.0.0.1 -credential \$cred -scriptblock { Get-IscsiServerTarget -TargetName . $TargetName . | % { \$_.TargetIqn, \$_.Status}} -SessionOption (New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck); $psCMD = powershell -ExecutionPolicy Unrestricted -command \$login; $command\ NUL; ## Variable Checking (For Debug Mode) ## #echo \$psCMD = $psCMD; ## Run Script ## exec($psCMD,$out); ## Output ## echo ('pre'); print_r($out); echo ('/pre'); ### ## End Of Script ## ### echo End Of Scene; ? The issue I have is that it feeds back: Array ( [0] = iqn.2013-04.com.widget:Target1 [1] = [2] = PSComputerName RunspaceId Value [3] = -- -- - [4] = 127.0.0.1 52fb8b1b-8d8b-4eec-9419... NotConnected [5] = [6] = ) End Of Scene What I should see so I can then turn it into variables is what I run when I run the command straight through the local Powershell command prompt which would return: PS C:\Users\administrator.WIDGET.000 Get-IscsiServerTarget | % { $_.TargetIqn, $_.Status} iqn.2013-04.com.widget:Target1 NotConnected iqn.2013-04.com.widget:Target2 NotConnected iqn.2013-04.com.widget:Target3 NotConnected iqn.2013-04.com.widget:Target4 Connected iqn.2013-04.com.widget:Target5 NotConnected iqn.2013-04.com.widget:Target6 NotConnected I cannot figure out how to 'exclude' PSComputerName and RunspaceId Sorry in advance for the wordy explanation
Re: [PHP] PHP and Powershell
How have you determined that invoke-command requires -computername? Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table 2013/7/19 Alan Loos alan.l...@genco.com Thank you for your response Serge! The computer name is for the invoke-command, ComputerName has to be specified to tell the computer where the command is to be routed. Since I want this to run locally over PHP I figured that it would be a good way to avoid running a script as I have read online that when it can be avoided it’s a good practice (I also couldn’t get this to work properly… J But that is a side note). The piece that outputs the extra RunSpaceID and the PSComputerName is the $_.Status portion of everything. ** ** If someone knows how to cut it out that would be fine but really I just need to pull the Target Name and the Value from result. For the attached example it would be $IQNTarget = iqn.2013-04.com.widget:Target1 and $Value = NotConnected (Which there are two options for this which is Connected or NotConnected). ** ** To use Select Object here would I do Select-Object $Value? ** ** *Alan Loos* | *Flash Anywhere Project* T 925-640-2977 | alan.l...@genco.com ** ** CONFIDENTIALITY NOTICE: This e-mail and the attachment(s) hereto (if any) contain confidential information that is privileged and intended only for the addressee(s) hereof. If you are not an intended recipient, you are hereby notified that any disclosure, copying, distribution or use of this e-mail and/or the accompanying attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by return e-mail. ** ** *From:* Serge Fonville [mailto:serge.fonvi...@gmail.com] *Sent:* Friday, July 19, 2013 3:05 AM *To:* Alan Loos *Cc:* php-general@lists.php.net *Subject:* Re: [PHP] PHP and Powershell ** ** Hi, Although this is more powershell related than PHP... When Powershell returns an object, you can pipe the output through Select-Object to get only certain object properties. To better answer your question: First, why do you specify ComputerName as 127.0.0.1 if the credential is already specified? Also, perhaps it is easier to create a .ps1 file that you run, especially for readability. HTH Wh Kind regards/met vriendelijke groet, ** ** Serge Fonville ** ** http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table ** ** 2013/7/18 Alan Loos alan.l...@genco.com Good morning everyone, First time posting in here, although I've been listening in for a few weeks now. So this one has got me stumped, I am fairly new to PHP but I cannot seem to Google through this one. I cannot figure out how to 'exclude' PSComputerName and RunspaceId, which is ultimately what I'm struggling with. Please see below for script snips and explanations. Also if there are any best practices you would recommend I'm open to it being that I am fairly new and self-taught to PHP scripting. I have a bit of code I've put together (as ugly as it is) as follows in line: ?php ### ## Variables ## ### $TargetName = Target1; $login = \$cred = New-Object System.Management.Automation.PSCredential -ArgumentList @('administra...@widget.com',(ConvertTo-SecureString -String 'MyPassword' -AsPlainText -Force)); $command = Invoke-Command -computername 127.0.0.1 -credential \$cred -scriptblock { Get-IscsiServerTarget -TargetName . $TargetName . | % { \$_.TargetIqn, \$_.Status}} -SessionOption (New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck); $psCMD = powershell -ExecutionPolicy Unrestricted -command \$login; $command\ NUL; ## Variable Checking (For Debug Mode) ## #echo \$psCMD = $psCMD; ## Run Script ## exec($psCMD,$out); ## Output ## echo ('pre'); print_r($out); echo ('/pre'); ### ## End Of Script ## ### echo End Of Scene; ? The issue I have is that it feeds back: Array ( [0] = iqn.2013-04.com.widget:Target1 [1] = [2] = PSComputerName RunspaceId Value [3] = -- -- - [4] = 127.0.0.1 52fb8b1b-8d8b-4eec-9419... NotConnected [5] = [6] = ) End Of Scene What I should see so I can then turn it into variables is what I run when I run the command straight through the local
RE: [PHP] PHP and Powershell
According to Technet it is not required (http://technet.microsoft.com/en-us/library/hh849719.aspx) as the default would be 'localhost' which is the same as 127.0.0.1. So you are correct it is not required. However when I take away '-computername 127.0.0.1' I get a return of: Array ( [0] = Invoke-Command : Parameter set cannot be resolved using the specified named [1] = parameters. [2] = At line:1 char:172 [3] = + $cred = New-Object System.Management.Automation.PSCredential -ArgumentList [4] = @('ad ... [5] = + ~ [6] = ~~~ [7] = + CategoryInfo : InvalidArgument: (:) [Invoke-Command], Parameter [8] =BindingException [9] = + FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.PowerShell.Comma [10] =nds.InvokeCommandCommand [11] = ) End Of Scene For whatever reason, the powershell command does not want to execute properly without that variable being defined explicitly. (Not sure if that is what you are asking exactly but I think that was answering the question, if not let me know and I'll try to answer the best I can) Thanks in advance! Alan Loos CONFIDENTIALITY NOTICE: This e-mail and the attachment(s) hereto (if any) contain confidential information that is privileged and intended only for the addressee(s) hereof. If you are not an intended recipient, you are hereby notified that any disclosure, copying, distribution or use of this e-mail and/or the accompanying attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by return e-mail. From: Serge Fonville [mailto:serge.fonvi...@gmail.com] Sent: Friday, July 19, 2013 11:13 AM To: Alan Loos Cc: php-general@lists.php.net Subject: Re: [PHP] PHP and Powershell How have you determined that invoke-command requires -computername? Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table 2013/7/19 Alan Loos alan.l...@genco.commailto:alan.l...@genco.com Thank you for your response Serge! The computer name is for the invoke-command, ComputerName has to be specified to tell the computer where the command is to be routed. Since I want this to run locally over PHP I figured that it would be a good way to avoid running a script as I have read online that when it can be avoided it's a good practice (I also couldn't get this to work properly... :) But that is a side note). The piece that outputs the extra RunSpaceID and the PSComputerName is the $_.Status portion of everything. If someone knows how to cut it out that would be fine but really I just need to pull the Target Name and the Value from result. For the attached example it would be $IQNTarget = iqn.2013-04.com.widget:Target1 and $Value = NotConnected (Which there are two options for this which is Connected or NotConnected). To use Select Object here would I do Select-Object $Value? Alan Loos CONFIDENTIALITY NOTICE: This e-mail and the attachment(s) hereto (if any) contain confidential information that is privileged and intended only for the addressee(s) hereof. If you are not an intended recipient, you are hereby notified that any disclosure, copying, distribution or use of this e-mail and/or the accompanying attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by return e-mail. From: Serge Fonville [mailto:serge.fonvi...@gmail.commailto:serge.fonvi...@gmail.com] Sent: Friday, July 19, 2013 3:05 AM To: Alan Loos Cc: php-general@lists.php.netmailto:php-general@lists.php.net Subject: Re: [PHP] PHP and Powershell Hi, Although this is more powershell related than PHP... When Powershell returns an object, you can pipe the output through Select-Object to get only certain object properties. To better answer your question: First, why do you specify ComputerName as 127.0.0.1 if the credential is already specified? Also, perhaps it is easier to create a .ps1 file that you run, especially for readability. HTH Wh Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table 2013/7/18 Alan Loos alan.l...@genco.commailto:alan.l...@genco.com Good morning everyone, First time posting in here, although I've been listening in for a few weeks now. So this one has got me stumped, I am fairly new to PHP but I cannot seem to Google through this one. I cannot figure out how to 'exclude' PSComputerName and RunspaceId, which is ultimately what I'm struggling with. Please see below for script snips
Re: [PHP] PHP and Powershell
Thank you for your clarification. Have you considered placing the whole powershell -command parameter in a .ps1 script and executing that instead? The benefit would be that it is easier to read and test accordingly. HTH Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table 2013/7/19 Alan Loos alan.l...@genco.com According to Technet it is not required ( http://technet.microsoft.com/en-us/library/hh849719.aspx) as the default would be ‘localhost’ which is the same as 127.0.0.1. ** ** So you are correct it is not required. However when I take away ‘-computername 127.0.0.1’ I get a return of: Array ( [0] = Invoke-Command : Parameter set cannot be resolved using the specified named [1] = parameters. [2] = At line:1 char:172 [3] = + $cred = New-Object System.Management.Automation.PSCredential -ArgumentList [4] = @('ad ... [5] = + ~ [6] = ~~~ [7] = + CategoryInfo : InvalidArgument: (:) [Invoke-Command], Parameter [8] =BindingException [9] = + FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.PowerShell.Comma [10] =nds.InvokeCommandCommand [11] = ) ** ** End Of Scene ** ** For whatever reason, the powershell command does not want to execute properly without that variable being defined explicitly. ** ** (Not sure if that is what you are asking exactly but I think that was answering the question, if not let me know and I’ll try to answer the best I can) ** ** Thanks in advance! ** ** *Alan Loos* ** ** CONFIDENTIALITY NOTICE: This e-mail and the attachment(s) hereto (if any) contain confidential information that is privileged and intended only for the addressee(s) hereof. If you are not an intended recipient, you are hereby notified that any disclosure, copying, distribution or use of this e-mail and/or the accompanying attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by return e-mail. ** ** *From:* Serge Fonville [mailto:serge.fonvi...@gmail.com] *Sent:* Friday, July 19, 2013 11:13 AM *To:* Alan Loos *Cc:* php-general@lists.php.net *Subject:* Re: [PHP] PHP and Powershell ** ** How have you determined that invoke-command requires -computername? Kind regards/met vriendelijke groet, ** ** Serge Fonville ** ** http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table ** ** 2013/7/19 Alan Loos alan.l...@genco.com Thank you for your response Serge! The computer name is for the invoke-command, ComputerName has to be specified to tell the computer where the command is to be routed. Since I want this to run locally over PHP I figured that it would be a good way to avoid running a script as I have read online that when it can be avoided it’s a good practice (I also couldn’t get this to work properly… J But that is a side note). The piece that outputs the extra RunSpaceID and the PSComputerName is the $_.Status portion of everything. If someone knows how to cut it out that would be fine but really I just need to pull the Target Name and the Value from result. For the attached example it would be $IQNTarget = iqn.2013-04.com.widget:Target1 and $Value = NotConnected (Which there are two options for this which is Connected or NotConnected). To use Select Object here would I do Select-Object $Value? *Alan Loos* CONFIDENTIALITY NOTICE: This e-mail and the attachment(s) hereto (if any) contain confidential information that is privileged and intended only for the addressee(s) hereof. If you are not an intended recipient, you are hereby notified that any disclosure, copying, distribution or use of this e-mail and/or the accompanying attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by return e-mail. *From:* Serge Fonville [mailto:serge.fonvi...@gmail.com] *Sent:* Friday, July 19, 2013 3:05 AM *To:* Alan Loos *Cc:* php-general@lists.php.net *Subject:* Re: [PHP] PHP and Powershell Hi, Although this is more powershell related than PHP... When Powershell returns an object, you can pipe the output through Select-Object to get only certain object properties. To better answer your question: First, why do you specify ComputerName as 127.0.0.1
Re: [PHP] PHP and Powershell
To all: Sorry for top posting and sorry for sounding like the list-police, but you need to trim the excess from your post. Hitting reply without considering that other have to read through a bunch of old add-on email is not good. So, please just trim your post to what is important. Cheers, tedd On Jul 19, 2013, at 1:16 PM, Serge Fonville serge.fonvi...@gmail.com wrote: Thank you for your clarification. Have you considered placing the whole powershell -command parameter in a .ps1 script and executing that instead? The benefit would be that it is easier to read and test accordingly. HTH Kind regards/met vriendelijke groet, Serge Fonville --- BIG SNIP --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP and Powershell
Serge, I have, the script itself allows for easy transition into a .ps1, what I have done is removed the # from the debug section to get the full command that is then easily 'copy and paste'-able into a Powershell prompt and I get the same response in Powershell directly. Also in response to the lastest post to the thread I will snip off some content here. (Sorry first time at this) The ultimate goal is to pull the two variables so I can pass them forward via a PHP script to a MySQL Database. (ie iqn.2013-04.com.widget:Target1 and NotConnected in this case) I believe that the command in Powershell is trying to gather the $Status on both the Invoke-Command and Get-iSCSIServerTarget commands. Which is why I am getting a table in the Powershell Console and browser. Per your request I have rewritten the scripts: (Included inline) TestGetServerTarget.php ?php ### ## Variables ## ### $psCMD = powershell.exe -ExecutionPolicy Unrestricted; $psFILE = C:\\Arc\\scripts\\TestGetTarget.ps1; $runCMD = $psCMD. .$psFILE; ## Variable Checking (For Debug Mode) ## #echo \$psCMD = $psCMD; ## Run Script ## exec($runCMD, $out); ## Output ## echo ('pre'); print_r($out); echo ('/pre'); ### ## End Of Script ## ### echo End Of Scene; ? TestGetTarget.ps1 ### ## Variables ## ### $cred = New-Object System.Management.Automation.PSCredential -ArgumentList @('administra...@widget.com',(ConvertTo-SecureString -String 'MyPassword' -AsPlainText -Force)) $command = Invoke-Command -computername localhost -credential $cred -scriptblock { Get-IscsiServerTarget -TargetName Target1 | % { $_.TargetIqn, $_.Status}} -SessionOption (New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck) # ## Execute Scriptblock ## # $command Powershell output of TestGetTarget.ps1: PS C:\Arc\Scripts .\TestGetTarget.ps1 iqn.2013-04.com.widget:Target1 PSComputerName RunspaceId Value -- -- - localhost f3c5063a-85df-49a3-a5ed-7df04a930684 NotConnected PHP output webbrowser (Much in the same): Array ( [0] = iqn.2013-04.com.widget:Target1 [1] = [2] = PSComputerName RunspaceId Value [3] = -- -- - [4] = localhost f46c9f15-70b4-496c-a9d6... NotConnected [5] = [6] = ) End Of Scene Alan Loos CONFIDENTIALITY NOTICE: This e-mail and the attachment(s) hereto (if any) contain confidential information that is privileged and intended only for the addressee(s) hereof. If you are not an intended recipient, you are hereby notified that any disclosure, copying, distribution or use of this e-mail and/or the accompanying attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by return e-mail. From: Serge Fonville [mailto:serge.fonvi...@gmail.com] Sent: Friday, July 19, 2013 12:16 PM To: Alan Loos Cc: php-general@lists.php.net Subject: Re: [PHP] PHP and Powershell Thank you for your clarification. Have you considered placing the whole powershell -command parameter in a .ps1 script and executing that instead? The benefit would be that it is easier to read and test accordingly. HTH Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table --Big Snip-- Please make note of my new email address: alan.l...@genco.com.
[PHP] PHP and Powershell
Good morning everyone, First time posting in here, although I've been listening in for a few weeks now. So this one has got me stumped, I am fairly new to PHP but I cannot seem to Google through this one. I cannot figure out how to 'exclude' PSComputerName and RunspaceId, which is ultimately what I'm struggling with. Please see below for script snips and explanations. Also if there are any best practices you would recommend I'm open to it being that I am fairly new and self-taught to PHP scripting. I have a bit of code I've put together (as ugly as it is) as follows in line: ?php ### ## Variables ## ### $TargetName = Target1; $login = \$cred = New-Object System.Management.Automation.PSCredential -ArgumentList @('administra...@widget.com',(ConvertTo-SecureString -String 'MyPassword' -AsPlainText -Force)); $command = Invoke-Command -computername 127.0.0.1 -credential \$cred -scriptblock { Get-IscsiServerTarget -TargetName . $TargetName . | % { \$_.TargetIqn, \$_.Status}} -SessionOption (New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck); $psCMD = powershell -ExecutionPolicy Unrestricted -command \$login; $command\ NUL; ## Variable Checking (For Debug Mode) ## #echo \$psCMD = $psCMD; ## Run Script ## exec($psCMD,$out); ## Output ## echo ('pre'); print_r($out); echo ('/pre'); ### ## End Of Script ## ### echo End Of Scene; ? The issue I have is that it feeds back: Array ( [0] = iqn.2013-04.com.widget:Target1 [1] = [2] = PSComputerName RunspaceId Value [3] = -- -- - [4] = 127.0.0.1 52fb8b1b-8d8b-4eec-9419... NotConnected [5] = [6] = ) End Of Scene What I should see so I can then turn it into variables is what I run when I run the command straight through the local Powershell command prompt which would return: PS C:\Users\administrator.WIDGET.000 Get-IscsiServerTarget | % { $_.TargetIqn, $_.Status} iqn.2013-04.com.widget:Target1 NotConnected iqn.2013-04.com.widget:Target2 NotConnected iqn.2013-04.com.widget:Target3 NotConnected iqn.2013-04.com.widget:Target4 Connected iqn.2013-04.com.widget:Target5 NotConnected iqn.2013-04.com.widget:Target6 NotConnected I cannot figure out how to 'exclude' PSComputerName and RunspaceId Sorry in advance for the wordy explanation. Cheers! Alan Please make note of my new email address: alan.l...@genco.com. CONFIDENTIALITY NOTICE: This e-mail and the attachment(s) hereto (if any) contain confidential information that is privileged and intended only for the addressee(s) hereof. If you are not an intended recipient, you are hereby notified that any disclosure, copying, distribution or use of this e-mail and/or the accompanying attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by return e-mail.
[PHP] PHP 5.3.27 Released - PHP 5.3 Reaching End of Life
The PHP development team announces the immediate availability of PHP 5.3.27. About 10 bugs were fixed, including a security fix in the XML parser (Bug #65236). Please Note: This will be the last regular release of the PHP 5.3 series. All users of PHP are encouraged to upgrade to PHP 5.4 or PHP 5.5. The PHP 5.3 series will receive only security fixes for the next year. For source downloads of PHP 5.3.27 please visit our downloads page on http://www.php.net/downloads.php, Windows binaries can be found on http://windows.php.net/download/. The list of changes is recorded in the ChangeLog on http://www.php.net/ChangeLog-5.php#5.3.27. Johannes Schlüter PHP 5.3 Release Master -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.4.17 released!
Hello! The PHP development team announces the immediate availability of PHP 5.4.17. About 20 bugs were fixed. All users of PHP are encouraged to upgrade to this release. For source downloads of PHP 5.4.17 please visit our downloads page: http://www.php.net/downloads.php Windows binaries can be found on windows.php.net/download/ The list of changes are recorded in the ChangeLog: http://www.php.net/ChangeLog-5.php#5.4.17 Stanislav Malyshev PHP 5.4 Release Master -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php, openssl and GOST ciphers - problem with GOST R 34.10-2001
Hi. So, back to the GOST ciphers problem. This is kinda a long story. Basically, there's tow sides of it. On one side there's a lack of OPENSSL_config() calls in ext/openssl/openssl.c. On the other hand, there's also a curl, which is also linked to Openssl. In case you want any encryption, you will probably want to use both modules, for obvious reasons. Curl (in this case - the upstream curl) also lacks OPENSSL_config() calls, so one would think he should add OPENSSL_config() call in every place. This isn't correct, because being called sequentlially, this leads to openssl initialization error, so OPENSSL_config() call should be called once, and it should be called in the module that is loaded first. In case you are using curl AND openssl, this definitely is curl module, because openssl initialization is done in the upstream library. Considering this, no curl/openssl modification is needed in PHP distribution, - you can patch curl upstream distribution by the method described above, and use GOST ciphers. In case you aren't using curl, you need to patch the openssl module in it's code. Curl guys are aware of the problem, but they don't want to make things even worse, so they decided to do nothing at this moment: http://sourceforge.net/p/curl/bugs/1208/ . So, why am I writing all of this ? Because I have next problem. I have a patched curl, php linked with it, fresh openssl with GOST ciphers and one of the ciphers not accessible by php: this is GOST R 34.10-2001 cipher. Here's what I have: /usr/local/openssl/bin/openssl ciphers aGOST01 GOST2001-GOST89-GOST89:GOST2001-NULL-GOST94 (so, openssl has it, according to is manual - aGOST01 - cipher suites using GOST R 34.10-2001 authentication.) Curl also has it: /usr/local/curl/bin/curl --engine gost --ciphers GOST2001-GOST89-GOST89 https://google.com curl: (35) error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure I got a failure, but when the non-existent cipher suite is used, the error is different: /usr/local/curl/bin/curl --engine gost --ciphers GOST2001-GOST89-GOST666 https://google.com curl: (59) failed setting cipher list So, openssl has it, curl has it, but for some reason php doesn't. openssl_get_md_methods() shows a couple of GOST digest but not GOST R 34.11-94: array(30) { [0]= string(3) DSA [1]= string(7) DSA-SHA [2]= string(17) GOST 28147-89 MAC [3]= string(15) GOST R 34.11-94 [4]= string(3) MD4 [5]= string(3) MD5 [6]= string(4) MDC2 [7]= string(9) RIPEMD160 [8]= string(3) SHA [9]= string(4) SHA1 [10]= string(6) SHA224 [11]= string(6) SHA256 [12]= string(6) SHA384 [13]= string(6) SHA512 [14]= string(13) dsaEncryption [15]= string(10) dsaWithSHA [16]= string(15) ecdsa-with-SHA1 [17]= string(8) gost-mac [18]= string(3) md4 [19]= string(3) md5 [20]= string(9) md_gost94 [21]= string(4) mdc2 [22]= string(9) ripemd160 [23]= string(3) sha [24]= string(4) sha1 [25]= string(6) sha224 [26]= string(6) sha256 [27]= string(6) sha384 [28]= string(6) sha512 [29]= string(9) whirlpool } Why ? How to investigate it ? Thanks. Eugene.
Re: [PHP] PHP 5.5.0 final has been released!
Awesome work and the new design for the php.net website is also nice ;) Am 20.06.2013, 23:22 Uhr, schrieb Julien Pauli jpa...@php.net: Hello! The PHP Development Team would like to announce the immediate release of PHP 5.5.0. This release includes a large number of new features and bug fixes. A separate release announcement is also available. For changes in PHP 5.5.0 since PHP 5.4, please consult the PHP 5 ChangeLog. Release Announcement: http://www.php.net/release_5_5_0.php Downloads:http://www.php.net/downloads.php#v5.5 Changelog:http://www.php.net/ChangeLog-5.php#5.5.0 Thanks to all contributors that made this new version available. regards, David Soria Parra Julien Pauli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] [PHP] PHP 5.5.0 final has been released!
I second this - great to see both finally available. Fantastic release! Martin Amps | CIO www.iCracked.com iCracked | Redwood City, CA On Jun 21, 2013, at 2:01 PM, Julian jswprog.mailingli...@gmx.at wrote: Awesome work and the new design for the php.net website is also nice ;) Am 20.06.2013, 23:22 Uhr, schrieb Julien Pauli jpa...@php.net: Hello! The PHP Development Team would like to announce the immediate release of PHP 5.5.0. This release includes a large number of new features and bug fixes. A separate release announcement is also available. For changes in PHP 5.5.0 since PHP 5.4, please consult the PHP 5 ChangeLog. Release Announcement: http://www.php.net/release_5_5_0.php Downloads:http://www.php.net/downloads.php#v5.5 Changelog:http://www.php.net/ChangeLog-5.php#5.5.0 Thanks to all contributors that made this new version available. regards, David Soria Parra Julien Pauli -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: [PHP-DEV] [PHP] PHP 5.5.0 final has been released!
I hope this will get people like WordPress to get up and support mysqli out of the box. going to cause big issues if they don't. On Sat, Jun 22, 2013 at 8:59 AM, Martin Amps ph...@rtin.so wrote: I second this - great to see both finally available. Fantastic release! Martin Amps | CIO www.iCracked.com iCracked | Redwood City, CA On Jun 21, 2013, at 2:01 PM, Julian jswprog.mailingli...@gmx.at wrote: Awesome work and the new design for the php.net website is also nice ;) Am 20.06.2013, 23:22 Uhr, schrieb Julien Pauli jpa...@php.net: Hello! The PHP Development Team would like to announce the immediate release of PHP 5.5.0. This release includes a large number of new features and bug fixes. A separate release announcement is also available. For changes in PHP 5.5.0 since PHP 5.4, please consult the PHP 5 ChangeLog. Release Announcement: http://www.php.net/release_5_5_0.php Downloads:http://www.php.net/downloads.php#v5.5 Changelog:http://www.php.net/ChangeLog-5.php#5.5.0 Thanks to all contributors that made this new version available. regards, David Soria Parra Julien Pauli -- PHP Internals - PHP Runtime Development Mailing List 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
[PHP] PHP 5.3.18RC1 and 5.4.8RC1 Released for Testing!
Hi! We've released PHP 5.3.27RC1 and 5.4.17RC1 which can be found here: 5.3.27RC1: http://downloads.php.net/johannes/php-5.3.27RC1.tar.bz2 http://downloads.php.net/johannes/php-5.3.27RC1.tar.gz 5.4.17RC1: http://downloads.php.net/stas/php-5.4.17RC1.tar.bz2 http://downloads.php.net/stas/php-5.4.17RC1.tar.gz Windows binaries for both as always are at: http://windows.php.net/qa/ These are release candidates for regular bugfix releases, the full list of issues fixed can be found in the NEWS files. Please test and report if anything is broken. Mind that PHP 5.3.27 is supposed to be the last regular PHP 5.3 release before entering in extended support providing security fixes only. Please double check there is nothing broken in it. If no critical issues are found in these RCs, the final versions will be released in two weeks. Regards, Stas Malyshev Johannes Schlüter PHP 5.4 Release Master PHP 5.3 Release Master -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [PHP-DEV] PHP 5.3.27RC1 and 5.4.17RC1 Released for Testing!
Hi! We've released PHP 5.3.27RC1 and 5.4.17RC1 which can be found here: 5.3.27RC1: http://downloads.php.net/johannes/php-5.3.27RC1.tar.bz2 http://downloads.php.net/johannes/php-5.3.27RC1.tar.gz 5.4.17RC1: http://downloads.php.net/stas/php-5.4.17RC1.tar.bz2 http://downloads.php.net/stas/php-5.4.17RC1.tar.gz Windows binaries for both as always are at: http://windows.php.net/qa/ These are release candidates for regular bugfix releases, the full list of issues fixed can be found in the NEWS files. Please test and report if anything is broken. Mind that PHP 5.3.27 is supposed to be the last regular PHP 5.3 release before entering in extended support providing security fixes only. Please double check there is nothing broken in it. If no critical issues are found in these RCs, the final versions will be released in two weeks. Regards, Stas Malyshev Johannes Schlüter PHP 5.4 Release Master PHP 5.3 Release Master -- PHP Internals - PHP Runtime Development Mailing List 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
[PHP] PHP 5.5.0 final has been released!
Hello! The PHP Development Team would like to announce the immediate release of PHP 5.5.0. This release includes a large number of new features and bug fixes. A separate release announcement is also available. For changes in PHP 5.5.0 since PHP 5.4, please consult the PHP 5 ChangeLog. Release Announcement: http://www.php.net/release_5_5_0.php Downloads:http://www.php.net/downloads.php#v5.5 Changelog:http://www.php.net/ChangeLog-5.php#5.5.0 Thanks to all contributors that made this new version available. regards, David Soria Parra Julien Pauli
Re: AW: AW: [PHP] PHP is Zero
BUSCHKE Daniel daniel.busc...@nextiraone.eu wrote: Why is PHP doing that? I know it works as designed and I know it is documented like this but that does not mean that it is a good feature, does it? So lets talk about the question: Is that behaviour awaited by PHP software developers? Is that really the way PHP should work here? May we should change that?! If you've been using PHP since 2000, you probably well know all the rants there are about how terrible PHP is as a language; this is one of the big ones people always mention. An analog to your statement above is This screwdriver is absolute *bollux* at pounding in nails! Maybe we should change that!?. (In point of fact, PHP can be seen as a screwdriver that is *astoundingly* capable of pounding in nails, so the analogy is in kind only, not in fact. In real fact, PHP is a programmer's wealthy toolkit; not complete by any means, but tools that will work for most things, *when you know how to use them*.) I don't know the reasons why; it's moot to me. The designers of PHP chose to go that route, it's up to me as a developer to know how the language works. If I'm insufficiently able to use it without throwing errors, or without realizing my code is throwing errors, perhaps it isn't the language's fault, but mine to learn to adapt to it's quirks. If I am sufficiently fed up with having to adapt to it's quirks, Then I will find another language to use. Now, that said, PHP is often some people's first programming language, and that, IMO, is a serious problem. PHP is full of these sorts of things that may not help a newbie learn proper software development skills. I love that people can teach themselves to program; I wouldn't want to take that away from anyone. And sometimes that leads to problems, too. Eventually they'll learn, and get better, or they won't, and probably not make much of a living at it if that's their desire. When I came up, I was learning how to program in two languages at the same time (not mixed in the same program; alternating): Pascal and Lisp. There really could not be two more different languages (and this was before anyone thought about OO as an actual thing rather than some loosely associated concepts.) Pascal being strongly typed, Lisp having no types and no distinction between code and data. I actually learned a hella lot more working in Lisp than I did working in Pascal. (Not the least of which was how to make my TAs scratch their heads in confusion.) But that may just be me, and since it may just be me, I'm not about to suggest it to anyone else. Now, the question here may be merely academic (read: somewhat interesting, but not really that practical). If it is not, however, this isn't the right forum. Take your question to -dev and see what they think. I am personally not interested in such a change to the language at this point. It's bad enough when they roll to a new major release breaking backwards compatibility. The anger and invective goes on for years; people quit using PHP altogether because of such things and hold grudges for years and years. Regards Daniel Cheers, tamouse__ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP is Zero
Hi all, I want to start a discussion about a PHP behaviour that drives me crazy for years. For the beginning I would like you to guess what the result of the following snippet will be: var_dump('PHP' == 0); I know the difference of == and === but the result was unexcpected for me. And I hope it is also for you. The result is simply true. Why is it true? I guess this happens because of the conversion from 'PHP' to a number which will be 0 in PHP. And of course 0 equals 0. There are several points that I just want to drop into this mailinglist to discuss about: 1. Why? :) 2. Why is PHP converting the String into a Number instead of converting the Number into a String? (If my guess concerning the behaviour is correct) 3. Why is PHP throwing data away which has the developer explicit given to the interpreter? 4. Why does var_dump(0 == 'PHP'); has the same result as the snippet above? This meens that the equal operator is not explictly implemented in the string or integer? 5. Thats a bug I have opend: https://bugs.php.net/bug.php?id=51739 where I also had the same problems because 8315e839da08e2a7afe6dd12ec58245d was converted into float(INF) by throwing everything starting from da08.. away. I am using PHP since the year 2000. This means I have 13 years of experience in PHP and I really would like you to NOT just answer works as designed. I know it works as designed but I want to discuss the design. Also I know that the fuzzy behaviour of type conversion is a main feature of PHP. I guess this is one point which makes PHP that successfull. But - in my opinion - the described behaviour is to fuzzy and just confuses developers. Best Regards Daniel Buschke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP is Zero
Sorry missed to post list as well Hi Daniel, here is wild goose i assume you have 3 x = in your problem formulation which could possibly result in the akward standard C mixup; the rightmost = first parsed and resulting in an ASSIGMENT to the variable with that value, the comes the parsing of == which is the equivalence test, and see; the variable is the same since it was just assigned that value; if this theory is correct you would get TRUE regardless what number is following :) /g - Original Message - From: BUSCHKE Daniel daniel.busc...@nextiraone.eu To: php-general@lists.php.net Sent: Thursday, June 13, 2013 9:59 AM Subject: [PHP] PHP is Zero Hi all, I want to start a discussion about a PHP behaviour that drives me crazy for years. For the beginning I would like you to guess what the result of the following snippet will be: var_dump('PHP' == 0); I know the difference of == and === but the result was unexcpected for me. And I hope it is also for you. The result is simply true. Why is it true? I guess this happens because of the conversion from 'PHP' to a number which will be 0 in PHP. And of course 0 equals 0. There are several points that I just want to drop into this mailinglist to discuss about: 1. Why? :) 2. Why is PHP converting the String into a Number instead of converting the Number into a String? (If my guess concerning the behaviour is correct) 3. Why is PHP throwing data away which has the developer explicit given to the interpreter? 4. Why does var_dump(0 == 'PHP'); has the same result as the snippet above? This meens that the equal operator is not explictly implemented in the string or integer? 5. Thats a bug I have opend: https://bugs.php.net/bug.php?id=51739 where I also had the same problems because 8315e839da08e2a7afe6dd12ec58245d was converted into float(INF) by throwing everything starting from da08.. away. I am using PHP since the year 2000. This means I have 13 years of experience in PHP and I really would like you to NOT just answer works as designed. I know it works as designed but I want to discuss the design. Also I know that the fuzzy behaviour of type conversion is a main feature of PHP. I guess this is one point which makes PHP that successfull. But - in my opinion - the described behaviour is to fuzzy and just confuses developers. Best Regards Daniel Buschke -- 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
AW: [PHP] PHP is Zero
Hi, I used 2 x =. Using 3 x = would not result in that behaviour because string is not equal to number. I am fine === here. I explicitly talk about the 2 x = variant. BTW: # php -r 'var_dump(PHP == 0);' bool(true) # php -r 'var_dump(PHP == 1);' bool(false) regards Daniel -Ursprüngliche Nachricht- Von: georg [mailto:georg.chamb...@telia.com] Gesendet: Donnerstag, 13. Juni 2013 10:35 An: BUSCHKE Daniel Cc: php-general@lists.php.net Betreff: Re: [PHP] PHP is Zero Sorry missed to post list as well Hi Daniel, here is wild goose i assume you have 3 x = in your problem formulation which could possibly result in the akward standard C mixup; the rightmost = first parsed and resulting in an ASSIGMENT to the variable with that value, the comes the parsing of == which is the equivalence test, and see; the variable is the same since it was just assigned that value; if this theory is correct you would get TRUE regardless what number is following :) /g - Original Message - From: BUSCHKE Daniel daniel.busc...@nextiraone.eu To: php-general@lists.php.net Sent: Thursday, June 13, 2013 9:59 AM Subject: [PHP] PHP is Zero Hi all, I want to start a discussion about a PHP behaviour that drives me crazy for years. For the beginning I would like you to guess what the result of the following snippet will be: var_dump('PHP' == 0); I know the difference of == and === but the result was unexcpected for me. And I hope it is also for you. The result is simply true. Why is it true? I guess this happens because of the conversion from 'PHP' to a number which will be 0 in PHP. And of course 0 equals 0. There are several points that I just want to drop into this mailinglist to discuss about: 1. Why? :) 2. Why is PHP converting the String into a Number instead of converting the Number into a String? (If my guess concerning the behaviour is correct) 3. Why is PHP throwing data away which has the developer explicit given to the interpreter? 4. Why does var_dump(0 == 'PHP'); has the same result as the snippet above? This meens that the equal operator is not explictly implemented in the string or integer? 5. Thats a bug I have opend: https://bugs.php.net/bug.php?id=51739 where I also had the same problems because 8315e839da08e2a7afe6dd12ec58245d was converted into float(INF) by throwing everything starting from da08.. away. I am using PHP since the year 2000. This means I have 13 years of experience in PHP and I really would like you to NOT just answer works as designed. I know it works as designed but I want to discuss the design. Also I know that the fuzzy behaviour of type conversion is a main feature of PHP. I guess this is one point which makes PHP that successfull. But - in my opinion - the described behaviour is to fuzzy and just confuses developers. Best Regards Daniel Buschke -- 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] PHP is Zero
On 13/06/13 08:59, BUSCHKE Daniel wrote: Hi all, I want to start a discussion about a PHP behaviour that drives me crazy for years. For the beginning I would like you to guess what the result of the following snippet will be: var_dump('PHP' == 0); I know the difference of == and === but the result was unexcpected for me. And I hope it is also for you. The result is simply true. Why is it true? I guess this happens because of the conversion from 'PHP' to a number which will be 0 in PHP. And of course 0 equals 0. There are several points that I just want to drop into this mailinglist to discuss about: 1. Why? :) 42 2. Why is PHP converting the String into a Number instead of converting the Number into a String? (If my guess concerning the behaviour is correct) Since PHP is a weakly-typed language, it has to choose one way or the other. The behaviour *is* predictable if you know what the rule is (I'm sure the order of conversion is documented somewhere). 3. Why is PHP throwing data away which has the developer explicit given to the interpreter? Because PHP is weakly-typed, the developer is not being sufficiently explicit. Try php -r 'var_dump(intval('PHP') == 0);' and php -r 'var_dump('PHP' == strval(0));' to see explicit code. Anything less is implicit. 4. Why does var_dump(0 == 'PHP'); has the same result as the snippet above? This meens that the equal operator is not explictly implemented in the string or integer? The rule is consistent: it always converts the string to an integer whatever the order. 5. Thats a bug I have opend: https://bugs.php.net/bug.php?id=51739 where I also had the same problems because 8315e839da08e2a7afe6dd12ec58245d was converted into float(INF) by throwing everything starting from da08.. away. That's a very different proposition, and probably has more to do with word size: float is 32-bit, so only the first 32 bits are used and if anything else is found the conversion falls back to INF. To handle really big integers like 8315e839da08e2a7afe6dd12ec58245d you probably need a more specialist library (or language) I am using PHP since the year 2000. This means I have 13 years of experience in PHP and I really would like you to NOT just answer works as designed. I know it works as designed but I want to discuss the design. Also I know that the fuzzy behaviour of type conversion is a main feature of PHP. I guess this is one point which makes PHP that successfull. But - in my opinion - the described behaviour is to fuzzy and just confuses developers. The weak typing *is* a feature of PHP: other languages are more suitable when you need more enforcement of types: Java, for example. With all due respect to an experience programmer, years of experience do not make up for a limited tool set. Best Regards Daniel Buschke Cheers Pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php