WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP 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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 7th, 2006, 08:50 AM
irisblaze irisblaze is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Location: Palestine
Posts: 95 irisblaze User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 Days 16 h 26 m 56 sec
Reputation Power: 0
Send a message via Yahoo to irisblaze
Unhappy AGH! apache, php and wml

hello, I wanted to use php 5 and mysql 5 since along time, finally i decided to download apache2triad on my pc for testing my codes, and I did that today, but here's the thing, whenever I try to test wap applications here's what i get:

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.


notes:

1. it was working fine when i had triad with apache 1.3, php, and mysql old version that i forgot what it is.

2. I already added the addType thingy in httpd.conf.

3. it works fine on wml files but not on php files, like it display the page foo.wml but not the page foo.php.

4. i'm working on the same code that it used to work on apache 1.3.

5. I started throwing glasses and chairs on the wall and hitting my pc, it also didnt work.

any ideas? please?

Reply With Quote
  #2  
Old May 8th, 2006, 06:29 AM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,670 jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th 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 3 Weeks 4 Days 6 h 10 m 50 sec
Reputation Power: 1618
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
Are you running PHP as a cgi ('spose so from the error you are getting).
Perhaps there is some white space or your line breaks have somehow been removed.

Can you show a snippet of the PHP code youa re trying to parse as PHP?
__________________
Cheers,

Jamie


# skiFFie | Home of the 'accessibility module' for Drupal
# Jamie Burns [me] Accessibility Module [drupal]
# guidelines | search | wap resources | not getting help | fold to cure

# Any form of employment is strictly prohibited ......


__________________

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 May 8th, 2006, 10:16 AM
wapindya's Avatar
wapindya wapindya is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: INDIA
Posts: 394 wapindya Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 3 Days 10 h 34 m 35 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
Quote:
Originally Posted by irisblaze
hello, I wanted to use php 5 and mysql 5 since along time, finally i decided to download apache2triad on my pc for testing my codes, and I did that today, but here's the thing, whenever I try to test wap applications here's what i get:

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.


notes:

1. it was working fine when i had triad with apache 1.3, php, and mysql old version that i forgot what it is.

2. I already added the addType thingy in httpd.conf.

3. it works fine on wml files but not on php files, like it display the page foo.wml but not the page foo.php.

4. i'm working on the same code that it used to work on apache 1.3.

5. I started throwing glasses and chairs on the wall and hitting my pc, it also didnt work.

any ideas? please?



Try this

Just insert the MIME types into an .htaccess file and place it into the directory where your WML pages are kept.

Reply With Quote
  #4  
Old May 8th, 2006, 10:18 AM
wapindya's Avatar
wapindya wapindya is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: INDIA
Posts: 394 wapindya Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 3 Days 10 h 34 m 35 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
The MIME types that you will need in order to correctly serve WML documents are as follows:

# MIME Types for WAP

# For PHP 4.x, use this:
AddType application/x-httpd-php .wml

# For PHP 3.x, use this:
AddType application/x-httpd-php3 .wml

# For normal WML pages.
AddType text/vnd.wap.wml .wml

# For WML embedded graphics.
AddType image/vnd.wap.wbmp .wbmp

# End MIME Types for WAP The above MIME types must be added to the Apache server's configuration file. There are two options for doing so:

Via the Apache httpd.conf file
Via the .htaccess file.

rest you know well.

Reply With Quote
  #5  
Old May 8th, 2006, 04:17 PM
irisblaze irisblaze is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Location: Palestine
Posts: 95 irisblaze User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 Days 16 h 26 m 56 sec
Reputation Power: 0
Send a message via Yahoo to irisblaze
yeah thanx, i added the same lines in .htaccess, but i wonder why i didnt have to do the same with tthat old version of apache and php

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > AGH! apache, php and wml


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 4 hosted by Hostway