Forums

PHP

This topic is locked

UD, Phakt and myfile.php

Posted 03 Apr 2002 04:00:11
1
has voted
03 Apr 2002 04:00:11 chris chris posted:
Whenever I create a php file. It creates entries for the adodb and connections like the following.

require("./../adodb/adodb.inc.php";
require("./../Connections/conn3dshoots.php";

I have two questions, first I want it to start ../ instead of ./../ How can I fix this?

Second why does it alway capitalize Connections and how do I fix it?

Thanks

Replies

Replied 03 Apr 2002 09:24:04
03 Apr 2002 09:24:04 Bruno Mairlot replied:
If you want to change ./.. to ../ just edit the code manually.

If you want to change Connection to connection, you'll have to edit the path manually, but don't forget to change the name of the folder on your server to make it correct according to your changes.


But, why would you want to do that ?

a path beginning by a ./ represent the current directory of the page being executed, it doesn't do any harm for the require command, but instead insure you have a correct path.

The same applies for the Connection ... why do you want to change the C in a c ??
Is there some real technical issue by using a capitalized letter ?

But, changing this will cause UD not to be able to find the information required to show the recordset correctly in your DataBindings and ServerBehavior Palette. They will be broken (shown with a <font color=red>!</font id=red>.

Could you details us why you would like to do these changes ?

Bruno

--- Better to die trying, than never try at all ---

Reply to this topic