Click here to Skip to main content
15,899,937 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
what is the soultion ?
my file path is
XML
G:\xampp\htdocs\ConnectMe\html


<img class="shady" src="/<?php echo "$upload_path$filename";??>" style="width: 230px; height: 230px"/>
<?php include("test.php");<br mode="hold" /?>echo"<br>$upload_path$filename";//returns image/active.png
 ?></br>
Posted

1 solution

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
 
Share this answer
 
v2
Comments
Sudhakar Shinde 27-Mar-13 3:12am    
Good observation.!
Sergey Alexandrovich Kryukov 27-Mar-13 9:49am    
Thank you,
—SA
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 '/' :-)
—SA
TheSniper105 28-Mar-13 11:04am    
thank u that's helped me

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


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900