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 7517851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:35:02+00:00 2026-05-30T01:35:02+00:00

I am learning PHP by myself for doing my final year project, but I

  • 0

I am learning PHP by myself for doing my final year project, but I cant figure it out how to display images on my website if the image is in my ftp. I know how to do in html using local host, but I dont know how to do it on my specific remote host.

I am currently using the code:

echo '<img src="'.public_html/logo.gif.'" style=width:"' . 300 . 'px;height:' . 280 . 'px;">';

If I right click on the image on my directory and select copy url it gives me:

ftp://smart206@smartdatabasesystem.com/public_html/logo.gif

but if I put all of that it still doesnt work. I am using lunar pages host recommended by w3schools.

If someone has any idea of how to fix my problem, please reply. I read some tutorials, my image display incorrectly. The website I started to develop is smartdatabasesystem.com

Thank you 🙂

  • 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-05-30T01:35:04+00:00Added an answer on May 30, 2026 at 1:35 am

    Your FTP host and HTTP host are the same machine (both “local”), but the FTP root directory (and protocol – ftp://, obviously) are different. Your http root directory is INSIDE your public_html directory, so your logo is available at:

    http://smartdatabasesystem.com/logo.gif

    Basically, for your server set up (this will be different on different servers), you can presume that any time you have an FTP location of ftp://smart206@smartdatabasesystem.com/public_html/[SOMETHING], the resource will be available at http://smartdatabasesystem.com/[SOMETHING]. If the file is below the /public_html/ directory, then the resource will not be available to the outside world through HTTP.

    Also, Lunar pages is a fine host, but you might catch some flack for taking any suggestions from w3chools… they’re not exactly well respected by more senior developers 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm learning PHP and main my concern is adding activity to my website, but
As a fun side-project for myself to help in learning yet another PHP MVC
I am learning PHP and SQL, and I'm trying to figure out how to
I am crash-learning PHP for a project, and I have a ton of stupid
I'm a student learning PHP. I basically make the stuff work, but never wondered
I am working on a small project for learning PHP better. This project has
I have been learning php for sometime now. Besides reading books and doing tutorials
I'm learning PHP and MySQL and I'm creating a movies website for learning purposes.
i want to write modules by myself very much. but for drupal and php,
I am working on a private PHP project to teach myself new stuff. One

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.