Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - yuri

Pages: [1]
Web design and coding tips / The first PHP tip
« on: December 14, 2007, 03:51:06 PM »
If you plan to use PHP applications on your site, my first advice to you is to make sure that the 'register_globals' option is disabled. That option is one of the easiest ways for a hacker to break into your site and gain full control over its contents.

To see what is your site's PHP configuration in general and in particular whether 'register_globals' is On/Off you should create a file 'phpinfo.php' with the following contents:

Code: [Select]

and upload it to your site.

Then open in the browser the URL to the 'phpinfo.php' script:

Search for 'register_globals' to go directly to the appropriate line.

In case 'register_globals' is On, ask your hosting provider to disable it.

I think it is a good idea to remove the 'phpinfo.php' file once you are done with it - no need to show to the world the details of your site's PHP configuration.

Web design and coding tips / When to use CSS @import and when the link tag
« on: December 12, 2007, 11:47:43 AM »
I found out about the CSS @import declaration when I saw it used to import the main stylesheet of the page:
Code: [Select]
<style type="text/css">
@import url("main.css");

This raised the question of when should you use the link tag:
Code: [Select]
<link rel="stylesheet" type="text/css" href="..." media="screen" />and when the @import technique.

After a quick search in Google (plenty of info on the subject) I found out that using @import from the HTML directly was used in the days of yore to apply different styles for different browsers. Now a days this use is kind of irrelevant.

@import's original purpose is to modularize CSS styles (a good article on the subject) and it is better to use it like that and not to import the main style sheet. For the main / master stylesheet of the page one should use the link tag.

Template Customization / Your Template.
« on: March 09, 2003, 06:14:14 AM »

Thanks for using our templates :)

There are several things that can cause lines to appear between the images:
1) if one of the images has larger height or width
2) if the text in the cell is too large (large font size or a lot of text)
3) if you don't specify explicitly the cell padding and spacing of the table to be 0
4) sometimes a missing 'valign' and 'align' attributes can cause it

If you can tell us which template did you use or better give us a URL where you have the customized template I will take a look and I will give you some more info

Best wishes,

Suggestions / About the site
« on: February 10, 2003, 03:56:07 AM »
I think we should have and 'About the site' topic under 'Your suggestions'

Pages: [1]