Newbie PHP questions…

I’ve decided to take the advice a few of you have graciously suggested and am attempting to learn PHP/MySQL.

I’ve set up MAMP, purchased a couple of books, and am ready to get started. I’ve fumbled around with a few FW Actions, but can’t figure out which one(s) to use to simply put some PHP code into a FW page.

I’d like to follow some of the tutorials (sans all the HTML). Which are the best Action candidates and are there any FW tutorials for them?


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I would start off looking at PHP first. And don’t put anything in Freeway, just use plain text files; myfile.php files placed in the MAMP htdocs folder. Viewing the files at http://localhost:8888/ in a browser

Then follow a few PHP examples/tutorials to to get a “feel” of how PHP functions.

Doing this will give you a better view of how PHP, and where to put into a Freeway document. Like using a simple HTML markup to place some php (or other places around the Freeway interface)

Then look at the various actions to simplify the above as needed.

On 10 Dec 2008, at 17:52, James Brouwer wrote:

I’ve set up MAMP, purchased a couple of books, and am ready to get started. I’ve fumbled around with a few FW Actions, but can’t figure out which one(s) to use to simply put some PHP code into a FW page.

David Owen
Freeway Friendly Web hosting and Domains ::

http://www.ineedwebhosting.co.uk

http://www.ineedwebhosting.co.uk/blog

I agree, learn some php first using BBEdit or similar to create the files and forget about learning how to do this * and * using it in Freeway at the same time. If one of the books you bought was: PHP and MySQL Web Development, ISBN 0-672-32525-X then there will be some php bits and pieces at the start (At least there was in the edition I bought some years ago), it shows some basic coding in php and some basic flat file database stuff which is definitely worth doing as it will all help… and you might actually find a lot of it fun. When you have learned how to write some php and manipulate a database with php scripts then it might help to look here: http://easibase.com/freeway/phpmysql.php These are a few examples of using some simple php with Freeway and one of the ways you can use them together, there is even a MySQL dump file, a Freeway dynamic site and all the scripts needed to make the wheels turn.

You will find it will be very frustrating at times and you may have no hair left in a month or two!.. but it will be worth it.

Good luck

On Dec 10, 2008, at 7:22 PM, David Owen wrote:

I would start off looking at PHP first. And don’t put anything in Freeway, just use plain text files; myfile.php files placed in the MAMP htdocs folder. Viewing the files at http://localhost:8888/ in a browser

Then follow a few PHP examples/tutorials to to get a “feel” of how PHP functions.

Doing this will give you a better view of how PHP, and where to put into a Freeway document. Like using a simple HTML markup to place some php (or other places around the Freeway interface)

Then look at the various actions to simplify the above as needed.

On 10 Dec 2008, at 17:52, James Brouwer wrote:

I’ve set up MAMP, purchased a couple of books, and am ready to get started. I’ve fumbled around with a few FW Actions, but can’t figure out which one(s) to use to simply put some PHP code into a FW page.

Sometime around 10/12/08 (at 20:50 +0100) Mike B said:

I agree, learn some php first using BBEdit or similar to create the
files and forget about learning how to do this * and * using it in
Freeway at the same time.

I second (or third) this.

Also, see whether the info at http://www.thehelpful.com/php/ is of any use.

k


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

David & Mike,

Thanks for the advice. While I was hoping to find a “simple” Freeway-esq tool to avoid getting my hands dirty, it appears that nothing as exquisite as Freeway exists for PHP.

I’ve purchased a couple of books and am sampling some text editors. To my surprise, its not as horrific as I had imagined. You are correct in suggesting I learn the fundamentals first. I only wish there were some “whole-to-part” teaching resources rather than the “part-to-whole” aids I’ve found.

Mike, as for the hair, I already started out with precious little. So I’ll be moving forward cautiously.

Again, my thanks for your advice (and support).

James


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

None of this is easy (at least I didn’t think it was when I started anyway!) but there are a few people here who will be more than willing to pipe up and help if you become unstuck.

Then at least in your case, you won’t have your friends wondering where it all went suddenly! :slight_smile:

Good luck


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Fixed this thread to get all the messages together.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options