Jump to content

Combining path?


bilis_money

Recommended Posts

hi, PHP talented!

the problem with these codes below is the incorporating of filename into the path to form as one path.
<?php
$images_dir = $_SERVER['DOCUMENT_ROOT'].'/mygallery/photos/';

$photos_uploaded = $_FILES['photo_filename'];
$filename = $photos_uploaded['name'][$counter];
$dir_handler = $images_dir . $filename;

echo "<img src=$dir_handler />";
?>


I tried various ways of combining the "path" and the name of the "file" to form as one path.
To show an image but unfortunately any attempt was unsuccessful.

If you have good advice to guide me on this path puzzle pls. don't hesitate to help me.

thanks in advance.
Link to comment
https://forums.phpfreaks.com/topic/12873-combining-path/
Share on other sites

[!--sizeo:4--][span style=\"font-size:14pt;line-height:100%\"][!--/sizeo--]Crayon Violent[!--sizec--][/span][!--/sizec--]
[!--sizeo:7--][span style=\"font-size:36pt;line-height:100%\"][!--/sizeo--]I LOVE YOU![!--sizec--][/span][!--/sizec--]

[!--sizeo:5--][span style=\"font-size:18pt;line-height:100%\"][!--/sizeo--]You are the man![!--sizec--][/span][!--/sizec--]
[!--sizeo:5--][span style=\"font-size:18pt;line-height:100%\"][!--/sizeo--]You are the man![!--sizec--][/span][!--/sizec--]
[!--sizeo:5--][span style=\"font-size:18pt;line-height:100%\"][!--/sizeo--]You are the man![!--sizec--][/span][!--/sizec--]
[!--sizeo:5--][span style=\"font-size:18pt;line-height:100%\"][!--/sizeo--]You are the man![!--sizec--][/span][!--/sizec--]
[!--sizeo:5--][span style=\"font-size:18pt;line-height:100%\"][!--/sizeo--]You are the man![!--sizec--][/span][!--/sizec--]

can i have your autograph? :) LOL...
Thanks man it works!
Link to comment
https://forums.phpfreaks.com/topic/12873-combining-path/#findComment-49425
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.