Linux Apache Server Web development – note

February 24, 2010 § Leave a comment

Couple things to note.

1.What is the UID of the files that generate by server side  script?

It is ‘apache’

2. Why I cannot use chmod 777 on that file, but I can chmod the file I just created using FTP software?

Because the ftp login UID is not apache.

3. Why my script is not working on deployment server, but work in localhost in windows enviroment?

Many reasons, if it related to above issues, then it would be a UID named ‘user’ script want to write something on that     folder with UID named ‘apache’ (this folder probably you use mkdir command to generate ).

It will happens to be a issue once if the PHP < 6.0  safe mode is turn on .

jQuery Uploadify – A handy dandy tools for upload to your own place

February 23, 2010 § Leave a comment

Uploadify is an open source jQuery plugin and very easy to use.

You may follow the link http://www.uploadify.com/

The installation and basic usage you can also find it in the hosting site.

Couple things share I would like to share

1.Debug script

$(document).ready(function()
{ $('#fileInput').uploadify({
'uploader'  : 'uploadify.swf',
'script'    : 'uploadify.php',
'cancelImg' : 'cancel.png',
'auto'      : true,
'folder'    : '/uploads',
'onChange' :function(eventObj, queueID, fileObj, response, data)
{
alert('File Name:'+fileObj. name);
alert('File Path:'+fileObj. filePath);
alert('Server Response:'+ response);
}
});
});

2. Testing on Localhost works perfectly, but a mess in actual deployment

Uploadify is just great treat for every developer, but when it comes to actual deployment it is a pain.

There are couple error you can get ‘HTTP’,’IO’ or ‘Security’.

I encounter HTTP error 500, still looking for solution to overcome this.

Where Am I?

You are currently viewing the archives for February, 2010 at Nick Wan L.K..