Hello
I have inherited a www service after someone, I have problems with PHP
parts. As I am complete novice. I will be very greatful for your help - I
did not managed to find an answer myself. My questions are trivial, I guess.
The service is now being moved to another server (PHP 4) and also I would
like to run it on my local WAMP (PHP 5) for tests.
1. There's a directory defined there called php_base, which is the root
directory of this service. All other file locations are definded as
$php_base/file. Unluckily php_base is absolute, so I need to change it
manually each time I want to use other server. Is there a way to make it
server-indpendent? I found that on my WAMP the default location is service
root, so I can simply use paths relative service root. However, I guess it
did not work this way on the old server, because the absolute path has been
specified. Could you show me a proper way of doing it?
2. Some php pages take a parameter, that is specified in the URL referencing
this page.
http://localhost/mypage.php?mypar=value
In the page body the parameter is referenced as $mypar. Unluckily for some
reason on my WAMP it is always seen as empty, no matter with what value I
open the page. I am helpless and could not find any indication in php
manual.
Many thanks for your help,
Ewa