|
|
Web
toucheatout 2008-02-29 04:23 Web
This code is designed to prevent execution of some script ('say /maintenance.php), that has to be run from a remote host or from the host itself. The snippet is to be put at the beginning of the script.
Note:
toucheatout 2007-02-06 16:51 Web
Getting a PHP easter-eggThis isn't well-known usually, but PHP features easter-eggs. You can try on a php-enabled website (that has an index.php) Which is a neat way of finding out wether a site uses php or not (see below a way of not disclosing this info) For instance http://www.toucheatout.net/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42 (should be a little dog's picture, the image is dependant on php's version) Other strings that yield rather undocumented results :
toucheatout 2006-09-07 12:29 Web
The base elementsThis function supposes that a tree has been created on the filesystem and contains the entire contents of the CD (or zip) to be created and given to the user. The structure is as much as possible created using the
toucheatout 2006-07-15 17:06 Web
Asynchronous transactions is what the regular web is not about. That is, communication with the server of partial information. The page is systematically and fully transmitted to the client. Next request will also be for a complete document, which is unefficient when all you want is updating a single item on the page in reaction of user action. More reactive an interface, more rational with bandwidth... That is more liberty for the developers Tadatin! Here comes AJAX...
Here's a simple example on how to fill a div with the server requested date using AJAX:
toucheatout 2006-05-19 16:17 Web
Even if the Main uses of a htaccess file
toucheatout 2006-05-19 11:10 Web
Nobody likes a page, referenced from other sites, bookmarks or search engines, become unavailable at some point. Therefore, before changing a webpage URL, it is good to use apache This can be done from a
toucheatout 2006-03-26 17:29 Web
To ensure good impact, those more or less unseenable parameters matter (i mean their absence could be seen as a sign). They can simply be seen as accessible webdesign. Do not abuse and express clearly and honestly what you are talking about, otherwise you could get to be blacklisted and irritate those that could have used those infos. Generic recommandations for a websiteNote: The importance of keywords and other meta tags seems to be getting less and less considered, due to the heavy abuse they have been subjected to. Do not overuse them, since at best there is no real gain, and at worst they hint for a possible search-engine-spamming site. They don't hurt neither, and some older engines still rely on them.
toucheatout 2006-03-26 17:24 Web
Favicon generationSimple with ImageMagick, the convert utility makes it in one simple step:
The '!' isn't mandatory if your image already is square. If it is not, this '!' prevents convert to preserve the original height/width ratio (geometry specified is interpreted as maximum size in each axis by default). Note: You can use the php system() function to invoke convert if allowed and imagemagick configured on the webserver. The other possibility is to edit an image with The Gimp or another image processing software that knows about this image format. Animated gif using gimpCreate an image with the first frame, then loop over:
Finally, save as gif and select "Save as an animation". Do not forget to specify the desired delay between frames.
toucheatout 2006-03-26 04:15 Web
There come a basic web survival guide with the most important stuff I stumbled upon so far to create in proper (CSS) style. Some more unordered experiments with CSS, javascript and ajax and apis etc... at the labs. Content Management SystemsWhile the content and design of websites get the maximum attention, medium-size websites usually don't have every page made individually. It would require too much technical knowledge for updating, enriching etc... The most common system nowadays is a blog system. The system is constrained in such a way that only 2 elements are needed for a new page : the title and the writeup. Other content management platforms existed before the blog format and still are used (as here, this site is made using the drupal CMS). They propose integration in a multi-user by design publishing platform of tools (usually forums, blogs, news pages, link pages, "regular" pages etc...) while keeping the design template common. While CMS is a general term, and systems that use that appellation are usually very versatile, blog platforms, forums systems (as phpBB), bulletin board systems, etc... are also all about content management. Most famous CMS are Joomla (ex-mambo), drupal, typo3 (reputed the most potent, but a whole world in itself), and many others. opensourcecms CMS testing site proposes testing nearly all available opensource CMSes. As the site is regularly refreshed, you only have a bare bone installation. In the normal case, one has quite some work to choose, install, test and maybe tweak the theme to be used, the modules to be added, activated, coordinated, the access control and permission system, the format of the homepage, the navigational elements... Social networking, social bookmarkingThose are all the rage in the trend of the web to become more and more participative. This is indeed nice for website makers, as they abandon any responsibility on the content, and its production. On the other hand, it makes web user feel empowered : they do not only watch what is proposed, they get to author content as well... Or participate by giving their opinion in comments on on-site blogs or qualifying websites with tags. Those tags are then made public for each user and aggregated for the front-page. Example: del.icio.us social bookmarking website user's profile. And as trends govern, there is retrievable code that allows you to very easily display a tag cloud : Javascript + CSS useful featuresPlaying with VisibilityThe |
|