Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Ezilon Directory   I Sell Pagerank   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 02-25-2006, 12:18 PM   #1 (permalink)
Contributing Member
 
ATLien's Avatar
 
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 2,279
iTrader: 0 / 0%
ATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really nice
Send a message via AIM to ATLien
XML to MySQL PHP Script

Does anyone know of a script that will convert a XML to a MySQL database?? I have tried http://www.navicat.com but it wont let me connect to the SQL I think my host has remote access blocked.
__________________
ATLien is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 02-27-2006, 08:17 AM   #2 (permalink)
Contributing Member
 
jwalsh's Avatar
 
Join Date: 03-22-04
Location: Cleveland, OH
Posts: 390
iTrader: 0 / 0%
jwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to all
Most hosts will give you the option to allow access to remote hosts, but you need to turn it on first. Check your mysql settings in your control panel for Remote Access Connections.

[EDIT: Actually called "Access Hosts"]

Add your static IP, or a % wildcard. Of course remove the wildcard when you are done!

I know cpanel and exim both have this capability.

Josh
jwalsh is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-28-2006, 04:53 PM   #3 (permalink)
Contributing Member
 
ATLien's Avatar
 
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 2,279
iTrader: 0 / 0%
ATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really nice
Send a message via AIM to ATLien
I got remote access, but it is not working that well. I want to try and write a script, or find one that will take rss tags and convert then to MySQL code. i.e.
Code:
<movie title>40 Year Old Virgin</movie title>
and out put some MySQL code that looks like this:
Code:
INSERT INTO table_name ('movie title', column2,...) VALUES ('40 Year Old Virgin', value2,....)
I could write this script, I am just not sure how to open a file read the contents, and reorganize it.
__________________
ATLien is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-28-2006, 06:58 PM   #4 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
iTrader: 0 / 0%
Latest Blog:
A+ Certification

kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
I have not really messed around with XML, but check out
http://us3.php.net/domxml/
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-28-2006, 08:44 PM   #5 (permalink)
Contributing Member
 
jwalsh's Avatar
 
Join Date: 03-22-04
Location: Cleveland, OH
Posts: 390
iTrader: 0 / 0%
jwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to all
Using PHP5 or 4? If 5, SimpleXML (bundled with PHP5) makes it ... well... simple.

http://us2.php.net/manual/en/ref.simplexml.php

Not for advanced use, but should do exactly what you are trying to do.
jwalsh is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Script not working (PHP/MYSQL) JustRetarded Coding Forum 3 06-21-2007 07:43 AM
How to execute a script on MySQL server? ladan Coding Forum 10 01-27-2007 10:18 AM
PHP + MySQL script problem Limit Coding Forum 14 12-13-2004 08:54 AM
VERY SIMPLE php /mysql script needed. will pay craigj Coding Forum 1 01-05-2004 09:00 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 09:06 PM.
© Copyright 2008 V7 Inc