Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Image not appearing on PHP page, WWW folder
Old 10-13-2007, 03:49 PM Image not appearing on PHP page, WWW folder
Dudeman's Avatar
Novice Talker

Posts: 5
Name: Drake o
Location: A very interesting planet indeed!
Trades: 0
- First of all, Im new here, & Im sorry to couble post, as my problem was explained in the sticky thread; - First of all, Im a little confused... mayby the image wasnt showing because the image needs to be stored somewhere special on the server? - There are many folders already in the root directory on my site, such as "WWW" . HTML. Public". etc.... What are the various folders for? It's seems like the WWW floder ids where the server looks for an index page, but the other folders???


Well Here's one thing; I created a "php" page in Dreamweaver & the an image on the page, (actually, the background of a table) wouldnt show up, so I made a HTML page, until I can figure out this PHP stuff... (SOON)

What's The Deal? I uploaded the php file first, & saw that there was no image showing, so I then uploaded the same thing, but by creating a html page in dreamweaver mx, & uploaded the index.html ... I had to delete the index.php from the server for users to see the index.html page on criticalunity.org ... This is an important site, as yoiull see, so please help with any tips, & Ill be looking around, as aparently this seems to be one of the best forums for webmasters Ive seen so far!
Dudeman is offline
Reply With Quote
View Public Profile Visit Dudeman's homepage!
 
 
Register now for full access!
Old 10-13-2007, 04:37 PM Re: Image not appearing on PHP page, WWW folder
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
First:
All the folders you see from FTP have all a precise functions, don't delete them lightly.
As you guessed, the folder named WWW is the one where everything related to your site is stored.
In fact, it's a shortcut to public_html. the files are the same in both folder, so beware, if you delete from one, you won't have a copy in the other.

Now, for your problem precisely...
HTML is a describing language, that is interpreted by the browsers accessing your site. That means that you don't have all the datas needed to display your site in the .html files, but only the description about where to find them, and how to display them.
PHP is nothing more than an "extension" of HTML, allowing programmers to add logic into the pages, to modify it contents.

Now, when you add images to your pages, what you are doing in fact is telling the visitors browser where to find this image. And that means that you must upload the image into your www folder as well as your php/html file.
In fact, when you are designing a web site, you usually must upload every single files that compose your site to the server, into the www folder.
If you fail todo so, your users might have a "broken image" icon, telling them that a declared image could not be found at a specific location.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 10-13-2007, 04:52 PM Re: Image not appearing on PHP page, WWW folder
Dudeman's Avatar
Novice Talker

Posts: 5
Name: Drake o
Location: A very interesting planet indeed!
Trades: 0
Right, I know, Im not that much of a newbie ') - - But I had had the file uploaded, & it didnt work... - So I created an HTML page (from Dreamweaver) , & uploaded that as the index, & it workd... (this site is in massive development, (this weekend especially, but you can obviously see the image, which is the background of a table - http://criticalunity.org

Last edited by Dudeman; 10-13-2007 at 04:55 PM.. Reason: I felt like it ;-)
Dudeman is offline
Reply With Quote
View Public Profile Visit Dudeman's homepage!
 
Reply     « Reply to Image not appearing on PHP page, WWW folder
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.51118 seconds with 12 queries