<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.php.general">
    <title>gmane.comp.php.general</title>
    <link>http://blog.gmane.org/gmane.comp.php.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/226042"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/226040"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/226032"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/226017"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/226012"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/225992"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/225986"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/225968"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/225966"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/225956"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/225951"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/225944"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/225938"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/225917"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/225912"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/225909"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/225902"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/225894"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/225890"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.general/225884"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/226042">
    <title>What is The best way/tool for debuging PHP?</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/226042</link>
    <description>&lt;pre&gt;Hello,

I'm new to this list, and this is the first time ever I send a message to
you.

I'm learning PHP since a couple of months, and I really wanna be a good PHP
programer, and I know that I should work hard for that.

Now, I just wanted to know what is the best way or tool for debuging PHP.

I have googled for this many many times, and found a lot of these stuff,
but I didn't figure out which one is really the best.

in fact, I don't care whether it's an easy way or hard way, all what I want
is to know what is the best and preferred way or tool.

Wish you all the best!
&lt;/pre&gt;</description>
    <dc:creator>LEOPARD Corporation</dc:creator>
    <dc:date>2012-05-26T14:40:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/226040">
    <title>Setting allow_url_fopen</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/226040</link>
    <description>&lt;pre&gt;-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
  php 5.2.2

  I have need of a remote procedure call the requires
"allow_url_fopen" to be enabled. The remote call works fine on my test
system which does have allow_url_fopen enabled.
  So I thought, "This is a job for ini_set()." It did not work. :-(
  $oldval = ini_set("allow_url_fopen", 1);
  The remote call is made after the above statement. Clearly there is
more to it than I expected.
  What is the correct way to allow URL fopen on the fly?

- -- 
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/Ag00ACgkQzTcr8Prq0ZNpqACgsPg1UcmiXcxxWYhvl0XaUi7N
KDMAn29qcLCYdVDGWWYGTqZhToRtJRfA
=gnCT
-----END PGP SIGNATURE-----

&lt;/pre&gt;</description>
    <dc:creator>James Moe</dc:creator>
    <dc:date>2012-05-26T07:16:30</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/226032">
    <title>Simple XML, (x)html, and xpath</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/226032</link>
    <description>&lt;pre&gt;If I use simplexml_load_string to create an XML object with the
following XHTML
,----
| &amp;lt;?xml version="1.0"?&amp;gt;
| &amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
| "http://www.w3.org/TR/
| xhtml1/DTD/xhtml1-strict.dtd"&amp;gt;
| &amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
| &amp;lt;head&amp;gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
| /&amp;gt;
| &amp;lt;title&amp;gt;test title&amp;lt;/title&amp;gt;
| &amp;lt;/head&amp;gt;
| &amp;lt;body&amp;gt;
| &amp;lt;!-- comment --&amp;gt;
| &amp;lt;/body&amp;gt;
| &amp;lt;/html&amp;gt;
`----

I get this SimpleXMLElement back
,----
| object(SimpleXMLElement)#1 (2) {
|   ["head"]=&amp;gt;
|   object(SimpleXMLElement)#2 (1) {
|     ["title"]=&amp;gt;
|     string(10) "test title"
|   }
|   ["body"]=&amp;gt;
|   object(SimpleXMLElement)#3 (1) {
|     ["comment"]=&amp;gt;
|     object(SimpleXMLElement)#4 (0) {
|     }
|   }
| }
`----

but I cannot seem to get anything out of an xpath expression, no matter
what I try.

If, however, I remove the 'xmlns="http://www.w3.org/1999/xhtml"' in the
html element, it works fine. So yeah, I can just remove that text,
but... is there something wrong here, in my expectation or in the xpath
function?

TIA.

&lt;/pre&gt;</description>
    <dc:creator>Gary</dc:creator>
    <dc:date>2012-05-25T07:57:25</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/226017">
    <title>Cookie use management</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/226017</link>
    <description>&lt;pre&gt;Not directly a PHP problem, but since PHP tends to automatically create a 
session cookie I thought it appropriate to ask here first.

The European rules on asking permission to use cookies have been around for a 
year now, and very few sites seem to be worrying about it until now, but press 
coverage is flagging that the ICO in the UK will start 'prosecuting' next week. 
Not exactly what the ICO are saying themselves, as they would prefer that the 
BROWSERS defaulted to cookies being blocked generally, so every cookie action 
requires approval locally anyway. Session cookies could be claimed to be exempt, 
but with the increasing hidden use of Google Analytics or in my case Piwik, WE 
become responsible or all that activity and so a few 'commercial' sites are 
appearing offering chargeable services to manage this for you.

I've been trying to dig down through the google results to find anything open 
source that provides something easily bolted on to existing PHP sites to 
intercept cookie use before it actually happens. My reading of the rules would 
suggest that simply adding a session cookie is acceptable as long as the site 
identifies they are being used, but until there is some 'case law', actually 
practice is very grey? Pop-up is obviously out of the question since that can be 
blocked, and even javascript could be blocked so what can be relied on to 
'Obtain permission before using a cookie'?

&lt;/pre&gt;</description>
    <dc:creator>Lester Caine</dc:creator>
    <dc:date>2012-05-24T10:25:40</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/226012">
    <title>Need help on increment date</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/226012</link>
    <description>&lt;pre&gt;HI all

I need help to increment date in php. I found this code helpful

$date = strtotime("+1 day", strtotime("2007-02-28"));
But when My date is "2008-02-28" this code give output 2012-03-01. But it
should  be  2008-02-29. Where I am getting wrong.

----------------------------------------------------------
Dedicated Linux Forum in Bangladesh &amp;lt;http://goo.gl/238Ck&amp;gt;
2048R/89C932E1 &amp;lt;http://goo.gl/TkP5U&amp;gt;
Volunteer, FOSS Bangladesh &amp;lt;http://fossbd.org/&amp;gt; &amp;amp;&amp;amp; Mozilla
Reps&amp;lt;http://reps.mozilla.org&amp;gt;
01199151550
&lt;/pre&gt;</description>
    <dc:creator>Md Ashickur Rahman Noor</dc:creator>
    <dc:date>2012-05-24T07:18:16</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/225992">
    <title>openssl_sign() &amp; openssl_verify() discrepancy</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/225992</link>
    <description>&lt;pre&gt;I have run into a problem that I am altogether unfamiliar with.

A scenario. I retrieve a users private key from a database.

I then use the openssl_pkey_get_private() function to load it as a 
resource object and proceed to call the openssl_sign() function to 
obtain a digital signature of a string.

No problem, I get a valid signature which I then base64 encode and store 
in a database.

Now lets say a couple of days from now I load up the public key which 
corresponds to the private key which was used to originally sign the 
data to verify it and it does not work.

The kicker is if I perform the very same routine without saving the 
signature and attempting to verify it it works without problems.

Example script:

/* this part works */
$id = openssl_pkey_get_private($key, $pass);
openssl_sign($unsigned, $signed, $id);

$id = openssl_pkey_get_public($pub);
openssl_verify($unsigned, $signed, $id);

/* this doesn't (here I use the existing signature instead of generating 
a new one) */
$id = openssl_pkey_get_public($pub);
openssl_verify($unsigned, $signature, $id);

/* below here is all of the existing variables the above uses */

$unsigned = 
"w9A5Tt8JA/GVBn89WwpvXnnVsHvyWbEDu5GdX36m+ZQ=:ek4L55qc/VKAmiYdlIQhow==:ek4L55qc/VKAmiYdlIQhow==:6IraS+ArqK+/Yc472tfFqmhk5VdIACUQPCR7+kbLoAEldjejS/P1cSa8EMHxcV2s:50dt57IoKeQZ7eiwoILMR3E91MtbCgt+xVn483+9J1cNzBQGll02Qj40RVhNM/Rh:qEFBUlZzNYZNb7nksj8Fhd8Du52RVDjMBwoT/O0tdzKGfGVOeK2xrpuq1OdoAo2CN63U+Fra4zcfkzwkD3QxDA==:1337713224"

$pass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/9OiKGyOPiXPwzXcXR/evC6TFeIA07/8018PRjdjefZV26c4
M4g=
-----END ENCRYPTED PRIVATE KEY-----";

$pub = "-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyEFetjn8mpkqHTgtKATK
Gu7dgG6UXHD+Ft8UO6WoWgVGhnjgk+SlNI+4RG9BvCaG4jbPueu4nb15oO4aObQg
RXZ7el2gjgEYu90qRILsDSzouoGFc/qPe6tNOUZ/ZXR3kBTm9t3CAW4bNDsnfUnP
YFQVdFco03Pbz8vejc0SVSC8l2lw+ZSkMYDzDmhv09Uk1zh1kc/ACOU0AoofEaUM
2eyekwcQiVwzKksGjW70eOuI2QtgpIwuvQSS/BAcymYKkxJZVxUMPCwdBwY+Pyo+
+lD4yGeki0E7x72uQy0bzulxa6iXhQOYFQEcShxyJEF6YN/R/XSIQBLTi9biWvGg
6QIDAQAB
-----END PUBLIC KEY-----";



&lt;/pre&gt;</description>
    <dc:creator>jas</dc:creator>
    <dc:date>2012-05-23T18:29:57</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/225986">
    <title>Function size</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/225986</link>
    <description>&lt;pre&gt;Hi gang:

On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote:

You hit upon a theory of mine -- and that is our functions grow in size up to our ability to view them in their totality. When our functions get beyond that limit, we tend to refactor and reduce.

I know from the last several decades of programming, my functions have increased in number of lines. But, they have reached a limit that limit is generally about the number of lines I can read in half of my monitor's height. This of course, is dependent on monitor resolution, font-size, and how far I am sitting from the monitor. But I think this is a natural and physical limit that we don't normally recognize. I can cite studies that support my theory.

It would be an interesting survey to ask programmers to review their code and provide the average number of lines in their functions AND how many lines of code their monitor's can display. In other words, look at your editor; count the number of lines your monitor can display; estimate the number of lines in your average function; and report the findings.  For example, mine is about half -- my monitor can display 55 lines of code and my average function is around 25 lines. YMMV.

Interesting, yes?

Cheers,

tedd


_____________________
tedd.sperling&amp;lt; at &amp;gt;gmail.com
http://sperling.com






&lt;/pre&gt;</description>
    <dc:creator>Tedd Sperling</dc:creator>
    <dc:date>2012-05-23T14:14:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/225968">
    <title>How to handle E_ERROR,E_PARSE with a user defined function</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/225968</link>
    <description>&lt;pre&gt;Hi all,

How to handle E_ERROR,E_PARSE with a user defined function ?

&lt;/pre&gt;</description>
    <dc:creator>Yuchen Wang</dc:creator>
    <dc:date>2012-05-23T02:19:21</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/225966">
    <title>Differences between PHP on LAMP and PHP on Windows Servers</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/225966</link>
    <description>&lt;pre&gt;Can anyone tell me what differences I might encounter by working with PHP on a Unix server verses working with PHP on a Windows server. We use Windows production servers here but many of us would like to get more LAMP environments.

So, I'm wondering if I can use the hive mind here to get a sense of the pros and cons of each platform.

Thanks.

Jeff

&lt;/pre&gt;</description>
    <dc:creator>Gates, Jeff</dc:creator>
    <dc:date>2012-05-22T18:15:11</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/225956">
    <title>[missing] images .htaccess</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/225956</link>
    <description>&lt;pre&gt;Hi there

how I can ignore [missing]  images and other files completely in .htaccess
 from being processed by the index.php file



RewriteRule .* index.php [L]

the CMS itself gives 404 error page for unknown request

thanks in advance
&lt;/pre&gt;</description>
    <dc:creator>muad shibani</dc:creator>
    <dc:date>2012-05-21T15:55:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/225951">
    <title>requesting comments on rajmvServiceLog (access + error logging through PHP and JS to MySQL)</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/225951</link>
    <description>&lt;pre&gt;Hi.

I wasn't happy with the fact that Google Analytics doesn't record many
of the hits on my sites, so I decided to roll my own analytics
software, and opensource it.
It's now in a state where I can request early comments.
You can view a demo at http://mediabeez.ws/stats (under construction,
may fail at times) (browser compatibility may be an issue, I built it
with chrome, should work in firefox too, but won't (ever) in IE.)
If you click on the graph while the details for a given day are
visible, you will see the errors for that day in a DIV below the
graph.

Normally you'd hide the error details and $hits for anyone's who's not
registred as a developer, of course. I've turned it on for all at the
moment, so you can comment on that feature and review my results array
$hits.

I've opted, for simplicity of design, to store all settings I thought
could be remotely interesting in a mysql db (see attached sql init
file) (which is filled from PHP every time a page is delivered, and
again from JS when the page has initialized fully, or does a HTML5
History API location.href change), and then use PHP to retrieve all
rows for a given datetime-range, and do the totals calculations in a
php loop.
I'm only keeping 1 row from the db in memory at any given time, but
I'm building up a large deep array with the totals information in the
php loop that goes over the rows.
I'm wondering if this is a good approach, though. Maybe I should let
the totals be calculated by the mysql server instead.

I was thinking to let the totals calculations stay in php, and be
executed from a cron job every hour. Only for the current month would
you need to re-calculate every hour.
I haven't figured out yet how to for instance only re-calculate the
last hour, store results per hour, and then calculate the day and
month totals from that "hourly cache" data when needed.
I don't have a clue about how big companies do their totals
calculations (for sites that get way more hits than mine, which is
something i'd like to be able to support with my own analytics code),
and would like to know how big companies do this.

I've included the relevant draft code as attachment files to this
mail, for your review. Please let me know if I have forgotten to
include relevant code..

As always, thanks for your time,
 Rene
&lt;/pre&gt;</description>
    <dc:creator>rene7705</dc:creator>
    <dc:date>2012-05-21T10:46:51</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/225944">
    <title>errors not showing</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/225944</link>
    <description>&lt;pre&gt;hello, list!

I have 'error_reporting = E_ALL' set in my php.ini file. However when
I run a php script that has errors in it all that happens is that the
page WSODs. I am running Mac OS X 10.6. Any thoughts on why errors
don't show up in the browser and how to correct this?


Thanks
Tim

&lt;/pre&gt;</description>
    <dc:creator>Tim Dunphy</dc:creator>
    <dc:date>2012-05-20T03:55:50</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/225938">
    <title>Bust out a PDF via the print stylesheet?</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/225938</link>
    <description>&lt;pre&gt;Hey all -

The articles on my web site already have a very nice stylesheet that produces a print version. Does anyone know if there's a such a thing as a PHP class that would let me put up a "Download PDF" link that would generate a PDF doc on the fly, using that same stylesheet? I've used various PHP PDF classes before, but I'd rather see if I can shortcut this rather than assembling the doc from scratch.

- Brian
&lt;/pre&gt;</description>
    <dc:creator>Brian Dunning</dc:creator>
    <dc:date>2012-05-18T16:34:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/225917">
    <title>regexp novice</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/225917</link>
    <description>&lt;pre&gt;ok - finally had to come up with my own regexp - and am failing.

Trying to validate an input of a time value in the format hh:mm, wherein 
I'll accept anything like the following:
hmm
hhmm
h:mm
hh:mm

in a 12 hour format.  My problem is my test is ok'ing an input of 1300.

Here is my test:

 if (0 == preg_match("/([0][1-9]|[1][0-2]|[1-9]):[0-5][0-9]/",$t))
    return true;
else
    return false;

Can someone help me correct my regexp? 



&lt;/pre&gt;</description>
    <dc:creator>Jim Giner</dc:creator>
    <dc:date>2012-05-17T20:37:12</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/225912">
    <title>Bug in DOMDocument schemaValidate() function?</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/225912</link>
    <description>&lt;pre&gt;Hello,

I am validating user DOM against schema files using the following piece of code:

$valid = &amp;lt; at &amp;gt;$doc-&amp;gt;schemaValidate($xsdFile);

where $doc is of type DOMDocument and $xsdFile is the file location of the XSD file.

Everything worked fine until the following validation occured:

A validation of a XML against the SRW/U schema (http://www.loc.gov/standards/sru/sru1-1archive/xml-files/srw-types.xsd) 
failed.

Here is the XML:

-----------------------------------------------------
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;srw:explainResponse xmlns:srw="http://www.loc.gov/zing/srw/" xmlns:zr="http://explain.z3950.org/dtd/2.0/"&amp;gt;
   &amp;lt;srw:version&amp;gt;1.1&amp;lt;/srw:version&amp;gt;
   &amp;lt;srw:record&amp;gt;
     &amp;lt;srw:recordSchema&amp;gt;http://explain.z3950.org/dtd/2.0/&amp;lt;/srw:recordSchema&amp;gt;
     &amp;lt;srw:recordPacking&amp;gt;XML&amp;lt;/srw:recordPacking&amp;gt;
     &amp;lt;srw:recordData&amp;gt;
       &amp;lt;zr:explain&amp;gt;
         &amp;lt;zr:serverInfo wsdl="http://myserver.com/db" protocol="SRU" version="1.1"&amp;gt;
           &amp;lt;host&amp;gt;myserver.com&amp;lt;/host&amp;gt;
           &amp;lt;port&amp;gt;80&amp;lt;/port&amp;gt;
           &amp;lt;database&amp;gt;sru&amp;lt;/database&amp;gt;
         &amp;lt;/zr:serverInfo&amp;gt;
         &amp;lt;zr:databaseInfo&amp;gt;
           &amp;lt;title lang="en" primary="true"&amp;gt;SRU Test Database&amp;lt;/title&amp;gt;
           &amp;lt;description lang="en" primary="true"&amp;gt; My server SRU Test Database&amp;lt;/description&amp;gt;
         &amp;lt;/zr:databaseInfo&amp;gt;
         &amp;lt;zr:metaInfo&amp;gt;
           &amp;lt;dateModified&amp;gt;27-11-2003&amp;lt;/dateModified&amp;gt;
         &amp;lt;/zr:metaInfo&amp;gt;
       &amp;lt;/zr:explain&amp;gt;
     &amp;lt;/srw:recordData&amp;gt;
   &amp;lt;/srw:record&amp;gt;
&amp;lt;/srw:explainResponse&amp;gt;
-----------------------------------------------------

This XML is valid. However, I keep getting the following libxml error:

object(LibXMLError)#192 (6) {
     ["level"]=&amp;gt;
     int(2)
     ["code"]=&amp;gt;
     int(1871)
     ["column"]=&amp;gt;
     int(0)
     ["message"]=&amp;gt;
     string(133) "Element '{http://www.loc.gov/zing/srw/}record': This element is not expected. Expected is ( 
{http://www.loc.gov/zing/srw/}version ).
"
     ["file"]=&amp;gt;
     string(0) ""
     ["line"]=&amp;gt;
     int(0)
}

I think, the validator is unable to handle the xsd:extension part of the schema:

&amp;lt;xsd:complexType name="explainResponseType"&amp;gt;
   &amp;lt;xsd:complexContent&amp;gt;
     &amp;lt;xsd:extension base="responseType"&amp;gt;
       &amp;lt;xsd:sequence&amp;gt;&amp;lt;xsd:element ref="record"/&amp;gt;
         &amp;lt;xsd:element ref="echoedExplainRequest" minOccurs="0"/&amp;gt;
         &amp;lt;xsd:element ref="diagnostics" minOccurs="0"/&amp;gt;
         &amp;lt;xsd:element ref="extraResponseData" minOccurs="0"/&amp;gt;
       &amp;lt;/xsd:sequence&amp;gt;
     &amp;lt;/xsd:extension&amp;gt;
   &amp;lt;/xsd:complexContent&amp;gt;
&amp;lt;/xsd:complexType&amp;gt;

The version-element exists and is at the right place. If I add another version-element after the first one, it complains 
about expecting a record-element instead, which is correct. But it is not correct to expect another version-element 
after the already existing one.

Is this a bug? Or did I made a mistake somewhere and I am not able to see it right now?


Thank you for any help!

Best regards,
Marko


-------------------------------------------------------

Fachinformationszentrum Karlsruhe, Gesellschaft für wissenschaftlich-technische Information mbH. 
Sitz der Gesellschaft: Eggenstein-Leopoldshafen, Amtsgericht Mannheim HRB 101892. 
Geschäftsführerin: Sabine Brünger-Weilandt. 
Vorsitzender des Aufsichtsrats: MinDirig Dr. Thomas Greiner.



&lt;/pre&gt;</description>
    <dc:creator>Voß, Marko</dc:creator>
    <dc:date>2012-05-14T11:39:13</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/225909">
    <title>looking for some PECL PHP GTK tutorial</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/225909</link>
    <description>&lt;pre&gt;Hi all

As PHP-GTK has "moved" to the PECL, I suppose several part of this 
documentation are not relevent anymore: 
http://gtk.php.net/manual/en/tutorials.installation.linux.php

Would you know a place where I could find some way to work with it?

Thank you!


&lt;/pre&gt;</description>
    <dc:creator>Mihamina Rakotomandimby</dc:creator>
    <dc:date>2012-05-14T05:05:15</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/225902">
    <title>Time out issue</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/225902</link>
    <description>&lt;pre&gt;I am running Windows 2008 R2, IIS 7

I am running into an issue where no matter what I set the script  time out
to be the server is 

Giving me a 500 error  after like 60 seconds when the process exceeds the
configured activity timeout.

 

Here is the example script

&amp;lt;?

set_time_limit(120);

sleep(100);

Echo "PASSED THE TIME OUT";

?&amp;gt;

 

I fully understand this may not be a PHP error but if anyone has ran into
this issue with a windows server and 

can explain in detail how I can adjust the timeout, I would be very
grateful. 

Everything I have read online points to a fcgiext.ini file that does not
exist on my server.

 

Anyone know how to help ?

&lt;/pre&gt;</description>
    <dc:creator>admin</dc:creator>
    <dc:date>2012-05-12T19:42:20</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/225894">
    <title>SOLVED: [PHP] alias address in REMOTE_ADDR</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/225894</link>
    <description>&lt;pre&gt;Hi,

shiplu and Jim, many thanks for the hints, I solved it; wasn't related to PHP, but I will write it down so if others search for this problem, at least they will have one solution that worked. 

Jim: the Apache was configured to listen on all interfaces - I had to, because I have multiple SSL-enabled hosts with different keys

shiplu: it was the metric! Only problem, because these are alias interfaces, a simple ifmetric doesn't cut it:
#~ ifmetric eth0:1 20
SIOCSIFMETRIC: operation not supported
So I had to disable the alias interfaces with ifconfig down, the re-enable them; after that, add the gateways like this:
#~ route add default gw &amp;lt;GATEWAYIP&amp;gt; metric 10
so now my routing table has a metric 0 gateway for eth0, and a metric 10 for both aliases.

Many thanks again, and have a nice weekend!

Regards,
Csaba


On Fri, 11 May 2012 23:54:56 -0700, Jim Lucas wrote:
 ...


&lt;/pre&gt;</description>
    <dc:creator>Tóth Csaba </dc:creator>
    <dc:date>2012-05-12T08:22:33</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/225890">
    <title>alias address in REMOTE_ADDR</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/225890</link>
    <description>&lt;pre&gt;Hi Everyone,

I've run into a curious problem, not even really sure it's PHP, but that's where 
I caught it, so here it is:

I have two servers hanging on the net, without proxies. Let's call them Server1
and Server2. Server1 has multiple IP addresses, configured as aliases. My problem:
When I do a wget --spider from 1 to 2, I get the eth0 (not alias) address in 
Apache's accesslog on Server2. But when I do a file_get_contents(http://server2.tld),
and observe the $_SERVER['REMOTE_ADDR'] on Server2, I get one of the alias IP addresses 
back. What can cause this? I really need the eth0 IP address back in REMOTE_ADDR.

Regards,
Csaba

&lt;/pre&gt;</description>
    <dc:creator>Tóth Csaba </dc:creator>
    <dc:date>2012-05-12T05:57:19</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/225884">
    <title>Variables via url</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/225884</link>
    <description>&lt;pre&gt;
     Can someone point me at examples or directions on how I can pass a 
variable via a URL in the following way:

     http://server.domain.com//script///variable/

     I will only be passing one single /variable/.  And I want the 
/script/ to use that.

     I don't want to see what the script is, for example I don't want it 
to say 'script.php' or 'script.html' ...

     Is this possible through PHP only, or do I have to write a rewrite 
directive in Apache to accomplish this?
&lt;/pre&gt;</description>
    <dc:creator>Ashley M. Kirchner</dc:creator>
    <dc:date>2012-05-11T23:15:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.general/225883">
    <title>Converting date string to unix timestamp</title>
    <link>http://comments.gmane.org/gmane.comp.php.general/225883</link>
    <description>&lt;pre&gt;Hello everyone,
Got a quick one (I hope), and probably an easy one.
For some reason it is eluding me at the moment.
Hoping someone can help.

I am building an ics file with PHP and the form that is submitting to  
create this ics file has a jQuery date picker on it.
The date furnished comes to me like this "Saturday, January 1, 2012",  
and a time furnished like "4:20 pm" with no seconds.

Now for the ics file, I need the date/time combo to be..

Ymd\THis\Z  or in the case of the above date and time, 20120101T042000Z

Here is the block of code that I am using for this.

CODE [
...
}
else {
$dt_start = $_POST["field20"] ? $_POST["field20"] :  
$_POST["field21"];  //Saturday, January 1, 2012
$dt_end = $_POST["field22"]; //Saturday, January 1, 2012
$t_start = $_POST["field24"]; //4:20 pm
$t_end = $_POST["field25"];  //5:55 pm
//date_default_timezone_set('UTC');
try {
$start_DT = new DateTime($dt_start . " " . $t_start);
$st_date_fmt = new DateTime($start_DT-&amp;gt;format("l, F d, Y\TH:ia T"));
//$startdate_stamp = strtotime($st_date_fmt);
$startdate = $st_date_fmt-&amp;gt;format('U');
//$startdate = date('Ymd\THis\Z', $startdate_stamp);
}
catch (Exception $e) {
trigger_error("startdate error: " . $e-&amp;gt;getMessage(), E_USER_ERROR);
exit(1);
}
try {
if(empty($dt_end)) {
$enddate = $startdate + (60 * 60); //If no end date provided,  
enddate is 1 hour after startdate.
} else {
$end_DT = new DateTime($dt_end . " " . $t_end);
$end_date_fmt = new DateTime($end_DT-&amp;gt;format("l, F d, Y\TH:ia T"));
//$enddate_stamp = strtotime($end_date_fmt);
$enddate = $end_date_fmt-&amp;gt;format('U');
//$enddate = date('Ymd\THis\Z', $enddate_stamp);
}
}
catch (Exception $e) {
trigger_error("enddate error: " . $e-&amp;gt;getMessage(), E_USER_ERROR);
exit(1);
}
$stampnow = date('Ymd\THis\Z', time());
//$datestampnow = strtotime($stampnow);
}
...
]

I have a feeling I am mixing something up on my own, but I have been  
staring at this code to long to see it.
Can anyone help me please? Like I said, this is probably an easy one.

TIA!!

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com

&lt;/pre&gt;</description>
    <dc:creator>Karl DeSaulniers</dc:creator>
    <dc:date>2012-05-11T23:11:07</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.php.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.php.general</link>
  </textinput>
</rdf:RDF>

