Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7512925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:01:11+00:00 2026-05-30T00:01:11+00:00

Me and my friend are trying to make a webpage which has a flash

  • 0

Me and my friend are trying to make a webpage which has a flash game on it. There’s only going to be one page for all the games so we’re using XML to load data about the game. Before I got started I did some simple test but they’re not working. I’m trying to print the title of the first game.
This is the XML file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<games>
    <game id="0">
        <name>3d Worm</name>
        <source>games/3dworm.swf</source>
    </game>

    <game id="1">
        <name>Portal</name>
        <source>random_source</source>
    </game>
</games>

This is the PHP file:

<?php
require("details.php");
$xml = simplexml_load_file("games.xml");
$games = $xml->games;
$game = $games->game[0];
echo $game->name;
?>

When I open the page it’s just blank and I don’t know why.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T00:01:13+00:00Added an answer on May 30, 2026 at 12:01 am
    $games = simplexml_load_file("games.xml");
    foreach($games->game as $game) {
      print $game->name . "\n";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make my app publish to all my friend's walls. From what
I'm trying to make a web interface for a c++ game a friend have
I am trying to make a WCF communication between two machines in which one
Me and my friend were trying to make a webpage in C#. This webpage
I am trying to make a form which my friend can enter information and
I have a friend who is trying to make the switch to Linux, but
I am trying to make a poker game of sorts. I'm trying to learn
I m trying to make feed system for my website, in which i have
I'm trying to help a friend of mine who has to do a test
One friend of mine is beginner programmer and he is trying to learn classic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.