Jump to content

[SOLVED] Server location for php file....htaccess won't link up either.


noober

Recommended Posts

I have this line in my php file, and it should point to the server path of the file. I'm using the basic package at register.com for hosting, and believe it is not virtual hosting. But, I can't seem to find the correct path. Is there php I can implement to return a path to me so I don't have to go on guessing what it is, then having it not work? Or could there be other problems? I'm keeping this in a password protected .htaccess folder which I can't configure the path for either. I'm stumped. Help would be greatly appreciated. The php file should refer to the sell.txt file which is located in the primary directory "public" folder, where index.html....files that can be viewed by everyone is kept.

 

<?php
$file = 'user/local/public/sell.txt';

 

 

 

<?php
$_SERVER['DOCUMENT_ROOT']
?>

 

I used this code. I tried it on another server that's virtual....1and1, and it returns a error telling me the directory. For register.com it doesn't return anything but a blank page. Any ideas?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.