13:59 Mon Sep  3, 2007
Cheap Hummer!

12:18 Tue Jul  4, 2006
Hummer Camp After

12:15 Tue Jul  4, 2006
Hummer Camp

Help Me Humpa
PHP and MMS Server Help
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Attachment Filename

 
Post new topic   Reply to topic    Help Me Humpa Forum Index -> MMS Pic Server by Humpa
View previous topic :: View next topic  
Author Message
dacool25



Joined: 29 Apr 2007
Posts: 60

PostPosted: Tue May 08, 2007 9:41 pm    Post subject: Attachment Filename Reply with quote

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! Cool
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Tue May 08, 2007 10:15 pm    Post subject: Re: Attachment Filename Reply with quote

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! Cool
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
View user's profile Send private message
dacool25



Joined: 29 Apr 2007
Posts: 60

PostPosted: Tue May 08, 2007 10:16 pm    Post subject: Reply with quote

Smile alright thanks humpa!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Help Me Humpa Forum Index -> MMS Pic Server by Humpa All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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