<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV></DIV>
<DIV>If the real point is proof-of-concept that Drupal can handle this, then just copy the table into the Drupal database where you can access it like any other table. You can easily explain that it is not up-to-date at the moment because you are still in test. &nbsp;As&nbsp;the testing goes on, it can be refreshed at any point with a simple export/import. If you get a go-ahead nod, then import it one last time and turn the old application off.<BR>&nbsp;</DIV>
<P><FONT face="bookman old style, new york, times, serif" color=#ff007f size=4><EM><STRONG>Nancy</STRONG></EM></FONT></P>
<P>&nbsp;</P>
<P><FONT face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</FONT></P>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Christopher M. Jones &lt;cjones@partialflow.com&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> consulting@drupal.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wed, November 17, 2010 11:04:16 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [consulting] Approaches for retrieving external site's data<BR></FONT><BR>Don't use FeedAPI, if you choose to go the feeds route. Use Feeds, its <BR>successor. This opens up a whole new line of possibilities for you, as <BR>you can combine Feeds.module with Data.module. Feeds.module will import <BR>your data into custom tables. Data.module will surface those tables and <BR>expose the data to views.<BR><BR>Whatever you do, I wouldn't mess with the external database connection. <BR>Aside from the security risk, it could be very messy.<BR><BR>Yet another alternative would be to implement an XMLRPC webservice on <BR>your non Drupal
 site and let Drupal consume it. This would provide the <BR>ability for authentication. (Drupal does not, to my knowledge, have any <BR>ability to handle password protected feeds. Someone correct me if I'm <BR>wrong).<BR><BR>On 11/17/2010 06:12 AM, Victor Kane wrote:<BR>&gt; The migrate module http://drupal.org/project/migrate was designed for<BR>&gt; this kind of problem and is a joy to work with. Depends on a few other<BR>&gt; modules, but one of the end results is that if you can get it onto a<BR>&gt; MySql database, you can work to get views going with it! Etc. etc.<BR>&gt;<BR>&gt; Victor Kane<BR>&gt; http://awebfactory.com.ar<BR>&gt;<BR>&gt; 2010/11/17 Alfonso Montero López &lt;<A href="mailto:amontero@tinet.org" ymailto="mailto:amontero@tinet.org">amontero@tinet.org</A><BR>&gt; &lt;mailto:<A href="mailto:amontero@tinet.org" ymailto="mailto:amontero@tinet.org">amontero@tinet.org</A>&gt;&gt;<BR>&gt;<BR>&gt;&nbsp; &nbsp; Hi
 listers.<BR>&gt;<BR>&gt;&nbsp; &nbsp; I have recently got in charge of a non-Drupal website and I need some<BR>&gt;&nbsp; &nbsp; advice in approaching an issue.<BR>&gt;&nbsp; &nbsp; The site is about listing learning centers along their training<BR>&gt;&nbsp; &nbsp; courses and allowing users to request more info by filling a form. No<BR>&gt;&nbsp; &nbsp; big deal here. You fill the form, data gets dumped into a table and<BR>&gt;&nbsp; &nbsp; the webmaster (me) receives a mail.<BR>&gt;&nbsp; &nbsp; All the subsequent workflow is done more or less manually on the table<BR>&gt;&nbsp; &nbsp; that gets the information requests. However, it's a custom coded PHP<BR>&gt;&nbsp; &nbsp; site and expanding or trying to automate the workflow any further<BR>&gt;&nbsp; &nbsp; seems not worth the investment as in its current state, it's kind of a<BR>&gt;&nbsp; &nbsp; mess. I think it's a good Drupal candidate.<BR>&gt;&nbsp; &nbsp; The problem is that the website
 cannot be replaced quickly enough<BR>&gt;&nbsp; &nbsp; because of its design and look that I'm not able to translate to<BR>&gt;&nbsp; &nbsp; Drupal. By now, no budget will be allocated to theming and<BR>&gt;&nbsp; &nbsp; consequently I can't port it to Drupal. Since Drupal still has to<BR>&gt;&nbsp; &nbsp; prove its worth in the eyes of decision makers. A site rebuild with<BR>&gt;&nbsp; &nbsp; Drupal from scratch is not [now] an option, since management thinks<BR>&gt;&nbsp; &nbsp; "hey! we've invested &gt;6 mo and blahblahblah". I would like to shift<BR>&gt;&nbsp; &nbsp; this by creating an extranet to show what can be done and get some<BR>&gt;&nbsp; &nbsp; serious attention upstairs :)<BR>&gt;<BR>&gt;&nbsp; &nbsp; What I'm figuring out how to accomplish is to create a<BR>&gt;&nbsp; &nbsp; non-public-facing extranet for the learning centers built with Drupal,<BR>&gt;&nbsp; &nbsp; so I can use nodes to get info requests, route them according
 my<BR>&gt;&nbsp; &nbsp; workflow and do all the fancy stuff that Drupal can do with rules,<BR>&gt;&nbsp; &nbsp; views, etc. This extranet would be used initially by us and later by<BR>&gt;&nbsp; &nbsp; our customers (the learning centers) and not by site visitors, they<BR>&gt;&nbsp; &nbsp; should only fill the form in the website exactly as they're doing now.<BR>&gt;&nbsp; &nbsp; The missing gap is in how to move data from the custom app table to<BR>&gt;&nbsp; &nbsp; Drupal. Thus, I'll be able to do automatic mails, route leads from one<BR>&gt;&nbsp; &nbsp; user/departments to another, do reports with views, etc.<BR>&gt;<BR>&gt;&nbsp; &nbsp; So, here I am thinking in how to approach this one the right way. I've<BR>&gt;&nbsp; &nbsp; thought in installing a Drupal alongside the current website, so I can<BR>&gt;&nbsp; &nbsp; access the site's MySQL DB from Drupal and someway and import the<BR>&gt;&nbsp; &nbsp; records periodically into nodes, but for
 hosting limitations, it's not<BR>&gt;&nbsp; &nbsp; possible now.<BR>&gt;<BR>&gt;&nbsp; &nbsp; The solutions I found are these:<BR>&gt;&nbsp; &nbsp; *Connecting remotely to MySQL via port 3306 and load new leads. Has<BR>&gt;&nbsp; &nbsp; firewall issues and may not be supported by all hostings all the time.<BR>&gt;&nbsp; &nbsp; Also, seems to require quite some programming effort and still have to<BR>&gt;&nbsp; &nbsp; test Data module capabilities. As long as I can see, data will not be<BR>&gt;&nbsp; &nbsp; nodes, so I will lose all future workflow, rules, etc. capabilities,<BR>&gt;&nbsp; &nbsp; right?<BR>&gt;&nbsp; &nbsp; *Create a [password-protected] RSS feed script for the source site and<BR>&gt;&nbsp; &nbsp; fetch the leads from it to the Drupal extranet via FeedAPI and alikes.<BR>&gt;&nbsp; &nbsp; By now, it's the most elegant solution I've found. I assume that<BR>&gt;&nbsp; &nbsp; FeedAPI won't have problems if I periodically empty the source
 site<BR>&gt;&nbsp; &nbsp; leads table and it will gracefully catch up.<BR>&gt;&nbsp; &nbsp; *(All and every single alternatives are welcome here)<BR>&gt;<BR>&gt;&nbsp; &nbsp; Obviously, when the extranet is finished and working, I plan to move<BR>&gt;&nbsp; &nbsp; all to a fully Drupal site and make it hit the front page.<BR>&gt;&nbsp; &nbsp; BTW, planning to do it in D6.x.<BR>&gt;<BR>&gt;&nbsp; &nbsp; So, previous experiences and caveats will be very welcomed. I'm sure<BR>&gt;&nbsp; &nbsp; awesome ideas from the listers here will come up. I learnt a lot by<BR>&gt;&nbsp; &nbsp; lurking here and in devel during 3 years.<BR>&gt;&nbsp; &nbsp; Thanks in advance.<BR>&gt;<BR>&gt;&nbsp; &nbsp; Alfonso.<BR>&gt;&nbsp; &nbsp; _______________________________________________<BR>&gt;&nbsp; &nbsp; consulting mailing list<BR>&gt;&nbsp; &nbsp; <A href="mailto:consulting@drupal.org" ymailto="mailto:consulting@drupal.org">consulting@drupal.org</A> &lt;mailto:<A
 href="mailto:consulting@drupal.org" ymailto="mailto:consulting@drupal.org">consulting@drupal.org</A>&gt;<BR>&gt;&nbsp; &nbsp; http://lists.drupal.org/mailman/listinfo/consulting<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; consulting mailing list<BR>&gt; <A href="mailto:consulting@drupal.org" ymailto="mailto:consulting@drupal.org">consulting@drupal.org</A><BR>&gt; <A href="http://lists.drupal.org/mailman/listinfo/consulting" target=_blank>http://lists.drupal.org/mailman/listinfo/consulting</A><BR>_______________________________________________<BR>consulting mailing list<BR><A href="mailto:consulting@drupal.org" ymailto="mailto:consulting@drupal.org">consulting@drupal.org</A><BR><A href="http://lists.drupal.org/mailman/listinfo/consulting" target=_blank>http://lists.drupal.org/mailman/listinfo/consulting</A><BR></DIV></DIV></div></body></html>