Reply to comment

smart Copy undefined variable


I was trying to use your smartCopy function that I found on
( I noticed that when trying to run the function
it fails because the variable $dirsource has not been defined ($dirsource
is used in the last while loop of your function). Would you be able to
help me out?

Thanks again for the great function :)

- Justin


  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Allowed HTML tags: <a> <blockquote> <br> <cite> <code> <dd> <div> <dl> <dt> <em> <li> <ol> <p> <span> <strong> <ul>

More information about formatting options

This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Enter the characters shown in the image.