wdvlTalk Roundup September 2002
October 2, 2002
|
Please note that any suggestions and/or recommendations regarding Web hosting companies, software, etc. are solely derived from the members of the list and do not necessarily constitute a recommendation from the editors of wdvl or internet.com. Links are provided in the comments and suggestions for additional help or information.
|
Please explain to me what the /* and */ you have used in your body and
#divname mean?
-
The text between /* and */ is usually a comment. Pretty much like most other
programming languages.
Which file extension should one preferably use:
.html or .htm and why?
- This is a legacy thing from the days of the DOS limitation of
3-character file extensions. Using ".htm" allowed page files
to be used within DOS.
Does someone know how to create a web site in the newspaper format,
using one or two columns?
Here's some resources to read through to get an idea of what the big
XHTML+CSS drive is, why it's done, why it's needed and a few tips:
-
What it is and why it's done:
Problems and workarounds:
Implementations and example:
Without any third party components, what is the best way to dynamically
create thumbnails from images?
- You can do it with PHP (GIMP)
- there is a free utility,
Coffeecup Freeviewer Plus which I use for
quick and dirty thumbnails. Quality is ok and the Viewer "Plus" will create
pages of thumbnails automatically.
- From Eric Fookes (author of NoteTab Pro):
Easy Thumbnails v2.0 (freeware) now lets you increase the size of
pictures and also stretch them to fill a defined size. There are
several improvements to the interface that make it even more user
friendly. For example, there is now an option to let Easy Thumbnails
pick the best resize algorithm based on the type of image being
processed. It is also easier to define a prefix or suffix for the
thumbnails.The pre-release copy of version 2.0 is available at the
following link (size 973,624 bytes):
http://www.fookes.net/ftp/beta/EzThmb_Setup.exe
I need a script that will insert a certain txt file based on
the month. For instance, this month it would insert September.txt and
next month October.txt and so on.
-
Here you go... assuming you have a bunch of text files called january.txt,
february.txt, march.txt and so on. Give us a shout if you get stuck.
<?php
require_once("/some/directory/or/other/". strtolower(date("F")). ".txt");
?>
What is the best way of checking what a visitor whose browser
can't see frames sees when they visit a site of mine that uses frames?
Are there some nice PHP lists around?
I can't find a central
repository/list of PHP modules (IMAP/GD/SWF etc.).
-
Not sure what you were looking for. PHP does not exactly follow the Perl
concept of module as the modules are built-in to PHP as functions. Check
here for a huge list of supported functionality:
http://www.php.net/manual/en/funcref.php. To answer the examples you
mentioned:
If you are interested in classes additional to the core PHP functions
(for instance, OO DB class, caching class etc), then perhaps PEAR is
what you are after:
http://pear.php.net/manual/en/introduction.php
Can javascript prevent a page from being framed?
-
Yes... add this code to your page's 'head' section:
<SCRIPT language=javascript>
<!--
if (top.location != self.location) {
top.location = self.location
}
-->
</SCRIPT>
You've made references here to a "Top Style" program for writing CSS.
Could you share an url for this program?
I need to make a hyperlink to window.open functionality (i.e., open
window at a specific size and position without any toolbars) from a hyperlink.
<A HREF="javascript:void(0)" ONCLICK="open('announcer.htm',
'myannouncer','toolbar=0,location=0,resizable=1,width=170,height=230')">
<B>This Site!</B></A>
-
If you use the following code, it works whether or not the user has
Javascript enabled, although with no JS you can't control the size and
features of the window. If you want it to only work with JS then use "#" as
the href and leave out the target:
<a href="new.htm" target="_blank"
onClick="window.open('new.htm', 'new',
'width=640,height=470'); return false">
Click for new window</a>
|