I get asked quite often if there is a way to show CODE on a website, with it’s formatting in place?
The short answer is <pre>
It can output free text (i.e. non server side code) in a pre-formatted way. Yep, PRE = Pre-formatted.
On top of that, Preformatted also renders the php print_r() output in a nicely nested unordered list, which is great for debug purposes;
e.g. echo “<pre>”; print_r($arr); echo “</pre>”;
I am sure there are other uses for the <pre> tag too, I have just scratched the surface.
Give it a go – let me know if you find other uses for it.
Thanks.
Filed under:
Internet, PHP
“I’ve opened up a web design business”
After many years of freelance web development, I decided to bite the bullet and “open up shop”.
In Sky Design is an association of designers and developers working together to create user friendly websites. We offer web design, graphic design and web application development; for start up business and established businesses who need internet solutions.
Please take a look at www.inskydesign.co.uk
We have set packages along with a price guide to show what our customers most commonly ask for.
If you can’t find it on the website, no problem, please ask.
Author:
Anup Saund
Apr
22
www.LOGMEIN.com
Step 1: Log into logmein.com
Step 2: Click on “My Computers”
Step 3: Click on “Edit Computer”
Step 4: Click on “Desktop Shortcut”
Final Step: You can now drag the [Compuer Name] onto your desktop, to create a desktop shortcut.
When you click on this shortcut, it will go directly to the login page for the COMPUTER, instead of having to login to the logmein website.
Great HUH!
You can also right click, and copy the URL, and then do what you want with it. At work we have collated a list of all our computer connections, and published it in a central place, so that everyone in the office can access any machine, directly.
Nice One LOGMEIN.
Author:
Anup Saund
Feb
22
Have you noticed that some websites have a copyright date which is wrong?
For example:
www.somecompany.com (I appologise if you own this site)
then on the site, you have, Copyright SomeCompany Ltd 2002-2006
Now, if your lucky, your site is designed so that the footer can be changed once, so the entire site is updated. Well done.
For the others… shame on you. – Redesign your site.
Anyway.. heres a way to crack it on the head once and for all.
PHP
2003 - < ?php echo date("Y"); ?>
ASP
2003 - < %= year %>
This way, as long as your server date is correct, your website will always be up to date. In fact, consider using date more in this way, to save yourself manual intervention.
Filed under:
ASP, Internet, PHP
Author:
Anup Saund
Feb
10
What do we look for when chosing antivirus software?
Personally, I’m looking for something that doesn’t,
i) Scan every mouse click, making the PC unusable
ii) Is affordable, and easy to use
We use Norton Antivirus 2006, and F-Prot at work. Both do what they say on the Tin. (*cough* no slander)
… I’ve been looking at home for something and came across C.O.M.O.D.O’s offering.
(PLUG)
http://antivirus.comodo.com/
- Eliminates Viruses, Worms and Trojans from desktops and networks
- Detects and eliminates viruses from desktops and networks
- Constantly protects with real-time On Access scanning online
- Proactive Heuristic analysis intercepts unknown threats Daily, automatic updates of virus definitions
- Isolates suspicious files in quarantine preventing infection
- Simple to use: install and forget
FREE SOFTWARE – NO LICENSE FEES EVER
Comodo AntiVirus 1.1 beta, all subsequent beta versions and the final release version will each be available free to both home and business users
Bid farewell to viruses and kiss license fees goodbye.
Download today for out-of-the-box protection at no cost.
(END PLUG)
If you want the complete package, you can install their Internet Security for firewall protection.
I don’t need to hype it up anymore, try it out.