php-general Digest 16 Feb 2010 08:40:27 -0000 Issue 6593
Topics (messages 302099 through 302102):
Re: Thread Safe?
302099 by: Robert Cummings
loadXML() and namespace
302100 by: Michael A. Peters
Re: UK Project Opportunity
302101 by: Manuel Lemos
Retrieve http body
302102 by: à¶à·à¶½à·à¶±à· à¶
බà·à·à·à¶à·|Thilani Abeysinghe
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 David,
Install the non-thread safe version and run it in conjunction with
FastCGI. You may also be interested in looking into WinCache for PHP.
Non-thread safe works best with FastCGI, running PHP as an ISAPI module
is NOT recommended.
Cheers,
Rob.
David Stoltz wrote:
Hi all,
I'm installing 5.3.1 on my Windows Server with IIS6.
Should I choose VC9 x86 Thread Safe or "non-thread safe" ?
What is the difference?
Thanks!
--
http://www.interjinn.com
Application and Templating Framework for PHP
--- End Message ---
--- Begin Message ---
It seems that if I use loadXML($string) and the $string has a namespace
defined in it, domdocument is nuking the namespace and changing the
nodenames from whatever to defaultwhatever.
Example -
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mrow>
<msup>
<mi>x</mi>
<mn>2</mn>
</msup>
<mo>+</mo>
<mrow>
<mn>4</mn>
<mo></mo>
<mi>x</mi>
</mrow>
<mo>+</mo>
<mn>4</mn>
</mrow>
<mo>=</mo>
<mn>0</mn>
</mrow>
</math>
would get changed to
<defaultmath>
<defaultmrow>
<defaultmrow>
<defaultmsup>
<defaultmi>x</defaultmi>
<defaultmn>2</defaultmn>
</defaultmsup>
<defaultmo>+</defaultmo>
<defaultmrow>
<defaultmn>4</defaultmn>
<defaultmo></defaultmo>
<defaultmi>x</defaultmi>
</defaultmrow>
<defaultmo>+</defaultmo>
<defaultmn>4</defaultmn>
</defaultmrow>
<defaultmo>=</defaultmo>
<defaultmn>0</defaultmn>
</defaultmrow>
</defaultmath>
which of course breaks the page.
So it seems I need to somehow tell loadXML() about the namespace so it
doesn't do that, but I'm not having much luck with the php manual,
DOMDocument documentation seems a little on the "not written" side.
When I create the nodes and add them to the dom via domdocument it works
fine, but the issue is I like to cache the content div as a string and
load it when the page is requested (stuff outside the content div needs
to be dynamic and not cached) but this namespace issue prevents that.
Any tips would be appreciated, caching makes a huge difference.
--- End Message ---
--- Begin Message ---
Hello,
on 02/15/2010 11:37 AM Nathan Rixham said the following:
> I need to find a skilled PHP dev, UK based, with long term availability,
> in the short term to join me on a project and ultimately be prepared to
> take over the project and "own" it. Remote contract work w/ occasional
> meetings on site.
You may want to try searching PHP professionals with the specific skills
you need here:
http://www.phpclasses.org/professionals/country/uk/
Or you may want to try to post a job here:
http://www.phpclasses.org/jobs/
--
Regards,
Manuel Lemos
Find and post PHP jobs
http://www.phpclasses.org/jobs/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--- End Message ---
--- Begin Message ---
hi,
Im getting a http post request from an application .
It has content-type of multipart/form-data
I want to retrieve the http header and body separately.
For retriving body I used
@file_get_contents('php://input');
but this will not capture any content .
Is there any way to capture body content
Request was:
POST /test.php HTTP/1.1
Host: localhost
Connection: keep-alive
User-Agent: java
Message-ID: o-qf5613.82.x545.69
LinkedID: y-f6-qf5609.93.x584...@mmsc
From: 172.16.11...@unknown
TransactionID: Mbuni-o-qf5613.82.x545.69
-To: 111
Message-Date: Mon, 15 Feb 2010 09:20:09 GMT
Received-Date: Mon, 15 Feb 2010 09:20:13 GMT
Content-Type: multipart/form-data;
boundary=_boundary_214096443_1266225618_R_n_bd424521165
MIME-Version: 1.0
Content-Length: 420
--_boundary_214096443_1266225618_R_n_bd424521165
Content-Disposition: form-data; name="fx"
true
--_boundary_214096443_1266225618_R_n_bd424521165
Content-Disposition: form-data; name="text[]"; filename="Jmg.txt"
Content-Type: text/plain; charset=utf-8
Jmg
--_boundary_214096443_1266225618_R_n_bd424521165
Content-Disposition: form-data; name="skip"
1
--_boundary_214096443_1266225618_R_n_bd424521165--
Thanks
--- End Message ---