Forum Moderators: coopster
I've started to learn PHP, and I'm using it in Frontpage. I want to be able to preview the PHP in Frontpage and have the results show up, so I tried to install PHP on my machine. Right now I have WAMP5 running, but previewing in Frontpage shows no changes. Do I have to save things to a certain folder, or do some other changes?
Thanks for the help.
When entering in IE
[localhost...]
Do you see:
<<<
If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.
>>>
Anyway there are also very good PHP editor such as Quanta if you dual boot RedHat
Or another one such as Zend Studio
Now if you run through some problems with your WAMP
Uninstall it and
Look here in our library
install tutorial [webmasterworld.com]
Have fun!
Despite popular belief, you can use Frontpage to edit PHP files, as long as you understand what FP is and how it works.
Firstly, I am assuming you are at least using FP 2000 or later, anything earlier than FP 2000 is not recemmended.
FP has three main modes, that you can choose from the tabs at the bottom of the screen: Normal, HTML and Preview.
Normal mode is for editing pages in a WYSIWYG environment including drop & drag, direct text entry, and so on. In this mode you will not see your PHP code.
HTML mode allows you to view the actual code behind the page, including any and all code. This is the equivelant of pure code editors such as Notepad, Ultraedit, TextPad, or any of a plethora of editors out there.
This is where you would edit your PHP code. I routinely write ASP code in this mode with no problems at all so PHP code should present no p[roblems here either.
Preview mode renders client code as it would be rendered by the Browser, that is, HTML and Javascript. It allows you to quickly check what the page will look like but is not a complete check as it does not parse server code such as PHP, ASP, or whatever.
As PHP is actioned at the server level, this will not be actioned in Preview mode, rather needs to be views via you local host as henry0 suggests. If working with FP then this would be localhost/FPwebname, that is, the name you used to create a new web in FP.
This is assuming you have the PHP Server files installed appropriate to whatever server you are using, be it Apache, IIS, or whatever.
Onya
Woz
Local host tells me I have this installed:
Server Configuration
Apache version : Apache/1.3.33 (Win32)
PHP version : 5.0.4
MySQL version : 4.1.10a-nt - extension : mysqli
So my web name is called PHP, and my index is index.php.
If it's located in:
Documents and Settings\Mark\My Documents\My Webs\PHP\index.php
How much of that do I put after [localhost?...]
Thanks.
Now you cannot unless tweaking paths get you site opening from the location you have posted in your answer
Move the whole thing to:
Depending on how that WAMP did the auto setup
From Explorer click on C:
Do you see a folder named: Apache?
If yes double click it and find HTDOCS
Move your web folder in htdocs
BUT BEFORE I would rename it, PHP might be a your PHP folder created by WAMP install
So consider it as a reserved named and for test purpose name your site’s folder: test
Second solution:
You do not have the above setup
Then again in C:
Go to Program Files
Apache Group
Apache2
HTDOCS and move you renamed folder in HTDOCS
Now type in your browser
[localhost...]
and hit enter
again 2 solutions depending on original setup
either you will default index.php and your index.php page will open without further clicking
or you will see a list of web folder included in htdocs (your root)
Open test and find index.php, click it and you should be in business