WHy is WAMP not working? - wamp

I'm trying to teach myself web development, but I cannot seem to get wamp to work. I have Installed the program and after changing the port I now get a green logo.
The tutorial tells me to double click on the index.php file in the www directory of the WAMP program files, this gives me this.
I'm then told to change the address from
file:///C:/wamp/www/index.php to localhost/index.php, but when I do I just get a blank page.
I would like to know what I'm doing wrong.
Thank You.

You are doing good,
you did put your server online and access the index.php successfully.
The main problem is that you didn't use "echo" in php to print anything on the page or write any html code so the browser cannot render anything.
Try to copy and website source code or as simple as follow:
<html>
<head></head>
<body>
<h1>Hello World</h1>
</body>
</html>
It should work as a web page as expected.
Remeber,if you changed port no. in the config file, please change the URL to
localhost:portno/index.php such as localhost:8080/index.php

Related

Why is my web server adding a line to my source code?

This question as first asked was closed by three experts who were convinced that the source code displayed by the browsers had to be the same as the code which I uploaded to my web host server. I knew that this was not the case, therefore the problem must lie with my web hosting ColdFusion server, as it is highly unlikely that all three browsers would make the same mistake.
My page (https://gustav-mahler.org/nachrichten/pdfs.cfm) begins like this:
<!DOCTYPE html>
<html>
<head>
However in Chrome 80, MSIE 11 and Firefox 73.0.1, the source code is displayed like this:
--->
<!DOCTYPE html>
<html>
<head>
I am now suspecting that the string "--->" must have been added by my ColdFusion webserver for some reason, as that string normally indicates the closing of a ColdFusion comment. But in this case there is no comment to close. I have added a ColdFusion tag to this question, and if this problem is unknown to CF experts, I shall have to ask my web host technician for advice.
This is a very long comment that tells you how to find the source of the problem.
On the host server, create an html page with a doctype tag, plus opening and closing html, head, and body tags. Add a short paragraph, inside p tags. Browse the page and check the html source for the extra line.
If it's there, talk to your hosting company. Otherwise, rename the file from .html to .cfm. Browse and check again.
If the line is not there, it's likely your code. Start adding lines of ColdFusion code, one or two at a time and keep testing until the line appears.

Get `favicon.ico` error, but can not find it in the code

When I run my project in browser I get the "can not find favicon.ico" error in browser console:
Failed to load resource: the server responded with a status of 404 (Not Found)
:8080/favicon.ico
But when I search for favicon in whole project in WebStorm it finds nothing:
This is normal. No matter if you declared it or not in your code, Chrome will try will try to fetch favicon.ico at the root of your site to display it in your tab. In your case it will try to fetch: http://localhost:8080/favicon.ico
All browsers will do this except SeaMonkey according to Wikipedia article on Favicon
In the old days, this was the standard way of personalizing the browser icon. Now there is a ton of possible icons you can set for various devices: https://stackoverflow.com/a/26768184/1375487
Also, you can check this answer as it suggests ways to prevent that auto-fetch: https://webmasters.stackexchange.com/a/34572
In any case, the best practice would be to set a favicon.ico for your project.
favicon.ico is the icon on the title bar in your website.
Browser did not find it in your website.
You should provide it to your index.html:
<link rel="shortcut icon" href="assets/images/favicon.ico">
The path you can change by your case.

project set up using github pages not loading

I hosted one of my project using GitHub pages but, for some reason, when I access the URL the page doesn't loads, and when I check it in the dev console it shows this error.
This is my GitHub page URL: https://prasunk96.github.io/colorsgame/
I checked that all the internal links that I have in my html file are all correct.
I have tried it several times but it showing the same problem again and again.
There are two issues with your CSS link:
It is not relative to your html file so the browser is trying to go directly from the base prasunk96.github.io/ and not include the /colorsgame/.
Github.io urls are case sensitive so your colorGamepro.css isn't being matched to the ColorGamepro.css file.
To correct the relative url you can either add a base tag to your HTML file or use a relative href. Once you correct the file name it should be able to find your file at https://prasunk96.github.io/colorsgame/css/ColorGamepro.css
In short use: href="./css/ColorGamepro.css"
Github project pages can sometime take a bit before being updated. See "My GitHub page won't update its content" for a similar issue.
I do see (a few hours later) a 404 for your css:
Try and see if using an anchored url works better:
<link rel="stylesheet" type="text/css" href="/css/colorGamepro.css">
^^^
|

ColdFusion: cftooltips display on one site but not another on same server

I just deployed a new site, call it SiteA, that uses cftooltip, but the tooltips are not displaying. When I hover over the link, nothing happens. SiteB has been running on the same server for a long time, and it's tooltips display fine. The folders for SiteA, SiteB and CFIDE are all in inetpub/wwwroot.
My browser reports the following when trying to display tooltips on SiteA:
'ColdFusion is undefined'
'YAHOO' is undefined.
It would seem that SiteA can't find what it needs in cfide/scripts, but SiteB doesn't have this problem. In the CF Admin, I have a mapping to cfide.
Any ideas? Thanks in advance for help.
Peter
It's not exactly a solution, but you can cut and paste the CFIDE/scripts folder into the webroot of SiteA, which should at least get it working until you work it out!
Things to check are the mappings (obviously), but also any URL rewriting etc; look into chrome dev tools or firebug to see what is being returned from the missing .js call (i.e is it an IIS or apache 404, or something else?)

unable to run in server

I have downloaded code from code project site (http://www.codeproject.com/Articles/511031/A-sample-real-time-web-application-using-Ember-js?msg=4693404#xx4693404xx) it is running fine when i run in local but once i keep in server and browse with url it is not opening.
http://drjeppesen.dyndns.org/onlineorder/ser/Ember.n.SignalR/
Displaying empty screen. Can anyone help to find the way how can i run this?
If you see the browser console, your server is requesting the javascripts and css's in the wrong path. For example, a request is made for http://drjeppesen.dyndns.org/onlineorder/Scripts/u.js, but the correct path is http://drjeppesen.dyndns.org/onlineorder/ser/Ember.n.SignalR/Scripts/u.js