<?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"
	>
<channel>
	<title>Comments on: Using PHP to FTP - 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>
	<pubDate>Wed, 27 Aug 2008 23:29:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.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-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 "load data infile" command, makes life a tad bit simpler :)</description>
		<content:encoded><![CDATA[<p>Nice script, pity I found this 2 days after writing my own :(, instead of doing an INSERT, you could use the &#8220;load data infile&#8221; 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-10767</link>
		<dc:creator>warren</dc:creator>
		<pubDate>Tue, 30 Nov 1999 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-10768</link>
		<dc:creator>Maurice</dc:creator>
		<pubDate>Tue, 30 Nov 1999 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-10766</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Tue, 30 Nov 1999 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'll have to try that too - see if it works. I have to say though - I'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'd be spending hours coding...</description>
		<content:encoded><![CDATA[<p>Cool - I&#8217;ll have to try that too - see if it works. I have to say though - I&#8217;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&#8217;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-10764</link>
		<dc:creator>Eivind Lie Nitter</dc:creator>
		<pubDate>Tue, 30 Nov 1999 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's ftp support, check out &lt;a href="http://pear.php.net/package/Net_FTP"&gt;PEAR Net_FTP&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>For recursive up/downloading and in general nice handling of PHP&#8217;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-10765</link>
		<dc:creator>James</dc:creator>
		<pubDate>Tue, 30 Nov 1999 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 ("$CSVFile","r");
&lt;/h3&gt;
use this (using vars from original code above)
&lt;h3&gt;
$handle = fopen("ftp://$ftp_username:$ftp_userpassword@$ftp_server/$server_file", "r");
&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 (&#8221;$CSVFile&#8221;,&#8221;r&#8221;);<br />
</h3>
<p>use this (using vars from original code above)</p>
<h3>
$handle = fopen(&#8221;ftp://$ftp_username:$ftp_userpassword@$ftp_server/$server_file&#8221;, &#8220;r&#8221;);<br />
</h3>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.267 seconds -->
