Jump to content

DeanWhitehouse

Members
  • Posts

    2,527
  • Joined

  • Last visited

Posts posted by DeanWhitehouse

  1. Do not ignore the errors, or turn them off (while developing), fix them, it will make you a better coder and make the code better.

     

    All you need to do is make sure that all the variables are defined before using them.

     

    E.g.

    if(!isset($Var))

    $Var = "";

  2. One bad way (kinda hack) to do it would be to store a session when the user first visits the page and submits the form, then in the form validation code check if the session is there.

  3. Hey,

    I have set up a cron using cpanel, and for some reason the email i get with the output says it came across a 404 page.

     

    The php cron page is in a folder in the main directory called Crons, the file is cron_tab_main.php

     

    I am trying this as the command to run

    php /home/[username]/public_html/Crons/cron_tabs_main.php

    *i have replaced the username with the proper username

     

    Am i writing the command wrong , the exact error in the email is

     

    Status: 404 Not Found

    X-Powered-By: PHP/5.2.8

    Content-type: text/html

     

    No input file specified.

  4. Hmm from a brief read would i be correct to say that it is kind of like using CSS instead of HTML for layouts, for example you can have a page laid out usng CSS and you can then you can adjust the design easly using just CSS instead of writing the HTML.

     

    Is that the right kind of concept?

×
×
  • 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.