Jump to content

OJB

Members
  • Posts

    362
  • Joined

  • Last visited

Posts posted by OJB

  1. Are you sure they are search engine spiders/robots and not just spam bots?

     

    Spam bots won't take notice of your robots.txt file and if your form allows anyone to submit an entry without some sort of anti-spam mechanism (reCaptcha for instance) then spambots will happily submit entries to your form.

     

    I'd suggest the following:

     

    1) front-end (Javascript) validation to ensure valid emails, valid names and non-empty fields are prevented

    2) back-end (PHP) validation to ensure valid emails, valid names and non-empty fields are prevented

    3) reCaptcha or some other variety of anti-spam mechanism (it can be as simple as a challenge and response asking a question that only a human can answer)

  2. Thanks, Bill & Team.

     

    All my reseller accounts are now no longer defaced and working as expected.

     

    A great response to what appears to be an almighty (in terms of number of sites) defacing. The response I received from the support team was swift too under such circumstances.

     

    Thanks to all involved.

  3. In Cpanel there is the option for "Remote MySQL". If your friend has a static IP address, you could allow MySQL access to their IP.

     

    Then they could use something like MySQL Query Browser (or Workbench which is the latest version) and they could connect remotely.

     

    Obviously opening up MySQL access to a remote IP has inherent security risks that come with it so be careful with who you allow access to. The ideal is to just allow a single static IP, but you can set a wildcard (represented with a % symbol) and allow any one access - but this is not recommended and you do so at your own risk.

  4. I came in here keen to post the -f flag that Bruce has done because this is something I've done several times at work to combat the issue of emails bouncing at receiving servers.

     

    The only thing I can add to this is that Bruce forgot the comma before the additional part. It should be:

     

    >
    mail($to, $subject, $message, $headers, '-fwebmaster@example.com')
    

  5. You could also try changing all your 'echo' statements to error_log() function calls. Like so:

     

    >
    error_log('The keyz is:' . $keyz);
    error_log('The prod_id is: ' . $prod_id);
    error_log('M_PRODS is: ' . $M_PRODS);
    error_log('The setup_fee is: ' . $setup_fee);
    

     

    Then check your php error log to see what has been written to it.

  6. I think the issue is that search engines will see hxxp://www.****** and hxxp://****** as 2 distinct entities, but both showing the same content.

     

    There are 2 things you can do:

     

    1) Modify your .htaccess file to route traffic to one or the other, the most common way of doing this is rewriting non-www urls to www.

     

    2) Specify your canonical URL. Basically if you can retrieve the same content via 2 or more URLs, then you should specify which the search engines should take as being, essentially, the primary URL and therefore ignore the others. Have a read here: googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html

  7. TCH is running the suPHP handler which means you can't/don't need to assign 777 privileges to any scripts.

     

    Have a read of this thread:

     

    http://www.totalchoicehosting.com/forums/index.php?showtopic=40190&view=findpost&p=244033

     

     

    In terms of 777 and what it means you split those numbers into 3 separate parts.

     

    Starting at the left most digit you have "user" - the owner of the file/script/directory

    The middle digit corresponds to "group" - other members of the group the file belongs to

    The right most digit is "other" - anyone else

     

    The numbers are built up as follows:

     

    0 no permission

    1 execute

    2 write

    3 write and execute

    4 read

    5 read and execute

    6 read and write

    7 read, write and execute

     

    So essentially 777 means read, write and execute for user, group and other. Which is why it is deemed a security risk.

     

    Have a read on wikipedia about filesystem permissions: (en.wikipedia.org/wiki/File_system_permissions) and CHMOD (en.wikipedia.org/wiki/Chmod) and it should help your understanding

  8. You cannot under TCH Terms & Conditions have different domain names pointing to different content on the same server under a virtual hosting account. If you want to accomplish this you could do one of the following things:

     

    1) Buy separate hosting for each site you wish to host (including buying separate domain names)

    2) Upgrade to a reseller account (this way you can have multiple sites and multiple domains - to do this contact the help desk it is made really simple by the tech guys)

    3) Use subdomains instead. Have all your videography stuff under: video.seaofbass.com, have music under music.seaofbass.com and films under films.seaofbass.com

  9. Hello all,

     

    Some of you will probably only know of me through the PHP/Scripting side of the site as that is where I tend to spend most of my time on this forum. I also have another passion in my life, music. I have been making music for over 7 years now and I have finally released my debut album. It is an album of instrumentals I have composed which were geared towards TV and film, especially TV adverts.

     

    The album is called "OJB - Just Ad Music" and may or may not be available to purchase from that popular music store that may or may not have anything to do with Apple (no links as I don't want to break forum advertising rules).

     

    You can stream the album from my soundcloud page:

     

    soundcloud.com/ojb/sets/just-ad-music

     

    And there is a video on youtube with one of the tracks:

     

    http://www.youtube.com/watch?v=5ugxqVEhNzo

     

    Any thoughts or comments would be greatly appreciated.

     

    Regards,

     

    OJB

  10. The problem is being caused by this style:

     

    border-width: 5px 5px 5px 5px;

     

    On line 4 of static.css

     

    In combination with

     

    border-collapse: collapse;

     

     

    No idea why that is happening. It is one of the most bizarre things I have seen in years of CSS.

     

    A quick fix is to change

     

    border-width: 5px 5px 5px 5px;

     

    to

     

    border-width: 4px;

  11. The times I have experienced 500 internal server errors is when I have syntax errors within the .htaccess file itself.

     

    If you want, send me the .htaccess file you are using and I will see if I can work out what is wrong. Not saying I am an expert, but I do work with them on a daily basis at work.

  12. Mbakshi: How much do you envisage you would require to be comfortable in terms of server space? Are you OK for bandwidth? An additional 1000MB in server space as an add-on is $2.50/month. So in this case it might be cheaper to tack on just the additional server space rather than upgrade to platinum.

     

    TCH: This post has just made me think about cloud distribution networks, is this something on the TCH radar in the future?

  13. Thanks for the info, Dick, do you happen to know whether if we have the php_value and php_flags in our .htaccess without the additional module block you show above will result in application errors or if it would essentially die gracefully and not throw any errors and just ignore them? Reason I ask is if I am not 100% on the ball and the upgrade to the server I am on goes through would any sites making use of those .htaccess commands stop working, or will those commands just be ignored and the application will continue to run?

×
×
  • Create New...