This topic is locked
[SOLVED]

 What Is The Correct Absolute Path?

2/19/2013 12:57:15 PM
PHPRunner General questions
H
herb200mph author

Our system writes a file to this location:
= = = = =

function ExportToCSV($records)

{

$filename = "C:\\inetpub\\vhosts\\julesthorntrust.com\\httpdocs\\grantapps\\docuploads\\application_form.csv";

= = = = =
What is the correct code to write this same file to the same directories on a linux server with cPanel???
This is the code that IS NOT working:
= = = = =

$filename = "\\home\\jttcom\\public_html\\grantapps\\docuploads\\application_form.csv";

= = = = =
User is "jttcom" and everything after \\public_html\\ is correct (except maybe the \\'s).

Sergey Kornilov admin 2/19/2013

On Unix systems use a single forward slash to separate folder names:

/home/jttcom/public_html/grantapps/docuploads/application_form.csv

H
herb200mph author 2/19/2013

Ah. Great. Will give it a go.
Thanks Sergey.