Archive

Posts Tagged ‘php script’

php: simpledirectory is simply the best

December 7th, 2009 Jigish Thakar No comments

From past few days was looking for some nice script, which i can use to view my server side files.. actuelly i was very much facinated by the way wamp server index page shows the files in your shared (WWW) folder. and had a discssion about my this requirement with my brother (Linuxreaders.com). and he suggested me simpledirectory and i tried it and its amazing.

It provides many useful functions.

  • Copy/Move, rename, delete directories
  • Download files(pass through the php script)
  • Read/Edit files
  • Create a file/folder
  • Upload files
  • Set a particular folder as a “virtual root” for directory listing
  • Javascript/no javascript
  • Unicode supported
  • Thumbnail View
  • RSS
  • FTP Layer

Read more…

Checkout SVN with PHP

October 4th, 2008 Jigish Thakar No comments


Subversion (SVN) is a version control system that allows multiple developers to work on code simultaneously without coming into conflict (further information on SVN can be found on Wikipedia). Here at Brightlemon we find ourselves working on ever more complex sites and SVN has become a very useful tool that, if required, allows all staff to work on a site at any one time. We use a windows SVN client called Tortoise SVN so that we can work remotely on code and then commit to a central SVN repository.

When it comes to updating a site by checking out the code from a repository we usually run commands via an SSH shell connection, however we have found recently that when we are working with external companies (and even for new staff) then it useful to have an additional method for checking out the code that does not require SSH access to a server. We have achieved this by creating a PHP script that executes SVN commands in the following way. In order to use a PHP script that can run SVN commands you must ensure that your apache user (normally called ‘www-data’) has sufficient permissions to:

  1. create and edit folders
  2. run SVN commands

Read more…

File Upload using Ajax

September 15th, 2008 Jigish Thakar No comments

This is the simple code by which you can include file upload feature in your web page that too using ajax

<?php
// This is the folder where file are uploaded
$uploadDirectory = "testdir";
require_once("AjaxFileUploader.inc.php");
$ajaxFileUploader = new AjaxFileuploader($uploadDirectory);
echo $ajaxFileUploader->showFileUploader('id1');
echo $ajaxFileUploader->showFileUploader('id2');
echo $ajaxFileUploader->showFileUploader('id4');
?>

This library creates iframe and hidden form and so it becomes easy to upload files. I don’t remember the name or link of original author of this code then too thanks to him/ her.
to use this library download the entire set of files here

So guys start using it

About

August 27th, 2008 Jigish Thakar 4 comments

hey friends this is Jigish Thakar from India

i m full time PHP developer and now part time blogger
what made me start my own blog is that while doing my job i found so many difficulties and solutions for them in so many different blogs and forums

but never got chance to thank them coz of my busy schedule
because in many blogs it requires registration before giving any comment….

so i have decided to start my own blog where i ll put their solution and will provide a link to their blog to give my thanks and regards to them

soo guys you can also participate in this by investing some little time from your busy schedule and post your valuable comments…