| View previous topic :: View next topic |
| Author |
Message |
xecuter2
Joined: 28 Aug 2006 Posts: 25
|
Posted: Sun Jun 10, 2007 4:04 am Post subject: Hey humpa! Problems with uploading images. |
|
|
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 |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
|
| Back to top |
|
 |
xecuter2
Joined: 28 Aug 2006 Posts: 25
|
Posted: Sun Jun 10, 2007 9:38 pm Post subject: |
|
|
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 This is bugging me now, i miss my image uploads! haha |
|
| Back to top |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Sun Jun 10, 2007 9:45 pm Post subject: |
|
|
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).  |
|
| Back to top |
|
 |
xecuter2
Joined: 28 Aug 2006 Posts: 25
|
Posted: Fri Jun 15, 2007 3:30 am Post subject: |
|
|
I tried posting to yours and it does the same thing, this is so werid I can view the web fine though. |
|
| Back to top |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Fri Jun 15, 2007 8:52 am Post subject: |
|
|
| xecuter2 wrote: |
I tried posting to yours and it does the same thing, this is so werid I can view the web fine though. |
What are you using for a proxy? |
|
| Back to top |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Fri Jun 15, 2007 8:53 am Post subject: |
|
|
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 |
|
 |
xecuter2
Joined: 28 Aug 2006 Posts: 25
|
Posted: Mon Jun 18, 2007 6:54 pm Post subject: |
|
|
| 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 |
|
 |
xecuter2
Joined: 28 Aug 2006 Posts: 25
|
Posted: Mon Jun 18, 2007 10:15 pm Post subject: |
|
|
| I cant figure it out, it seems like its blocked somehow by my provider somehow. |
|
| Back to top |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Mon Jun 18, 2007 10:29 pm Post subject: |
|
|
| what happens when you send the pic to the phone from Outlook or gmail or yahoo? |
|
| Back to top |
|
 |
xecuter2
Joined: 28 Aug 2006 Posts: 25
|
Posted: Wed Jun 20, 2007 1:09 am Post subject: |
|
|
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  |
|
| Back to top |
|
 |
xecuter2
Joined: 28 Aug 2006 Posts: 25
|
Posted: Wed Jun 20, 2007 2:15 am Post subject: |
|
|
What in the world 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 |
|
 |
xecuter2
Joined: 28 Aug 2006 Posts: 25
|
Posted: Wed Jun 20, 2007 3:35 am Post subject: |
|
|
yay!! its fixed! I had to downgrade the version of PHP, go figure.. Now it works and its fast as ever.  |
|
| Back to top |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Wed Jun 20, 2007 8:45 am Post subject: |
|
|
| xecuter2 wrote: |
yay!! its fixed! I had to downgrade the version of PHP, go figure.. Now it works and its fast as ever.  |
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 |
|
 |
|