Apache2.2.x + php5.x + mysql Install and configuration on windows

Posted by Jerry in Articale, php | Leave a comment
  1. Go to apache website, http://www.apache.org download httpd .
  2. Go to php website, http://www.php.net download php5.x.x.zip
  3. Go to mysql website ,http://www.mysql.com download mysql installer exe
Install apache2.2.x.exe , when you finish the application is started. Then you can visit on you IE or Firefox browser. Type in http://localhost:port , the port is you config in apache when you install.
Now you can see it: “It’s work!” .
Then you unzip the php.5.x.zip to your directory, and change the name of the php.ini-development to php.ini and open as text edit of apache directory “C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\httpd.conf”, in my System is like this .
Go to the end of load models:

LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php

and go to here, you can press Ctrl + F to find the words “DirectoryIndex: sets the file that Apache will serve if a directory”
and add the index of directory like flow code :

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#

    DirectoryIndex index.html index.htm index.php

Then you restart apache service. The php script can be run.
Install mysql.exe and setup !Now go to configuration the php visit mysql service.

Then let us change the pram of php.ini like this :

;extension=php_bz2.dll
extension=php_curl.dll
;extension=php_fileinfo.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_exif.dll      ; Must be after mbstring as it depends on it
extension=php_mysql.dll
;extension=php_mysqli.dll
;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client
;extension=php_oci8_11g.dll  ; Use with Oracle 11g Instant Client
;extension=php_openssl.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_phar.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sqlite3.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_zip.dll

OK , you finish the configuration.

How to add a Open Cart themes

Posted by Jerry in Articale | Leave a comment

Today I’ve install a new theme of Open Cart, though that is not very good, but that is really coll when you can’t design this application page.
So I have download the Documentation how to develop theme of Open Cart ! Today I will tall you home install themes.

1st : you can download a free theme and upload to your website ,the directory is /catalog/view/theme/

When  you uploaded will like flow picture.

2sd : you will go to visit you admin of website System -> Settings -> Store like flow picture example.

Then you can select it ! Enjoy .

By Jerry.

Balsamiq Mockups can help you design web pages

Posted by Jerry in Articale | Leave a comment

Now look this , and try it. http://builds.balsamiq.com/b/mockups-web-demo/

If you are programmer, and you have not more free time to think the page hove to design. You can try this . So let we look images;

System Requirements

Mockups runs on Windows, Mac, and Linux via Adobe Air. Most modern computers will be able to run it. See the Air system requirements if you have an older computer.

Download Mockups

You can download Mockups for Desktop to try for free.

The application is fully functional for 7 days, but you’ll need a key in order to save your work after the evaluation period is over. You can also try the Mockups editor on the web here.

By installing this software you are agreeing to Balsamiq’s End User License Agreement.

The closest thing we have to release notes is this blog category.

Like to live in the fast lane? Try installing our pre-release versions, freshly baked after every check-in!

Make your fckeditor upload image & file work in java struts(ssh)

Posted by Jerry in java | 1 Comment

Today I try to use fckeditor in my project. Except upload image and file other works well . I found the problem this page request a php script page. And I google it get the result is add a package in your “lib” named “fckeditor-java-core-2.4.1.jar” and set flow code to you web.xml.
Filter url “/js/fckeditor/editor/filemanager/connectors/*” to get the uploaded image and save it .

    
      Connector
        
          net.fckeditor.connector.ConnectorServlet
      
      1
    
    
      Connector
      
        /js/fckeditor/editor/filemanager/connectors/*
      
    

But now you can’t upload file , so you have to set another filter:

    
        SimpleUploader
        net.fckeditor.connector.ConnectorServlet
        
baseDir
/UserFiles/
        
        
debug
true
        
        
enabled
true
        
        
AllowedExtensionsFile

        
        
DeniedExtensionsFile
php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi
        
        
AllowedExtensionsImage
jpg|gif|jpeg|png|bmp
        
        
DeniedExtensionsImage

        
        
AllowedExtensionsFlash
swf|fla
        
        
DeniedExtensionsFlash

        
        1
    
  
    Connector
    /fckeditor/connector
  
  
    SimpleUploader
    /fckeditor/simpleuploader
  


Form this , Fckeditor have many filter for work, we must config image upload filter and
file upload filter , in web.xml

Here it is ,then you can have a try.
If there is any troubles you can comment this post, thank you .

Javascript “image onload” doens’t work

Posted by Jerry in Articale | 2 Comments

When I use the flow function in my document, it works in Opear and Firefox. But in Safari it doesn’t work.

When I try getImage(‘/someservlet.gif’) The image is not loaded ,It works in Opera and Firefox, but not in Safari. I Think I can “new Image()” and “document.createElement(‘img’)” , but the same result.

Le we see the problem:

function getImage(url) {
    var image = document.createElement('img');
    image.src = url;
    image.onload = function() {};
}

In document like this :

Me

local


This works well when it’s called directly, problem start when it’s called from event listener.

“local” link works well in Firefox, Opera and Safari (but Safari shows alert1, alert2 and then alert with “src” for some reason, while other browsers show alert1, alertSrc, alert2)

“me” link Opera, Firefox – works well (alert1, alertSrc, alert2), but Safari doesn’t – show alertSrc. In Safari you see alert1, alert2 and thats all. Servlet “/pic/img.gif” doesn’t get request when someone clicks “me” link from Safari.

Now we see the problem
It’s a catche problem.
When I tried use image.src = url;.
javascript immediately goes to fetch the image, and if the image is cached, then the browser will just used the cached one and fires the onload, and now try image.onload = function() {}; but onload has already fired, so function() is never called.