Click here to Skip to main content
11,924,800 members (54,347 online)
Rate this:
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 20: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 27-Mar-13 3:12am
Good observation.!
Thank you,
TheSniper105 27-Mar-13 16:59pm
@sergey lacks file path separator, '/'. what do u mean and where should it be ?
Sergey Alexandrovich Kryukov 27-Mar-13 17:58pm
It should be '/' :-)
TheSniper105 28-Mar-13 11:04am
thank u that's helped me
Sergey Alexandrovich Kryukov 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151125.3 | 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