Jump to content
Larry Ullman's Book Forums

jorgemuralles

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by jorgemuralles

  1. I am wondering if someone can help.

     

    I want to buy this book:

     

    http://www.larryullman.com/books/php-advanced-and-object-oriented-programming/

     

    When I go to amazon and do a search for it, I find it but it has a different cover.

     

    Am I getting the right book?

     

    Here is the link to the amazon search results.

     

    http://www.amazon.com/s/ref=nb_sb_noss/182-3243621-5710244?url=search-alias%3Daps&field-keywords=PHP+Advanced+and+Object-Oriented+Programming%3A+Visual+QuickPro+Guide+%283rd+Edition%29+by+Larry+Ullman

     

    Thanks for the help.

     

    Jorge Muralles

  2. 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

  3. Here's the copy and paste from my other message:

    **********************************

     

    BASE_URI refers to the base directory of your server, which should be outside the public HTML directory, and inaccessible from www.domain-name.com.

     

    I can't tell you what string to use for the BASE_URI constant, as this is completely dependent on the hosting environment provided by your hosting company. Please contact them if you cannot figure this out on your own.

    If you have some sort of control panel for your site though, it should be listed in there somewhere.

     

    The BASE_URL constant is just the www.domain-name.com string. Obviously, domain-name needs to change to whatever the correct domain is.

     

    The other two are based on the BASE_URI constant, but the idea is that there should be a directory called "pdfs" within the root directory of your server, and the MySQL script should also be in the base directory, so that both are inaccessible from the web.

     

    That all make sense?

    Also, in the future, please post your questions on the forum so that everyone can benefit from them.

    Thanks.

     

    Thank you very much. I looked in my web hosting account control panel.

     

    I have the absolute hosting path:

     

    /home/content/68/10520168/html

     

    www.newporttimesharesrs.com

     

    Points to it.

     

    Is this the info I need to create the constants.

     

    Thank you very much.

     

    Jorge Muralles

  4. Hello everyone. Thanks in advance for reading my post and any help.

     

    I have a hosting account at godaddy.com

     

    I have set up a directory to deploy my PHP websites.

     

    // ************ 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 need help making sure I declare the variables above correctly.

     

    The directory I set up for my apps is:

     

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

     

    Inside of it I set up another directory: ecommerce:

     

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

     

    Inside of this directory are the directories for the application.

     

    I put the PDFs directory inside the PHP Includes directory.

     

    Base on the info above, what is the value for the BASE_URI constant and the other ones as well.

     

    Thank you very much.

     

    Jorge Muralles

    Jorge@locopro.com

  5. 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

  6. 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

×
×
  • Create New...