Jump to content

Why doesn't it work


mkklepper

Recommended Posts

I use two computers. My main studio PC is not hooked up to the internet. The other one is for the internet. I'm running the same software on both(Windows XP, WAMP, Dreamweaver). I copied the files from my studio PC to the internet PC and all of a sudden none of the variables work.

[code]echo " My name is $var1. My favorite color is  $var2.";[/code]
It prints
[code]My name is $var1. My favorite color is  $var2.[/code]

I've checked all the configuration files and the are the same. I know it's some mundane detail but I',m just not  seeing it. Any suggestions?
Link to comment
Share on other sites

I have just had an idea. I don't think that your second server is interpreting the file as PHP, it's just displaying the code as HTML. I assume that you aren't missing the <? ?> around your code and you are using a sensible file name extension like ".php"? If so, you need to check your server setup to ensure that it is including PHP correctly and that the PHP file extensions are defined in the config files correctly.
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.