Hi, i am trying to create a php web page with wamp 2.1 and strange thing happened. When i add some lines to css file and refresh php file nothing happens. Then i open source code through browser and press the link of that css file. And the css file is displayed as empty. Why?? I added lines to it. Adrresses of css files are written correctly in php files and i cannot find what's wrong. Maybe anyone of you had the same problem and could help me?
2 replies to this topic
#1
Posted 21 May 2011 - 11:17 AM
|
|
|
#2
Posted 21 May 2011 - 12:04 PM
I use wamp. I have never had such problem. Problems may be with:
1. Check link in your php file. Have you given true link? May be you didnt show folder name. <link href="styles/style.css" rel="stylesheet" type="text/css" /> (extension must be .css)
2. In php file, link must be placed between <head> </head> tags. Also dont forget put <html><body> tags.
And in the last, if it doesnt work, then move your folder with that site out of wamp/www. Place that folder to desktop and check again. It should help...
1. Check link in your php file. Have you given true link? May be you didnt show folder name. <link href="styles/style.css" rel="stylesheet" type="text/css" /> (extension must be .css)
2. In php file, link must be placed between <head> </head> tags. Also dont forget put <html><body> tags.
And in the last, if it doesnt work, then move your folder with that site out of wamp/www. Place that folder to desktop and check again. It should help...
#3
Posted 21 May 2011 - 12:15 PM
You likely are writing to the wrong file. WAMP (of which uses Apache) should be successful on retrieving files. Remember that http://localhost/ will likely be in C:\wamp\www\ or similar.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









