Developers Archive for the 'Beginners Php / Php Novices' Category

How to install and start apache service from command line

How to install and start apache service from command line Tuesday, March 25th, 2008

i.To install apache as a service from command line

Syntax:
1.start->run->type cmd->click ok
2.Type the root folder path of apache

c:/apache> cd bin
c:/apache>bin>httpd -k install -n “ServiceName”

ServiceName will be called ‘Apache’.

ii.To start,stop,restart,shutdown apache service from command line

Syntax:

c:/apache>bin>httpd -k start
c:/apache>bin>httpd -k restart
c:/apache>bin>httpd -k stop
c:/apache>bin>httpd -k shutdown

Zebra PHP Framework - PHP MySQL Database Wrapper Class 1.1.0

Zebra PHP Framework - PHP MySQL Database Wrapper Class 1.1.0 Monday, March 24th, 2008

Please consider this a BETA version as no thorough tests have been done yet

What’s new in this version:

calling on a fetch method and providing a result resource from a query whos result was taken from cache would send the script in an infinite loop
improved the speed of dlookup() method by adding LIMIT to it - thanks to A.Leeming for suggesting this
added some new methods - close() - alias of mysql_close(), log_debug_info() - which will write debug information to a log file and seek() - alias of mysql_data_seek() wich works seamlessly with cached results (previously users haven’t had a method for iterating through results of a cached query)
the connect() method now returns the link identifier of the connection, which can be later used for closing the connection with the close() method
some documentation refinements (thanks to Vincent van Daal)
completely rewritten template file and stylesheet
a version with the comments stripped out is also available now to be used by those who need a smaller footprint for the classes they include. the script’s size is almost 4 times smaller than the original script. remember to rename the script to class.database.php if you want to use it

What’s this?

This PHP script is a MySQL database access wrapper. It provides a set of methods for interracting with a MySQL databases, from within PHP, easily and securely while providing a fantastic debugger [read more]

Zebra Content Management System

Zebra Content Management System Monday, March 24th, 2008

After quite a lot of work (and yet still far from over) I started to actually implement websites using the Zebra Content Management System.

The Zebra Content Management System is both an API and a Content Management System (CMS) providing users a powerful and ready-made backend (the CMS itself) and developers a powerful API to interact with the data from the CMS. This gives the possibility for developers to quickly deploy complex websites without having to bother with coding the administration area of it, while having at disposal a powerful yet simple API to produce the front-end. Because of this, the development time of a standard presentation website can be as short as two days (or even a single day!) without sacrificing anything on the website – on the contrary, because more than 95% of the code and logic that is usually written for a website is already implemented in the APIs, the developers can now focus more to perfectly implement the designs and have more time to test it and make sure it’s W3C compliant.

Bottom line is that you can have your website ready very quickly, complete with registered users management, newsletters module, contact requests management (yes, you can forget about that CRM of yours), multiple language support, articles moderation, files management, image galleries and lots of other things, while everything being very search engine optimized.

The Zebra Content Management System (which uses as foundation the Zebra PHP Component Framework) has a very small footprint – the whole package (including documentation) it’s around 7MB. To run it requires an Apache server, PHP 4.3+ and MySQL 4.1+

Watch the quick presentation movie to get an idea of what I am talking about. An online demo will follow soon. Also, maybe you can share some of your thoughts with me…

If you’re interested in having your website done with the Zebra Content Management System please let me know by writing an email to noname at nivelzero dot ro.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.