GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   XML mapping urgh (https://gfy.com/showthread.php?t=1114657)

stashnetwork 07-06-2013 04:22 PM

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....:disgust

Tube Ace 07-06-2013 09:47 PM

There's an app for that...

freecartoonporn 07-06-2013 11:44 PM

i dont get it, what are you trying to do ...

try serialize

just a punk 07-07-2013 12:19 AM

What are you trying to do?

stashnetwork 07-07-2013 05:41 AM

Quote:

Originally Posted by CyberSEO (Post 19706120)
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 07-07-2013 05:42 AM

Quote:

Originally Posted by Tube Ace (Post 19706051)
There's an app for that...

A class? I need something to integrate it with my own code.


All times are GMT -7. The time now is 11:15 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc