473,943 Members | 11,695 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

no php in wamp server

1 New Member
Dear all,

Installed Wamp2 server, which runs smoothly, or so it seems (localhost shows correct WAMP page, started all services, etc). However, I can't get php to do anything. An html testpage I set up in the www/projectname/ folder with below code only shows "Regular html line".

I have the idea this should be really simple but can't figure it out, or find a solution in various posts. Any ideas? I'd be much obliged! Thanks.

Expand|Select|Wrap|Line Numbers
  1. <body>
  2. <p>Regular html line</p>
  3. <?php
  4. echo "This is php rendering";
  5. ?>
  6.  
  7. <?php
  8.     $name = "Harry";
  9.     echo $name;
  10. ?>
  11. </body>
  12.  
Jul 21 '08 #1
1 1439
Markus
6,050 Recognized Expert Expert
Remember: the file has to have the php extension (.php) for php to work!
Jul 21 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2841
by: ahevans | last post by:
howdy all, I'm considering setting up php, mysql, apache and myphpadmin on my pc to run a site on. Now obviously I'm security concious which means I need to put the time in to do a bit of reading to make the server secure, but I know there are WAMP install packages out there that can make life easier. Can anyone recommend a good package I can download that will give a reasonable level of security on which I can build and configure. I'm
2
6921
by: Yogee | last post by:
Hello all, I dont know the exact group where I should post my questions. So, I m doing it on most of the groups which support components of LAMP stack. My client wants to use WAMP ( Windows + apache + MySQL + PHP ). But the site performance is very slow on windows. I dont know the exact reasons. I have seen some benchmark details on internet. But still they are not
2
17183
by: PulsarSL | last post by:
Hey I have a WAMP setup (windows/apache/mysql/php). I'm running the latest version of all of them with a default installation of all of them. PHP works great with apache (as a module, not cgi), except that sessions aren't working. The script at the bottom of this post never increments my hit count. Do I need to turn sessions on somehow in php.ini? Thanks,
4
4681
by: Gaurav Agarwal | last post by:
Hi, Am using WAMP5 and python 2.4.3. I tried to install mod_python 3.2.5 for python2.4. When i tried starting wamp, Firstly there was no error message in the apache error log. I saw error message in windows event viewer : "The Apache service named Apache.exe reported the following error: before the error.log file could be opened.
10
89962
by: philleep | last post by:
Hi there, I have some PHP issues. Basically i've installed WAMP so that i can have a webserver/local host. I have a local host but at the moment the php isnt doing anything. Anywhere i use php code it is ignored. even the most simplest code doesnt work. so i guess i need to set up wamp, could someone advise how i do this and the settings i need. another question. do i need interent access on the pc that i use wamp and php? i usually do my...
1
4340
by: fatalparadox | last post by:
I had WAMP Server installed for a few months, everything was fine. Now all of a sudden it stopped working. It still executes the PHP but it doesn't allow me to write to a .txt file anymore. When I put the same files on the web it works great. And it worked with wamp server before yesterday. So I uninstalled WAMP server and installed WAMP Server2 and it still has the same issues.
2
2267
by: robin1983 | last post by:
Hi All, I am facing a problem with WAMP. I installed the wamp5_1.7.1a. After installation, when I try to run the through explorer by writing "http://localhost" but its showing pages cannot be display. I started all the services, still I am not able to access the wamp server. Please kindly help, is there any step that I need to do with my system admin. Thanks in advance for your kind supports. Regards, Robindra Singha
3
7550
by: robin1983 | last post by:
Dear All, I am facing a problem with WAMP server. i dowonload the WAMP SERVER2.0c and installed in my system. But the problem is that none of the server is running. When i try to access the server by http://localhost, the page cannot display is getting. When I try the same in my own pc its working properly. It seems that the problem is due antivirus which is installed in the system. The system is having McAfree antivirus. OS: Window XP...
5
2678
by: cwjacklin | last post by:
Hi all, I use WAMP server 2, php 5.2.8 This code echo "1"; include(mnminclude.'html1.php'); echo "2"; prints out "1\r\n2" even though there are only functions in html1.php file but no echo statement.
1
2866
by: swethak | last post by:
Hi, i installed wamp in my local server system.It worked fine .But i am getting some problems in that. After installed the wamp server i changed the port number as 81 because my IIS port number is 80. When i give the url as http://localhost:81/ it worked fine and opened the wamp server index page. In localhost place i replaced the my server ip address as http://211.192.90.123:81/
0
10142
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9970
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11538
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11133
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11302
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9866
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8228
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
3516
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.