Absolute path Absolute path
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Absolute path

Started by aem, April 24, 2004, 01:47:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

aem

I would like to obtain the abosulte path to my cpg

I have ran phpinfo.php and cannot find "DOCUMENT_ROOT" anywhere. This is what i see in my phpinfo.php file. Please help me obtain the absolute path..

QuoteAdvanced debug info (phpinfo)
PHP version: 4.3.6


mySQL version: 4.0.15

--------------------------------------------------------------------------------

Image Lib(s)
gd
GD Support  enabled 
GD Version  bundled (2.0.22 compatible) 
FreeType Support  enabled 
FreeType Linkage  with freetype 
GIF Read Support  enabled 
JPG Support  enabled 
PNG Support  enabled 
WBMP Support  enabled 
XBM Support  enabled 
 
Server restrictions (safe mode)?
Directive Local Value Master Value
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
safe_mode_exec_dir no value no value
sql.safe_mode Off Off
disable_functions no value no value
file_uploads On On
include_path .:/usr/local/lib/php .:/usr/local/lib/php
open_basedir no value no value

email
Directive Local Value Master Value
sendmail_from me@localhost.com me@localhost.com
sendmail_path /usr/sbin/sendmail -t -i  /usr/sbin/sendmail -t -i 
SMTP localhost localhost
smtp_port 25 25

Size and Time
Directive Local Value Master Value
max_execution_time 30 30
max_input_time 60 60
upload_max_filesize 2M 2M
post_max_size 8M 8M

Joachim Müller


aem

I have read thru that and my computer iliteracy took over :'(

Please!

Joachim Müller



Joachim Müller

Come on, don't play stupid: create a phpinfo file as suggest in the links, upload it to your webserver and run it in your browser. At the very bottom there are several vars that contain your absolute path.
If you think this is impossible for you, just create a parse error in any php file on your server and check the output - the error message usually tells you the absolute path as well.
If you can't do that, then it's time to ask your webhost for support, not here on this board, since we can't guess your webserver's settings.

GauGau