12 Replies - 1113 Views - Last Post: 30 August 2014 - 01:50 PM

#1 AFK Games   User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 47
  • Joined: 24-July 14

Database Connecting (API/HTML)

Posted 29 August 2014 - 10:24 AM

Hello, I want to get the name of all the servers on this minecraft classic website server list, could I do this by connecting it to my html, css, javascript website please. note: My website does NOT support PHP. The url is:
(Sorry for the advertising, but i need it to get help, delete if you must)

example.com/api/serverlist

How would i convert the API web page text into a html table? I have been doing some research, but i cant find anything! Thanks.

Is This A Good Question/Topic? 0
  • +

Replies To: Database Connecting (API/HTML)

#2 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2497
  • View blog
  • Posts: 7,559
  • Joined: 15-January 14

Re: Database Connecting (API/HTML)

Posted 29 August 2014 - 10:39 AM

The URL is example.com?

You can use a function like file_get_contents to get the contents of a remote file (if your server is configured to allow it), and once you have the contents of the page you can use something like DOMDocument to load it into a DOM object and then access the individual elements, or use the string or regular expression functions to find and extract certain pieces of text.

Wait, I just saw this:

Quote

My website does NOT support PHP.

What are your other options? Assuming you want this to be automated, you need something to run from your server. If PHP is not an option then what are your other options for server-side code?
Was This Post Helpful? 0
  • +
  • -

#3 AFK Games   User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 47
  • Joined: 24-July 14

Re: Database Connecting (API/HTML)

Posted 29 August 2014 - 10:42 AM

The supported languages for my website are:

HTML
CSS
Javascript
jQuery

Well, if you want to see more visit weebly.com as my website is hosted by them.

FYI, what is DOM and what language is 'file_get_contents' from? PHP, if so its not supported as i said.
Was This Post Helpful? 0
  • +
  • -

#4 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2497
  • View blog
  • Posts: 7,559
  • Joined: 15-January 14

Re: Database Connecting (API/HTML)

Posted 29 August 2014 - 10:55 AM

You can't do what you want to do with only client-side languages like Javascript. About the only thing you can do is embed the entire page on your site with an iframe, but you wouldn't even be able to use Javascript to access that content because it's on a different domain. When you use a service like weebly to build a website then you can't really do anything dynamic, you're bound by what their tools allow.
Was This Post Helpful? 1
  • +
  • -

#5 AFK Games   User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 47
  • Joined: 24-July 14

Re: Database Connecting (API/HTML)

Posted 29 August 2014 - 10:57 AM

Do you suggest any website builders or someway to allow that? Any links, websites etc please? I was thinking of moving anyway, thanks.
Was This Post Helpful? 0
  • +
  • -

#6 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2497
  • View blog
  • Posts: 7,559
  • Joined: 15-January 14

Re: Database Connecting (API/HTML)

Posted 29 August 2014 - 11:03 AM

I'm not familiar with the services where you build a website on their site, I haven't used any of those. I just know that if you're using someone else's tools to build your site, then you're going to be limited to what those tools allow you to do. Maybe a Wordpress host where you could end up installing plugins to customize things like that, although if you're going to be running Wordpress then you might also consider just a standard hosting account where you install and configure Wordpress yourself, then you can edit whatever you want to edit.
Was This Post Helpful? 0
  • +
  • -

#7 AFK Games   User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 47
  • Joined: 24-July 14

Re: Database Connecting (API/HTML)

Posted 29 August 2014 - 11:20 AM

What are some better ones that wordpress, because i have used that previously?
Was This Post Helpful? 0
  • +
  • -

#8 astonecipher   User is offline

  • Senior Systems Engineer
  • member icon

Reputation: 3071
  • View blog
  • Posts: 11,783
  • Joined: 03-December 12

Re: Database Connecting (API/HTML)

Posted 29 August 2014 - 12:09 PM

Depends what you are after, what you currently know, what you have the desire to know. Are you looking for a CMS site or something different.
Was This Post Helpful? 0
  • +
  • -

#9 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2497
  • View blog
  • Posts: 7,559
  • Joined: 15-January 14

Re: Database Connecting (API/HTML)

Posted 29 August 2014 - 01:11 PM

What did you not like about Wordpress? "Better" is a fairly relative term, what specifically do you want to see?
Was This Post Helpful? 0
  • +
  • -

#10 AFK Games   User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 47
  • Joined: 24-July 14

Re: Database Connecting (API/HTML)

Posted 29 August 2014 - 02:25 PM

Would something like GoDaddy website builder be useful for PHP, Javascript, HTML, CSS, jQuery & MySQL Coding? If not could you list some good easy to use code supported website builders or hosters?
Was This Post Helpful? 0
  • +
  • -

#11 CTphpnwb   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3826
  • View blog
  • Posts: 13,946
  • Joined: 08-August 08

Re: Database Connecting (API/HTML)

Posted 29 August 2014 - 02:41 PM

I'm convinced that "easy" website builders are designed to show noobs that building a website is not easy (unless you want a simple, cookie cutter design that doesn't do much) so that they'll eventually bite the bullet and pay for help. That's great for you if you want something simple, but since you're here I think you only have two choices:
  • Learn to write code.
  • Hire some one who can write code.

Was This Post Helpful? 0
  • +
  • -

#12 Sheepings   User is offline

  • D.I.C Lover
  • member icon

Reputation: 234
  • View blog
  • Posts: 1,275
  • Joined: 05-December 13

Re: Database Connecting (API/HTML)

Posted 30 August 2014 - 01:37 PM

View PostAFK Games, on 29 August 2014 - 09:25 PM, said:

Would something like GoDaddy website builder be useful for PHP, Javascript, HTML, CSS, jQuery & MySQL Coding? If not could you list some good easy to use code supported website builders or hosters?
Contact Godaddy and ask them, but i would suspect that php would be apart of the plans they offer, although there are no listings of the features. Keep in mind, that this would be shared hosting, and which comes with restrictions in php configurations that most CMS software depend on. Why not just invest in a decent webhost, and order a VPS server for like $9.99? There is a list of CMS you can use, but it depends what you want your website to do. For stuff, as simple as getting server details or information about servers, I would recommend you use Joomla with the GameServer Component to display the servers on your website. I think this is more what you're looking for, as you can see, MineCraft is listed as supported.

Hope it helps.

Edit: Forgot to add url list

This post has been edited by Sheepings: 30 August 2014 - 02:21 PM

Was This Post Helpful? 0
  • +
  • -

#13 astonecipher   User is offline

  • Senior Systems Engineer
  • member icon

Reputation: 3071
  • View blog
  • Posts: 11,783
  • Joined: 03-December 12

Re: Database Connecting (API/HTML)

Posted 30 August 2014 - 01:50 PM

Click and builds are housed in non changeable files with go daddy. Or you build your own and can do what you want.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1