I needed to do it for a windows application I’m writing. My problem was to get the current serial number windows provides when a drive is formatted. You know, the one that appears when you type the “dir” command in a ms-dos prompt window. I googled around but I found only code for VB6 or code which should not have worked in a console application.
No default .NET object was giving me the piece of information I needed, so I though to get It directly from the “dir” command.
I got how to launch a process and get its output from EggHeadCafè but I added some work by me.
Read the rest of this entry »
-
0 comments -
I always sayd that one of my aims was to develop an “important” framework to make PHP work like Ruby On Rails. The first alpha/unstable/use-at-your-own-risk version will be probably released in the first months of 2010. You know…I have to work, so my experiments are done during my freetime (especially at night…). So if you appreciate my “second” job as a web development researcher you can contact me for a donation via PayPal. But now let’s talk about PhpOnTheRoad, my new PHP framework!
Read the rest of this entry » -
Hi all…first I wold thank all the people which are visiting and leaving comments on this blog!
I’m currently working on a Ruby On Rails project for the company where I work. According to my company’s bosses decisions all projects have to be developed on a testing server and then switch the project to a production system. Tomorrow I have to prepare the “production” system for my RoR project. So I said to myself: “Please don’t go to the server farm without knowing exactly what to do”. I took an old Fujitsu Notebook (with Japanese keyboard) and installed Debian 5.0.
Read the rest of this entry » -
I’ve tryed it…Aptana Studio is a great IDE for web development, I used it a lot with PHP…but had a great problem wich lead me to use TextMate instead. Aptana Studio can become very very slow during its startup. It is because it tries to index all your file of all your open projects. I always have more than 10 projects in my Eclipse IDE (on whom Aptana Studio is designed) and the time to wait for Aptana Studio to let me work was awful. I returned to PHPEclipe plugin for Eclipse,Netbeans or TextMate, swiching them just in case of my programming needs. But now I need something for Ruby On Rails. Ok i can use TextMate, but I also want to use RadRails installed above my Eclipse Galileo…but RadRails is now integrated in Aptana Studio! And there seems not to be a link to install it as Eclipse plugin…
Read the rest of this entry » -
I always wanted to develop a PHP framework similar to Ruby On Rails…so some time ago I started this project. When I started its development I wrote PHP4 compatible code, but now I think this framework should be at least PHP5 compatible. Probably a PHP 6 compatible version will be the next step after 1.0 release.
So I started writing it for PHP5 but I was never satisfied of my work, so I didn’t release the framework (early versions lack of generators,migrations and test suites) .
Now I feel a first nighty-build release of my PHP framework will come out very soon, so stay tuned.
It will be only MySQL and MySQLi compatible, full support for Postrgres, Oracle, MS-SQL and other DBMS will be added later.Here are the System Requirements and the features I’m developing
**** SYSTEM REQUIREMENTS ****
I won’t tell you about the hardware. Needed to be installed a Web Server (e.g. Apache) and PHP 5.
PHP need to come with some PEAR packages installed. First of all MDB2 and MDB2#mysql (or MDB2#mysqli).
Needless to say that MySql and MySqli extensions have to be loaded in your php.ini**** DEVELOPED FEATURES ****
- Migrations: mysql and mysqli migrations are supported
- ActiveRecord: easy to use and smart ActiveRecord implementation started. It uses MDB2 to access database.**** STILL ON WORK FEATURES ****
- Controllers implementation and generator
- Models generator
- Helpers (e.g. Forms auto-builder, and stuff like this)
- Engines (the way the framework rewrites URLS)
- Template EngineSome words about the Template Engine. I think I will use Smarty as the base template engine. Please let me know if you prefer other template engines or if I should write a new one from scratch (an .rhtml complatible template engine?). Needless to say it will be the last thing I will develop, so design ideas are well accepted!!!
I’d like also know how many people are still using PHP4 and need a PHP4 compatible framework. If there are many, I will think about doing it.
-
Sometimes files to be downloaded need to be protected, for example when download is available only for registered users of a website. To do this we need to make a “wrapper” script which checks if the file to be downloaded is available or not and we have to put the file in a place on our web server where they cannot be accessed through a url. But using Internet Explorer we can have some trouble to let our users download the files correctly. Now I’ll make an example using PHP as server-side scripting language.
Read the rest of this entry »



