xampp php not importing css, images, but imports php files -



xampp php not importing css, images, but imports php files -

i trying re-create website local machine. have downloaded code, , things page redirection, , importing work fine. displaying images, css, , using javascript doesn't seem work.

<?php $root = $_server['document_root']; include ($root . '/resources/config.php'); echo "$imagepath/user_suit.png"; ?> <div class="sidebar1"> <ul class="nav"> <li> <div id="loginlink" class="menu" onmousedown="return false;" > <img src=" <?php echo $imagepath ?>/user_suit.png" width="15" height="14" alt="member login"> fellow member login </div> </li> </ul> &nbsp;&nbsp; welcome guest! </div> <script type="text/javascript"> $("#loginlink").click(function(){ // load contact form onclick $("#contentpane").hide(); $("#loadingpagegif").show(); $("#contentpane").load(" <?php echo $server ?>/code/login/studentlogin.php", function() { $("#loadingpagegif").hide(); $("#contentpane").fadein(); }); }); </script>

in code, embedded image not load, , clicking on link nothing.

i can right click on unloaded image, go view image, , correctly displays.

i can set echo lines in $root . '/resources/config.php' , show correctly.

the site downloaded not have these issues, guessing has xampp.

the browser adds http://, should create

<div id="loginlink" class="menu" onmousedown="return false;" > <img src="http://localhost:82/public_html/images/user_suit.png" width="15" height="14" alt="member login"> fellow member login </div>

php xampp

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -