View Full Version : PHP compilerand e book


system_eyes
hello , i wonder if anyone can give me a link to a good PHP e book
also , i am in need to PHP linux compiler
thanks

last time i was here there were some missunderstanding between me and uniball,
hay uniball, i hope u are not sad ;)

uniball
There is no such thing called php compiler
php is an interpreted language not a compiled language
Your distro should come with php. in Mandurpmi php
Debian apt-get install php
I know nothing about other distros.

I don't intend to learn php now so i can't tell you anything here ;-)

Nothing can make me sad since i see good ppl like you :)

mohamed
Compiler ??
You don't need a compiler.
PHP is used for scripting ( ie, no compilers, because php is interpreted)

joe_lite
if u mean by compiler ,a way to execute ur code, u have to know that languages r 3 types compiled(c,pascal),interpreted(php,perl),virtual machine based(java,c#)

ok for the last interpreter release check
www.php.net

m0h
Originally posted by uniball
I don't intend to learn php now so i can't tell you anything here ;-)

Does this mean that you are going to learn it? ;)

uniball
Originally posted by m0h

Does this mean that you are going to learn it? ;)
Yes sure, When i land on the moon first :D

alaa
Originally posted by joe_lite
if u mean by compiler ,a way to execute ur code, u have to know that languages r 3 types compiled(c,pascal),interpreted(php,perl),virtual machine based(java,c#)

ok for the last interpreter release check
www.php.net

so what is the difference between a virtual machine and an interpreter??
IMO there is no difference at all except maybe that so called virtual machine based languages only interpret bytecode.

BTW Python, Lisp (and maybe Perl I'm not sure) can be compiled to bytecode.
in fact Python can even be compiled to Java bytecode, this way you can run python scripts in a Java Virtual machine (http://www.jython.org)

cheers,
Alaa

joe_lite
ok alaa,i mean half interpreted and half compiled,as we run firsta compiler to translate the source to a bytecode and that bytecode interpreted by the VM ,but note that that VM can interpret the byte code that may come from different source languages(like the .NET runtime can interpret c#,vb.net,....) but interpreted languages usually are specific to one languages so the term VM based languages used to diffrenciate between it and interpreters
joe

HelpeR
aslamo alikom system eye.
if you want to compile your code to check it work like you want or no , so you need to setup a server on your computer first like Apache server and it is comming with php suuport, so you can write the code and run the server ro check it,

if you want php e-book , i have more but i don't know how you can get them from me , anyway i'm at cairo, mohandseen

salam

OneOfOne
Originally posted by HelpeR
aslamo alikom system eye.
if you want to compile your code to check it work like you want or no , so you need to setup a server on your computer first like Apache server and it is comming with php suuport, so you can write the code and run the server ro check it,

if you want php e-book , i have more but i don't know how you can get them from me , anyway i'm at cairo, mohandseen

salam
you dont need apache to run to php scripts (of course as long as they don't depend on server arrays).
i made alot of php scripts and i use them w/o apache without any problems...my firewall controler is a php script...

and btw the docs at http://www.php.net/download-docs.php are very good and they are pretty much all you need to learn :)
peace

HelpeR
OneofOne , you are 30% alright :) , yes , you can test php scripts with any way , but if this script include DB, what you'll do , and what is php made for? it made to help in access DB , so you'll need sql , php , ....,, so i prefere he must has a server to test it completly

take care , :)
salam ( = peace )

OneOfOne
Originally posted by HelpeR
OneofOne , you are 30% alright :) , yes , you can test php scripts with any way , but if this script include DB, what you'll do , and what is php made for? it made to help in access DB , so you'll need sql , php , ....,, so i prefere he must has a server to test it completly

take care , :)
salam ( = peace )
i havn't tried yet (although i'm planing to make my firewall script save settings to mysql db), but i'm pretty sure you can use mysql without apache.
i remember something like --enable-mysql while compiling php. (since i compiled it twice, once as a mod for apache2 and once as a cli binary).

peace

HelpeR
it is good , but i didn't use it , but anyway when you use a server like apache you'll interest with it, and it look like complete, i mean the full pakage of apache which contain( MySql, perl,php,apache server,...)
and it ( apache server ) is easy to setup and it don't need a skill from you to do.
that is all :)
salam.

m0h
you can do so but why?!
if you are not using php for a web application its better to use some thing else like c for example.

OneOfOne
we're getting way off topic :-p
but of course i do like apache (i prefer apache2).
OneOfOne [~] -> emerge apache mysql perl mod_perl mod_php -p

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild R ] net-www/apache-2.0.47 +berkdb +gdbm -ldap
[ebuild R ] dev-db/mysql-4.0.14-r1 -static +readline -innodb +berkdb +tcpd +ssl +perl -debug
[ebuild R ] dev-perl/mod_perl-1.99.09
[ebuild R ] dev-php/mod_php-4.3.2-r5 +apache2 +X +crypt -curl -firebird -flash -freetds -gd -gd-external +gdbm -imap -informix -ipv6 -java +jpeg -ldap -mcal -memlimit +mysql -nls -oci8 -odbc +pam +pdflib +png -postgres +qt -snmp +spell +ssl +tiff +truetype +xml2
[ebuild R ] dev-lang/perl-5.8.0-r12 +berkdb -doc +gdbm +threads
and i personally prefer php over shell scripts, shell_exec() owns ;)
peace

OneOfOne
Originally posted by m0h
you can do so but why?!
if you are not using php for a web application its better to use some thing else like c for example.
int Main(){
return E_BAD_PROGRAMMER;
}
php is easier imo to deal with mysql (since i use it in doing web applications).

/me starts compiling gcc-3.3.1, starts mldonkey to finish getting X2/TMR rips (xvid/ac3 this is living!!!) and runs to bed :D
edit:fixed 2 typos
peace

Moaz
You can download this book :

"SAMS Teach Yourself PHP4 in 24 Hours"

from

http://groups.yahoo.com/group/egyptbooks/files/Computer/