php-general Digest 10 May 2008 13:36:13 -0000 Issue 5451
Topics (messages 274110 through 274115):
Re: unsubscribe
274110 by: Nathan Nobbe
274111 by: tedd
274112 by: Nathan Nobbe
Re: xml processing cdata
274113 by: Brady Mitchell
Re: [PHP-DB] Re: [PHP] Best practices for using MySQL index
274114 by: Gergely Hodicska
A Little Something.
274115 by: tedd
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
On Fri, May 9, 2008 at 2:57 PM, tedd <[EMAIL PROTECTED]> wrote:
> At 2:39 PM -0400 5/9/08, Wolf wrote:
>
>> ---- bobcray <[EMAIL PROTECTED]> wrote:
>>
>>> unsubscribe
>>>
>>
>> http://www.php.net and unsubscribe yourself.
>>
>
> Yeah, I got that sent to me as well.
>
> It's interesting when people are smart enough to subscribe, but dummy-up
> when exiting. Do you think this list saps intelligence?
im getting dumber by the day :O
-nathan
--- End Message ---
--- Begin Message ---
At 3:45 PM -0600 5/9/08, Nathan Nobbe wrote:
On Fri, May 9, 2008 at 2:57 PM, tedd
<<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]> wrote:
It's interesting when people are smart enough to subscribe, but
dummy-up when exiting. Do you think this list saps intelligence?
im getting dumber by the day :O
-nathan
Yeah, we've noticed.
You've even had to resort to using classes and other strange stuff to
program. Clearly signs of mental fatigue. :-)
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
On Fri, May 9, 2008 at 8:25 PM, tedd <[EMAIL PROTECTED]> wrote:
> At 3:45 PM -0600 5/9/08, Nathan Nobbe wrote:
>
>> On Fri, May 9, 2008 at 2:57 PM, tedd <<mailto:[EMAIL PROTECTED]>
>> [EMAIL PROTECTED]> wrote:
>>
>>
>> It's interesting when people are smart enough to subscribe, but dummy-up
>> when exiting. Do you think this list saps intelligence?
>>
>>
>> im getting dumber by the day :O
>>
>> -nathan
>>
>
> Yeah, we've noticed.
>
> You've even had to resort to using classes and other strange stuff to
> program. Clearly signs of mental fatigue. :-)
and i thought oop was all about advances in technology; must be these
deadlines wearing on me...:D
-nathan
--- End Message ---
--- Begin Message ---
The last comment on http://php.net/manual/en/function.simplexml-load-string.php
is what you need:
simplexml_load_string($xmlstring, 'SimpleXMLElement', LIBXML_NOCDATA);
Brady
On May 9, 2008, at 1250PM, Chris W wrote:
I have an xml file with a cdata element like the one below. How
would I use the php xml functions to extract that cdata and save it
as a pdf file?
<attach id="2" display-name="207069.pdf" file-name="207069.pdf" obj-
type="1" system="0">
<![CDATA[eJysumVQW1/0NtoWK95CcXe3EFxK8QDBCQ5 ...... ]]>
</attach>
The code I have is this...
$in = fopen("test.xml", 'r');
$XMLStr = '';
while (!feof($in)) {
$LineNumber++;
$XMLStr .= fgets($in);
}
$XML = simplexml_load_string($XMLStr);
foreach($XML->props->attachments->attach as $Attachment){
print_r($Attachment);
}
The output looks like this...
SimpleXMLElement Object
(
[EMAIL PROTECTED] => Array
(
[id] => 2
[display-name] => 207069.pdf
[file-name] => 207069.pdf
[obj-type] => 1
[system] => 0
)
)
--
Chris W
KE5GIX
"Protect your digital freedom and privacy, eliminate DRM, learn more
at http://www.defectivebydesign.org/what_is_drm"
Ham Radio Repeater Database.
http://hrrdb.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi!
While this is not a MySQL mailing list, I try to give you some hints and
keep it short.
There is maybe one important thing which should considered: clustered
index. If use InnoDB you can think about to not using a surrogate key
but a natural one which best support the query which you will use in
most cases.
An InnoDB table's primary key is a clustered index and querying against
it is very fast.
Best Regards,
Felhő
--- End Message ---
--- Begin Message ---
Hi gang:
This is what I did this morning:
http://webbytedd.com/bb/tribute/
It speaks for itself.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---