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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.