<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.0.11" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: GCal.php - Google Calendar API in PHP</title>
	<link>http://www.philhord.com/phord/google-calendar-api-in-php/</link>
	<description>Hobbies, family, life, science</description>
	<pubDate>Thu, 20 Nov 2008 18:19:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.11</generator>

	<item>
		<title>by: George</title>
		<link>http://www.philhord.com/phord/google-calendar-api-in-php/#comment-91838</link>
		<pubDate>Fri, 08 Aug 2008 13:28:09 +0000</pubDate>
		<guid>http://www.philhord.com/phord/google-calendar-api-in-php/#comment-91838</guid>
					<description>Hi,

May be I'm stupid but tell me how to possible to add event to my calendar?
With the set of files I'm able&#62;
OK    * Read existing events (working OK)
OK    * Delete existing events (working OK, yeah it deleted all my entry)

But this is not working...
???    * Add events
???    * Alter events

kusamochi.phps   as example not working...how to get auth??

Thanks
George</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>May be I&#8217;m stupid but tell me how to possible to add event to my calendar?<br />
With the set of files I&#8217;m able&gt;<br />
OK    * Read existing events (working OK)<br />
OK    * Delete existing events (working OK, yeah it deleted all my entry)</p>
<p>But this is not working&#8230;<br />
???    * Add events<br />
???    * Alter events</p>
<p>kusamochi.phps   as example not working&#8230;how to get auth??</p>
<p>Thanks<br />
George
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Vipul Vora</title>
		<link>http://www.philhord.com/phord/google-calendar-api-in-php/#comment-4688</link>
		<pubDate>Sat, 14 Oct 2006 09:10:28 +0000</pubDate>
		<guid>http://www.philhord.com/phord/google-calendar-api-in-php/#comment-4688</guid>
					<description>Hi,

Is there a working Demo avaiable on any of your servers ? 
I would like to see the demo. I have been searching in google for PHP + Google Calendar Help but I haven;t found any success...


Regards
Vipul</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Is there a working Demo avaiable on any of your servers ?<br />
I would like to see the demo. I have been searching in google for PHP + Google Calendar Help but I haven;t found any success&#8230;</p>
<p>Regards<br />
Vipul
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Arroz</title>
		<link>http://www.philhord.com/phord/google-calendar-api-in-php/#comment-4078</link>
		<pubDate>Tue, 26 Sep 2006 14:53:06 +0000</pubDate>
		<guid>http://www.philhord.com/phord/google-calendar-api-in-php/#comment-4078</guid>
					<description>:)

i just had the same idea! time ago..

http://arrozconnori.net/gcalendar_gateway/</description>
		<content:encoded><![CDATA[<p>:)</p>
<p>i just had the same idea! time ago..</p>
<p><a href="http://arrozconnori.net/gcalendar_gateway/" rel="nofollow">http://arrozconnori.net/gcalendar_gateway/</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Francis</title>
		<link>http://www.philhord.com/phord/google-calendar-api-in-php/#comment-1678</link>
		<pubDate>Wed, 21 Jun 2006 03:25:13 +0000</pubDate>
		<guid>http://www.philhord.com/phord/google-calendar-api-in-php/#comment-1678</guid>
					<description>For all those of you looking for : How to get the Auth token , Create an event and Get Events using PHP and fsockopen have a look at  &lt;a href="http://francis.byethost22.com/googlecalendar/googlecal.html" rel="nofollow"&gt; google PHP&lt;/a&gt;
Cheers,
Francis</description>
		<content:encoded><![CDATA[<p>For all those of you looking for : How to get the Auth token , Create an event and Get Events using PHP and fsockopen have a look at  <a href="http://francis.byethost22.com/googlecalendar/googlecal.html" rel="nofollow"> google PHP</a><br />
Cheers,<br />
Francis
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Romain</title>
		<link>http://www.philhord.com/phord/google-calendar-api-in-php/#comment-1560</link>
		<pubDate>Sun, 11 Jun 2006 20:48:29 +0000</pubDate>
		<guid>http://www.philhord.com/phord/google-calendar-api-in-php/#comment-1560</guid>
					<description>Thanks for your ode, it has helped me a lot...</description>
		<content:encoded><![CDATA[<p>Thanks for your ode, it has helped me a lot&#8230;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: kusamochi</title>
		<link>http://www.philhord.com/phord/google-calendar-api-in-php/#comment-1318</link>
		<pubDate>Wed, 24 May 2006 09:55:19 +0000</pubDate>
		<guid>http://www.philhord.com/phord/google-calendar-api-in-php/#comment-1318</guid>
					<description>Dear phil,

     I guess u might already done it, but here is a working code extended from yours. I really need to thank you for the brilliant ideas :)

cheers
Alan

";

//with help from google forum.

$host="66.102.7.99";
$method="post";
$path="/calendar/feeds/default/private/full";
$data="  Tennis with Beth Meet for a
quick lesson.  Jo
Marchj...@gmail.com  
 
  ";

    $method = strtoupper($method);
    $fp = fsockopen('ssl://'.$host,443);
    fputs($fp,"$method $path HTTP/1.1\r\n");
    fputs($fp,"Content-Type: application/atom+xml\r\n");
    fputs($fp,"Authorization: GoogleLogin auth=$auth\r\n");
    fputs($fp, "Content-Length: " . strlen($data) . "\r\n");
    fputs($fp, "Connection: Close\r\n\r\n");
    fputs($fp, $data);
    while (!feof($fp)) {
        $buf .=fgets($fp);
        }
        fclose($fp);

    //get session_id
    $session_array=explode("?gsessionid=",$buf);
    $session_array=explode("Cache",$session_array[1]);
    $sessionid=$session_array[0];

    //post xml
    echo $path="/calendar/feeds/default/private/full".$sessionid;
    $fp = fsockopen('ssl://'.$host,443);
    fputs($fp,"$method $path HTTP/1.1\r\n");
    fputs($fp,"Content-Type: application/atom+xml\r\n");
    fputs($fp,"Authorization: GoogleLogin auth=$auth\r\n");
    fputs($fp, "Content-Length: ".strlen($data)."\r\n");
    fputs($fp, "Connection: Close\r\n\r\n");
    fputs($fp, $data);
        while (!feof($fp)) {
        $buf .=fgets($fp);
        }
    fclose($fp);
    print $buf;
?&#62;</description>
		<content:encoded><![CDATA[<p>Dear phil,</p>
<p>     I guess u might already done it, but here is a working code extended from yours. I really need to thank you for the brilliant ideas <img src='http://www.philhord.com/phord/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>cheers<br />
Alan</p>
<p>&#8220;;</p>
<p>//with help from google forum.</p>
<p>$host=&#8221;66.102.7.99&#8243;;<br />
$method=&#8221;post&#8221;;<br />
$path=&#8221;/calendar/feeds/default/private/full&#8221;;<br />
$data=&#8221;  Tennis with Beth Meet for a<br />
quick lesson.  Jo<br />
Marchj&#8230;@gmail.com  </p>
<p>  &#8220;;</p>
<p>    $method = strtoupper($method);<br />
    $fp = fsockopen(&#8217;ssl://&#8217;.$host,443);<br />
    fputs($fp,&#8221;$method $path HTTP/1.1\r\n&#8221;);<br />
    fputs($fp,&#8221;Content-Type: application/atom+xml\r\n&#8221;);<br />
    fputs($fp,&#8221;Authorization: GoogleLogin auth=$auth\r\n&#8221;);<br />
    fputs($fp, &#8220;Content-Length: &#8221; . strlen($data) . &#8220;\r\n&#8221;);<br />
    fputs($fp, &#8220;Connection: Close\r\n\r\n&#8221;);<br />
    fputs($fp, $data);<br />
    while (!feof($fp)) {<br />
        $buf .=fgets($fp);<br />
        }<br />
        fclose($fp);</p>
<p>    //get session_id<br />
    $session_array=explode(&#8221;?gsessionid=&#8221;,$buf);<br />
    $session_array=explode(&#8221;Cache&#8221;,$session_array[1]);<br />
    $sessionid=$session_array[0];</p>
<p>    //post xml<br />
    echo $path=&#8221;/calendar/feeds/default/private/full&#8221;.$sessionid;<br />
    $fp = fsockopen(&#8217;ssl://&#8217;.$host,443);<br />
    fputs($fp,&#8221;$method $path HTTP/1.1\r\n&#8221;);<br />
    fputs($fp,&#8221;Content-Type: application/atom+xml\r\n&#8221;);<br />
    fputs($fp,&#8221;Authorization: GoogleLogin auth=$auth\r\n&#8221;);<br />
    fputs($fp, &#8220;Content-Length: &#8220;.strlen($data).&#8221;\r\n&#8221;);<br />
    fputs($fp, &#8220;Connection: Close\r\n\r\n&#8221;);<br />
    fputs($fp, $data);<br />
        while (!feof($fp)) {<br />
        $buf .=fgets($fp);<br />
        }<br />
    fclose($fp);<br />
    print $buf;<br />
?&gt;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: kusamochi</title>
		<link>http://www.philhord.com/phord/google-calendar-api-in-php/#comment-1270</link>
		<pubDate>Fri, 19 May 2006 14:18:52 +0000</pubDate>
		<guid>http://www.philhord.com/phord/google-calendar-api-in-php/#comment-1270</guid>
					<description>hey Phord, I took a look at your code, it is brilliant ! 
Because I am using windows based php, so I did the dll update as you do.

there is already a code for php to add event to Google calendar, but it works on *nix systems only because curl won't allow https on windows build even had the dll updated. so your code is the way to go!!

I wish you can do some more development on it, as I am currently also working on the same area with another script that combine with yours to make the add event works under windows build php.</description>
		<content:encoded><![CDATA[<p>hey Phord, I took a look at your code, it is brilliant !<br />
Because I am using windows based php, so I did the dll update as you do.</p>
<p>there is already a code for php to add event to Google calendar, but it works on *nix systems only because curl won&#8217;t allow https on windows build even had the dll updated. so your code is the way to go!!</p>
<p>I wish you can do some more development on it, as I am currently also working on the same area with another script that combine with yours to make the add event works under windows build php.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: tim</title>
		<link>http://www.philhord.com/phord/google-calendar-api-in-php/#comment-1220</link>
		<pubDate>Sun, 14 May 2006 07:04:30 +0000</pubDate>
		<guid>http://www.philhord.com/phord/google-calendar-api-in-php/#comment-1220</guid>
					<description>You the man.  I'll take a look.</description>
		<content:encoded><![CDATA[<p>You the man.  I&#8217;ll take a look.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
