|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
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. __________________ |
|
#3
|
||||
|
||||
|
Quote:
Try this Just insert the MIME types into an .htaccess file and place it into the directory where your WML pages are kept. |
|
#4
|
||||
|
||||
|
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. |
|
#5
|
|||
|
|||
|
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
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > AGH! apache, php and wml |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|