quimera-solutions / php-ext

Automatically exported from code.google.com/p/php-ext
Other
1 stars 0 forks source link

Wrong base href in index.php #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I installed it on my Network-Webserver A:\Sandbox\ExtPHP
2. Called the URL http://datengrab/Sandbox/ExtPHP/

What is the expected output? What do you see instead?
Looked like missing a css file, and the caus for that was a wrong base
href. It was '<base href="http://datengrabSandbox/ExtPHP/" />' instead of
'<base href="http://datengrab/Sandbox/ExtPHP/" />'

What version of the product are you using? On what operating system?
PHP-Ext 0.8 Full (Library, Samples, Docs) on Apache/2.2.3 (Ubuntu) DAV/2
SVN/1.4.3 PHP/5.2.1

Please provide any additional information below.
Apache Environment:
Variable    Value
HTTP_HOST   datengrab
DOCUMENT_ROOT   /var/www/
$dir (from index.php) /var/www/Sandbox/ExtPHP

I did a quick fix with 
$docRoot = substr($docRoot, 0, strlen($docRoot)-1);
after line 4 - but i think this will cause other configurations to fail ..

Original issue reported on code.google.com by benjamin...@googlemail.com on 26 Mar 2008 at 1:45

GoogleCodeExporter commented 9 years ago
Sorry i didnt read the "GettingStarted" carefully enough, there is written :
"Decompress the php-ext zip file under the document root of the web server"
.. 

Original comment by benjamin...@googlemail.com on 26 Mar 2008 at 10:55

GoogleCodeExporter commented 9 years ago
Thanks for the post. You may join the discussion group at
http://groups.google.com/group/php-ext

Original comment by sergeiw on 9 Apr 2008 at 4:08