i personally think that there is a necessary to make the php language into a language like C or C++ which can be compiled and link to build application...
by then, we can do windows programming in a PHP way...
what do you people think...
i personally think that there is a necessary to make the php language into a language like C or C++ which can be compiled and link to build application...
by then, we can do windows programming in a PHP way...
what do you people think...
Well.. um then it would be called C wouldnt it? Its already closley related.. in fact essentially its a script version of C - it doesn't need to be compiled. Which is the whole point of it is it not? A Robust powerful, C like language (easy to learn by the masses out there) that does things on-the-fly.
To do something like that would almost be redundant.
Actually if im not mistaken.. PHP is actually based on C Language. There is no need to get it back to C again.
Just like Myrkul said its very similar to C.
I think what jimson is wanting is a PHP -> native machine code compiler; which would be a nice thing to have around.
Saw such a beast for a while for Intel processors - dunno what became of it but I do recall that the smallest programs produced MB-sized executables. I think every app produced was carrying a copy of the interpreter around with it. Plenty of scope for improvement there.
The compiler for an on the fly scripting language was already tried. The Perl compiler failed miserably, so the PHP compiler most likely won't happen. If you need to compile you are better off just using C/C++. BTW, WeedPacket I like the new beanie.
and with PHP 5 becoming a true OO language....it really is not that for off.
I have only played with the PHP-GTK implementation....But being able to run PHP code outside of a browser is very interesting.....From my understanding, PHP-GTK can also be compiled into an EXE file on windows machines?
If anyone's has tried this let me know...
what is an OO language?
"OO" is Object Oriented, or Objected Oriented Program (OOP).
class testClass {
function showTest() {
echo "Just calling function test...<br>";
}
}
#Now we call it...
#A NEW INSTANCE!
$instance = new testClass;
$instance->showTest();
#Will call to the funciton showTest();, this is just a basic EXAMPLE..
#There is a whole lot more to OOP in PHP then this... hehe
If you like object oriented coding use ASP.
Loads of people complain that ASP sucks because of this and said that PHP is sooo much better because it isnt (i don't, i still use ASP a lot), they will have their time of their live
I'm not saying that the lack of true OO makes PHP any less of a language......but the addition of true OO makes it easier for peoplle coming from C++ to learn PHP ---> more people using PHP.
I personally love PHP....I have used PHP to create some pretty serious programs. I have a full signature capture system which uses barcode scanners and topaz tablets running on a large corporate intranet all in php and Mysql.....The clients love it because they can be runniong any kind of Box with an internet browser to use it!
PHP being used just for the web is a large misnomer......There is nothing from stopping a person from using it for any other reasons.....I find it more user friendly and cross platform than java.....
FYI, Zeev Suraski commented on this today.
what makes it "true" OO ?
what is it now ? NoO? or 1/2O ? or just O?
PHP4 didn't implement OO the way it should be. PHP5 will more like a proper OO thing.
I generally do projects that I feel are challenging and most of them are generally quite big. Generally takes around 1 month to complete a project for 3 people (me and my two friends). Having a support for complete OO model makes the job of handling the (lots, it really it quite big) of code a lot easier.
I am not against procedural programming. I do use it when the programs/scripts are not big (now a rare thing for me, though)
I had been waiting for PHP5 for last 6-7 months. At that time the expected date was late March or early April, but nothing upthere until now
u see, the solution i wish to provide or have is
with the knowledge of
PHP
HTML
we can build an operating system.
recently, i am doing a project like web application.
the problem with the PHP is it can't use the operating sytem memory.
personally, i think i would be faster when the page served for the user is call from the system memory.
imagine a web application which is built using PHP and Apache and MySQL.. contained 20 php files.
each time a user strike on our web server, system will load the 20 files and ... show to the user our creativity...
i wish to have a solution that
like session id can be saved in the memory because i don't want to update the session in the database... and
the application can cache the output of the main page
in the memory unless i direct it to update the cache version...
.... i wish to built an operating system because i can't find any reasons for me to learn the C / C++, ASM, COM programming, WIndows programming in order to master..
i wanna do it my way...
any ideas from your people out there...
i am sick with the Linux... and Windows ...., can't people make things more easier.... ?? i really wonder...
i try finishing the ASM book, C and C++ book and end up more frustration... because i can' t see the logic there, maybe i think i can put up a better solution to that problem... ?
i am sceptical about the memory in the computer...
i am the type who want to know what thing located in particular address....
please, help me... or guide me...
this is my ultimate goal in this life...
sincerely,
Jimson Chang
help me or guide me
or any other way to have such solution...
COM or ....
Did you follow the discussion that resulted the last time you brought up the matter of a PHP Operating System in this forum?
Originally posted by jimson
personally, i think i would be faster when the page served for the user is call from the system memory.
imagine a web application which is built using PHP and Apache and MySQL.. contained 20 php files.
each time a user strike on our web server, system will load the 20 files and ... show to the user our creativity...
I don't know which OS you're running - you just say you're sick, but Linux will cache those 20 files.