You are mixing backslashes and forward slashes

On Wed, Apr 13, 2011 at 9:11 AM, Laxmi <laxmipsa...@gmail.com> wrote:

> Hi hear is the code which I used to upload image and save the image
> name in database.
>
> $dir = sfConfig::get('sf_web_dir').'\images\user\ ';
>      $user = $this->getUser()->getAttribute('user');
>      $filename = $_FILES["file"]["name"];
>
>      move_uploaded_file($_FILES["file"]["tmp_name"],$dir.$filename);
>      $fuser = Doctrine_Core::getTable('friendlynationuser')-
> >find($user);
>      $fuser->set('picture',$filename);
>      $fuser->save();
>      $this->redirect('dashbord/index');
>
> but when i am trying to display image i am unable to display please
> let me know where i am going wrong
>
> $picture = Doctrine_Core::getTable('user')->getPicture($user);
> //echo $picture;
> $location = '/images/user/'.$picture;
> <img class ="user_image" src=<?php echo $location; ?> /><br>
>
> Thanks in advance
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc
identi.ca: @garethmcc

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to