phpDivinglog 2.0
It is difficult to debug, since I have no idea how the servers at godaddy are configured. Since what I read godaddy supports rewriting, so somehow this has to be working. However I'm not a hero in mod_rewrite rulesFrankK wrote:The same problem is still occurring for me - I have tried both options.
I will look further for a solution
Can you setup a test for me?
.htaccess
And test.php
If this works I will change the url handler class
.htaccess
Code: Select all
RewriteEngine On
RewriteBase /diving/divelog2/
RewriteRule ^test.php/(.*)/ test.php?id=$1
Code: Select all
<?php
print_r($_SERVER);
?>
After a lot of research I come clear to me that this is not gonna work with godaddy. Since they support rewrite however not for php files. So we need a different approach.FrankK wrote:What file is it where the changes need to be made, I've been looking at the classes.inc
What I will do is make changes in classes.inc.php
In class HandleRequest I have to change the function handle_url() to read $_GET vars. Make an extra config option for using $_GET vars and probably change a lot of links
See: http://rob.lensen.nu/devdoc/phpdivinglog/
Do a search on google and you will find lots of people having problems with godaddy and phpFrankK wrote:Well, after all this - I'm switching my hosting providers to 1and1 (lets hope they support this!)
Frank
(See:
http://www.ericfaerber.com/2007/08/21/g ... d_rewrite/)
Super!FrankK wrote:I'm sure! Well, it will end up saving me a few dollars in the end, as 1and1 allows three domains per business account (1 year @ 5.67 - was paying 3.99/mo for each of my domains)
and it is finally working perfectly! Thanks again!
I'm still doubting if I will change phpDivinglog to make an option to use index.php?id=3 instead off index.php/3
Any opinions?
The advantage is nicer looking url's and this type of url's are indexed by the search engine'sdivinglog wrote:What is the advantage of the new linking, or what is the disadvantage of the old system?
Also for the multiuser version you would get url's like:
index.php?user_id=2&id=4 and now you have index.php/3/2
I finally got a chance to install the new version and try it out, and on each dive (in the area where it draws the profile graph), I'm getting:
JPGraph Error
Too small plot area (50,50,161841383,70: 450x -161841053). With the given image size and margins there is to little space left for the plot. Increase the plot size or reduce the margins.
I am running PHP 5 (I upgraded my system).
Also is there supposed to be a legend on the Dive Statistics screen for the pie chart? On mine there isn't, so I'm not sure I understand what the pie chart is showing me.
JPGraph Error
Too small plot area (50,50,161841383,70: 450x -161841053). With the given image size and margins there is to little space left for the plot. Increase the plot size or reduce the margins.
I am running PHP 5 (I upgraded my system).
Also is there supposed to be a legend on the Dive Statistics screen for the pie chart? On mine there isn't, so I'm not sure I understand what the pie chart is showing me.