Jump to content


  • Posts

  • Joined

  • Last visited

Everything 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. Do you need to define register_globals as off in 5.3? I thought by default it was off and was deprecated as of PHP 5.3?
  8. 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
  9. I think you can only set up a symlink from the linux command line, or a cron? Might have to contact helpdesk.
  10. I'm assuming your solution was error suppression using @ i.e. @file_get_contents()?
  11. Sounds amazing. Just goes to cement the reason why I recommend TCH to people I know who are seeking new hosting.
  12. 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
  13. OJB

    My Debut Album

    Wow, thanks Bill. I am glad you like it and have listened to it several times. It makes it all worth while when other people enjoy what I do. Thanks also to Alex. Much appreciated guys.
  14. OJB

    My Debut Album

    Hey guys Thanks for the kind words and for taking time out to listen to some of my stuff. It is very much appreciated. OJB
  15. 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
  16. 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;
  17. 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.
  18. Another way to do it would be use a .htaccess file in your web root to redirect traffic from your directory to a subdomain, this way it will reduce the number of requests a connection to your site makes.
  19. 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?
  20. Fair enough, not sure I ever tried GMail Notifier. I use GMail Manager with all my hosted accounts for my websites, so I have 7 accounts on it at work and get alerted when I get a new email on any of the accounts.
  21. hotscripts.com is your friend. There are loads of free PHP form mail scripts. I can't really recommend any one in particular as I have never used any of them.
  22. 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?
  23. Yes there is: > RewriteEngine On RewriteRule ^/(.*)\.shtml$ /$1.html That should work I think.
  • Create New...