PHP newb
Jun 1 2008, 10:44 pm
By: frazz  

Jun 1 2008, 10:44 pm frazz Post #1



The title and description should explain my problem. Here's my code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Page Language="C#" %>
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">
<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>Hello World!</p>";
?>


</body>

</html>


This gets me a page with "Hello World!"; ?>"
Anybody know what I'm doing wrong? I tried replacing the " with ', but that didn't change much.



None.

Jun 2 2008, 4:07 am O)FaRTy1billion[MM] Post #2

👻 👾 👽 💪

Is PHP installed properly? If you look at the source (View Page Source), what do you see?



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jun 2 2008, 5:13 am DT_Battlekruser Post #3



For the sake of developing proper coding habits, use echo("hello world");

This shouldn't have any bearing on the problem though. Try a really simple page (you don't need all the HTML) and see the result.

Oh, and I'm sure this isn't helping in the HTML. Get rid of it?


Code
<%@ Page Language="C#" %>




None.

Jun 2 2008, 5:06 pm mikelat Post #4



Try running a page with just
Code
<?php phpinfo(); ?>

if a page with tons of information does not appear then you do not have PHP properly imstalled.



None.

Jun 2 2008, 5:49 pm frazz Post #5



Yeah, turns out I can't run aspx and php at the same time. My site is an Office Live site, and I doubt Microsoft will be willing to let me switch over from asp. So I guess I'll have to ditch php for the time being.
Yes, I guess I don't have php installed correctly.
Thanks guys.



None.

Jun 2 2008, 6:58 pm Money Post #6



Quote from frazz
Yeah, turns out I can't run aspx and php at the same time. My site is an Office Live site, and I doubt Microsoft will be willing to let me switch over from asp. So I guess I'll have to ditch php for the time being.
Yes, I guess I don't have php installed correctly.
Thanks guys.

Just set it up so that .php is for php and .asp is for aspx?



None.

Jun 2 2008, 10:11 pm Doodle77 Post #7



Quote from DT_Battlekruser
echo("hello world");
No. echo "hello world"; is the correct way to do it in PHP, echo is not a function, it is a language construct. You could do
Code
print("hello world");
if you so desired, though.



None.

Jun 2 2008, 10:26 pm Centreri Post #8

Relatively ancient and inactive

It works both ways, and it's a good habit for future languages, function or language construct.



None.

Jun 3 2008, 2:36 am DT_Battlekruser Post #9



I don't believe in language constructs :P



None.

Jun 3 2008, 4:05 am frazz Post #10



Quote from Money
Quote from frazz
Yeah, turns out I can't run aspx and php at the same time. My site is an Office Live site, and I doubt Microsoft will be willing to let me switch over from asp. So I guess I'll have to ditch php for the time being.
Yes, I guess I don't have php installed correctly.
Thanks guys.

Just set it up so that .php is for php and .asp is for aspx?
A heck of a lot easier said than done, especially when Microsoft in control.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
[2024-4-20. : 7:56 pm]
Oh_Man -- lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
Please log in to shout.


Members Online: Roy, IlyaSnopchenko