<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using PHP to FTP &#8211; and import a CSV file into a database</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2003/11/21/using-php-to-ftp-and-import-a-csv-file-into-a-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2003/11/21/using-php-to-ftp-and-import-a-csv-file-into-a-database/</link>
	<description></description>
	<lastBuildDate>Tue, 10 Jan 2012 01:21:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: dineshcooper</title>
		<link>http://www.scriptygoddess.com/archives/2003/11/21/using-php-to-ftp-and-import-a-csv-file-into-a-database/comment-page-1/#comment-19761</link>
		<dc:creator>dineshcooper</dc:creator>
		<pubDate>Wed, 30 Mar 2005 14:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/11/21/using-php-to-ftp-and-import-a-csv-file-into-a-database/#comment-19761</guid>
		<description>Nice script, pity I found this 2 days after writing my own :(, instead of doing an INSERT, you could use the &quot;load data infile&quot; command, makes life a tad bit simpler :)</description>
		<content:encoded><![CDATA[<p>Nice script, pity I found this 2 days after writing my own <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> , instead of doing an INSERT, you could use the &#034;load data infile&#034; command, makes life a tad bit simpler <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: warren</title>
		<link>http://www.scriptygoddess.com/archives/2003/11/21/using-php-to-ftp-and-import-a-csv-file-into-a-database/comment-page-1/#comment-10767</link>
		<dc:creator>warren</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/11/21/using-php-to-ftp-and-import-a-csv-file-into-a-database/#comment-10767</guid>
		<description>hello ppl i need 2 dpwnload a file wich is a php but i am using ftp could u tell me hoe it is done please.
thanks 
        Warren</description>
		<content:encoded><![CDATA[<p>hello ppl i need 2 dpwnload a file wich is a php but i am using ftp could u tell me hoe it is done please.<br />
thanks<br />
        Warren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maurice</title>
		<link>http://www.scriptygoddess.com/archives/2003/11/21/using-php-to-ftp-and-import-a-csv-file-into-a-database/comment-page-1/#comment-10768</link>
		<dc:creator>Maurice</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/11/21/using-php-to-ftp-and-import-a-csv-file-into-a-database/#comment-10768</guid>
		<description>Can I use that code to CHANGE a csv file, and then reupload it back to the server...?
</description>
		<content:encoded><![CDATA[<p>Can I use that code to CHANGE a csv file, and then reupload it back to the server&#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2003/11/21/using-php-to-ftp-and-import-a-csv-file-into-a-database/comment-page-1/#comment-10766</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/11/21/using-php-to-ftp-and-import-a-csv-file-into-a-database/#comment-10766</guid>
		<description>Cool - I&#039;ll have to try that too - see if it works. I have to say though - I&#039;m still impressed that PHP has FTP functions built right in. Here I thought that it was either going to be an impossible task - or that I&#039;d be spending hours coding...</description>
		<content:encoded><![CDATA[<p>Cool &#8211; I&#039;ll have to try that too &#8211; see if it works. I have to say though &#8211; I&#039;m still impressed that PHP has FTP functions built right in. Here I thought that it was either going to be an impossible task &#8211; or that I&#039;d be spending hours coding&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eivind Lie Nitter</title>
		<link>http://www.scriptygoddess.com/archives/2003/11/21/using-php-to-ftp-and-import-a-csv-file-into-a-database/comment-page-1/#comment-10764</link>
		<dc:creator>Eivind Lie Nitter</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/11/21/using-php-to-ftp-and-import-a-csv-file-into-a-database/#comment-10764</guid>
		<description>For recursive up/downloading and in general nice handling of PHP&#039;s ftp support, check out &lt;a href=&quot;http://pear.php.net/package/Net_FTP&quot;&gt;PEAR Net_FTP&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>For recursive up/downloading and in general nice handling of PHP&#039;s ftp support, check out <a href="http://pear.php.net/package/Net_FTP">PEAR Net_FTP</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.scriptygoddess.com/archives/2003/11/21/using-php-to-ftp-and-import-a-csv-file-into-a-database/comment-page-1/#comment-10765</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/11/21/using-php-to-ftp-and-import-a-csv-file-into-a-database/#comment-10765</guid>
		<description>Instead of copying the file locally, why not just open it an process it using fopen?  Instead of:
&lt;h3&gt;
$handle = fopen (&quot;$CSVFile&quot;,&quot;r&quot;);
&lt;/h3&gt;
use this (using vars from original code above)
&lt;h3&gt;
$handle = fopen(&quot;ftp://$ftp_username:$ftp_userpassword@$ftp_server/$server_file&quot;, &quot;r&quot;);
&lt;/h3&gt;</description>
		<content:encoded><![CDATA[<p>Instead of copying the file locally, why not just open it an process it using fopen?  Instead of:</p>
<h3>
$handle = fopen (&#034;$CSVFile&#034;,&#034;r&#034;);<br />
</h3>
<p>use this (using vars from original code above)</p>
<h3>
$handle = fopen(&#034;ftp://$ftp_username:$ftp_userpassword@$ftp_server/$server_file&#034;, &#034;r&#034;);<br />
</h3>
]]></content:encoded>
	</item>
</channel>
</rss>

