Click here to Skip to main content
15,346,249 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
QuestionWhy do images are not shown? Pin
Joan M21-Mar-11 5:43
professionalJoan M21-Mar-11 5:43 
AnswerRe: Why do images are not shown? Pin
Luc Pattyn21-Mar-11 5:50
sitebuilderLuc Pattyn21-Mar-11 5:50 
GeneralRe: Why do images are not shown? Pin
Joan M21-Mar-11 6:10
professionalJoan M21-Mar-11 6:10 
GeneralRe: Why do images are not shown? Pin
Luc Pattyn21-Mar-11 6:22
sitebuilderLuc Pattyn21-Mar-11 6:22 
GeneralRe: Why do images are not shown? Pin
Joan M21-Mar-11 6:22
professionalJoan M21-Mar-11 6:22 
AnswerRe: Why do images are not shown? Pin
Luc Pattyn21-Mar-11 6:24
sitebuilderLuc Pattyn21-Mar-11 6:24 
GeneralRe: Why do images are not shown? Pin
Joan M21-Mar-11 6:47
professionalJoan M21-Mar-11 6:47 
GeneralRe: Why do images are not shown? Pin
Luc Pattyn21-Mar-11 6:52
sitebuilderLuc Pattyn21-Mar-11 6:52 
that looks like a security precaution. Normally a web site is supposed to refer to its own pages, not to the local file system.

And AFAIK XAMPP and other PHP systems also have such (optional?) precautions; mine is set to allow access only to files that are under the server's root.

So what should work is file mypage.html containing
<html>
  <body>
    <img src="aaa.png">
    <img src="images/bbb.png">
  </body>
</html>

when it is stored at the site's root, together with aaa.png, and bbb.png in the subdirectory images.

You wouldn't like a web server to give access to files outside its root, would you? The entire file system would be up for grabs.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

GeneralRe: Why do images are not shown? Pin
Joan M21-Mar-11 7:09
professionalJoan M21-Mar-11 7:09 
GeneralRe: Why do images are not shown? Pin
Luc Pattyn21-Mar-11 7:17
sitebuilderLuc Pattyn21-Mar-11 7:17 
QuestionRe: Why do images are not shown? Pin
Joan M21-Mar-11 7:30
professionalJoan M21-Mar-11 7:30 
AnswerRe: Why do images are not shown? Pin
Luc Pattyn21-Mar-11 7:43
sitebuilderLuc Pattyn21-Mar-11 7:43 
QuestionPHP vs ASP.net Pin
m_7tem20-Mar-11 11:05
Memberm_7tem20-Mar-11 11:05 
AnswerRe: PHP vs ASP.net Pin
Luc Pattyn20-Mar-11 11:34
sitebuilderLuc Pattyn20-Mar-11 11:34 
AnswerRe: PHP vs ASP.net Pin
Pravin Patil, Mumbai20-Mar-11 18:42
MemberPravin Patil, Mumbai20-Mar-11 18:42 
AnswerRe: PHP vs ASP.net Pin
Wayne Gaylard20-Mar-11 23:30
professionalWayne Gaylard20-Mar-11 23:30 
AnswerRe: PHP vs ASP.net Pin
MacRaider422-Mar-11 5:34
MemberMacRaider422-Mar-11 5:34 
AnswerRe: PHP vs ASP.net Pin
RaviRanjanKr21-Apr-11 6:29
professionalRaviRanjanKr21-Apr-11 6:29 
Question"." operator to join two strings... Pin
Joan M18-Mar-11 9:17
professionalJoan M18-Mar-11 9:17 
AnswerRe: "." operator to join two strings... Pin
samarulraj18-Mar-11 19:59
professionalsamarulraj18-Mar-11 19:59 
GeneralRe: "." operator to join two strings... Pin
Joan M18-Mar-11 21:45
professionalJoan M18-Mar-11 21:45 
AnswerRe: "." operator to join two strings... Pin
effayqueue19-Mar-11 2:39
Membereffayqueue19-Mar-11 2:39 
GeneralRe: "." operator to join two strings... [modified] Pin
Joan M19-Mar-11 3:11
professionalJoan M19-Mar-11 3:11 
GeneralRe: "." operator to join two strings... Pin
effayqueue19-Mar-11 3:28
Membereffayqueue19-Mar-11 3:28 
GeneralRe: "." operator to join two strings... Pin
Joan M19-Mar-11 3:37
professionalJoan M19-Mar-11 3:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.