tag:blogger.com,1999:blog-72945064021651759872024-02-08T08:23:42.614-08:00ptalusPHP answers, questions, tips, tricks and useful freeware scripts almost everydayptalushttp://www.blogger.com/profile/10409813558009496747noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-7294506402165175987.post-75550317942805796612008-12-26T08:56:00.000-08:002008-12-26T09:06:33.661-08:00How to copy categories in Zen-Cart admin panel?Unfortunately the original Zen-Cart doesn't allows to copy categories, it has move ability. Although it allows to copy products. The <a href="http://goodwinsoftware.com/category_copy/category_copy.zip">attached files</a> add copying ability for categories. It allows to copy a whole directory tree with all children. The extension was tested with Zen-Cart 1.3.0.<br />Just install and use.<br />If you need some customization don't hesitate to ask.ptalushttp://www.blogger.com/profile/10409813558009496747noreply@blogger.com15tag:blogger.com,1999:blog-7294506402165175987.post-87278276797727146542008-02-06T01:40:00.000-08:002008-02-06T02:08:27.536-08:00how to integrate phpBB and Zen-cart?The default integration is quit simple - you just install zencart and phpBB and use two different php applications. They are not integrated at all. It would be better if you could login into zencart and then use phpbb forum without another login.<br />Such task requires some fixes both in zencart and in phpBB: you have to alter login and session processing sections in both applications.<br />All files that should be modified are available by this <a href="http://goodwinsoftware.com/zencart_phpbb_login/forum.zip">link</a>.<br />Feel free to use it on your projects.<br />If you don't like to digg in you e-commerce you can buy my services: <a href="http://www.rentacoder.com/RentACoder/SoftwareBuyers/NewBidRequest.asp?lngForcedBiddingTypeId=3&lngCoderPersonId=1569346">15$ for integration<br /></a>ptalushttp://www.blogger.com/profile/10409813558009496747noreply@blogger.com12tag:blogger.com,1999:blog-7294506402165175987.post-89078336324636075522007-10-10T00:50:00.000-07:002007-10-10T00:56:16.644-07:00Congratulations,<br /><br /><a href="http://www.sugarcrm.com/crm/">SugarCRM</a> v4.5.1 could be successfuly installed on Godaddy's shared hosting.<br />There are many posts at both Sugar's and Godaddy's forums indictating the existing incompatibility between them. But now it is possible with following assumptions:<br />1) switch to PHP5 using .htaccess<br />2) make MySQL 5 database<br />3) Upload and install SugarCRM<br /><br />PS: IMAP functions are still unavailble at godaddy so some SugarCRM functionality will not work.<br />PPS: Don't hesitate to ask if you need help to install Sugar or any other software.ptalushttp://www.blogger.com/profile/10409813558009496747noreply@blogger.com2tag:blogger.com,1999:blog-7294506402165175987.post-5791579152632064252007-09-26T02:27:00.000-07:002007-09-26T02:32:49.530-07:00Anyone who dealed with forms and php applications knows about emails. There a lot of questions about mail() function at http://www.php.net/mail<br />I got a class from <a href="http://phpmailer.sourceforge.net/">sourceforge </a>which makes my life mush easier.<br />You could make a piece of code which sends HTML email with attachment in a few minutes using it.<br /><a href="http://www.goodwinsoftware.com/files/emailform.zip">My script</a> shows a form, where an user could enter his name and upload a file which will be sent to admin.ptalushttp://www.blogger.com/profile/10409813558009496747noreply@blogger.com0tag:blogger.com,1999:blog-7294506402165175987.post-75878998239420274232007-09-19T10:21:00.000-07:002007-09-19T10:33:02.934-07:00Portable Web Servergood portable web server - <a href="http://www.chsoftware.net/en/useware/wos/wos.htm">WOS portable</a><br /><br />What is portable web server?<br />It is just full server environment fitted on flash-stick or CD(DVD)ROM.<br />WOS includes Apache web server, MySQL, PHP4&5 and a couple of PHP apps - such as OsCommerce, PHPMyAdmin and others.<br /><br />It allows you to run your favorite site offline, on a client's desktop for example.ptalushttp://www.blogger.com/profile/10409813558009496747noreply@blogger.com1tag:blogger.com,1999:blog-7294506402165175987.post-49172129070887099562007-09-02T09:56:00.000-07:002007-09-02T10:04:47.206-07:00PHPAuction runs on PHP 5I had to use PhpAuction v2.0 in order to create a website for my client. But this script is written in old fashiniod way and it requires register_globals to be set on. I prepared a little patches for it. Files that should be fixed:<br />includes/config.inc.php (Place the code below to the begining of the file)<br /> $p = array_merge($_GET,$_POST,$_SERVER); foreach($p as $k=>$v){ $GLOBALS[$k] = $v; }<br /> if (!isset($HTTP_POST_VARS)) $HTTP_POST_VARS = $_POST;<br /> if (!isset($HTTP_SESSION_VARS)) $HTTP_SESSION_VARS = $_SESSION;<br /><br />admin/loggedin.inc.php (Place the code below immediately after session_start();)<br /> if (!isset($HTTP_SESSION_VARS)) $HTTP_SESSION_VARS = $_SESSION;<br /><br />In this way PhpAuction v2.0 from https://sourceforge.net/projects/phpnggpl/ could be used on both PHP 4&5 with register_globals switched offptalushttp://www.blogger.com/profile/10409813558009496747noreply@blogger.com1tag:blogger.com,1999:blog-7294506402165175987.post-71179133895420303822007-08-21T10:52:00.000-07:002007-08-21T10:54:35.453-07:00PHP 4 will be not supported after 31-12-2007Nobody cry about it. Bye PHP4 - news from php.netptalushttp://www.blogger.com/profile/10409813558009496747noreply@blogger.com0tag:blogger.com,1999:blog-7294506402165175987.post-64854092577524974972007-05-28T01:45:00.000-07:002007-05-28T02:47:46.331-07:00PHP form handlerThis script :<br/>1) creates HTML form to enter the data<br/>2) has php handler which gets data and stores it to db<br/>3) exectes setup.php script to create corresponding data table.<br/><br/>Link: <a href="http://pgal.argon.biz.ua/dbFormcreator.zip">here</a><br/>License: absolutely free ptalushttp://www.blogger.com/profile/10409813558009496747noreply@blogger.com0tag:blogger.com,1999:blog-7294506402165175987.post-42351472644375434422007-05-25T06:58:00.000-07:002007-05-25T07:01:33.396-07:00SilverLight from Microsoftyes it is about new buzz word from Microsoft<br />They tried to divide programmer's work from designer's one.<br />XAML + JScript vs FLASH + FlashScript<br />get the <a href="http://www.microsoft.com/silverlight/install.aspx">Silverlight player</a>ptalushttp://www.blogger.com/profile/10409813558009496747noreply@blogger.com0tag:blogger.com,1999:blog-7294506402165175987.post-59466596098581593722007-05-22T23:25:00.001-07:002007-05-22T23:38:13.122-07:00PHP easter egg problemPHP easter egg is funny dog picture but it could be used by attacker to detect PHP version <br/> using following url:<br/><a href="http://www.yoursite.com/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42">http://www.yoursite.com/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42</a><br/>Each version has its own picture.<br/>If you would like to hide PHP version or even the fact that your site are using PHP you could use following solutions :<br/><ol><br/><li>.htaccess mod_rewrite:<br/>Change mod_rewrite<br/>setting so that web <br/>server removes 'easter egg' parameter string</li><br/><li>modifying php.ini<br/>set the "expose_php"<br/>directive to "off" in <br/>server's php.ini<br/></ol><br/>Contact me if you interested to make your site a<br/>little safer.<p><br/><br/>ptalushttp://www.blogger.com/profile/10409813558009496747noreply@blogger.com0tag:blogger.com,1999:blog-7294506402165175987.post-15003412395419725742007-05-22T21:49:00.000-07:002007-05-22T21:52:56.535-07:00new open source project - GAdsViewerNew project is started at <a href="http://gadsviewer.sourceforge.net/">http://gadsviewer.sourceforge.net/</a><br/>It will allow to store content of AdSense block published at your site. <br/>ptalushttp://www.blogger.com/profile/10409813558009496747noreply@blogger.com0