[Pro] Viewing php files

Afternoon all, I seem to be doing a little bit more now using WebYep and I’m finding that uploading each change to a server is a big pain, so is there any way I can view things locally?

I realise this will involve putting something somewhere on my Mac, but that’s as much as I know.

If anyone can give me any pointers (in VERY layman’s terms on the placements and the doings of the bits outside of Freeway) it would be very much appreciate.

As my upload and downloads aren’t the quickest in the world here, and even the tiniest of changes is taking me about 10 minutes to be able to view it after publishing, uploading etc.

thanks
Trev


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

Hi Trev,
My suggestion would be to keep your file extensions as .html and add an .htaccess file to your server to process html files as if they were php files. This way you’ll be able to preview the design changes locally as well as have the CMS elements run on the server once uploaded.
You can find a brief tutorial on this over on the Pulse site;
http://pulsecms.com/tips/parse.php

Alternatively you can download and set up MAMP (http://www.mamp.info/en/index.html) and have a server running locally on your Mac.
Regards,
Tim.

On 21 Feb 2012, at 16:15, Trevreav wrote:

Afternoon all, I seem to be doing a little bit more now using WebYep and I’m finding that uploading each change to a server is a big pain, so is there any way I can view things locally?


FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com
FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


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

Now that’s where you lost me - the first sentence. I’ve heard of an .htaccess file but not a clue what it does or how to do it!
I think I’ll also look into the MAMP option, I think this is more what I was after - there may be more questions!!

Thanks Tim
Trev
On 21 Feb 2012, at 17:35, Tim Plumb wrote:

Hi Trev,
My suggestion would be to keep your file extensions as .html and add an .htaccess file to your server to process html files as if they were php files. This way you’ll be able to preview the design changes locally as well as have the CMS elements run on the server once uploaded.
You can find a brief tutorial on this over on the Pulse site;
http://pulsecms.com/tips/parse.php

Alternatively you can download and set up MAMP (http://www.mamp.info/en/index.html) and have a server running locally on your Mac.
Regards,
Tim.

On 21 Feb 2012, at 16:15, Trevreav wrote:

Afternoon all, I seem to be doing a little bit more now using WebYep and I’m finding that uploading each change to a server is a big pain, so is there any way I can view things locally?


FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com
FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


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


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

Hi Trev,
An .htaccess file is simply a plain text file that lives on an Apache server and tells the server to do stuff. You can add all sorts of commands to the file to make the server redirect users or deny access to certain file types or folders. Here’s a simple guide to htaccess;
http://www.besthostratings.com/articles/htaccess.html
Regards,
Tim.

On 21 Feb 2012, at 17:49, Trevor Reaveley wrote:

Now that’s where you lost me - the first sentence. I’ve heard of an .htaccess file but not a clue what it does or how to do it!


FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com
FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


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

Thanks for that Tim, I’ll look into that also and see what seems to be the easiest and simplest for me.

Trev

On 21 Feb 2012, at 19:01, Tim Plumb wrote:

Hi Trev,
An .htaccess file is simply a plain text file that lives on an Apache server and tells the server to do stuff. You can add all sorts of commands to the file to make the server redirect users or deny access to certain file types or folders. Here’s a simple guide to htaccess;
http://www.besthostratings.com/articles/htaccess.html
Regards,
Tim.

On 21 Feb 2012, at 17:49, Trevor Reaveley wrote:

Now that’s where you lost me - the first sentence. I’ve heard of an .htaccess file but not a clue what it does or how to do it!


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

Righty ho, getting in a bit of a mess here.

I’ve downloaded Mamp and installed it in my applications folder. The ReadMe says to put your HTML and PHP files in the htdocs folder, done - along with resource files, site info, css files and the webyep system.

On trying to open a php page I still get it trying to open in GoLive, or if I drag it to Safari it still comes up as a page of gobbledegook.

I realise the problem is me - I just don’t know what it is!!

Trev

On 21 Feb 2012, at 17:35, Tim Plumb wrote:

Hi Trev,
My suggestion would be to keep your file extensions as .html and add an .htaccess file to your server to process html files as if they were php files. This way you’ll be able to preview the design changes locally as well as have the CMS elements run on the server once uploaded.
You can find a brief tutorial on this over on the Pulse site;
http://pulsecms.com/tips/parse.php

Alternatively you can download and set up MAMP (http://www.mamp.info/en/index.html) and have a server running locally on your Mac.
Regards,
Tim.

On 21 Feb 2012, at 16:15, Trevreav wrote:

Afternoon all, I seem to be doing a little bit more now using WebYep and I’m finding that uploading each change to a server is a big pain, so is there any way I can view things locally?


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

MAMP is a collection of server applications, designed to run in user-space rather than being installed hither and thither on your Mac’s Unix filesystem. When you start up MAMP, it should tell you what port Apache is working on (8888 by default), and then you will be running the browser and the server on the same machine. Instead of opening a file by double-clicking it, you will browse to it just as if it was uploaded to the public Web, by entering a URL that looks like http://localhost:8888/path/to/your/file.php

This (the abstract idea of running a server on your computer, not MAMP specifically) is the only way to preview a PHP page and really see what it will look like when it’s hosted on a real Web server.

You can do the same thing on your Mac without MAMP, by turning on Web Sharing in the Sharing Preferences pane, and un-commenting a few lines in the /etc/apache2/httpd.conf file that controls it. This will be closer to how things would work on a regular server, but it takes a considerably greater amount of command-fu to get it working.

Walter

On Feb 22, 2012, at 9:44 AM, Trevor Reaveley wrote:

Righty ho, getting in a bit of a mess here.

I’ve downloaded Mamp and installed it in my applications folder. The ReadMe says to put your HTML and PHP files in the htdocs folder, done - along with resource files, site info, css files and the webyep system.

On trying to open a php page I still get it trying to open in GoLive, or if I drag it to Safari it still comes up as a page of gobbledegook.

I realise the problem is me - I just don’t know what it is!!

Trev

On 21 Feb 2012, at 17:35, Tim Plumb wrote:

Hi Trev,
My suggestion would be to keep your file extensions as .html and add an .htaccess file to your server to process html files as if they were php files. This way you’ll be able to preview the design changes locally as well as have the CMS elements run on the server once uploaded.
You can find a brief tutorial on this over on the Pulse site;
http://pulsecms.com/tips/parse.php

Alternatively you can download and set up MAMP (http://www.mamp.info/en/index.html) and have a server running locally on your Mac.
Regards,
Tim.

On 21 Feb 2012, at 16:15, Trevreav wrote:

Afternoon all, I seem to be doing a little bit more now using WebYep and I’m finding that uploading each change to a server is a big pain, so is there any way I can view things locally?


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


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

Thanks Walter - I’ll look into this and see where I get lost!
Trev
On 22 Feb 2012, at 14:59, Walter Lee Davis wrote:

MAMP is a collection of server applications, designed to run in user-space rather than being installed hither and thither on your Mac’s Unix filesystem. When you start up MAMP, it should tell you what port Apache is working on (8888 by default), and then you will be running the browser and the server on the same machine. Instead of opening a file by double-clicking it, you will browse to it just as if it was uploaded to the public Web, by entering a URL that looks like http://localhost:8888/path/to/your/file.php

This (the abstract idea of running a server on your computer, not MAMP specifically) is the only way to preview a PHP page and really see what it will look like when it’s hosted on a real Web server.

You can do the same thing on your Mac without MAMP, by turning on Web Sharing in the Sharing Preferences pane, and un-commenting a few lines in the /etc/apache2/httpd.conf file that controls it. This will be closer to how things would work on a regular server, but it takes a considerably greater amount of command-fu to get it working.

Walter

On Feb 22, 2012, at 9:44 AM, Trevor Reaveley wrote:

Righty ho, getting in a bit of a mess here.

I’ve downloaded Mamp and installed it in my applications folder. The ReadMe says to put your HTML and PHP files in the htdocs folder, done - along with resource files, site info, css files and the webyep system.

On trying to open a php page I still get it trying to open in GoLive, or if I drag it to Safari it still comes up as a page of gobbledegook.

I realise the problem is me - I just don’t know what it is!!

Trev

On 21 Feb 2012, at 17:35, Tim Plumb wrote:

Hi Trev,
My suggestion would be to keep your file extensions as .html and add an .htaccess file to your server to process html files as if they were php files. This way you’ll be able to preview the design changes locally as well as have the CMS elements run on the server once uploaded.
You can find a brief tutorial on this over on the Pulse site;
http://pulsecms.com/tips/parse.php

Alternatively you can download and set up MAMP (http://www.mamp.info/en/index.html) and have a server running locally on your Mac.
Regards,
Tim.

On 21 Feb 2012, at 16:15, Trevreav wrote:

Afternoon all, I seem to be doing a little bit more now using WebYep and I’m finding that uploading each change to a server is a big pain, so is there any way I can view things locally?


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


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


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

If you have just dumped all your html pages into the htdocs folder then the browser address - presuming that you have started MAMP and the servers - is http://localhost:8888/

If you have put those files in a folder called mywebsite then that address will be http://localhost:8888/mywebsite

David


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