Jump to content

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


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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.