Dumb Sounding

He has: 1,380 posts

Joined: Feb 2002

Hey guys...

This might sound dumb, but...

I named a file 'something.php', and I will run a php includes inside it so i can use variable throughout. I saw an example where I can have a normal HTML page, name it .php, stick in the includes, and then just use $var1 to display that, etc.

Well, it doesn't work. I get a parse error on line 1.
I tried adding the usual "

<?php
" to the top, still didn't work.
I tried "
<?php echo "<html>etc.etc.</html>"
?>
. Nope.

What am I doing wrong? I checked the PHP.net site, no help either.

Thanks!

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Hey, Kyle, without seeing what you've done, we can't answer your question. Samples, dude.

He has: 1,380 posts

Joined: Feb 2002

ok...i will get back to you guys in a few days, i'm really busy right now...thanks

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.