Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Saturday, May 20, 2006

XAMPP for apache, php and mysql

Download: http://www.apachefriends.org/en/xampp.html

XAMPP for Linux
The distribution for Linux systems (tested for SuSE, RedHat, Mandrake and Debian) contains: Apache, MySQL, PHP & PEAR, Perl, ProFTPD, phpMyAdmin, OpenSSL, GD, Freetype2, libjpeg, libpng, gdbm, zlib, expat, Sablotron, libxml, Ming, Webalizer, pdf class, ncurses, mod_perl, FreeTDS, gettext, mcrypt, mhash, eAccelerator, SQLite and IMAP C-Client.
XAMPP for Windows
The distribution for Windows 98, NT, 2000 and XP. This version contains: Apache, MySQL, PHP + PEAR, Perl, mod_php, mod_perl, mod_ssl, OpenSSL, phpMyAdmin, Webalizer, Mercury Mail Transport System for Win32 and NetWare Systems v3.32, JpGraph, FileZilla FTP Server, mcrypt, eAccelerator, SQLite, and WEB-DAV + mod_auth_mysql.

Tuesday, February 21, 2006

how to fix Warning: extract(): First argument should be an array

Re: [maxbear] Error using different template [In reply to] Can't Post

--------------------------------------------------------------------------------

It looks like the error is happening on this line:

--------------------------------------------------------------------------------
Code
--------------------------------------------------------------------------------

extract($TPL_GLOBALS[$template_set]);

--------------------------------------------------------------------------------


Which from the previous few lines, should only error if you don't have a globals.txt. You should be able to fix it by either creating an empty globals.txt file, or by changing the above line to:

--------------------------------------------------------------------------------
Code
--------------------------------------------------------------------------------

if (isset($TPL_GLOBALS[$template_set])) {
extract($TPL_GLOBALS[$template_set]); }
-------------------------------------------------------------------------------

in aboutsaigon/includes/templates.php

function fetch($file = null) {
global $INFO;
if(!$file) $file = $this->file;
if (isset($this->vars)) { // fix the warning
extract($this->vars);
}
ob_start();
include($INFO['templateFolder'].$file.$INFO['templateType']);
$contents = ob_get_contents();
ob_end_clean();
return $contents;
}
}