Webmaster Discussion Forum -  Revenue Sharing Forum  webmaster talk related topic
3000+ Free Tutorials, Read and learn from Picture and text
FREE Tutorials on Flash, Photoshop, PHP, 3DS, MySql and more.
Add your tutorials and get more traffic !

» Free SEO Tools
» Check Page Rank
» Check Page Rank multi datacenter
» Check Fake Page Rank
» Alexa Traffic Rank
» Bulk Page rank Check
» Link Popularity
» Check domain Instantly
» Short url
» MD5 Encrypt
» Meta Tags Extractor
» Surf using Proxy
» Keyword Density Analyzer
» Keyword Analyzer
» Welcome to WMH
Registration at WebmastersHome is completely FREE and takes only a few seconds. By registering you'll gain:
  • Full Posting Privileges.
  • Access to Private Messaging.
Register now
Partner

Text Link Ads
Web Hosting
Flash Tutorials
PHP Scripts
Web Hosting providers
Offshore Software Outsourcing
Web Directory
Software Directory
Your Text Link
Earn More
Simply Add a Post and view ad network advertisement on this post.


Go Back   Webmaster Discussion Forum - Revenue Sharing Forum webmaster talk related topic > Design and Programming Talk > General Web Design


image upload problems

General Web Design


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-13-2007, 11:23 PM
usanyou usanyou is offline
Junior Member
 
Join Date: Sep 2006
Posts: 11
usanyou is on a distinguished road
iTrader: (0)
Default image upload problems

can someone please draw me a picture on how to properly upload my pics to a SUBdomain? it seems that every blinkin' time i upload images to an add-on domain, i have problems viewing the graphics.

i have triple-checked the html to ensure there are no local urls.

i have triple-checked for typos ("images" and not "Images") for my images folder.

since i'm not sure whether it matters that i have an "images" folder in my root AND sub-domains, i have uploaded all my pics to my root's "images" folder.

i don't know what else to look for. does something happen to an images' properties to make it decide to load somewhere other than i think it should?

PLEASE help ....


vb
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Revenue Sharing Ads ( Read More ):

  #2 (permalink)  
Old 04-14-2007, 11:42 AM
jitender's Avatar
jitender jitender is offline
Site Admin
 
Join Date: Jun 2004
Posts: 1,200
jitender has a spectacular aura aboutjitender has a spectacular aura aboutjitender has a spectacular aura about
iTrader: (0)
Default

Hi there

when you create a sub domain you get below

url is : subdomain.domain.com
folder is : /home/USERNAME/public_html/SubDomain

Add img tag to this there are few methods

if you are using the php
you can use the below
$p=dirname(__FILE__); // Get file Path your running file path

Like http://subdomain.domain.com/file.php
$p = /home/USERNAME/public_html/SubDomain

now your $p is local subdomain path, you can call image file as below
$filepath=$p.'/images/imagefilename.gif'; //if file in subdomain/image folder


you can use the direct file path

<img src="http://subdomain.domain.com/images/imagefile.gif">

if your file in subfolder then you can use below also

<img src="images/imagefile.gif">

Try this

best of luck

regards
jitender
__________________
Free Webmaster Tools - Free SEO Tools
phpLDHacks - Add your template or Hack and earn money
Text Link Ads - Buy & Sell text link ads
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-14-2007, 06:44 PM
usanyou usanyou is offline
Junior Member
 
Join Date: Sep 2006
Posts: 11
usanyou is on a distinguished road
iTrader: (0)
Default

hi jitender,

thx very much for your reply -- someone else has made the same suggestion as well.

i'm afraid i'm not that well-versed in the "proper" (& more efficient) way to code web pages, so i am using FrontPage as my html editor.

so-os... i'm simply proofing the code in "split" view and making sure that the path is the proper one.

after reading your suggestion from another forum contributor, i added my subdomain to the beginning of my path (as in your example), but this hasn't made any difference. i uploaded the changed webpage and i still don't see any images.

another question ...

Quote:
url is : subdomain.domain.com
folder is : /home/USERNAME/public_html/SubDomain

my folders are organized as such:

primary url is : domain.com
folder is : /home/USERNAME/public_html/domain

add-on url is : subDomain.com ... (not subdomain.domain.com)
folder is : /home/USERNAME/public_html/domain
SubDomain1
SubDomain2, etc

my images are currently organized:

/home/USERNAME/public_html/images

i have tried uploading them to:

/home/USERNAME/public_html/images/SubDomain
and
/home/USERNAME/public_html/SubDomain/images ...

but neither location will view the images in any browser. however, i can see the images in the browser on the computer that i'm working on.


am i somehow messing up my folder heirarchy?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-14-2007, 08:35 PM
usanyou usanyou is offline
Junior Member
 
Join Date: Sep 2006
Posts: 11
usanyou is on a distinguished road
iTrader: (0)
Default

me again ..

you're going to laugh at this ....

it was a hotlink protection thing. i had forgotten that i'd done this for my root domain (~18 months ago) and it wasn't about to occur to me any time soon that i would have to do the same thing for my SubDomains. who knew?

anyway, thank you for taking the time to brainstorm for me. i appreciate it very much!!

vb
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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


All times are GMT. The time now is 08:47 AM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0