Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8664657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:17:38+00:00 2026-06-12T17:17:38+00:00

I am using WAMP server and I want to display the image uploaded on

  • 0

I am using WAMP server and I want to display the image uploaded on the server..
i have successfully implemented the uploading of image..but while displaying it using –

echo ' < img src=\"'.$p.'\" alt=\"Cover\" > ';

where $p contains the path of image, i get a broken image. When i right click and select open image in new tab, the following is displayed..

Forbidden

You don’t have permission to access /”c:/wamp/www/folders/shubhi/My on
this server.

Also this error is not showing complete path which should be "c:/wamp/www/folders/shubhi/My pics/1.jpg"
But when i print $p, it displays the correct location.

What should i do to resolve this? Or is there any other method to display the uploaded image having its location stored in a php variable?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T17:17:39+00:00Added an answer on June 12, 2026 at 5:17 pm

    You are using absolute path to display image which is wrong.

    To display image on webpage, you need to give http url to that image as below

    $p = 'http://example.com/shubhi/My pics/1.jpg';
    
    echo ' < img src=\"'.$p.'\" alt=\"Cover\" > ';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to send messages to mobile phones using wamp server in php.I need
I am using WAMP for my Local Server in Windows 7. I want to
I'm using WAMP and have a development site in the www directory. I want
I want to bake cake php project on Windows system. I'm using wamp server
i use wamp server 2.2 , and i want using web service in my
I have installed wamp server 2.2 I'm using windows 7 When I am online
I am using windows 7 and wamp server 2.2, I have installed the wamp
I'm using WAMP as a server, and I have a need to execute svn,
a few months ago I've made it using Wamp Server but now I'm trying
I am using WAMP as my local server and what I want to know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.