Jump to content
Larry Ullman's Book Forums

I Need Help With My Hosting Environment Please


Recommended Posts

Hello, I hope everyone is doing well.

 

I bought the book effortless Ecommerce because I want to learn to do this type of application.

 

I have a web hosting account at godaddy.com.

 

I need help creating the constants at the beginning of the book for creating the URL to the scripts and PDFs

 

The domain name pointing to my hosting account is:

 

www.newporttimesharesrus.com

 

I created a directory there called: webapps

 

www.newporttimesharesrus.com/webapps

 

Inside this directory is where I would like to deploy some of the apps I am working on including the ones from this book.

 

Inside the webapps directory I created another one:

 

ecommerce

 

And inside of it the folders for the app:

 

PHP includes

 

java

 

images

 

CSS

 

media

 

admin

 

I am wondering if someone would be so kind and based on file structure tell me how to create the constants describe on the script for virtual goods.

 

Thank you very much

 

Jorge Muralles

Jorge@locopro.com

Link to comment
Share on other sites

Are you talking about the base URL constant? What other constants do you want / think you need?

Thanks.

 

Hi, I noticed that you answer my post asking for help with the variables on the config script for the effortless ecommerce app.

 

I do not know why this gives me a hard time.

 

I want to set up the following variables base on the info below:

 

// ************ CONSTANTS *********** //

 

// Determine location of files and the URL of the site:

define ('BASE_URI', '/path/to/dir/');

define ('BASE_URL', 'www.example.com/');

define ('PDFS_DIR', BASE_URI . 'pdfs/'); // Added in Chapter 5.

define ('MYSQL', BASE_URI . 'mysql.inc.php');

 

// ************ CONSTANTS *********** //

 

 

I am not the worst programmer but go doing this on and off.

 

I really want do the tutorials for this book and set up an ecommerce website.

 

I have a hosting account and I want to deploy the app there.

 

The directory is as follows:

 

http://www.newporttimesharesrus.com/webapps/

 

Inside this directory I have set up another one: ecommerce

 

http://www.newporttimesharesrus.com/webapps/eCommerce/

 

And inside of this one all the folders for the app

 

I understand I have to put the PDF folder inside the includes folder.

 

I would really appreciate it if you can help me out.

 

Jorge Muralles

Jorge@locopro.com

Link to comment
Share on other sites

Well, you already know what your URL is. I'm not sure what your URI is, though. You might be able to find that by using this code:

echo getcwd();

Put that in a script in the directory where you'll have the example project and it should output the BASE_URI value.

Link to comment
Share on other sites

Well, you already know what your URL is. I'm not sure what your URI is, though. You might be able to find that by using this code:

echo getcwd();

Put that in a script in the directory where you'll have the example project and it should output the BASE_URI value.

Hi Larry, thank you very much for the help.

 

Is this what I need to create the constants for the config file?

 

I appreciate the help.

 

By the way, I just got PHP and MySql for dynamic web sites.

 

I am looking forward to reading it and learning from it.

 

Thanks.

 

Jorge Muralles

Link to comment
Share on other sites

Hello Jorge,

 

The output from that command should help you find the right values. That being said, if you're not really comfortable with PHP & MySQL already, I'd recommend reading the other book (thanks!) and then returning to this one.

Link to comment
Share on other sites

 Share

×
×
  • Create New...