Load images from computer PHP / HTML

trhjutrjujetju

New Member
at this moment i am in China. I created a simple website for uploading some pictures to share with friends. Adding comments etcetera. I upload all the pictures but they load very slow in China so my idea was:When i am logged in (can find in session) i will simply load the pictures from my local machine and not from the website because it is very slow or it doesnt even load the pictures.I tried this:\[code\] if ($_SESSION['id'] == 1) { //check if i am logged in $china = "file:///F:/"; } else { $china = ''; }\[/code\]after that:\[code\] echo "<div id='title" . $image['id'] . "'><h2>" . $image['title'] . "</h2></div> <img src='http://stackoverflow.com/questions/15515571/$china" . $image['url'] . "'/>";\[/code\]But when i open my browser it seems it can find the picture because it has a width but no height so the picture isnt shown. When i follow the link to the picture with the devoloper tools it will show the picture so the links are right.I think this is not working because of some security reasons or something. I hope someone can help me.
 
Back
Top