Jump to content

[SOLVED] Hello Freaking World!"; ?>


frazz

Recommended Posts

I feel really stupid, I can't even get a hello world to work. Here is my page source:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">

 

<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>

Frazzco.com!!

</title></head>

 

<body style="color: #FFFFFF; background-color: #000000">

 

<?php

echo "<p>HelloWorld!</p>";

?>

 

</body>

 

</html>

 

 

 

The output I get is:

HelloWorld!"; ?>

 

 

What am I doing wrong?

Link to comment
Share on other sites

Alright, I updated my site. Check out frazzco.com if you want to see it yourself. Here's the page source:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">

 

<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>

Frazzco.com!!

</title></head>

 

<body style="color: #FFFFFF; background-color: #000000">

 

<?php

echo 'Hello World!';

?>

 

</body>

 

</html>

 

 

But don't you need the <p> tags to display text? Now my page is just blank.

I'm using MS Expression Web, by the way. It doesn't really support PHP, but I just type it manually into the html anyway.

Link to comment
Share on other sites

I don't know.

Should I make an html instead?

Edit: Actually, I did. Look at the page source on frazzco.com/default.htm

The same thing is still happening. When I do echo 'Hello World!'; it comes up blank.

Link to comment
Share on other sites

Is your site setup to handle processing PHP pages? It's a complete different language with a different type of support than ASP. You'll need to switch language support with your provider if you want to run PHP.

 

I have never heard of anyone running both at the same time. (Now watch someone come in here and say they have. Which is beside the point.)

Link to comment
Share on other sites

So I need to do this with my provider?

That may be a problem, as this is an Office Live site, and I doubt Microsoft will want to move away from asp, as it is marketed by Microsoft (if I understand things correctly).

 

Does this mean I'll need to change providers to use PHP? If so, are there any possible workarounds I could try?

Link to comment
Share on other sites

You pick a language to run your site in. It will have that library loaded onto the server and allow you to access the functions. If the library that is loaded is an ASP one, then you can't run PHP. If it's hosted my MS, then I don't know how they'll feel, like you said.

 

I'm not saying go spend money on a different host, but to run PHP, you need a different language library.

Link to comment
Share on other sites

maybe, maybe it actually is possible. I don't see how it would work though. I thought IIS and Apache served pages in completely different manners for it to work.

http://lists.nyphp.org/pipermail/talk/2004-June/010074.html

 

I don't know enough about IIS and Apache and smut.

With what that page is saying you would still need the PHP Processor to run PHP scripts, if there is no PHP Processor, then it still wouldn't be run.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.