![]() |
Are you still coding? sheesh.
Dammit. 50 dumb questions. |
What's wrong with your eye?
|
ever thought about changing your name, I always think you are a girl
|
Quote:
Sorry about that. . |
Quote:
Quote:
Quote:
, |
Where did your username come from?
|
Quote:
Sometime in the early 90's when I needed a unique user name for swbell I had one of my business cards in front of me and I proceeded to type Hatteras in backwards which is sarettah. I have used it since then. . |
Quote:
|
Off for Friday night fun.
Every Friday several friends and I get together and do this: I am one of the guys on guitar who is sitting. Not the lead, that's Billy. I am on the left of the screen. Big old ugly sucker. . |
Quote:
|
Fucking great
I have to admit....Their is great comedy and wit on this forum
After a long day of work, nothing like a good laugh anyway, I had a jewish Dilemma today Ham on Sale But I bought anyway Peace |
Quote:
|
Quote:
I am back today though and trying to figure out what all to tell you about this stuff. Camfoxes was originally created as an example of an xml driven site in answer to someone's question. Simple Chaturbate XML Example is the original incarnation just showing a simple xml parse and display of the chaturbate models. This is the code that is in there: Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
The load and parse of the xml feed in there is:
Code:
$userlist = simplexml_load_file('https://chaturbate.com/affiliates/api/onlinerooms/? $userlist = simplexml_load_file('https://chaturbate.com/affiliates/api/onlinerooms/?format=xml&wm=JkjyU'); If we don't get anything back then lets just kill the routine if(empty($userlist)) { die('Danger Will Robinson...xml load failed...aborting'); } Otherwise we read through the list of nodes returned and do something with the information: foreach ($userlist as $user) { Do something here } So, that is a basic parse. There are other ways to pull this off. I usually use a curl routine to grab the xml feed. I do that because with curl I can control the connection timeout and process timeout. You could also use a file_get_contents to open the file and then load it to a simplexml object. The main thing is that you want to get the data from the xml feed into the simplexml object to make it easier to read by just being able to loop through it. . |
Quote:
|
Thank you for the answer ! You rock :thumbsup ! I will try to play with that and maybe I will succeed to build something !
|
Don't have any questions ...
|
Quote:
|
Quote:
Here are a couple of threads with some good discussions regarding accessing the xml feed and caching it in order to speed up a site: https://gfy.com/webmaster-q-and-fucki...light=camfoxes https://gfy.com/webmaster-q-and-fucki...light=camfoxes . |
Coding coding coding.
Listening to some Lou Reed this morning to get started :thumbsup . |
Starting from what you gave me I played a bit to see if I can make something and I created this page : http://www.webfreecams.info/Sample/ , ofcourse I'll take it down its just a sample to understand how it works , but starting from that I want to build something custom , I will try to grab cams from more sponsors in a single site , I hope I will succed , I will start after the Hollydays and I will share the results ! Thanks again !
|
All times are GMT -7. The time now is 03:51 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc