hellkvist.org Forum Index hellkvist.org
Discussions about the free software on hellkvist.org
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

folder is made after sending.. but no jpg and txt

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    hellkvist.org Forum Index -> MMS Diary
View previous topic :: View next topic  
Author Message
digilife



Joined: 24 Oct 2003
Posts: 1

PostPosted: Fri Oct 24, 2003 3:56 pm    Post subject: folder is made after sending.. but no jpg and txt Reply with quote

i have setup mmsdiary and have send a mms to the send.php

the folder (1067007002_7) is made but the jpg and txt files dont appear.... anyone an idea how come?
Back to top
View user's profile Send private message
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Sat Oct 25, 2003 8:26 pm    Post subject: Reply with quote

Are you using a PHP version less than 4.2? Last time I heard something like that someone was using an older version and it seems PHP has worked differently throughout the versions on how it handles relative paths.

Also check the permissions of the created folder.

You can also try and post with something which is not your phone so that you can see what error messages your server gives out when you post to it (alternatively you can use Ethereal to snoop the traffic). A scipt such as the following can post if you have a preenconded MMS binary:

Code:

#!/usr/bin/php4 -q
<?

$argv = $_SERVER["argv"];
$host = $argv[1];
$path = $argv[2];
$filename = $argv[3];
$length = filesize( $filename );
$filep = fopen( $filename, "rb" );
$message = fread( $filep, $length );

$fp = fsockopen( $host, 80, $errno, $errstr, 30 );

fwrite( $fp,
   "POST " . $path . " HTTP/1.0\x0D\x0A" .
   "Host: " . $host . "\x0D\x0A" .
   "User-Agent: MMS Poster\x0D\x0A" .
   "Content-Length: " . $length . "\x0D\x0A" .
   "Content-Type: application/vnd.wap.mms-message\x0D\x0A" .
   "\x0D\x0A".
   $message );

while (!feof($fp))
{
      echo fgets ($fp,128);
}
echo "\n";
?>


Use it as follows ./poster.php <server-ip> <path> mms-binary
Example: ./poster.php hellkvist.org /nosuchdiary/send.php mms.bin
(you might need to change the first line of the script if your php-binary is not named php4 - it is in debian).

If you need a sample mms to post I can send you one. Just drop me an email (see http://hellkvist.org/about/) and ask. Or if you just give me the URL to your send.php I can post a sample to it and see whatever error your server spits out.

/S
Back to top
View user's profile Send private message Visit poster's website
tribun
Guest





PostPosted: Thu Jun 17, 2004 5:11 pm    Post subject: same Problem Reply with quote

Hi,
i have PHP Version 4.3.6 and the Same Problem, but my Folders are named like "1087487977_", so without a number after the "_".
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Thu Jun 17, 2004 7:19 pm    Post subject: Reply with quote

If there is nothing after the '_' then it means that the parser did not find a transaction ID in the message as it uses that to create a unique directory name. That sounds unusual. What kind of phone is that?

And also, have you tried posting against any of my installations (such as http://hellkvist.org/diary/send.php or http://peffis.com)? You could try that so we can determine if there is something wrong with your installation or if it's something unusual about your phone.

/S
Back to top
View user's profile Send private message Visit poster's website
mikey
Guest





PostPosted: Mon Oct 04, 2004 6:41 pm    Post subject: Reply with quote

hi

for the 2nd time i install this mod into another webpage, but now
i have problems. when i type the path in the browser it works
fine, but when it include the path in my cms-portal, i get the
follow message "There are no messages here yet..."
what's wrong, please help me...

www.schaudochmal.ch

thanks a lot!
mikey
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Mon Oct 04, 2004 8:07 pm    Post subject: Reply with quote

If it says "No messages here yet..." it means it cannot simply find anything in the msgstore directory. Depending on how you have configured it MMS diary will look for a directory called msgstore and most likely, if you haven't changed anything, it will look in the directory of the php file that is referring it. I don't know how you are using this but if you are including it into some other PHP file in some other directory then it might not find the correct directory to look in.
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Wed Oct 06, 2004 8:27 am    Post subject: Reply with quote

thanks peffis

i've trying to include view.php into "iframe", it works fine now.

mikey
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Wed Oct 06, 2004 3:15 pm    Post subject: Reply with quote

Cool!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    hellkvist.org Forum Index -> MMS Diary All times are GMT + 1 Hour
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


Powered by phpBB © 2001, 2005 phpBB Group