how can i add picture on my web site using php code

how can i add picture on my web site using php code

Page 1 of 1

2 Replies - 53347 Views - Last Post: 07 January 2007 - 10:49 AM Rate Topic: -----

#1 diephus  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 07-January 07

how can i add picture on my web site using php code

Posted 07 January 2007 - 08:03 AM

i'm trying to learn how to use PHP. so please do anyone know how to add picture using php codes and how to put a login in the website using php.
thanks

This post has been edited by diephus: 07 January 2007 - 08:04 AM

Is This A Good Question/Topic? 0
  • +

Replies To: how can i add picture on my web site using php code

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: how can i add picture on my web site using php code

Posted 07 January 2007 - 08:45 AM

While there are many php image functions, one does not actually require php to include a picture on a website - simply using the img tags in html will do. As for the login script, can you elaborate on what you wish to accomplish? Are you storing information in a database? Cookies?
Was This Post Helpful? 0
  • +
  • -

#3 SpaceMan  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 10
  • View blog
  • Posts: 507
  • Joined: 20-February 03

Re: how can i add picture on my web site using php code

Posted 07 January 2007 - 10:49 AM

agree with Amadeus,

easest way is to echo it in html, or end the php and use html.
assuming the pic is above the http root dir.

echo "<img src='this_pic.jpg'>";



This post has been edited by SpaceMan: 07 January 2007 - 10:50 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1