Jump to content
Xisto Corporation
lonebyrd

Wamp Help I just cant figure out whats wrong

Recommended Posts

I have installed the latest version of Wamp but I cant figure out how to use it. I made a folder called 'hello' in the www folder. I went to wordpad and made the small little 'echo hello' script. I go to http/localhost/hello.php and nothing. Am I doing something wrong. Do I need a special program to make php scripts so the extension is .php? Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites

Okay, you have the WAMP installed, but you also need to Start the Server.

I use XAMPP, not WAMP, but I'm sure that the Server needs to be started.

 

Some Operating Systems can be configured to start the Server on OS startup, but I am running Linux, and can not remember the procedure for setting that up in Windows.

 

Also, if the file hello.php is inside a folder named hello, the Access to that would become

Notice the folder name 'hello' in there...

Share this post


Link to post
Share on other sites

i started the service but i needed to use a thing called Crimson Editor to get the .php extension. I was also pointing it to a folder in www directory so I put it just straight into the www directory. now when i go to LOCALHOST/test.php it worked. (test was the name i gave the script)

Share this post


Link to post
Share on other sites

i started the service but i needed to use a thing called Crimson Editor to get the .php extension. I was also pointing it to a folder in www directory so I put it just straight into the www directory. now when i go to LOCALHOST/test.php it worked. (test was the name i gave the script)

No need to use an 3rd party editor just to get the .php extension. Normal note pad can do this. When saving the php file in notepad just add the extension .php to the file name and also select Save As Type as All Files. Now your file will be saved as php file. But third party editors like Crimson Editor has some cool features like Syntax highlighting, coloring etc...which are attractive and very helpful.

 

The www folder is the root folder for your website documents. If you create another folder like hello in that www folder and try to running php files in that folder you must point your browser to LOCALHOST/hello/filename.php Thats it..... very simple.....

Share this post


Link to post
Share on other sites

Yep xpress is right you don't need to use any 3rd party app..........you know what localhost is the address of the www folder... and if you want to run a service which is inside the a folder in the www folder then you have to mention the following details in the address barlocalhost/example/example.phpor if there is the default index.php present as a homepage filethenlocalhost/examplewhere example is the name of folder in which you have your project save

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.