Jump to content

My php file works locally but not on the ssl server what am i missing please....


marnslee

Recommended Posts

I have installed a php file that creates a .txt file on demand. this is working locally but not on the server, i am at my wits end to get it working an im sure it is something so simple.. this is on a secure server

 

here are the settings used locally which work just fine:

 

$myfile = "/myob/myob_sale" . date(m) .date(d) . date(y) . ".txt";               

$DOCUMENT_ROOT = "/Users/mycomputer/Documents/betties/secureshop";

$salefile = $DOCUMENT_ROOT . $myfile ;

 

here are the settings used remotely:

 

$myfile = "/myob/myob_sale" . date(m) .date(d) . date(y) . ".txt";

$DOCUMENT_ROOT = "/home/betties/public_html/secureshop/";

$salefile = $DOCUMENT_ROOT . $myfile ;

 

any help would be appreciated  :)

 

Link to comment
Share on other sites

It looks like, because it is on ssl, that you have a sort of catalog where you sell something?

If people buy, it writes the txt file and do whatever.

If so, I would say you need some sort of a login wich give the user access to the server in-effect "PERMISSION" to write to the ssl.

Link to comment
Share on other sites

It looks like, because it is on ssl, that you have a sort of catalog where you sell something?

If people buy, it writes the txt file and do whatever.

If so, I would say you need some sort of a login wich give the user access to the server in-effect "PERMISSION" to write to the ssl.

 

yes that is right i have a catalog that sells, and it is used to write data to import into myob accounting.

Im guessing that I would need to contact the host to set up the permission side of things? thanks

Link to comment
Share on other sites

It looks like, because it is on ssl, that you have a sort of catalog where you sell something?

If people buy, it writes the txt file and do whatever.

If so, I would say you need some sort of a login wich give the user access to the server in-effect "PERMISSION" to write to the ssl.

 

yes that is right i have a catalog that sells, and it is used to write data to import into myob accounting.

Im guessing that I would need to contact the host to set up the permission side of things? thanks

Not sure, do you make use of a db?

Link to comment
Share on other sites

I`m not that far yet, sorry mate. I can do a login and connect to the mysql server(non ssl) reading the data in each row of the selected db but not sure about a catalog. What if you make a config.php file with the correct user and password to write to the server and just include the file in your site. That's all I can think of. Hey what have you got to loose, like redarrow said - "quote: Looks like everyone wants to prove there programming skills..." http://www.phpfreaks.com/forums/index.php/topic,229485.0.html

Link to comment
Share on other sites

I`m not that far yet, sorry mate. I can do a login and connect to the mysql server(non ssl) reading the data in each row of the selected db but not sure about a catalog. What if you make a config.php file with the correct user and password to write to the server and just include the file in your site. That's all I can think of. Hey what have you got to loose, like redarrow said - "quote: Looks like everyone wants to prove there programming skills..." http://www.phpfreaks.com/forums/index.php/topic,229485.0.html

 

thanks for your help will try  ::)

Link to comment
Share on other sites

Hi anybody i have now added this to my file with no avail! does this seem right or should it be include and not require have tried both and neither work

 

require("./includes/configure.php");

$myfile = "/myob/myob_sale" . date(m) .date(d) . date(y) . ".txt";       

$DOCUMENT_ROOT = "/home/betties/public_html/secureshop/"; 

$salefile = $DOCUMENT_ROOT . $myfile ;

 

Link to comment
Share on other sites

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.