Jump to content

Problem with wamp 2.1

- - - - -

  • Please log in to reply
2 replies to this topic

#1
thatsme

thatsme

    Programmer

  • Members
  • PipPipPipPip
  • 176 posts
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
xle_camry

xle_camry

    Programmer

  • Members
  • PipPipPipPip
  • 141 posts
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...

#3
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
  • Location:Vancouver, Eh! Cleverness: 200
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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users