Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old October 21st, 2002, 04:37 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Help!

Hello;

Is there a script (PHP or CGI) to export the contents of a MySQL database to a text file? I want to crontab a script that will dump the contents of the database into something accessable, because:

My site is powered by Mambo site server. This has an index.php page, and calls a MySQL for content on it. In other words, if you were to look at the index.php file with a text editor, you would not see any of the content of my site; just the template for where it goes.

I also have a search script that spiders my site and stores (in another MySQL database) every word found on the site.

What this means is my search script has a massive database of every word in the templates--no content.

Is there any hope?

Thanks,
Louis Gabriel
webmaster@66thcadets.com

Reply With Quote
  #2  
Old October 21st, 2002, 11:22 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Help!

Use a different search script? This isn't meant to be rude, but seriously use another search script. You are looking for a method to hack up a search script to do something it wasn't designed to do. There are search scripts out there that handle dynamic data just fine...

If you do want to dump the contents of your table to a text file though, just open up a file with fopen(). Then, query your data base with mysql_query and associated commands. Then loop through the results and write them to the text file with fputs()...


Reply With Quote
  #3  
Old October 22nd, 2002, 03:32 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Help!

Ah, good point.

You wouldn't happen to have a URL where I could download a good script to search a MySQL database?

Thanks a million,
Louis

Reply With Quote
  #4  
Old October 22nd, 2002, 10:19 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Help!

Try this:

http://codewalkers.com/seecode/171.html

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > Help!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT