Hi,
For my final year project I intend to create an online database for retail stock management. I want to manipulate this database using Artificially Intelligent functions to demonstrate it within a speeded up time frame e.g. a year in 5 minutes. Can I use PHP to implement the entire program or can I combine with c / ++. If so, I'll be learning PHP from scratch but has to be done if its the best way to go.
Thanks in advance,
gcaheron
Is PHP good for my project?
Moderator: General Moderators
-
Stoneguard
- Forum Contributor
- Posts: 101
- Joined: Wed Aug 13, 2003 9:02 pm
- Location: USA
I am fairly new to PHP. I have extensive work with Object Oriented Design and Programming (including C++ and Smalltalk). I will say that PHP makes an excellent and very robust scripting language. Nevertheless, it is still script and still interpreted, which poses some limitations in speed and size. Depending on how AI your system really is and how OO it is, HP may be sufficient, but I would guess you will need some limited interfacing to C++ or some other language if your engine is very involved.
I am currently doing my first client project in PHP and have found no problems, however, there is no AI involved in it (well, ok, some very simplistic levels, just touching the surface). In fact, I have been very happy with the ease at which some things can be done and how much is already built into the base interpreter.
However, if you already know C++ and must do this in a web-based environment, I might suggest looking at C#. PHP really is a simple language if you already know C++, but C# is a much more object based language and does have some advantages (and limitations) in that respect, including some semi-compiled abilities. But C# is way too expensive in my opinion, but if you are in classes, I do not know if you can get a free copy or not.
Again, I am not saying you can't do it in PHP, and I personally would try it just to see if it could be done. It all depends on the resources available to you. PHP has a great host of functionality available to it, and so far I have been more happy working with it than I have in years.
I am currently doing my first client project in PHP and have found no problems, however, there is no AI involved in it (well, ok, some very simplistic levels, just touching the surface). In fact, I have been very happy with the ease at which some things can be done and how much is already built into the base interpreter.
However, if you already know C++ and must do this in a web-based environment, I might suggest looking at C#. PHP really is a simple language if you already know C++, but C# is a much more object based language and does have some advantages (and limitations) in that respect, including some semi-compiled abilities. But C# is way too expensive in my opinion, but if you are in classes, I do not know if you can get a free copy or not.
Again, I am not saying you can't do it in PHP, and I personally would try it just to see if it could be done. It all depends on the resources available to you. PHP has a great host of functionality available to it, and so far I have been more happy working with it than I have in years.
computation
Customers and deliveries have to simulated as well as the general running of a warehouse and shop floor. I am also including the location of the product within the warehouse and the shop floor as a variable via coordinates. the speeded up time frame will demonstrate how all the functions come into play within a year.Is there a relatively large chunk of computation? And is the speed of output a consideration of your decision if this is the case?
thanks for the suggestion, I will definitely be considering C# as an option too for implementation. All this decision-making gives me more to write about on my project.I might suggest looking at C#.