473,753 Members | 8,053 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is the learning curve for PHP?

Hello,

A friend and I want to learn PHP but we have two totally different
programming backgrounds.
I have experience with procedural programming in C, and he has
experience with Visual BASIC.
Well we wanted to know, what type of learning curve ( of difficulty )
we would have trying to learn PHP?
Also, What will be the most significant changes for us to adapt to? I
wanted to know if PHP is like
bash shell scripting for Linux?

Thanks
KJW

Mar 30 '07
26 9315
K.J.Williams wrote:
I hope PHP does not have a GOTO - no programmer ( except for those in
assembly ) should ever use a goto statement.
This depends on the language. Occasionally when writing C I've found
that the most readable way of structuring the code is a goto.

--
"Checking identity papers is a complete waste of time. If anyone can
be counted on to have valid papers, it will be the terrorists".
Apr 2 '07 #11
So today I went to my bookstore to pick up some stuff on
improving my programming skills for PHP.

1. I know HTML but I dont practice CSS in my own code
so I bought Cascading Style Sheets - The Definitive Guide
2nd Ed by Eric A. Meyer, published by O'reilly, to refresh my
memory on this (this book covers CSS2 & CSS2.1). I have tried CSS
on myspace.com and their server was terrible when I was trying
to customize my page layout. I have no idea what their using
but its terrible. The font colors wouldnt not work right.

Aside from that I think CSS is great but I need to practice it
more
so that it is useful with PHP web page generation.

2. I have JavaScript - The Definitive Guide 3rd Ed. by David Flanagan
published by O'reilly. I have had this book for a while so I am
taking the advice of learning to use HTML wtih Javascripting.
There is one problem with Javascripting ( and HTML ) the features
of
of the langauge is not totally universal with IE or Mozilla/Firefox/
Netscape
so in every Java Script, there has to be a conditional statement
which
catches the web browsers type and use the best most procedures -
this might
make my work with PHP not very easy for web page generation.

3. I bought PHP in a nutshell - A destop quick reference by Orielly -
this is
just another book that I got becuase I also have Perl in a
nutshell.

One crazy question is PHP derived from Perl , like C++ is derived
from C?

4. I got another book PHP - to actually learn it... its called :
Beginning PHP5 published by Dave W. Mercer ( and five other people
listed ) published by Wrox in 2004 - this is the latest newest book
that I saw.
I know that PHP6 is about, but this is as close as I could get for
a book
on the matter

I hope I made good choices since I was completely lost by the number
of books
on PHP that I could buy so I went with my best thoughts as I reviewed
them and
thats what I choose.

I read one book on PHP book where the author in the introduction
mentions on
one line :

Did I mention that PHP is open source ?

... twice through the intro.

Well any thoughts?

Thanks again
Apr 3 '07 #12
On 2007-04-03 06-22-12, K.J.Williams wrote:
1. [...] I have tried CSS on myspace.com and their server was terrible
when I was trying to customize my page layout. I have no idea what their
using but its terrible. The font colors wouldnt not work right.
If it can serve files, it's sufficient for CSS. Did you consider your HTML
or CSS might simply be wrong?

2. [...] There is one problem with Javascripting ( and HTML ) the
features of of the langauge is not totally universal with IE or
Mozilla/Firefox/ Netscape so in every Java Script, there has to be a
conditional statement which catches the web browsers type and use the
best most procedures - this might make my work with PHP not very easy
for web page generation.
Nope. JavaScript is what Netscape does. MSIE does not implement the whole
bunch of JavaScript functionality, but adds its own features. The result is
called JScript.

3. [...] One crazy question is PHP derived from Perl , like C++ is derived
from C?
In it's early days, PHP was just a bunch of Perl scripts. But that's
ancient PHP history.
Similarly, C++ isn't really a derive of C, even if it was years ago.
Nowadays, C++ bases on C features as well as C bases on C++ features.
Feature distribution works in both ways here.

4. I got another book PHP ...
If you want book, I can suggest the novels of Douglas Preston & Lincold
Child, Sidney Sheldon, Wolfgang Hohlbein (don't know the English
translations of him, though) and others.
If you want to learn PHP, however, your #1 resource is <http://php.netand
it's awesome manual.
Apr 3 '07 #13
On Apr 2, 11:27 pm, Simon Stienen <n...@news.slas hlife.orgwrote:
On 2007-04-03 06-22-12, K.J.Williams wrote:
1. [...] I have tried CSS on myspace.com and their server was terrible
when I was trying to customize my page layout. I have no idea what their
using but its terrible. The font colors wouldnt not work right.

If it can serve files, it's sufficient for CSS. Did you consider your HTML
or CSS might simply be wrong?
I was using the syntax reciepe given by the people who have doctored
their myspace page
using CSS. I very well versed in HTML, but practice of CSS is new to
me.
>
2. [...] There is one problem with Javascripting ( and HTML ) the
features of of the langauge is not totally universal with IE or
Mozilla/Firefox/ Netscape so in every Java Script, there has to be a
conditional statement which catches the web browsers type and use the
best most procedures - this might make my work with PHP not very easy
for web page generation.

Nope. JavaScript is what Netscape does. MSIE does not implement the whole
bunch of JavaScript functionality, but adds its own features. The result is
called JScript.
So I would have to learn JScript and Javascript to do the equivalent
in my web pages?
for either MSIE or the Netscape variants?
>
3. [...] One crazy question is PHP derived from Perl , like C++ is derived
from C?

In it's early days, PHP was just a bunch of Perl scripts. But that's
ancient PHP history.
Similarly, C++ isn't really a derive of C, even if it was years ago.
Nowadays, C++ bases on C features as well as C bases on C++ features.
Feature distribution works in both ways here.
Well my understanding is that C++ is a addon to C, which adds OO
features, direct stream access,
a beter way of declaring and freeing memory (not that I dont mind
malloc() and free()),
you have a modified version of a struct that now allows its own
functions called class,
and then you have other little special operators such as scope
resolution to deal with that.
If you were to do only procedural work in C++ you do the same work in
C, just change your
classes to structs and strip out your class functions and make them as
stand alone
functions in the script. The only advantage I see in C++ is when I got
into dynamically
allocating memory in the form of a linear linked lists use nodes - it
can be done in C ,
but its alot harder with the syntax involved.

As hearsay, I have heard arguments about PHP is great for procedural
programming , terrible for
OO programming from Perl programmers. So the argument that they make,
in case, to me
at my college, 1. Perl a better shell script/cgi langauge than PHP in
Linux (all
Unix flavors) for that matter, 2. PHP is not designed for shell
scripting like Perl is.
PHP is strictly derived from PERL only for web-server - MySQL database
uses.

One question to ask ...

What do you think of PHP+GTK2 ?



Apr 3 '07 #14
On Apr 2, 8:22 pm, "K.J.Willia ms" <lordw...@quik. comwrote:
So today I went to my bookstore to pick up some stuff on
improving my programming skills for PHP.

1. I know HTML but I dont practice CSS in my own code
so I bought Cascading Style Sheets - The Definitive Guide
2nd Ed by Eric A. Meyer, published by O'reilly, to refresh my
memory on this (this book covers CSS2 & CSS2.1). I have tried CSS
on myspace.com and their server was terrible when I was trying
to customize my page layout. I have no idea what their using
but its terrible. The font colors wouldnt not work right.

Aside from that I think CSS is great but I need to practice it
more
so that it is useful with PHP web page generation.

2. I have JavaScript - The Definitive Guide 3rd Ed. by David Flanagan
published by O'reilly. I have had this book for a while so I am
taking the advice of learning to use HTML wtih Javascripting.
There is one problem with Javascripting ( and HTML ) the features
of
of the langauge is not totally universal with IE or Mozilla/Firefox/
Netscape
so in every Java Script, there has to be a conditional statement
which
catches the web browsers type and use the best most procedures -
this might
make my work with PHP not very easy for web page generation.

3. I bought PHP in a nutshell - A destop quick reference by Orielly -
this is
just another book that I got becuase I also have Perl in a
nutshell.

One crazy question is PHP derived from Perl , like C++ is derived
from C?

4. I got another book PHP - to actually learn it... its called :
Beginning PHP5 published by Dave W. Mercer ( and five other people
listed ) published by Wrox in 2004 - this is the latest newest book
that I saw.
I know that PHP6 is about, but this is as close as I could get for
a book
on the matter

I hope I made good choices since I was completely lost by the number
of books
on PHP that I could buy so I went with my best thoughts as I reviewed
them and
thats what I choose.

I read one book on PHP book where the author in the introduction
mentions on
one line :

Did I mention that PHP is open source ?

.. twice through the intro.

Well any thoughts?

Thanks again
Oreilly's books on PHP are good, also too is Sitepoint's Kevin Yank
PHP and Mysql

Apr 3 '07 #15
In article <11************ **********@q75g 2000hsh.googleg roups.com>,
K.J.Williams <lo******@quik. comwrote:
so in every Java Script, there has to be a conditional statement
which catches the web browsers type and use the best most
procedures - this might make my work with PHP not very easy for
web page generation.
Why not? PHP has an environment variable to tell you the client's user
agent string. You can then output whatever you want based on that.
One crazy question is PHP derived from Perl , like C++ is derived
from C?
PHP uses C++ syntax, but also makes use of some perl features such
as regular expression matching -- if you want them. To me, PHP
feels more like C++ without the strong variable typing constraints.
>I hope I made good choices since I was completely lost by the
number of books on PHP that I could buy so I went with my best
thoughts as I reviewed them and thats what I choose.
Personally I think you're buying too many books. The only thing I
ever needed for PHP was the online documentation at www.php.net.
The books are available for others to make money from you. Nothing
wrong with that, but if you already have a few programming languages
under your belt, you don't need yet another book for PHP, in my
opinion.

-A
Apr 3 '07 #16
2. I have JavaScript - The Definitive Guide 3rd Ed. by David Flanagan
published by O'reilly. I have had this book for a while so I am
taking the advice of learning to use HTML wtih Javascripting.
Here's something else to keep in mind...

Javascript and PHP have *very* similar syntax. Close enough to drive
you crazy when you find the differences.

To help my head, I code my JS like I code my PHP.

Yep! $ signs for all vars and the whole lot!

Yep! Makes the JS code look like PHP at first glance, but it also
helps my poor feeble brain when I read it.

But beware of the concantination symbol! PERIOD for PHP, PLUS for JS

OK, the array and classes are galaxies apart, but except that... (yes,
the list goes on) ;)

walter

Apr 4 '07 #17
I was going by the advice that I got on alt.comp.lang.l earn.c-c++
group
that its best to have many reference books for knowing how to use a
langauge, I have at least 4 for books on C++ , 1 on C, 1 on C and C+
+...
and many of the authors hit and miss certain subjects.

I needed the CSS book becuase I dont know how to use CSS in HTML ,
I know HTML but not the integration CSS which is now a standard among
many businesses, along with that comes Javascripting - which I have
never
touched becuase of the frustration of non-standard HTML browsers such
as
MSIE, as for PHP , php in a nutshell was choosen as reference, and
the
other book published by wrox is to teach me.
And to go off on a tangent, as for a few programming langauges
I traded Commodore BASIC for C on my IBM - it took three years for me
to dewarp my mind from bad programming habits to develop good
programming habits
in C. HTML is a pseudo-programming langauge , ditto for Javascript.
The most
horrible langauges I have run into are COBOL, Pascal, Modula-2,
Fortran,
BASIC, and if not Visual BASIC in early versions. If and when Sunsoft
develops
a compiler that produce a independent machine code program from JAVA
code, I might
reconsider that langauge - that langauge is junk. Theres a whole
litany of religious
wars between JAVA and C++ programmers. But the most useful of all the
programming
langauges is assembly, the only langauge that has 3rd advantage over
all langauges.
Assembly langauge runs the fastest, has a 1 to 1 ratio of mnemonic to
machine code
translation ( yes that makes it a pain to program if you wanted to do
something big ),
but most of all you can revert any machine langauge back into assembly
langauge
and reverse engineer it to do something that it wasnt intended to do.
Now that means
you have to be a master of the machine your on. On newer machines that
have big
processors today, thats an undertaking task, but say long ago on a
Commodore 64 ,yes
it was - software piracy was rampant on that machine. And that
basically proves that
there can be no such thing as copyright protection scheme or anything
to prevent
software duplication. All software on CDs have to abide by a red book
standard?..
and that standard is available to anyone who builds hardware - or
software, or software
that copys that medium. And thats true for any standard among the
industry involved with
incoding of information mediums. The photocopier must have been the
biggest threat to
to the book industry, with the scanner following ( same technology ).

But to cut to the chase...

I want to use PHP to build a better nteractive web site with my web
clients.
Thats what I want

On Apr 3, 3:10 pm, a...@spamcop.ne t (axlq) wrote:
>
Personally I think you're buying too many books. The only thing I
ever needed for PHP was the online documentation atwww.php.net.
The books are available for others to make money from you. Nothing
wrong with that, but if you already have a few programming languages
under your belt, you don't need yet another book for PHP, in my
opinion.

-A

Apr 4 '07 #18
I think my friend is going to have more trouble with PHP than I am and
were
both going to have the same trouble of switching from the mentality of
developing
command line interface programs ( me for Linux ), and gui programs
( him for
windows ) to web based programs where there is no control over what
happens
on how it looks on the clients web browser. You just pray that it
looks
good. That will be a new concept, to learn.

On Apr 3, 10:18 pm, "otrWal...@gmai l.com" <otrWal...@gmai l.comwrote:
2. I have JavaScript - The Definitive Guide 3rd Ed. by David Flanagan
published by O'reilly. I have had this book for a while so I am
taking the advice of learning to use HTML wtih Javascripting.

Here's something else to keep in mind...

Javascript and PHP have *very* similar syntax. Close enough to drive
you crazy when you find the differences.

To help my head, I code my JS like I code my PHP.

Yep! $ signs for all vars and the whole lot!

Yep! Makes the JS code look like PHP at first glance, but it also
helps my poor feeble brain when I read it.

But beware of the concantination symbol! PERIOD for PHP, PLUS for JS

OK, the array and classes are galaxies apart, but except that... (yes,
the list goes on) ;)

walter

Apr 4 '07 #19
ot*******@gmail .com wrote:
To help my head, I code my JS like I code my PHP.
Yep! $ signs for all vars and the whole lot!
Does Javascript allow $ signs in variables? Hmmm... interesting.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!
Apr 4 '07 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

32
2154
by: Marco | last post by:
Ive been using front page but it starts to anoy me when i need to change in the source things that i cant change while in the "normal" mode, specialy when working with tables its soo hard to tell him what we realy want with out going to source and change it there. heh heh probably some while say use the mighty notepad ;) , its not good for i use it only when its to change a few things and not to start pages from scratch.
23
2815
by: darwinist | last post by:
What PHP Represents There is no shortage of complaints one could make about php as a language, and although the list does shrink with each release, some of them are inherent to the origins and development process of this, the most popular of the web-based, server-side, glue-languages. That said, most descriptions of what is good about php, fail to do it justice. Although they are generally enthusiastic and sometimes fanatical, no...
28
4831
by: Admin | last post by:
I am doing some research for a Python framework to build web applications. I have discarted Zope because from what I've read, the learning curve is too steep, and it takes more time to build applications in general with Zope. I have kept the following: - PyWork - http://pywork.sourceforge.net (Not sure if it's mature) - Django - http://www.djangoproject.com (Looks interesting) - CherryPy - http://www.cherrypy.org (Unsure)
8
4051
by: Hermawih | last post by:
Hello , I want your opinion about this . In order to say it clearly , I think I have to describe it in long sentences . I could consider myself as Intermediate/Advance Access Developer ; Intermediate/Advanced Database designer . Because of the requirements , I must create Web Application . Access Pages is not suitable for that so I think about learning VB Net / ASP Net . I am
8
2784
by: scorpion53061 | last post by:
Hi, I am a vb.net guy......(I know boo hiss LOL) I was thinking of learning C# as well. Can I expect a hard road of it as far as a learning curve? As as side note, what made you choose C# over vb.net?
8
3170
by: Midnight Java Junkie | last post by:
Dear Colleagues: I feel that the dumbest questions are those that are never asked. I have been given the opportunity to get into .NET. Our organization has a subscription with Microsoft that basically entitled to us to just about every .Net development tool you can imagine. I cant even begin to mention them. To begin with, my background is not that of a programmer, but a systems engineer and the closest I have come to "programming"...
7
1017
by: dgk | last post by:
I'm trying to persuade my company to use ASP.NET for a development effort but I'm pretty weak in both ASP.NET and web development. I've explained that ASP.NET works by turning the controls on the page into html and java script so we don't have to write html and javascript ourselves but clearly we need to write some js anyway since I have to do that just to set the focus to the first control on the webpage. As an example, how can I do...
8
2862
by: Chris Asaipillai | last post by:
Hi there I have some questions for those experienced Visual Basic 6 programmers out there who have made the transition from VB6 to Vb.net. How long did it take you to learn at least the basic elements of VB.net....so that you were confident to write a application from scratch. This wouldnt necessarily
11
2492
by: Paul Brady | last post by:
Apparently, I have been living on the wrong planet. I have written 15 databases in Microsoft Access in the past 10 years, some of which are split, one uses ODBC interface with a SQL server, one has a many-to-many relationship, and all of which have Basic code to handle events and run functions which I have coded, and all this time have never heard of .Net -- until today. So, I looked it up on Google, asking for Access and .Net and got...
0
9072
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9653
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9451
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9421
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9333
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6151
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4771
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4942
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2284
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.