|
|
Help Me Humpa PHP and MMS Server Help
|
| View previous topic :: View next topic |
| Author |
Message |
dacool25
Joined: 29 Apr 2007 Posts: 60
|
Posted: Tue May 08, 2007 9:41 pm Post subject: Attachment Filename |
|
|
Hey Humpa!
I just had a quick question. I was wondering, when i send my pictures to another phone, they get listed as humpa_thephonecam as the filename for the attachment.
I think that i have found the code that makes it this, and i believe it is in send.php
| Code: |
}else {
$mail->AddStringAttachment($media[$i], "humpa_phonecam_$random_num$media_ext[$i]", "base64", "$media_type[$i]");
}
$i++; |
By chaning "humpa_thephonecam_, to something of my choice, will this cause an errors in the script? Thanks!  |
|
| Back to top |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Tue May 08, 2007 10:15 pm Post subject: Re: Attachment Filename |
|
|
| dacool25 wrote: |
Hey Humpa!
I just had a quick question. I was wondering, when i send my pictures to another phone, they get listed as humpa_thephonecam as the filename for the attachment.
I think that i have found the code that makes it this, and i believe it is in send.php
By chaning "humpa_thephonecam_, to something of my choice, will this cause an errors in the script? Thanks!  |
No, that's perfect.
I use a random number because I had to cover all possibilities - like if someone had a pic, a video, and 3 audio file .. I didn't want the attachment names to conflict.
Just change:
humpa_phonecam_$random_num$media_ext[$i]
to something like this:
dacool_$random_num$media_ext[$i]
I'd leave the $random_num in there (it is just a 4 digit number), and put your name at the begining |
|
| Back to top |
|
 |
dacool25
Joined: 29 Apr 2007 Posts: 60
|
Posted: Tue May 08, 2007 10:16 pm Post subject: |
|
|
alright thanks humpa! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|