Jump to content

Recommended Posts

ok, i am getting desperate and am turning to the only forum i know and trust to have experts(thats you). I have WAMP2server installed on my machine, with drupal inside it. When i create a .php page and attempt to open it in IE it brings up IE and attempts to download. I have checked the apache httpd.conf file and looked at the addtype section. This is what is in that section:

 

AddType application/x-compress .Z

AddType application/x-gzip .gz .tgz

AddType application/x-httpd-php .php

AddType application/x-httpd-php .php3

AddType application/x-httpd-php-source .phps .phtmls

 

i'm assuming that should be enough to force apache to recognize and direct .php pages to the php interpreter. Can anyone help me in fixing this problem?

Link to comment
https://forums.phpfreaks.com/topic/91123-confused-and-lost/
Share on other sites

If you have WAMP2 installed then everything should setup and ready to go. No configuration should be necessary.

 

Make sure wamp is running and your are going http://localhost in order to run your php scripts. Also make sure you are saving your php files in WAMPs web data directory which I believe is C:\wamp\www

 

You should not be opening your php files directly through the browser via File > Open or right clicking on a .php file and selecting Open with IE

Link to comment
https://forums.phpfreaks.com/topic/91123-confused-and-lost/#findComment-467024
Share on other sites

when i go to the /localhost it does not show my .php file even though it is under the www directory in c:/wamp/www/ it does show the drupal folder though.

 

EDIT: ok i moved it to a test folder within www, however when i load it up it shows the echo command.

 

there is the code:

<html>
<head>
<title>My First PHP Program</title>
<body>
<?php
echo "I'm a lumberjack.";
?>
</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/91123-confused-and-lost/#findComment-467032
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.