Click here to Skip to main content
11,715,491 members (85,758 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: HTML PHP
what is the soultion ?
my file path is

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

1 solution

Rate this: bad
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.


Oh, no! Need to know the directory separators, path names? Please see:[^].

SRSHINDE at 27-Mar-13 3:12am
Good observation.!
Sergey Alexandrovich Kryukov at 27-Mar-13 9:49am
Thank you,
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 '/' :-)
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.

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 518
1 Richard MacCutchan 300
2 Maciej Los 259
3 ManasKumarM 155
4 Frankie-C 125
0 Sergey Alexandrovich Kryukov 785
1 CHill60 415
2 Richard MacCutchan 405
3 Maciej Los 389
4 OriginalGriff 320

Advertise | Privacy | Mobile
Web04 | 2.8.150901.1 | Last Updated 27 Mar 2013
Copyright © CodeProject, 1999-2015
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