Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-06-2013, 04:22 PM   #1
stashnetwork
So Fucking Banned
 
Industry Role:
Join Date: Jun 2012
Posts: 66
XML mapping urgh

So I need to map xml feeds and store the mappings in MYSQL.

Right now I use simplexml to parse the xml feed.

Code:
$xml = simplexml_load_file($feed['xml_feed']);
But the next problem is this, I have fields in the database like field_file, field_thumbnail.

Inside field_file I have:

Code:
clips->clip->flv
Now obviously doing this doesn't work...

PHP Code:
$file $xml->item->$db['field_file']; 
Any idea on the best way for doing this....
stashnetwork is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2013, 09:47 PM   #2
Tube Ace
So Fucking Banned
 
Industry Role:
Join Date: Nov 2008
Location: with your dream girl
Posts: 4,941
There's an app for that...
Tube Ace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2013, 11:44 PM   #3
freecartoonporn
Confirmed User
 
freecartoonporn's Avatar
 
Industry Role:
Join Date: Jan 2012
Location: NC
Posts: 7,683
i dont get it, what are you trying to do ...

try serialize
freecartoonporn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-07-2013, 12:19 AM   #4
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,381
What are you trying to do?
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-07-2013, 05:41 AM   #5
stashnetwork
So Fucking Banned
 
Industry Role:
Join Date: Jun 2012
Posts: 66
Quote:
Originally Posted by CyberSEO View Post
What are you trying to do?
trying to get this to parse...

$file = $xml->item->$db['field_file'];

it should be $xml->item->clips->clip->flv.


The $db['field_file'] = clips->clip->flv
stashnetwork is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-07-2013, 05:42 AM   #6
stashnetwork
So Fucking Banned
 
Industry Role:
Join Date: Jun 2012
Posts: 66
Quote:
Originally Posted by Tube Ace View Post
There's an app for that...
A class? I need something to integrate it with my own code.
stashnetwork is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.