php-general Digest 23 May 2013 20:21:47 -0000 Issue 8243
Topics (messages 321172 through 321178):
Re: Source code of original PHP release.
321172 by: Serge Fonville
321177 by: Daniel Brown
Simple objective which always seems to make me think I'm doing it wrong.
321173 by: Richard Quadling
321175 by: Matijn Woudt
321176 by: Stuart Dallas
[PHP-DEV] PHP 5.3.26RC1 and 5.4.16RC1 Released for Testing!
321174 by: Johannes Schlüter
Script
321178 by: Last Hacker Always onpoint
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Hi,
Have you looked at http://php.net/manual/en/history.php.php?
Could you also share some information on what you have already, as to
prevent we would provide information you already have?
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/5/23 chris <ch...@cribznetwork.com>
> I'm currently writing a paper on the evolution of PHP and web
> development/security as a whole.
> One of the things I want to incorporate is snippets of source code to show
> how things have grown and advanced since the 90's
>
> If anyone could help me out I would be much appreciated. All my attempts
> of trying to find it have turned up nothing :(
>
> Cheers,
> Christopher Tombleson
> ---------------------------
> Github: https://github.com/chtombleson
> Blog: http://blog.cribznetwork.com
> Website: http://cribznetwork.com
> Ohloh:
> https://www.ohloh.net/**accounts/chtombleson/<https://www.ohloh.net/accounts/chtombleson/>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
On Thu, May 23, 2013 at 2:16 AM, chris <ch...@cribznetwork.com> wrote:
> I'm currently writing a paper on the evolution of PHP and web
> development/security as a whole.
> One of the things I want to incorporate is snippets of source code to show
> how things have grown and advanced since the 90's
>
> If anyone could help me out I would be much appreciated. All my attempts of
> trying to find it have turned up nothing :(
Everything you want (and more) regarding that is in the Museum:
http://museum.php.net/
--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/
--- End Message ---
--- Begin Message ---
Hi.
I'm building an XML file.
It is within an OOP structure and is pretty simple.
The method is ...
/**
* Turn an error from the W2GlobalData service into normal document as
this will make it easier to integrate downstream.
*
* @param \SimpleXMLElement $o_XML
* @return \SimpleXMLElement
* @todo Build document to be a correct request header with the
embedded error message.
*/
public function normaliseError($o_XML)
{
$s_XML = <<< END_XML
<?xml version="1.0" encoding="UTF-8"?>
<doc>
<service>UK Verification (Edited)</service>
<searchtext>
<forename>{$this->a_RequestData['forename']}</forename>
<middlename>{$this->a_RequestData['middlename']}</middlename>
<surname>{$this->a_RequestData['surname']}</surname>
<address1>{$this->a_RequestData['address1']}</address1>
<address2>{$this->a_RequestData['address2']}</address2>
<postcode>{$this->a_RequestData['postcode']}</postcode>
<gender>{$this->a_RequestData['gender']}</gender>
<dob>{$this->a_RequestData['dob']}</dob>
<drivinglicence>{$this->a_RequestData['drivinglicence']}</drivinglicence>
<passport>{$this->a_RequestData['passport']}</passport>
<mpan>{$this->a_RequestData['mpan']}</mpan>
</searchtext>
<clientreference>{$this->a_RequestData['clientreference']}</clientreference>
<resultcount/>
<searchdate/>
<expiry/>
<timetaken/>
<reportemailsent/>
<error>
{$o_XML->error}
</error>
</doc>
END_XML;
return new SimpleXMLElement($s_XML);
}
Nothing particularly difficult to understand, but I just don't like having
the XML embedded this way.
Ideally, I want a scope aware include function, so I can say _something_
like ...
$s_XML = require_once __CLASS__ . DIRECTORY_SEPARATOR .
'normalisedError.xml';
and have the include be aware of the local scope (so $o_XML and $this are
all happy).
I know I can write a template parser, but I'm just missing an obvious
solution that isn't fat and doesn't require a massive learning for the
other devs.
Ideas?
Thanks for reading.
Richard.
--
Richard Quadling
Twitter : @RQuadling
EE : http://e-e.com/M_248814.html
Zend : http://bit.ly/9O8vFY
--- End Message ---
--- Begin Message ---
On Thu, May 23, 2013 at 4:54 PM, Richard Quadling <rquadl...@gmail.com>wrote:
> Hi.
>
> I'm building an XML file.
>
> It is within an OOP structure and is pretty simple.
>
> The method is ...
> <snip>
>
> Nothing particularly difficult to understand, but I just don't like having
> the XML embedded this way.
>
> Ideally, I want a scope aware include function, so I can say _something_
> like ...
>
> $s_XML = require_once __CLASS__ . DIRECTORY_SEPARATOR .
> 'normalisedError.xml';
>
> and have the include be aware of the local scope (so $o_XML and $this are
> all happy).
>
> I know I can write a template parser, but I'm just missing an obvious
> solution that isn't fat and doesn't require a massive learning for the
> other devs.
>
> Ideas?
>
> Thanks for reading.
>
> Richard.
>
>
What is wrong with the require_once? I don't see why it would not work.
- Matijn
--- End Message ---
--- Begin Message ---
On 23 May 2013, at 15:54, Richard Quadling <rquadl...@gmail.com> wrote:
> I'm building an XML file.
>
> It is within an OOP structure and is pretty simple.
>
> The method is ...
>
> /**
> * Turn an error from the W2GlobalData service into normal document as
> this will make it easier to integrate downstream.
> *
> * @param \SimpleXMLElement $o_XML
> * @return \SimpleXMLElement
> * @todo Build document to be a correct request header with the
> embedded error message.
> */
> public function normaliseError($o_XML)
> {
> $s_XML = <<< END_XML
> <?xml version="1.0" encoding="UTF-8"?>
> <doc>
> <service>UK Verification (Edited)</service>
> <searchtext>
> <forename>{$this->a_RequestData['forename']}</forename>
> <middlename>{$this->a_RequestData['middlename']}</middlename>
> <surname>{$this->a_RequestData['surname']}</surname>
> <address1>{$this->a_RequestData['address1']}</address1>
> <address2>{$this->a_RequestData['address2']}</address2>
> <postcode>{$this->a_RequestData['postcode']}</postcode>
> <gender>{$this->a_RequestData['gender']}</gender>
> <dob>{$this->a_RequestData['dob']}</dob>
>
> <drivinglicence>{$this->a_RequestData['drivinglicence']}</drivinglicence>
> <passport>{$this->a_RequestData['passport']}</passport>
> <mpan>{$this->a_RequestData['mpan']}</mpan>
> </searchtext>
>
> <clientreference>{$this->a_RequestData['clientreference']}</clientreference>
> <resultcount/>
> <searchdate/>
> <expiry/>
> <timetaken/>
> <reportemailsent/>
> <error>
> {$o_XML->error}
> </error>
> </doc>
> END_XML;
> return new SimpleXMLElement($s_XML);
> }
>
> Nothing particularly difficult to understand, but I just don't like having
> the XML embedded this way.
>
> Ideally, I want a scope aware include function, so I can say _something_
> like ...
>
> $s_XML = require_once __CLASS__ . DIRECTORY_SEPARATOR .
> 'normalisedError.xml';
>
> and have the include be aware of the local scope (so $o_XML and $this are
> all happy).
>
> I know I can write a template parser, but I'm just missing an obvious
> solution that isn't fat and doesn't require a massive learning for the
> other devs.
>
> Ideas?
normalisedError.xml:
<?php
return <<< END_XML
the xml here
END_XML;
Then in your class your require_once line will work. However, use require
instead of require_once otherwise if the function gets called twice it won't
work the second time.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
--- End Message ---
--- Begin Message ---
Hi!
We've released PHP 5.3.26RC1 and 5.4.16RC1 which can be found here:
5.3.26RC1:
http://downloads.php.net/johannes/php-5.3.26RC1.tar.bz2
http://downloads.php.net/johannes/php-5.3.26RC1.tar.gz
5.4.16RC1:
http://downloads.php.net/stas/php-5.4.16RC1.tar.bz2
http://downloads.php.net/stas/php-5.4.16RC1.tar.gz
Windows binaries for both, as always, are at:
http://windows.php.net/qa/
These are regular bugfix releases, the full list of issues fixed can be
found in the NEWS files. Please test and report if anything is broken.
If no critical issues is found in this RC, the final version will be
released in two weeks.
Regards,
Stas Malyshev, Johannes Schlüter
--- End Message ---
--- Begin Message ---
Hi please the script am using is an auto generated script: simple
machine function, and its having problems.
So please I'l like to ask if anyone can give me a cool music site
script like music212.com
--- End Message ---