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 


Hey humpa! Problems with uploading images.

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



Joined: 28 Aug 2006
Posts: 25

PostPosted: Sun Jun 10, 2007 4:04 am    Post subject: Hey humpa! Problems with uploading images. Reply with quote

The script was working great for the longest time and now I am having problems with it. It is located at www.x2tech.net I tried using the test_send php to test it, you can do that here if you want. I will warn that when I went to it, there was an endless loop which caused firefox to use up all of my ram. (EDIT - removed)
When I upload an image now, it goes to 100% and acts like its sent, but then it will try to resend and eventually give me an error saying it was unable to send. What could have caused this?


Last edited by xecuter2 on Sun Jun 24, 2007 1:41 am; edited 1 time in total
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Sun Jun 10, 2007 9:37 am    Post subject: Reply with quote

I'm not sure.
But go here http://www.humpa.com/humpa_mms/test_humpa
And save that file as "test_humpa" and save it to your root (with your mms files)

Then open your send_test.php file and replace http://www.humpa.com/humpa_mms/test_humpa with just test_humpa on line 61 and try it again.
Back to top
View user's profile Send private message
xecuter2



Joined: 28 Aug 2006
Posts: 25

PostPosted: Sun Jun 10, 2007 9:38 pm    Post subject: Reply with quote

ok, line 61 now reads $fd = fopen("test_humpa", "r");
That worked, you picture gets put in perfectly fine.
So it has to be a problem with my phone now? I checked my MMS server again and it points to http://x2tech.net/send.php
My web session is custom made and it points to a proxy on my pc. The web on the phone works fine as well Sad This is bugging me now, i miss my image uploads! haha
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Sun Jun 10, 2007 9:45 pm    Post subject: Reply with quote

hmmm ... that is weird.

Try posting to my humpa_mms/send.php and I'll try posting to yours in a bit.

I'm going to watch the new show on HBO first though ... just finished the Sopranos. I like the ending now that I understand it (I can be a little daft sometimes, so I didn't get it until I googled for human input). Wink
Back to top
View user's profile Send private message
xecuter2



Joined: 28 Aug 2006
Posts: 25

PostPosted: Fri Jun 15, 2007 3:30 am    Post subject: Reply with quote

I tried posting to yours and it does the same thing, this is so werid Sad I can view the web fine though.
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Fri Jun 15, 2007 8:52 am    Post subject: Reply with quote

xecuter2 wrote:
I tried posting to yours and it does the same thing, this is so werid Sad I can view the web fine though.
What are you using for a proxy?
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Fri Jun 15, 2007 8:53 am    Post subject: Reply with quote

what phone do you have?
The Motorola's have a setting in the MMS menu for Web Session - make sure that is set to a valid WebSession (not the wap.google.com thing).
Back to top
View user's profile Send private message
xecuter2



Joined: 28 Aug 2006
Posts: 25

PostPosted: Mon Jun 18, 2007 6:54 pm    Post subject: Reply with quote

This is weird, I may try reinstalling my proxy, or try a new one. I'm running it on a spare pc here. I can use the web fine though which is weird.
Back to top
View user's profile Send private message
xecuter2



Joined: 28 Aug 2006
Posts: 25

PostPosted: Mon Jun 18, 2007 10:15 pm    Post subject: Reply with quote

I cant figure it out, it seems like its blocked somehow by my provider somehow.
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Mon Jun 18, 2007 10:29 pm    Post subject: Reply with quote

what happens when you send the pic to the phone from Outlook or gmail or yahoo?
Back to top
View user's profile Send private message
xecuter2



Joined: 28 Aug 2006
Posts: 25

PostPosted: Wed Jun 20, 2007 1:09 am    Post subject: Reply with quote

I don't know. I don't get what could cause this. You were able to upload an image fine, but when I try to, it says its sending, then it keeps trying to resend because it failed. I have my MMS server set to my domain/send.php and my web session is custom made which has all three gateway/domains linked to my pc, with all the ports listed to the port im using for the proxy. The WAP browser on the phone works perfect Sad
Back to top
View user's profile Send private message
xecuter2



Joined: 28 Aug 2006
Posts: 25

PostPosted: Wed Jun 20, 2007 2:15 am    Post subject: Reply with quote

What in the world Sad I just uploaded a pic to my old thephonecam page without an issue. What setting on my web host could cause incoming files to be blocked?
Back to top
View user's profile Send private message
xecuter2



Joined: 28 Aug 2006
Posts: 25

PostPosted: Wed Jun 20, 2007 3:35 am    Post subject: Reply with quote

yay!! its fixed! I had to downgrade the version of PHP, go figure.. Now it works and its fast as ever. Smile
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Wed Jun 20, 2007 8:45 am    Post subject: Reply with quote

xecuter2 wrote:
yay!! its fixed! I had to downgrade the version of PHP, go figure.. Now it works and its fast as ever. Smile
Hmmm .... I might know what that is.

Perhaps $HTTP_RAW_POST_DATA is depriciated.

I used to have some code in the send.php before this:
Code:
if($mms_data != "") {
   $HTTP_RAW_POST_DATA = $mms_data;
}

I forget why I took it out, but perhaps I should put it back in. It used to be like this:
Code:

if (!isset($HTTP_RAW_POST_DATA)) {
   $fd = fopen("php://input", "r");
   $mms_data = "";
   while (!feof($fd)) {
       $mms_data .= fread($fd, 1024);
   }
   fclose($fd);
}


if($mms_data != "") {
   $HTTP_RAW_POST_DATA = $mms_data;
}
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