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:
  #16  
Old September 15th, 2004, 04:29 PM
Mobile-Empire Mobile-Empire is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 15 Mobile-Empire User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to Mobile-Empire
Quote:
Originally Posted by andymoo
You need to tell the server that it's okay to parse WML documents.

You can do this through CPanel or you can create a text file called .htaccess with this line in it:

AddType text/vnd.wap.wml wml

Do that then upload it to your webspace and try the script again.

I would suggest you first checked to see if there was a .htaccess file there to avoid overwriting it if there is.

It may not be visible as they are like hidden files but the tell the server how to parse file types and so on.


AddType text/vnd.wap.wml .wml < Already there.

Reply With Quote
  #17  
Old September 15th, 2004, 04:31 PM
dannywiz dannywiz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 4 dannywiz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by Mobile-Empire
What do you mean save it in Unix mode? I've chmod to 755 as the server am uploading to is a Linux


No, I mean a different thing. For example, if you use Windows Notepad to edit a text file, it writes that file ending each line with hex 0d0a (DOS mode). This is not good for Unix Perl, because it wants just hex 0a (Unix mode) as end-of-line character. Otherwise the script will return you a 500 Intenal Server Error.

If this is the case, you should use a different editor with the option to save your file in Unix mode (like TextPad and many others).

After you have saved your script in Unix mode, upload it as binary file, then change again the permission to 755 (just to be sure ) and try.

By the way, sometime the FTP client could make this conversion, so be sure to set it to 'binary' transfer, not ASCII/text.

I hope this may solve your problem.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreMobile Programming > CGI File


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 3 hosted by Hostway
Stay green...Green IT