PDA

View Full Version : how do i get to my httpd.conf


AndrewElliott
4-9-08, 12:06 PM
I'm a little out of my depth here.
How do I edit the httpd.conf file?
Is it like htaccess where I can just put it in whatever folder I want?
or do i need to edit a centeral file?
Can I even do this?

I want to append the httpd.conf file for the following
# MIME Types for WAP

# For PHP 4.x, use this:
AddType application/x-httpd-php .wml
# This parses php scripts within a .wml page

# 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

Can I edit the MIME types without messing with the httpd.conf file?
Basically I just want the server to execute wml file as if they were php files.
A sort of "Run as..." command if I can speak in Windows.

Builder
4-9-08, 12:22 PM
You don't have access to httpd.conf, that's why there's .htaccess. So as far as I know you can add those lines to your .htaccess file and things should work.

Good luck,
Kevin

AndrewElliott
4-10-08, 10:47 AM
I went under htaccess and made the changes

I've go two pages.

http://www.leamingtongrower.com/wap.wml
and
http://www.leamingtongrower.com/wap2.wml

wap.wml contains no php, wap2.wml contains some php.
Using waptiger they both seem to work
(http://www.waptiger.com/waptiger/)
but one my phone only wap.wml works.

here is the code for each

wap
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN"
"http://www.phone.com/dtd/wml11.dtd" >
<wml>
<card id="main" title="First Card">
<p mode="wrap">This is a sample WML page.</p>
</card>
</wml>

wap2
<?xml version="1.0"?>
<?php
// send wml headers
header("Content-type: text/vnd.wap.wml");
echo "<?xml version="1.0"?>";
echo "<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN""
. " "http://www.wapforum.org/DTD/wml_1.1.xml">";
?>
<wml>
<card id="main" title="First Card">

<p mode="wrap">This is a sample WML page.</p>

</card>
</wml>

Any ideas?

Builder
4-10-08, 11:44 AM
WAP/WML is kinda outa my knowledgebase. I messed around a bit with it a few years back just to see if I could do it. But I don't really have a need for it with the website I run so I let what little knowledge I had leak out of my brain. It's too cluttered in there anyway! :D

Hopefully someone with more WAP/WML skills can come by and take a look at what you've got.

Good luck,
Kevin

YvetteKuhns
4-10-08, 12:07 PM
The commands in the htaccess file make the Apache webserver process .wml files as if they are .php files. (http://loadofwap.blogspot.com/2006/10/nokia6100-and-unknown-file-type.html)