Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: HTML PHP
what is the soultion ?
my file path is
G:\xampp\htdocs\ConnectMe\html
 

<img class="shady" src="/<?php echo "$upload_path$filename";??>" style="width: 230px; height: 230px"/>
Posted 26-Mar-13 20:02pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Most likely, this is just a matter of a file name. The expression "$upload_path$filename" lacks directory separator in the path, '/'.
 
Generally, run your code under the browser. When a page is loaded, use browser's "View page source" (or something like that) to see what HTML was actually generated. Check up src value, in particular. Compare with the actual file name of the server side. Fix it.
 
[EDIT]
 
Oh, no! Need to know the directory separators, path names? Please see:
http://en.wikipedia.org/wiki/Path_%28computing%29[^].
 
—SA
  Permalink  
v2
Comments
SRSHINDE at 27-Mar-13 3:12am
   
Good observation.!
Sergey Alexandrovich Kryukov at 27-Mar-13 9:49am
   
Thank you,
—SA
TheSniper105 at 27-Mar-13 16:59pm
   
@sergey lacks file path separator, '/'. what do u mean and where should it be ?
Sergey Alexandrovich Kryukov at 27-Mar-13 17:58pm
   
It should be '/' :-)
—SA
TheSniper105 at 28-Mar-13 11:04am
   
thank u that's helped me
Sergey Alexandrovich Kryukov at 28-Mar-13 11:24am
   
You are very welcome.
Good luck, call again.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,382


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 27 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100