[EdLUG] Maybe "echo" statements would isolate the bug (Was: php/mail forwarding pdf attachment)
Kingsley G. Morse Jr.
kingsley at loaner.com
Tue Oct 22 20:58:29 UTC 2024
Hi James,
I worked in tech support for programming
languages.
I routinely first try to isolate the location of
bugs.
Once I know where it is, then I can start testing
more precise and tailored fixes.
Evidently php supports "echo" and "print" statements.
Maybe you could lace echos throughout your code,
with informative details echoed to you by each, to
reveal where a problem is.
I'd like to think knowing where a bug is
would save you time by suggesting more relevant fixes.
Best wishes,
Kingsley
On 10/22/2024 09:59, James Tobin wrote:
> Hi,
>
> I am piping alias emails to a php script that looks up a real email
> address in MySQL and forwards the email and attachments. However,
> I'm having immense difficulty with the attachments. Either they are
> sent on but can not be opened or they are not. I've tried multiple
> libraries and also php imap. This is on shared hosting
>
> Any thoughts?
>
> Thanks,
> James
>
> --
> EdLUG mailing list
> EdLUG at mailman.lug.org.uk
> https://lists.edlug.org.uk/mailman/listinfo/edlug
--
Time is the fire in which we all burn.
More information about the EdLUG
mailing list