Ivkins Posted May 16, 2012 Report Posted May 16, 2012 Esmu iesācējs saskāros ar tādu problēmu. Ir root mapē atrodas index.php un header.php Header's satur linku uz bildi, index failā ir include (header.php) un bilde rādās it kā viss ok, Vēl ir direktorija piem.(test) kurā atrodas test.php - test/test.php un tajā test.php ir arī noradīts tas pats include (../header.php), bet tagaad ir problēma nerādā bildi, bet visu pārējo kas ir header.php rāda? Kā ir jānorāda bildes atrašanās vieta header.php, lai no jebkuras direktorijas atrastu bildi? Quote
briedis Posted May 16, 2012 Report Posted May 16, 2012 (edited) Jānorāda absolūts ceļš - ar "/" priekšā. Relatīvs: img/lol.jpg Absolūts /img/lol.jpg Edited May 17, 2012 by briedis Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.