DEV Community

Cyprian
Cyprian

Posted on

 

Why Firefox and Chrome?

PHP has been an amazing platform for me personally. But I'm still struggling with how to make both Firefox and Chrome display local contents like images from my projects.

Anyone who has faced this particular problem can help me with how to resolve them.

Top comments (6)

Collapse
 
loficodes profile image
David Fitzgibbon

What do you mean by local content? And where are you trying to show it?

Typically you can only show content local to the website. So if the site is on localhost, it can only load content from your computer.

If the site is on the internet, then you need to upload the content too.

Collapse
 
cyprian_dev profile image
Cyprian

Now that's where I'm totally confused..the site is on my localhost yet saying cannot load local resources. I'm explorer shows the pictures but Chrome and Firefox seem to have a some sort of defense that blocks these objects.

Collapse
 
loficodes profile image
David Fitzgibbon

Could you paste in the exact error you're seeing? We'll be better able to help you that way.

You're right, it might be a defense. IE is old and less safe, Chrome, Firefox and especially Safari have new safety features.

It makes things hard to learn sometimes, but it keeps us all safer!

Thread Thread
 
cyprian_dev profile image
Cyprian

This

Thread Thread
 
cyprian_dev profile image
Cyprian

The picture is not even uploading 🀦🀦
Gimme w minute pls

Thread Thread
 
loficodes profile image
David Fitzgibbon

Ha, happens to us all! Take you time πŸ™‚

🌚 Life is too short to browse without dark mode