Learning PHP

Time to learn PHP and I'm looking for recommendations on the
best book for a beginner. I will also be reactivating my Lynda.com
account, but I'd really like a good book or two.

I'm not. But I also recommend them.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Gary White" <[email protected]> wrote in message
news:[email protected]..
> On Fri, 06 Mar 2009 19:13:10 +0000, David Powers
<[email protected]>
> wrote:
>
>>I'm not exactly unbiased, but you might want to take
a look at the books
>>on my website (follow my sig). The Dreamweaver titles
teach PHP in a
>>Dreamweaver context. "PHP Solutions" teaches hand
coding through
>>practical examples.
>
> Well, I happen to be pretty unbiased and I suggest
David's books without
> reservation.
>
> Gary

Similar Messages

  • I want to learn PHP...

    I want to learn PHP. This is my #1 goal for the year.
    But I can't find anyone who teaches it in upstate NY.
    Any suggestions for learning how to create a website from
    scratch with PHP would be greatly appreciated.
    Thanks!!

    Google David Powers. He can do it for you....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "CreepyCove" <[email protected]> wrote in
    message
    news:gqei8s$74j$[email protected]..
    >I want to learn PHP. This is my #1 goal for the year.
    >
    > But I can't find anyone who teaches it in upstate NY.
    >
    > Any suggestions for learning how to create a website
    from scratch with PHP
    > would be greatly appreciated.
    >
    > Thanks!!
    >

  • Learning PHP, should I wait for PHP 6 or begin right now with 5?

    Easy question, I guess. I want to learn PHP, but since PHP 6 is close, perhaps I could wait, but if it will be easy to switch from 5 to 6, perhaps I could begin right now with 5 and then learn 6, what do you think?

    Svenstaro wrote:
    LTSmash wrote:
    PHP will stay the same barely-afloat, patched-together language that it is now. No offense, but that's what PHP is.
    xD
    Well I liked PHP syntax somehow when I readed some code, and also that it can be used for web and desktop apps, but if you've got a better suggestion instead of flaming you could of course say that
    I actually didn't mean to flame, hence my "no offense" but people who are used to languages with more structure and design might be slightly bewildered. As I said, I use PHP myself for various projects, it's a love-hate thing really. Anyway, I found myself productive in replying here by stating that I would recommend PHP for whatever dynamic web page has to be made. It DOES get the job done easily, just it usually isn't pretty .
    Don't worry about that, I was at a conference held by Lukas Smith ( PHP's Release Manager ) yesterday, and he himself told everyone that PHP is a "patchy" language were there are no defined rules, no real guidelines or anything, but that's also why it's so powerful ( still some guy who came to discover what was PHP were kinda scared xD ). It also prove once more that the community can do awesome work and that open-source is a really good way to go

  • How to learn PHP well?

    who can advise me some advice about the way of learning PHP well ?
    for example:
    http://www.php.net/
    PHP programming book
    And you think which way is the best?

    Oreilly and Associates "Cookbook" series books are nice. The PHP Cookbook was my frist book on PHP. Zend tutorials are also good, and downloading code used in the Pear modules helps a lot too.
    http://php.net/
    http://pear.php.net/
    http://zend.com/zend/art/

  • Online resources for learning PHP/MySQL?

    I would really appreciate knowing which online resources people really have used and found valuable for learning PHP/MySQL.
    And I'm well aware that Google is my friend - I'm looking for personal recommendations.  :-)
    Thanks very much in advance,
    Patty Ayers | www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate Worksheet

    Well, I got some good websites
    www.w3schools.com
    www.phpeasystep.com
    www.phpfreaks.com
    And a lots! Google baby, google.. But as what David says, not all websites is up to date, you have to assure that. Other option, you may refer to PHP books. There's a lot too.

  • Please help! How can I validate Radio Buttons and List Menu with PHP.

    Hello everyone, I have been learning PHP step by step and
    making little projects.
    The point is I find it easy to learn by doing "practical
    projects."
    I have been reading the David Powers's Book on PHP Solutions
    and it's really great, however there is nothing mentioned regarding
    Validating Radio buttons. I know the book cannot cover every aspect
    of PHP and maybe someone in here can help.
    I have been learning how to process HTML forms with PHP.
    The problem is every book or tutorial I have read or
    encountered fall short on validation.
    I'm wondering how I can learn to validate Radio Buttons and
    Select List Menu.
    I have managed to create validation for all other fields but
    have no clue as to how I can get validation for Radio Buttons and
    List Menu.
    I would also like an error message echoed when the user does
    not click a button or make a selection and try to submit the form.
    I would appreciate any help.
    Patrick

    It's not that default value is "None." In fact it's not. It
    will only be
    "none" when the form is submitted.
    Also if your submit button is names 'send' then
    $_POST['send'] will only be
    set if the form was submitted.
    Make sure you didn't hit the refresh button on your browser
    which usually
    reposts the information. Also make sure you did not reach the
    form from
    another form with the same button names.
    Otherwise paste the snippet.
    Also you can check what fields are set in the post array by
    adding this to
    the top of (or anywhere on) your page:
    print_r($_POST);
    Cosmo
    "Webethics" <[email protected]> wrote in
    message
    news:[email protected]...
    >
    quote:
    Originally posted by:
    Newsgroup User
    > Off the top of my head this should be no different than
    your radio buttons
    > except that 'productSelection' will always fail the
    !isset check when the
    > form is submitted since the default value is "None", and
    therefore always
    > set. :-)
    >
    > So how about this..?
    > <?php
    > if (isset($_POST['send']) and
    ($_POST['productSelection'] == "None"))
    > {echo "Please select a product.";}
    > ?>
    >
    >
    >
    >
    > "Webethics" <[email protected]> wrote
    in message
    > news:[email protected]...
    > > Another question - how do i applied the code you
    just showed me to
    > > select
    > > menu
    > > or select list?
    > >
    > > This is the list:
    > >
    > > <div class="problemProduct">
    > > <label for="productSelection"><span
    class="product_label">Product
    > > Name.</span></label>
    > > <select name="productSelection" id="products"
    class="selection">
    > > <option value="None">-------------Select a
    product----------</option>
    > > <option value="Everex DVD Burner">Everex DVD
    Burner</option>
    > > <option value="Vidia DVD Burner">Vidia DVD
    Burner</option>
    > > <option value="Excerion Super Drive">Excerion
    Super Drive</option>
    > > <option value="Maxille Optical Multi
    Burner">Maxille Optical Multi
    > > Burner</option>
    > > <option value="Pavilion HD Drives">Pavilion
    HD Drives</option>
    > > </select>
    > > </div>
    > >
    > > I thought I could just change the name is the code
    from operatingSystem
    > > to
    > > productSelection.
    > >
    > > Something like this:
    > >
    > > From this:
    > >
    > > <?php
    > > if (isset($_POST[send]) and
    !isset($_POST['operatingSystem']))
    > > {echo "Please select an operating system.";}
    > > ?>
    > >
    > > To this:
    > >
    > > <?php
    > > if (isset($_POST[send]) and
    !isset($_POST['productSelection']))
    > > {echo "Please select an operating system.";}
    > > ?>
    > >
    > > But this does not work, any ideas?
    > >
    > > Patrick
    > >
    >
    >
    >
    >
    > Hey, I tried this about but as you mentioned, since the
    default product
    > value
    > is "None" an error message appears when the page loads.
    >
    > Is there a way to code this things so that even though
    the default value
    > is
    > "None" there ia no error message untle you hit the
    submit?
    >
    > When I applied the code, it messes up the previous code,
    now the operating
    > system is requiring an entry on page load.
    >
    > When I remove the code from the list menu everything
    goes back to normal.
    >
    > I know this is a little much but I have no other
    alternatives.
    >
    > Patrick
    >

  • Dreamweaver CS5.5 Mobile Apps with PHP and MYSQL?

    Hello,
    I don't have Dreamweaver CS5.5 yet and I've been trying to search for information on this but I couldn't find any. I've been learning PHP and been developing with MYSQL with Dreamweaver CS5 but I wanted to know if I can use the same tags and everything if I would to build a Mobile App using the new Dreamweaver CS5.5 (http://tv.adobe.com/watch/cs-55-web-premium-feature-tour-/dreamweaver-cs-55-jquery-mobile- pages/). I overlooked at the video and it seems pretty easy building an app. So is PHP and MYSQL easily integratable? Are there any examples that I might be able to check out?
    Thanks!

    No. PHP is a server-side scripting language that requires a server (or server-like environment) to run.
    An iPhone (or Android) application does not allow for a "built-in" server (which is resource intensive and has scary security implications). You just can't build an application with PHP/MySQL for a mobile device. Instead you can build a web service that your HTML/JavaScript mobile application can then communicate with. This is the only supported way you can use PHP/MySQL in a mobile app. Again: the PHP/MySQL should reside on a server and your HTML/JS mobile app can then communicate with that web service. That's what instapaper and other applications do.
    Frankly, just make a web application that's mobile device friendly and you'll:
    1) Avoid all the messiness of the app stores
    2) Have greater control over what your web app can do (don't have to tow the Apple/Google line)
    3) Have a web app that can work across mulitple mobile devices as well as standard web browsers (i.e. more audience = more $).
    4) Future proof your application (pushing updates to your server and everyone using your web app is updated)
    Otherwise, read-up on Adobe AIR and what it supports and remember, the best apps are written natively for the platform (i.e. want to write an app for an iPhone? Learn Objective-C and use xCode on a Mac. Want to write an app for Motorola Xoom? Learn the Android SDK and use inteliJ).

  • .php files are not being opened within Mozilla FF

    Well, I'm learning PHP, and, although a file whose code is illustrated at www.w3schools.com, is being displayed within Adobe Dreamweaver, it does not seem possible to open the same file within the browsers installed on my pc, including Mozilla FF. It seems that this problem was noted by other people in the past however, I came across no solution.
    '''index.php'''
    ''<html>
    <body>
    <?php
    echo addcslashes("failure","|");
    ?>
    </body>
    </html>''
    PHP 5 is installed on my Win XP 5 laptop. Any ideas please?

    Sorry I think the problem is simply that Adobe Dreamweaver is the default .php file viewer.

  • Web Sharing Not Starting Up After installing PHP

    On Mac OS 10.4.9 on a G4 PPowerbook, using O'Reilly's "Learning PHP and MySQL," my Personal Web Sharing will not start up.
    I enabled Apache per their instructions and things seemed fine.. Then I i installed PHP with these commands, sudo vi/etc/httpd/httpd.conf , then %s/#LoadModule php/LoadModule php/. Then %x/#AddModule php/AddModule php/. Then <espcape>:wq. Then
    vi ~/Sites/test.php
    o
    <?php phpinfo() ?>
    <escape>:wq
    First of all, the test query from the book didn't work quite right, but now my Personal Web Sharing won't start up. It says "starting up." forever.
    Help. And if you can't tell, I have extremely limited knowledge of Unix and command lines, etc.
    What do I do? Assume I know nothing... : )

    The first thing to do is read the Apache error log which will give you more detail about what's gone wrong.
    <pre class=command>tail /var/log/httpd/error_log</pre>
    The other thing to do is run configtest which might also indicate errors in the configuration:
    <pre class=command>sudo apachectl configtest</pre>
    although it'll probably tell you the same thing as the error log.

  • Setting up php

    i am trying desperately to set up php and can't get there without some serious help on one issue. ive gotten php, phpmyadmin, mysql, and apache running. BUT i can't figure out how to get rid of the following warning that appears on the phpmyadmin home page:
    Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole.
    i dont know where the configuration file is, or within that file where the root & password need to be modified. please someone help me out. im almost up and running and this obstacle has frustratingly kept me from learning php for months.
    thanks in advance

    MySql is telling you that the 'root' user does not have a password assigned to it. The 'root' password is unassigned to access the program on install. You should definately change this asap.
    Go to your terminal app in utilities folder and launch it.
    1. Start the MySQL monitor by typing: mysql -uroot.
    You should now be connected to the monitor and it will give you a welcome message.
    2. The comand prompt should have chaned to 'mysql>'
    User rights for users are stored in a database called 'mysql' You need to change to it to change the 'root' account's access details.
    3. at the prompt type: use mysql.
    A message displays 'database changed'
    4 To give the root user a password type the following (and replace yourpwd with your own password). Be carefull here, the password is enclosed between two single quotes and a semicolon at the very end of the query. The semicolon tells MySQL that it is the end of the query.
    Type: UPDATE user SET password = PASSWORD('yourpwd') WHERE user = 'root';
    5. To remove anonymous access to MySQL is next.
    Be carefull here too, two single quotes next to each other (no spaces) at the end of the query and followed by a semicolon.
    Type: DELETE FROM user WHERE user = '';
    6. Now flush the privileges.
    Type: FLUSH PRIVILEGES;
    Test it now by closing the monitor.
    Type: exit
    Close the terminal window and open a new one.
    Now try to get into the monitor again by typing at the prompt: mysql -uroot
    It should not let you in this time.
    To gain acces in future type: mysql -uroot -p
    It should ask you for the password you set up as described above. Enter it and press return. You should be in!
    Your MySQL should now be more secure with an asigned password to the root account.
    Now go back to the web interface of installing MySQL and specify the user as 'root' and in the password field add your new password you gave the 'root' account as specified above. That warning should now be history.
    Remeber! Do not delete the database named 'mysql' because all the user accounts and access levels are stored there.
    Hope this helped you.
    Regards,
    Q.

  • [Exclusive] Create AS3 and MXML in your PHP pages - Q and A

    One of the most common PHP scripts is a form.  Before FTML, there has never been a method of truely integrating Flash with PHP.  Flash and PHP have always been seperate sandboxes when developing.  FTML now allows you to write PHP and FTML hand in hand on the same page.  This removes the requirement of additional files or web services for PHP to interact with Flash.
    PHP to Flash: http://reshapemedia.com/ftml/learn/php-to-ftml/
    FTML Getting Started Guide: http://reshapemedia.com/ftml/downloads/getting-started-guide/
    PHP Requirements
    None - simply code as you would normally and include the MXML components rather than HTML.
    Form Requirements
    All Form children must have the [name] property set
    Any UI For child with the [id] property set will be processed with the Form
    Forms should have [relativeChildSize] set to "true"
    Forms support a [method] of "get", "post", "send", "refresh"
    Inputs with a [type] of "text" or "password" support the [enter] key press
    Example PHP File
    Adobe will not let me post the example code so you can view the demo here: http://reshapemedia.com/examples/ftml-form.php
    - Select [View Source] from your menu to see the code.
    Message was edited by: ReshapeMedia

    It's a little hard to understand your question and its context. Can you please upload this page and give us a link so we can see what you are describing?

  • Slight roadblock in "DW 8 with ASP, ColdFusion, and PHP: Training from the Source"

    I'm working my way through Dreamweaver 8 with ASP,
    ColdFusion, and PHP:
    Training from the Source. I've come to the middle of Lesson 6
    and have hit
    my first obstacle in learning PHP. I'm following the
    instructions to format
    the output of the tour price calculator, but my issue is with
    where to place
    the following PHP code: <?php setlocale(LC_MONETARY,
    'en_US'); echo
    money_format('%i', $tourPrice); ?>
    I placed it before the DOCTYPE and when that didn't work, I
    tried inserting
    right before the code that retrieves the tour price (in the
    body of the
    page). That didn't work either.
    I also tried changing money_format to number_format and
    manually inserting
    the $, but when I tested everything, the output printed as
    follows:
    The estimated cost of your tour is
    $0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000500.
    I'm not quite sure where I've gone wrong.
    Thanks for any help,
    Heather

    Coach Bob wrote:
    > David,
    >
    > I would like to understand better your comment about the
    money_format. The
    > ability to use it is dependent on the host system's
    support of the C library
    > function strfmon(), correct? So if a user were
    developing on a windows box with
    > a local WAMP install it would not work while it may work
    on their *nix-based
    > Web host?
    Check the PHP documentation - it tells you all you need to
    know:
    http://www.php.net/manual/en/function.money-format.php
    > I will see to it that it gets corrected in the next
    version of the book!
    I've no idea what relationship you have with "Training from
    the Source",
    but I find it interesting - to say the least - that you need
    to the ask
    the author of a rival book.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • PHP/MySQL Test/Production Server best practices

    Hello,
         I am currently learning PHP/MySql and have setup a test server to develop on and a production server to go live with. I wanted to know what are the best practices for synchronizing the test server with the production. Should I export the database from the test server and import it to the production server each time I make a change or is there better way to incrementally sync the databases. I am using Dreamweaver to design the web site.
    Thanks,
    Nick

    Thanks, but does this mean that after I go live I should make changes on the production database only and not use the development database, if say I need to add a new table or record(s)?
    Procedure
    1. Take production web site down
    2. Export/Save current database
    3. Make changes to production database
    4. Export/Save new database
    5. Bring production web site up
    Is this correct?

  • Where to go next with Dreamweaver and server-side (php/mysql) applications?

    This question is mainly directed at David Powers but  I appreciate any input from anyone with the same concern or question.
    I've been using DW since the change from Macromedia and have developed a number of applications using built in server behaviors and sb extensions from ADDT, WebAssist, etc. I've learned to customize these behaviors to fit my needs always keeping within the "canned" code. In this way I've "learned" php.
    I own most of David's books and in fact, it was because of these that I have any idea about what I'm doing and went in this direction in my "developer" career (building php/mysql applications using Dreamweaver.)
    With the decision to remove server behaviors (and the other "developer" panels) from DW and with the deprecation of the mysql extension from the php landscape, I'm wondering where to go next? I fully understand this has to happen.
    I'm aware of some alternatives:
    Zend or some other framework - to me, this seems extremely complex
    Keep several versions of DW installed
    Stick to Joomla/WordPress/Drupal - let others who know what they're doing build the architecture
    Actually LEARN php - wish I had time; too much work to do (I know how illogical that sounds but it's a very real situation)
    I know I'm going to have to switch out all that deprecated code or better yet, rebuild the many applications which used the DW (and other) server behaviors. I'm just not sure which way to turn.

    rjjacob wrote:
    Since I wrote this post I concluded that there is no substitute for understanding and have started my re-education by delving further into the issue with updated PHP/MySQL books and tutorials so I can prepare for a Dreamweaver without this functionality.
    Yes, I too have concluded that is the way to go as well. There really is no substitute for learning as much as you can. Whilst the DW Server Behaviours were very convenient they have not kept pace, Adobe prefering to spent their time on less important updates in my opinion. The Server Behaviours are what makes Dreamweaver the tool of choice  for database integration for those who lack the knowledge. I feel the Adobe team will regret not coming up with an alternative. Anything that detracts from making the program what it is is a step in the wrong direction and for sure this is a big step in the wrong direction.
    rjjacob wrote:
    I have mainly used DW server behaviors in my development projects that's why I am curious about what others are doing to make the change. I'm surprised there haven't been more posts; perhaps I'm the last one to be taking action about this, or maybe no one is too worried about it yet.
    I think a lot have changed their working practice but many more are burying their heads in the sand. sql_ support is a way off from being completely dropped yet.
    rjjacob wrote:
    Anyway, your assessment of how terrible the server behaviors are is correct. I'm finding that true after barely breaking the binding on a few books about the greater subject and looking into mysqli and PDO.
    Yes, because I relied heavily on them I did not know how bad they were until I forced myself to look further afield. What you can do in a couple of lines of code the DW Server Behaviors produced quadruple or more to achieve the same.
    rjjacob wrote:
    But they sure were convenient!
    Yes, I agree. Maybe some extention developer will come up with a set of new improved behaviours. I tell you if they do they will make a shed load of money.

  • Php, mySQL, apache servers and all that malarkey...

    Hello
    I want to learn how to build databases and use dreamweaver to
    build sites to for e-commerce shops or portfolio archives etc...
    But at first glance im a bit overwhelmed. I am willing to put the
    time and effort in but just need a little point in the right
    direction.
    What should i be looking at first? Working out mySQL or
    learning .php? Ive seen a lot of talk about installing apache
    servers and installing php5 but i know absolutely ZERO about this.
    If you had to learn it all again where would you start?
    Ive got a G5 ,DW8 and a web host that supports mySQL. I have
    a bit of experience building websites and am just getting to grips
    with CSS. Do i need anything else?

    gareth:
    You may want to change this -
    Whether your new to web design,
    to this -
    Whether you're new to web design,
    and this -
    The PHP Login Suite has a comprehensive 82 manual
    to this -
    The PHP Login Suite has a comprehensive 82 page manual
    Meanwhile, I am examining the details of this product
    carefully! 8)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "gareth" <[email protected]> wrote in message
    news:e2o095$kco$[email protected]..
    >I would learn the basics of PHP first, then start looking
    at working with
    > databases once you`ve got to grips with the basics.
    >
    > If you want to learn to create E Commerce sites, then
    its going to give
    > you
    > a huge advantage if you learn to hand code rather than
    relying solely on
    > Dreamweavers server behaviors to do everything for you.
    >
    > Installing Apache and PHP is a good idea, as it allows
    you to test your
    > code
    > locally. I have some guides at:
    >
    >
    http://www.dreamweavermxsupport.com/index.php?type=article&pid=39
    >
    > Getting a bit old now, but still relevant :-)
    >
    > There are a huge number of tutorials on the web to help
    with learning PHP,
    > the home of PHP www.php.net is an essential bookmark.
    There are also a
    > large
    > number of good books out there that will help you.
    >
    > Gareth
    >
    http://www.phploginsuite.co.uk/
    > PHP Login Suite V2 - 34 Server Behaviors to build a
    complete Login system.
    >
    >

Maybe you are looking for

  • Adobe Acrobat Pro 9 and Windows Vista

    The last version of Adobe I used to use is version 5. Of course that is outdated, and it would appear that the files I created with that version are not compatible with the Adobe Reader 9. So I downloaded the trial version of Adobe Acrobat Pro 9 and

  • L3 topology diagram with a large number of networks

                       I am working on redesigning a network that is using a single class B network for there LAN workstations and servers. I proposed for them to separate the two and put all of their servers into one class C network and the workstation

  • 9iAS 1.0.2.1 on Solaris

    Hi, Did anyone try to test entity beans with upgraded version of 9iAS from 1.0.2.0 to 1.0.2.1 on Solaris? I tried, but still did not succeed. Oracle claims that this version supports entity beans. I tried Oracle examples (BMP and CMP entity beans) an

  • Adjust both handles on anchor point simultaneously locking their relationship

    when using pen tool, CTRL uses last used selection tool, (for me I set it to direct selection) ALT uses convert anchor point tool, another option that I`d like to see is when using ALT (convert anchor point tool) when adjusting dragging an anchor han

  • Cfmail mulitiple attachments?

    This isn't working... please advise. I need to attach mulitiple documents..... <cfmail to="#t.email#" subject="Purchase" from="[email protected]" password="hdfd" username="purchase.request" cc="" type="html" server="mail2.corp.org" mimeattach="d:\col