473,464 Members | 1,729 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

I have wampserver installed but cant read php code.

2 New Member
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <title>
  4.   basic
  5. </title>
  6. </head>
  7. <body>
  8.   <?php
  9.        echo "Hello!";
  10.    ?>
  11. </body>
  12. </html>
I'm new to php and have written that basic code to che if all is set for my php practice but the problem is the browser doesnt display anything. Blank. Any help please.... i will be very thankful
Apr 15 '14 #1
4 2262
techboy
28 New Member
Installin WAMP Server to run PHP:
Goto www.wampserver.com and download WAMP Server.

Just install it like other softwares by just clicking next next...

Now go to START menu of windows and start wampserver.
Generally, the path is Start -> WapmServer -> start WampServer

Open your web browser and type http://localhost (or http://127.0.0.1 )
If you see a default WampServer home page, you installation is success.

Now put your php code in www folder in your wamp installation directory.
Usually this is C:\wamp\www

Now type http://localhost/filename.php in your browser. (where filename is your php file name)

It will execute your php code.. Thats it...
Apr 15 '14 #2
Frank Mtu
2 New Member
Thanks, techboy.
the path is alright and it is "file:///C:/wamp/www/Practice/My.php".
When i remove the php tags the browser displays "echo "Hello!";" but the moment i introduce the php tags, nothing comes up. What can i do to get it working?
Apr 15 '14 #3
Rabbit
12,516 Recognized Expert Moderator MVP
That path is wrong. That is a file path and not a webserver path. Please follow the original instructions in post #2.
Apr 15 '14 #4
techboy
28 New Member
You must keep your wampserver on and then type the localhost and the further steps.
Apr 16 '14 #5

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

Similar topics

4
by: Duncan | last post by:
Hi I'm doing a site that creates a cookie and then needs to read that cookie later. The cookie is created fin and I can see it in my browsers cookies but I can't seem to read it. I've tried...
2
by: MrFile | last post by:
I added an app.config file to my application. (c#.net component dll) <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="username" value="xx" /> <add...
0
by: hmcclungiii | last post by:
I've tried GetInt16, GetInt32, GetInt64, nothing works. I've even tried to retrieve the value as a string and use cInt and Val to convert it back. No matter what I do, it just doesn't want to get...
5
by: Jens | last post by:
Hello, I have been looking for some C-code which listens on a user-defined port for incoming data traffic. When data is received, the data is written to a file. I found some C-code (server)...
1
by: aotemp | last post by:
Hi, Im having a reaaally hard time with something... Im trying to read a cell of data into a String variable. It seems like such a simple task too... Get the excel spreadsheet, get the...
3
by: Nyx18 | last post by:
what im trying to do is read in a data from a file into 4 different arrays then also read in the same data using array of structs. the assignment is to show that we know how to use both methods of...
6
by: jagguy | last post by:
Hi, i cant read in data from excel 97 using vb.net 2003. I get an exception error . all i want to do is read in values from excel initially. I want to just test it using msgbox. Dim XL...
11
by: globalrev | last post by:
http://www.pygame.org/docs/ref/mixer.html import pygame #pygame.mixer.init(frequency=22050, size=-16, channels=2, buffer=3072) //it complained abiout words= so i guess its only the nbrs...
2
by: Ammu | last post by:
hi I have a button in my page. I want to write some codes inside that. I use so many methods but shows errors. i have use if($_GET!='') and if ($submit) and if($_GET showing errors like
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...
0
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,...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.