|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
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
|
||||
|
||||
|
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 ![]() |
|
#2
|
||||
|
||||
|
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. __________________ |
|
#3
|
||||
|
||||
|
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
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > Is your server showing folders rather than the expected site pages? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|