Mobile Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreMobile Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 17th, 2007, 03:05 PM
Ken Iovino Ken Iovino is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 2 Ken Iovino User rank is Corporal (100 - 500 Reputation Level)Ken Iovino User rank is Corporal (100 - 500 Reputation Level)Ken Iovino User rank is Corporal (100 - 500 Reputation Level)Ken Iovino User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 31 m 23 sec
Reputation Power: 0
.GCD file not being displayed on handsets

Hey everyone, first time poster.

I'm having an issue with an upload tool I'm currently working on. It allows users to upload images or ringtones to our sever and sends them a text message of where the GCD file is located, but the handset isn't displaying the GCD file correcly. I'm thinking it's a header issue but I'm not quite sure. Here is how I'm creating and sending the .GCD file if this helps any.

PHP Code:
//create GCD file
        
$gcdfile fopen("$uploadfile.gcd""w");
        
$output ="Content-Type: $file_content_type
Content-ID: SprintUsers Uploader
Content-Name: $title
Content-Version: 1.0
Content-Storefront-URL: " 
$vbulletin->options['homeurl'] . "
Content-Info-URL: " 
$vbulletin->options['homeurl'] . "/wap/
Content-Folder: $folder
Content-Vendor: SprintUsers
Content-URL: $uploadurl" 
"$uniq_file_name.$file_ext
Content-Size: $file_size"
;
        if (!
fwrite($gcdfile$output)) 
        {
             
$errors[] = "Cannot write to file";
        }
        
fclose($gcdfile);
        
        
$message "$uploadurl$uniq_file_name.gcd";
        
send_sprintgw($phone_number,$message); 


Can anyone see whats going on here?
http://w ww.sprintpcsforum.com/focus/d/182939.gcd

When going to this URL on a handset, it only shows all the text you see with a normal browser.

Reply With Quote
  #2  
Old August 17th, 2007, 08:00 PM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Click here for more information.
 
Join Date: Feb 2002
Location: Finland
Posts: 8,910 jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 4 Weeks 1 Day 10 h 50 sec
Reputation Power: 1693
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
Hi welcome to DS.

When you visit in normal browser, just displays the header text sent as plain text.

What is supposed to happen?
What does send_sprintgw() do?

I feel that you have to get your server to handle .gcd files the way you want.
As I have never heard of the extension, I doubt apache has - you will need to configure it (.htaccess will do probably)..
__________________
Cheers,

Jamie

# mdb4u | mobile movie database] | Please help to test and promote
# skiFFie | Home of the 'accessibility module' for Drupal
# Jamie Burns [me] Accessibility Module [drupal]
# guidelines | search | wap resources | not getting help | fold to cure

__________________

Let the might of your compassion arise to bring a quick end
to the flowing stream of the blood and tears .....
Please hear my anguished words of truth.



__________________

Reply With Quote
  #3  
Old August 17th, 2007, 08:08 PM
Ken Iovino Ken Iovino is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 2 Ken Iovino User rank is Corporal (100 - 500 Reputation Level)Ken Iovino User rank is Corporal (100 - 500 Reputation Level)Ken Iovino User rank is Corporal (100 - 500 Reputation Level)Ken Iovino User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 31 m 23 sec
Reputation Power: 0
Hey jabba_29, a GCD is a simple text file that contains information which allows the download of ringers, pictures, etc... to a Sprint PCS Vision-capable handsets. The file does not contain the actual content.

A good analogy: a GCD file is a pointer, almost like a street sign, which points to a certian location. The phone takes the GCD file and goes to the content URL which is described in the file, and downloads the content to your phone.

Here's a look at sample GCD file:

Code:
Content-Type: audio/midi
Content-ID: ringer
Content-Name: My Song
Content-Version: 1.0
Content-Vendor: SprintUsers.com
Content-URL: http ://www. SprintUsers.com/mysong.mid
Content-Size: 3430


Anyway, your suggestion worked. I figured I would need a .htaccess file because the phones were not recognizing the file. I just needed to create a .htaccess file with AddType text/x-pcs-gcd gcd.

Thank you!
Ken
Comments on this post
jabba_29 agrees: Thanks for posting your solution.

Reply With Quote
  #4  
Old August 17th, 2007, 08:11 PM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Click here for more information.
 
Join Date: Feb 2002
Location: Finland
Posts: 8,910 jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 4 Weeks 1 Day 10 h 50 sec
Reputation Power: 1693
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
Great. Glad you got it working,
and thanks for the info

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreMobile Programming > .GCD file not being displayed on handsets


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway