php-general Digest 25 Mar 2009 07:21:46 -0000 Issue 6031
Topics (messages 290657 through 290664):
openssl extension problems: error:0E06D06C:configuration file
routines:NCONF_get_string:no value
290657 by: Bill Moran
Re: Tripple The Fun
290658 by: tedd
290662 by: Michael A. Peters
Re: PHP 5.3.0RC1
290659 by: Johannes Mueller
Simple XML in PHP
290660 by: Stephen Alistoun
290663 by: DredWerks
Re: [PHP-DEV] Re: PHP 5.3.0RC1
290661 by: Pierre Joye
Re: Problems with implode
290664 by: Toke Herkild
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 ---
I'm trying to use the openssl extension for PHP. Having some problems
and trying to figure out if the problem is in openssl or PHP's wrapper
around it.
The problem happens when I call openssl_pkey_get_private(). The function
returns failure and openssl_error_string() returns
"error:0E06D06C:configuration file routines:NCONF_get_string:no value"
So, this is not a PHP error, per-se. But I'm wondering if PHP is Doing
It Wrong, and thus causing this.
The docs claim that a valid openssl.cnf is required, and I have one, but
ktrace()ing the php script shows no attempt whatsoever to access the
openssl.cnf file, so my first instinct is that PHP is doing something
wrong.
Some details
FreeBSD 6.3-RELEASE-p4
which includes 0.9.8e
PHP php5-openssl-5.2.6_1 (installed from FreeBSD ports)
Some specific questions:
1) Does the above error indicate that the openssl.cnf is not being
used?
2) Is there anything I can do to get more verbose debugging?
3) Anyone on-list familiar with PHP's implementation?
However, any helpful advice on this is appreciated!
--
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
--- End Message ---
--- Begin Message ---
anyways I always figured Rocks[tm] was the first OO language, how much
more 'objecty' can you get than a rock :)
Maybe so, but we lacked the concept of an abstract rock -- it was
hard to down a Pterodactyl with one.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
$reply = new DOMDocument("1.0","utf-8");
$reply->formatOutput = true;
$headers = $reply->createElement("headers");
$body = $reply->createElement("body");
$subject = $reply->createElement("Subject","Re: [PHP] Tripple The Fun");
$to = $reply->createElement("To","abdulazeez alugo
<[email protected]>");
$cc = $reply->createElement("Cc:","[email protected]");
$headers->appendChild($subject);
$headers->appendChild($to);
$headers->appendChild($cc);
$reply->appendChild($headers);
$message = $reply->createTextNode("About halfway through this, I
realized I should have just used phpMailer instead of DOMDocument");
$body->appendChild($message);
$reply->appendChild($body);
print $reply->saveXML();
abdulazeez alugo wrote:
Hello guys,
The list seems boring to me today so I've come up with an idea (you can call it
a challenge). What if we all wrote to this thread in PHP codes. on't get the
gist yet? well all it means is that, on this thread, all that we should see
must be written in PHP codes and it must be meaningful and relevant to any
discussion on ground. The challenge starts..... Now!
<?php
$alugo="Hello guys, anyone up for the challenge?";
print $alugo;
?>
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
--- End Message ---
--- Begin Message ---
Lukas Kahwe Smith wrote:
Windows binaries are available here:
http://windows.php.net/qa/
The .ini files in the 5.3RC1-VC6-nts-package are empty. Can someone fix
this?
thanks for your hard work
Johannes
--- End Message ---
--- Begin Message ---
HI all,
How would a get this video from XML.
/***********Example i want to View***********/
<media:content url="http://video-cdn.abcnews.com/090324_gma_leamy.flv"
lang="en" width="424" height="318" type="video/x-flv" />
/**************************************/
/**********************XML CODE***********************/
<title>Investigating Toxic Drywall</title>
<link>http://feedproxy.google.com/~r/AbcNews_Health_Videos/~3/d5ewEbco-js/playerIndex</link>
<description>China-made drywall could be leaching noxious gases into
homes.<img
src="http://feeds2.feedburner.com/~r/AbcNews_Health_Videos/~4/d5ewEbco-js"
height="1" width="1"/></description>
<pubDate>Tue, 24 Mar 2009 10:20:04 -0400</pubDate>
<live:origReleaseDate>Tue, 24 Mar 2009 10:20:04 -0400</live:origReleaseDate>
<media:title>Investigating Toxic Drywall</media:title>
<media:description>China-made drywall could be leaching noxious gases into
homes.</media:description>
<media:keywords>drwall, toxic, china, building, house,
health</media:keywords>
<media:rating>nonadult</media:rating>
<media:thumbnail
url="http://a.abcnews.com/images/GMA/abc_gma_leamy_090324_mn.jpg"
width="320" height="240" />
<media:thumbnail
url="http://a.abcnews.com/images/GMA/abc_gma_leamy_090324_mc.jpg"
width="100" height="75" />
<media:thumbnail
url="http://a.abcnews.com/images/GMA/abc_gma_leamy_090324_mv.jpg"
width="264" height="198" />
<media:content url="http://video-cdn.abcnews.com/090324_gma_leamy.flv"
lang="en" width="424" height="318" type="video/x-flv" />
<media:category>Health</media:category>
/*********************PHP CODE EXAMPLE******************/
$cnt = count($xml->channel->item);
for($i=0; $i<$cnt; $i++)
{
$url = $xml->channel->item[$i]->link;
$title = $xml->channel->item[$i]->title;
$desc = $xml->channel->item[$i]->description;
$pubDate = $xml->channel->item[$i]->pubDate;
echo ' '.$url.' '.$title.' ';
echo "<br />";
echo $desc;
echo "<br />";
echo $pubDate;
echo "<br />";
echo "<br />";
}
--
View this message in context:
http://www.nabble.com/Simple-XML-in-PHP-tp22690831p22690831.html
Sent from the PHP - General mailing list archive at Nabble.com.
--- End Message ---
--- Begin Message ---
In this case "media" is a namespace, so is "live".
The XML should have some lines above the ones you posted defining those
namespaces.
Try something like this:
$simplexml = simplexml_load_string(...your entire xml...);
$url0 = $simplexml->xpath( '//media:content' );
$url = $url0[0]->attributes()->url;
$title = $simplexml->xpath( '//media:title' );
research simplexml, xpath, and namespaces.
Good Luck
--
View this message in context:
http://www.nabble.com/Simple-XML-in-PHP-tp22690831p22694472.html
Sent from the PHP - General mailing list archive at Nabble.com.
--- End Message ---
--- Begin Message ---
hi Johannes,
Fixed, thanks for the head up!
Cheers,
On Tue, Mar 24, 2009 at 11:02 PM, Johannes Mueller <[email protected]> wrote:
> Lukas Kahwe Smith wrote:
>
>> Windows binaries are available here:
>> http://windows.php.net/qa/
>
> The .ini files in the 5.3RC1-VC6-nts-package are empty. Can someone fix
> this?
>
> thanks for your hard work
> Johannes
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Pierre
http://blog.thepimp.net | http://www.libgd.org
--- End Message ---
--- Begin Message ---
As stated before, packet size not the problem, data is delivered
perfectly from MySQL.
Problem seems to be when the result string is diplayed.
I'll try to do a test with a numeric array:
$list = array(12300..12800); and see what happens.
regards,
Toke
Andrea Giammarchi skrev:
What about MySQL max_allowed_packet setting? is it bigger than produced string?
To: [email protected]
Date: Tue, 24 Mar 2009 15:23:20 +0100
From: [email protected]
Subject: Re: [PHP] Problems with implode
Per Jessen skrev:
Andrea Giammarchi wrote:
Dunno why you guys started talk about utf-8 problems, he has a list of
ids which should contain only unsigned integers, otherwise I do not
get how that query could work with an implode(',', $whatever)
Very good point - maybe the OP has not yet tested his code that far? Is
there a possibility that some of the id's are _not_ just plain integers
made up of 0-9?
/Per
And exatly the reason I tried the following:
$list[] = $row['uid'];
$list[] = intval($row['uid']);
$list[] = mb_convert_encoding($row['uid'], 'iso-8859-1');
$list[] = mb_convert_encoding(intval($row['uid']), 'iso-8859-1');
My best bet as for now:
It isn't implode there's the problem, but the length of the string
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/
--- End Message ---