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 January 25th, 2006, 10:18 PM
soultaker's Avatar
soultaker soultaker is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 54 soultaker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 5 h 33 m 46 sec
Warnings Level: 20
Number of bans: 1
Reputation Power: 0
Is your server showing folders rather than the expected site pages?

ok this one had me a little stumped because i have not been doing anything like this before but for once i dont have to ask for help i can give it,



it is really simple, you need to config your server (mine is apache for offline testing) to read a certain file say index.php or index.wml, whatever the name of the file for your first page is should be defined.

for apache its this line in the httpd config file.

DirectoryIndex index.html index.html.var index.php index.wml index.wml

these are just some of the choices ofcourse and you can add your own to it. i wont use most of those i would think so ill just remove the types that i dont..

one more thing, if you are trying to build a wap site, you may be using php5.x so you will need these lines

PHPIniDir "C:/php/php.ini" (your path to php.ini)
AddType application/x-tar .tgz
ScriptAlias /php/ "C:/php/" (your path to php root)
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php/php.exe"


hope these help somebody i spent an age searching for this stuff.

anyway i know i may have posted this in the wrong forum but i figured it fits in with wap as well as anything else, sorry if im wrong, just call it inexperience

Reply With Quote
  #2  
Old January 27th, 2006, 01:17 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
Hi soultaker,
This would have been better suited in the Apache Forums, but it is useful none the less, so can leave it here for now.
2 things to note, however.
Your directoryindex has 2 index.wml , but not nit-picking - it was more to emphasize the point that when you call the diretory, Apache will look for the index page in the order you have written it. So if you have index.php and index.wml in the same directory as that is written above it will always use index.php as the directory index.

The second point, possible a more important one is that your configuration is for running PHP as a CGI and not as a module. This is OK, but not really the preffered method of choice. Your "real" server is more likely to be running as a module (not always of course).

If you open your home server up for public access, please note:
Running PHP as a CGI on windows is a bit of a security hazard unless you really know what you are doing.
__________________
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 January 27th, 2006, 06:35 AM
soultaker's Avatar
soultaker soultaker is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 54 soultaker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 5 h 33 m 46 sec
Warnings Level: 20
Number of bans: 1
Reputation Power: 0
oh right i didnt know that thankyou, i thought thatit was rinning as a module as have added the line load module for the php5apache2 dll in the correct section. as you have pointed out the two index.wml i will look it up in my config file and sort it out

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > Is your server showing folders rather than the expected site pages?


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