Jump to content
Larry Ullman's Book Forums

Derekd

Members
  • Posts

    20
  • Joined

  • Last visited

Posts posted by Derekd

  1. Hi HartleySan,

     

    Sorry I'm only responding now, been out of circulation for a few days.

     

    Here is the generated source for the corrupted page. I have also included  copies of the link URL, which is not, from what I can see generated in the page source. 

     

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>Luxadry : The Carpet Dry Cleaning Specialists</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <link href="./includes_proc/style_c5.css" rel="stylesheet" type="text/css" />
        <script>
              (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
              (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
              m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
              })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
            
              ga('create', 'UA-40640088-1', 'luxadry.com.au');
              ga('send', 'pageview');
        
        </script>
    </head>
    <body>
    <div class="all">
        <div class="box">
            <div class="menu">
                <a href="index_c5.php">Home</a>
                <a href="index_about_us.php">About Us</a>
                <a href="login.php">Login</a><a href="sub_sel.php">Register </a><a href="forgot_password.php">Forgot Your Password?</a><a href="contact.php">Contact Us</a><a href="sub_serve.php">Suburbs We Service</a>        </div>
            <div class="header">
                <img alt="" style="float:right; " src="./images/sun.jpg" width="250" height="95"/>
                <img alt="" style="float:left; " src="./images/sun.jpg" width="250" height="95"/>
                
                
                <h1>Luxadry</h1>
                <div class="clearfix"></div>
                <div class="newsbar">
                    <h1>Obtain Estimate</h1>                <div class="p2">
                        <ul class="newslinks">
                            <li><a href="category.php?cat_id=1&cat=Carpet+Cleaning">Carpet Cleaning</a></li><li><a href="category.php?cat_id=3&cat=Drape+Cleaning">Drape Cleaning</a></li><li><a href="category.php?cat_id=2&cat=Upholstery+Cleaning">Upholstery Cleaning</a></li>                    </ul>
                    </div>
                    <h1>Display My Requirements List</h1>
                    <div class="p2">
                        <ul class="newslinks"><li><a href="cart.php">My Requirements List So Far</a></li></ul><br />
                                        </div>
                    <h1> Additional Functions</h1>
                    <div class="p2">
                        <ul class="newslinks"><li><a href="stain_tip.php">Tip - manage major spills/accidents</a></li></ul>                </div>
                    <h1> Current Specials.</h1>
                    <div class="p2">
                        <p class="specials">
                            <b>Ask about our great protection and conditioning products, 60% discount!<br /><br /></b>
                        </p>
                    </div>
                </div>
                <div class="content">
                    <h2 align="center">The Carpet Dry Cleaning Specialists.</h2><p><b>Actions to take to manage spills and pet accidents.</b></p>
                     <p>In the unfortunate event of a major incident, such as the spilling a glass of wine, a cup of tea etc., or the unavoidable new puppy or kitten accident. Here is a simple and effective method to minimise the damage, and often successfully remove the stain.</p>
                     <ol>
                         <li>Fill any spray bottle with cold water and set nozzle to spray a mist of water.</li>
                         <li>Absorb excess spill with any absorbent paper towelling, sponge or cloth.</li>
                         <li>Liberally spray water on affected area.</li>
                         <li>Gently agitate and absorb excess moisture with paper towelling, sponge or cloth. If you have a good spot remover apply a little to general area.</li>
                         <li>Always apply carpet stain remover products conservatively (less is better). Never apply product to a dry carpet, especially woollen carpets.</li>
                         <li>Make sure the spray nozzle is set to produce a mist of product, never spray concentrated jets of product. </li>
                         <li>Do not rub hard or attempt to remove stain by rubbing, you will only damage the carpet pile doing this.</li>
                         <li>Reapeat this process a few times.</li>
                         <li>Double fold a dry, clean white towel (avoid coloured towels if possible, in case the colour runs into your carpet) and place over affected area.</li>
                         <li>Put anything clean and reasonably heavy such as books or coffee table turned upside down on top of towel.(This is the most important part of the process)</li>
                         <li>Leave for 12 hours, and repeat the process if the stain is still visible.</li>
                         <li>If stain does not disappear, make sure you keep repeating the above until we arrive. Contact us as soon as possible.</li>
                    </ol><p><b>The above process works well and is safe to use.</b> If the stain involved is urine, we recommend a professional clean afterwards, to ensure the elimination of any residual bacteria etc., even if it appears the stain has been successfully removed.</p><img alt="" style="float:left; " src="./images/naughty_pup.jpg" width="150" height="195"/><img alt="" style="float:right; " src="./images/accident.jpg" width="250" height="195"/>        </div>
                            <div class="clearfix"></div>
                            <div class="footer" width="80%">Copyright©2013, Luxadry</div>
                </div>
        </div>
    </div>

        </body>
    </html>

     

     

    The copy of the links are:

     

    http://economicalerts.org/au/?&t202id=300220&t202kw=process%20works&match=&c3=&ne=
    Linked to the text :   process works

    http://i.trkjmp.com/click?v=QVU6MjE0ODE6NjpuZXcgcHVwcHk6M2I5MDhkMDFiYzBmNDk0N2ZlYzM1YWY3NDY5M
    jJjYzY6ei0xMzIyLTE4MjI4Mjp3d3cubHV4YWRyeS5jb20uYXU6MTI1NzI6NDhjNTY1YjQzNzExOGY5ZDBiNjI5ZDEzY2ZlMjI5NTU
    Linked to the text: new puppy

     

     

     



    http://i.trkjmp.com/click?v=QVU6Mzg1MzQ6MjMxNTphcHBseTozNWRkNzVmZGQyM2E0NjBkNTljMTUzMjE1MDk2Yz
    diMDp6LTEzMjItMTgyMjgyOnd3dy5sdXhhZHJ5LmNvbS5hdTo0NTQxNDplYTRkYjAyMmY5MWFiYzQ1ZTY4Nzc1ZTQwODM3MTVkOA

    Linked to the text: apply

     

     

    The source code for the uncorrupted version is:

     

     

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>Luxadry : The Carpet Dry Cleaning Specialists</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <link href="./includes_proc/style_c5.css" rel="stylesheet" type="text/css" />
        <script>
              (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
              (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
              m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
              })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
            
              ga('create', 'UA-40640088-1', 'luxadry.com.au');
              ga('send', 'pageview');
        
        </script>
    </head>
    <body>
    <div class="all">
        <div class="box">
            <div class="menu">
                <a href="index_c5.php">Home</a>
                <a href="index_about_us.php">About Us</a>
                <a href="logout.php">Logout</a><a href="change_password.php">Change Your Password</a><a href="contact.php">Contact Us</a><a href="sub_serve.php">Suburbs We Service</a>        </div>
            <div class="header">
                <img alt="" style="float:right; " src="./images/sun.jpg" width="250" height="95"/>
                <img alt="" style="float:left; " src="./images/sun.jpg" width="250" height="95"/>
                
                
                <h1>Luxadry</h1>
                <div class="clearfix"></div>
                <div class="newsbar">
                    <h1>Select Services To Order</h1>                <div class="p2">
                        <ul class="newslinks">
                            <li><a href="category.php?cat_id=1&cat=Carpet+Cleaning">Carpet Cleaning</a></li><li><a href="category.php?cat_id=7&cat=Carpet+Products">Carpet Products</a></li><li><a href="category.php?cat_id=3&cat=Drape+Cleaning">Drape Cleaning</a></li><li><a href="category.php?cat_id=4&cat=Flood+Restoration">Flood Restoration</a></li><li><a href="category.php?cat_id=9&cat=General">General</a></li><li><a href="category.php?cat_id=2&cat=Upholstery+Cleaning">Upholstery Cleaning</a></li><li><a href="category.php?cat_id=8&cat=Upholstery+Products">Upholstery Products</a></li>                    </ul>
                    </div>
                    <h1>Display My Requirements List</h1>
                    <div class="p2">
                        <ul class="newslinks"><li><a href="cart.php">My Requirements List So Far</a></li></ul><br />
                        <a href="unset.php">Remove Order Session Vars(Temp)</a><br />                </div>
                    <h1> Additional Functions</h1>
                    <div class="p2">
                        <ul class="newslinks"><li><a href="stain_tip.php">Tip - manage major spills/accidents</a></li></ul><a href="view_area.php">Work With Areas</a><br /><a href="view_prod_cat.php">Work With Services</a><br /><a href="sales_acts.php">Work With Sales Activities</a><br /><a href="view_constants.php">Work With Constants</a><br /><a href="sel_cus_new.php">Customer search and their orders</a><br /><a href="ord_sel_open.php">Open Order Processing</a><br /><a href="calender_content.php">Calender Content</a><br /><a href="add_cust.php?type=res">Create New Res Customer</a><br /><a href="add_cust.php?type=com">Create New Comm Customer</a><br /><a href="not_served.php">Check Non Serviced Suburb</a><br /><a href="pricing.php">Product Prices</a><br /><a href="jobs_sel.php">Print Jobs</a><br />                </div>
                    <h1> Current Specials.</h1>
                    <div class="p2">
                        <p class="specials">
                            <b>Ask about our great protection and conditioning products, 60% discount!<br /><br /></b>
                        </p>
                    </div>
                </div>
                <div class="content">
                    <h2 align="center">The Carpet Dry Cleaning Specialists.</h2><p><b>Actions to take to manage spills and pet accidents.</b></p>
                     <p>In the unfortunate event of a major incident, such as the spilling a glass of wine, a cup of tea etc., or the unavoidable new puppy or kitten accident. Here is a simple and effective method to minimise the damage, and often successfully remove the stain.</p>
                     <ol>
                         <li>Fill any spray bottle with cold water and set nozzle to spray a mist of water.</li>
                         <li>Absorb excess spill with any absorbent paper towelling, sponge or cloth.</li>
                         <li>Liberally spray water on affected area.</li>
                         <li>Gently agitate and absorb excess moisture with paper towelling, sponge or cloth. If you have a good spot remover apply a little to general area.</li>
                         <li>Always apply carpet stain remover products conservatively (less is better). Never apply product to a dry carpet, especially woollen carpets.</li>
                         <li>Make sure the spray nozzle is set to produce a mist of product, never spray concentrated jets of product. </li>
                         <li>Do not rub hard or attempt to remove stain by rubbing, you will only damage the carpet pile doing this.</li>
                         <li>Reapeat this process a few times.</li>
                         <li>Double fold a dry, clean white towel (avoid coloured towels if possible, in case the colour runs into your carpet) and place over affected area.</li>
                         <li>Put anything clean and reasonably heavy such as books or coffee table turned upside down on top of towel.(This is the most important part of the process)</li>
                         <li>Leave for 12 hours, and repeat the process if the stain is still visible.</li>
                         <li>If stain does not disappear, make sure you keep repeating the above until we arrive. Contact us as soon as possible.</li>
                    </ol><p><b>The above process works well and is safe to use.</b> If the stain involved is urine, we recommend a professional clean afterwards, to ensure the elimination of any residual bacteria etc., even if it appears the stain has been successfully removed.</p><img alt="" style="float:left; " src="./images/naughty_pup.jpg" width="150" height="195"/><img alt="" style="float:right; " src="./images/accident.jpg" width="250" height="195"/>        </div>
                            <div class="clearfix"></div>
                            <div class="footer" width="80%">Copyright©2013, Luxadry</div>
                </div>
        </div>
    </div>

        </body>
    </html>

     

     

    I hope this helps. Your interest in this matter is much appreciated.

     

    Kind Regards

     

    Derek

  2. Hi all,

     

    While making some page presentation adjustments to my website, I came across a problem which I am hoping someone else has encountered, and consequently can help me with.

     

    I was comparing the presentation of my pages between my pc and my partners' laptop to fine tune the pages presentation between the different screen sizes when some unwanted links appeared on the the laptop's browser but not on my pc. When I checked the browser source code, there was no code related to the link, it displayed as text, as it should, but the link exists. The unwanted link has picked up the  CSS link formatting attributes.

     

    I contacted my ISP and they confirm the server side is fine, and they could not replicate the problem. A possible explanation they gave is, that the laptop's browser must have some undesirable plugin, but they are not sure what can be done to prevent this. The page has no input, just text, and all my other input fields throughout the site have been sanitized.

     

    I suggested that encrypting the page transmissions with SSL might solve the problem, but they did not think this would the solution. If someone has encountered this type of issue and provide a solution I would be extremely grateful.

     

    Thank You,

     

    Derek 

  3. Hello all,

     

    All my scripts using database sessions work fine, except for this one..... Probably kick myself when I finally get the light bulb to go on.

     

    Here is some of the relevant code and accompanying errors, hope somebody can help me.

     

    <?php
    require_once('./includes_proc/config.inc.php');
    $page_title = 'Select My Other Properties';
    include('./includes_proc/header_c5.php');

     if(isset($_POST['submitted'])) {        
        if(isset($_POST['prop'])) {
            $new_prop = (int) $_POST['prop'];

    etc....

     

    The header script that gets included...

     

     

    <?php

    /*
     * This page begins the HTML header for the site.
     * The header alse creates the right hand column.
     * This page call session_start()
     *
     */
     // Start session if not logged in
     if(!isset($_SESSION['in'])) {
         ob_start();
          require_once('db_sessions.inc.php');
     }
     
     // Check for a $page_title value:   -  etc..........

     

     

    The script starting db_session....

     

    # **************************** #
    # ***** END OF FUNCTIONS ***** #
    # **************************** #

    // Declare the functions to use:
    session_set_save_handler('open_session', 'close_session', 'read_session', 'write_session', 'destroy_session', 'clean_session');

    // Make whatever other changes to the session settings.

    // Start the session:
    session_start();   -   ( Line 123)

    ?>

     

    An abbreviated version of the error data.....

     

    An error occurred in script '/home/luxacom/public_html/

    busapp_proc/includes_proc/db_sessions.inc.php' on line 123:
    <br />session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/luxacom/public_html/busapp_proc/sel_prop.php:2)
    <br />Date/Time: 4-21-2013 15:43:04
    <br /><pre>Array
    (

    [_REQUEST] => Array
            (
                [phpSESSID] => 058975b6b1eb4dc22bc8cf28b31fd0

    80
            )

        [contact_email] => luxadry@gmail.com
        [local] =>
        [debug] =>
        [dbc] => mysqli Object
            (
            )

        [page_title] => Select My Other Properties
        [sdbc] => mysqli Object
            (
            )

        [HTTP_SESSION_VARS] => Array
            (
                [op_units] => 1
                [van] => 3
                [agent] => f76e1da45697f2bea834d3cc529b10fb
                [cid] => 526
                [in] => 526
                => mentone@gmail.com
                [id_prop] => 567
                [cust_type] => residential
                [mult_props] => 1
            )

        [_SESSION] => Array
            (
                [op_units] => 1
                [van] => 3
                [agent] => f76e1da45697f2bea834d3cc529b10fb
                [cid] => 526
                [in] => 526
                => mentone@gmail.com
                [id_prop] => 567
                [cust_type] => residential
                [mult_props] => 1
            )

    )
    </pre>
    <br />

     

    Hope this makes sense

     

    Derek

     

     

     

  4. Thank you fo all the input, helps me to connect a few more dots. The main concern I have about SSL is the overhead it incurs, and you might end up with a very slow responding site. The costs associated with quality certificates are also substantial. From a purely marketing perspective I am concerned about the messages that the browser gives to the user when accessing an HTTP:// site versus a HTTPS:// site.

     

    Just as an aside how long on average does it take for new private nameservers to propagate??? Mine has been going for nearly 12 hours and still no luck with getting into my site.

     

    Cheers

     

    Derek 

  5. Thanks for that HartleySan, that makes sense now, I will implement that asap. I have been pretty diligent in type casting $_GET ID's and validating them against the database, with some referential integrity checks across the database and exiting back to the index page if things do not tie up. I have also stored my session data in a database to tighten things up. My site will not be doing any e-commerce type transactions, but I still feel protecting customer names, addresses and contact details is stil crucially important.

     

    I got Larry's e-commerce book more for the security aspect than the payment gateways. I have been toying with the idea of purchasing a digital certificate and using SSL around the registration and login scripts, but am not sure if this is necessary. I am however concerned about customers not engaging with the site because of this?    

  6. Hi Paul,

    Thank you for your input. I have amazed myself and got my data and scripts across. My next dilemma and uncertainty is whether I've got my PHP scripts in the correct place. According to the documentation, my path structure looks like the following: 

    home/luxacom/ - Is described as "home directory - all files stored here are not visble on the internet.

     

    home/luxacom/www/ - Public HTML directory, contains the files for your site. File and sub directories will be viewable by anyone on the internet.

     

    This has confused me in that it seems all my PHP scripts should go in home/luxacom/www/php_code, and my includes folder should be home/luxacom/www/php_code(not real name)/includes. But if it is viewable by everyone on the internet!, would that mean the pages or the directories and it's content. The other option would be to put the includes directory in home/luxacom/includes/, which is the opposite to how I had it on my localhost, not sure now....???

     

     I have used Larry's config.inc code and the system checks whether the code is running on a loclhost or live host. I have changed my BASE_URL (home/luxacom/www/php_code/)and BASE_URI(home/luxacom/www/php_code/includes) constants to reflect the above. I think the next step is to activate the DNS. Will carry on afresh tommorrow.

     

    Thanks again for the help Paul, it is great that you doing this too, me thinks I'll be bending your ear a lot, if you don't mind.

     

    Kind Reagrds

     

    Derek

  7. Hi everone,

     

    I am rapidly approaching the daunting prospect of going live. I have registered with a reputable service provider. Being a newbie, I am desperately trying to get my mind around cPanel and WHM. My initial impression is that getting my content installed on the VPS is quite a task.

     

    My question is, should I be doing it, or should I be asking the ISP's support staff to do it for me? 

  8. Hi Larry,

     

    Thank you for your reply, it has given me new perspective, commenting out exit() is not the solution.

     

    I think I found the problem, in that I used the same principle as the session.php script (to use session handlers), to place the session_write_close()  at the end of the login.php script. If you exit the script straight after the header("Location: $url") to the index page the session_write_close will not be executed. Modified the script to put the session_write_close()  just before exit() and it seems to be working.

     

    Thanks for your help Larry.

  9. Hi Larry,

    First time post for me. Thank you for your wonderful books, which have helped me make PHP a fantastic new hobby/reality for me. Have worked through PHP6 and Mysql5, currently working through PHP 5 advanced edition 2 and Effortless E-Commerce. Recently purchased Modern Javascript. I am still very much a novice and would appreciate help with the following.

     

    I am attempting to improve the security of my site by storing session data in a database, before going live, and experiencing some problems. The session handler seems to be working, but when logging in the session data disappears after transferring to the index url via header("header("Location: $url");").

    The session data is in the sessions file. Can anybody please help me? 

     

    P.s When I change the login script to exclude the header function and access the index script manually the session data is there.

×
×
  • Create New...