PDA

View Full Version : file_get_contents/fetch_attachment_path issue


toolmanwill
05-04-2010, 02:28 PM
I am using this code:

file_get_contents(fetch_attachment_path($userid, $filedataid))

however i am getting this error:

Warning: file_get_contents([path]/attachments/1/50.attach) [function.file-get-contents]: failed to open stream: No such file or directory in [path]/vbtt/attach.php on line 17

what am i doing wrong, how do i pass the actual path on instead of it coming up [path]??

any help is greatly appreciated!!!!



EDIT(mostly resolved):

I figured out the path error but still getting an error on a foreach in my code, i'm sure i'll figure it out

EDIT:

so i got this finally, had my hook in the wrong place, all is well now and fully working :)