<?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,&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 act&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&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 o&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&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;/d&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"));
//$startda&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>

