473,320 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

I have wampserver installed but cant read php code.

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 2257
techboy
28
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
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 Expert Mod 8TB
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
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
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.