Items filtered by date: December 2015

Sunday, 06 May 2012 00:00

Setting the timezone with PHP

because webservers can be located anywhere in the world yet be used predominately in one region you need to be able to cahnge the timezone on the webserver, however the time stamp never changes.


You can set a default time zone for your server from the configuration file (php.ini) at the line:

Timezones are available here http://www.php.net/manual/en/timezones.europe.php

http://php.net/date.timezone

[Date]
; Defines the default timezone used by the date functions
date.timezone = America/New_York

Published in PHP
Sunday, 06 May 2012 00:00

Disable Magic Quotes in a PHP script

Magic quotes are the bain opf any programmers life. If you commit something to a my sql database that has unescaped characters, php by default will escape them with a backslash '/' and this can mess all your code up.

The following shows you how you can detect if magic quotes are running and how to disable them.


Detect if magic quotes are running

Run this php code on your web server

<?php
if(get_magic_quotes_gpc())
	echo "Magic quotes are enabled";
else
	echo "Magic quotes are disabled";
?>

Disable magic quotes

If you alter the following code in your php.ini will disable magic quotes. You might als be able to use a php variable declaration but this will be less permanent.

; Magic quotes

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off

 

Published in PHP
Sunday, 06 May 2012 00:00

HTC Universal wont boot after flash

for all those stuck in the boot screen

step by step

get the tools attached (mtty 1.42.zip), as mamaich told, you have to use it in bootloader mode, (power + light bulb + reset)

  1. stop activesync USB connection
  2. Uni : Reboot bootloader then connect USB
  3. PC : Run mtty1.42.exe
  4. choose USB in "port" (reconnect if can't find.recognise USB and try remove sim and SD card)
  5. type : task 28 55aa
  6. press enter
  7. cause DOC reformatted, so there's no rom in DOC, try reflash any rom that you like

Done.

Published in Windows Mobile
  • try other programs to see if they have tray select issue aswell
  • unprotect document if needed
  • setting is in file/page setup

Select top option in this list. This is a dynamic option supplied by the printer (selected in the printer properties, will not change everytime)

  • select print options
  • set default tray to 'use printer settings'
  • protect document again if needed
Published in Microsoft Office
Saturday, 05 May 2012 21:12

Windows Update error 80072F8F

set the clock to correct time
Published in Windows Family
  • goto the command prompt properties via its bar
  • select quick edit
  • now go back and highlight the text you want
  • hit enter
  • you have now copied the text
Published in Windows Family
Saturday, 05 May 2012 20:51

Open and read dbf database files

office 2007 and below are capable of reading these files natively and then the data can be exported or saved in another format.
Published in Data Recovery
Saturday, 05 May 2012 17:07

how to get smtp to work on xampp

in php.ini

disable these lines (please check on default ini file. only sendmail library should be active)

;SMTP = localhost
;smtp_port = 25

enable this line
;sendmail_path = "D:\Documents\websites\design\sendmail\sendmail.exe -t"

in sendmail.ini


(check default ini and update instructions)

the following were set and it works

smtp_server=mail.lancastrian-it.co.uk
 smtp_port=25
default_domain=lancastrian-it.co.uk

error_logfile=error.log
 debug_logfile=debug.log


The following are links to various tutorials on how to setup sending email from xampp which i used for research

 

Published in xampp

Default Sage Line 50 data locations

  • Windows Vista and Windows 7 –  C:\Program Data\Sage\Accounts\2008
  • Windows XP - C:\Documents and Settings\All Users\Application Data\Sage\Accounts\2008\

Backup Location

  • c:\shared Folder\accounts
  • \\server\accounts

Sage 50 Accounts 2013 Client Manager - Compliation of sage line 50 2008 - 2013 accounts packages for accountants, this is not line 50

Upgrade

Upgrade notes 1

  • when autorun, system checker runs and starts an installer
  • when you click install pre message below appears

    preparing your previous version for upgrade
     
  • it will upgrade ADM
  • it will now install Sage accounts 2013 (or latest version) and possibly remove a old versions, ie it will remove 2008 from ADM but not the PC so those companies still on 2008 can still be accessed directely through sage accounts 2008 but not ADM
  • it will not mess with the data or its locations
  • mandatory updates are forced for 2013 at this point
  • check path for correct path, should be ok
    ie. c:\program files\sage\ADM\2013
  • updates completed successfully click close
  • enter new serial + activation key
  • a completeion message will appearsaying ADM installed successfully
  • accounts 2013 installed successfully

Upgrade notes 2

  • basically stick the disk in every pc
  • click install
  • install wizard starts
  • click yes to agree
  • check path
  • next
  • select program folder
  • next
  • start copying files
  • next

Image appears 'now -- preparing previous install for upgrade'

  • version selection, select which version to install
  • check path
  • next
  • installing starts

sage software updates part

  • click install
  • sage software update path check
  • check path
  • click yes
  • program successfully updates, click ok
  • wait
  • the following updates were installed, sage 50 accounts 2013 - update 1
  • click close

Sage ADM Activation

  • enter serial and activation code
  • click next
  • a message now prompts to install this update on each station of a multiuser system
  • also a warning:
    any companies created in versions lower than 2009 (version 15) or in non-client manager variants of accounts will not be detected
  • click finish
Published in Sage
Saturday, 05 May 2012 12:14

Good Password Behaviour

In todays world you cannot just pick a word you use in your everyday life for your password. Read the notes below for guidlines on how to choose a password and how to look after it.

Protect your password:

  • Memorize your password, do not write it down
  • Do not share your password
  • Do not use the same password you use on other services (gmail, Yahoo, etc)
  • Avoid using one password for all your logins
  • Avoid logging in from public computers
  • Change your password frequently
  • Be wary of allowing your password to be remembered by browser plugins or other utilities

Tips for choosing a password:

  • Avoid dictionary words
  • Use a combination of letters, numbers, and special characters
  • Use a combination of capital and lower case letters
  • If you use a word, try to combine multiple words, or use "made up" words
  • Avoid familiar items (names, phone number, etc)
  • Avoid common passwords and generic sequences (ie. "password", "admin", "123456", etc.)
  • The more characters you use, the safer (use at least 8)
Published in Security
Page 68 of 96