Forums

This topic is locked

Design View with PHP File

Posted 23 Mar 2007 19:31:30
1
has voted
23 Mar 2007 19:31:30 Peggy S posted:
I hired someone write a php file for me to display the results of a basic search from a .txt file and thought I would be able to bring it into DW8 and edit it - but the only thing I see is the code view.

I've checked the file types/editors and made sure the .php isn't in th list.

Any other ideas or did I just waste my $?





Replies

Replied 24 Mar 2007 18:43:49
24 Mar 2007 18:43:49 Alan C replied:
a bit more information would by useful - I am not quite sure about the details
Replied 25 Mar 2007 00:22:31
25 Mar 2007 00:22:31 Peggy S replied:
I'm utilizing Apache/MySql for my test server.

The search form is .html and the sample data is coming from a .txt file.

Here is a link to the demo.

robota.kicok.net/cars/v2/

I want to modify the .php file using DW8 but when I open it all I see is the code - (no design)

What other information would be helpful?
Replied 27 Mar 2007 10:08:48
27 Mar 2007 10:08:48 simon marlow replied:
To be able to view the results of PHP you need to set up what's called a testing server on your computer, it's not the same as viewing HTML.

What happens is the PHP gets passed to the server, the server does it's stuff and passes back the result, that's when you get to view it.

Take a look at XXAMP (www.apachefriends.org/en/xampp.html) for a solution you can auto install on your local PC.

Regards,

sdm
Replied 27 Mar 2007 17:54:26
27 Mar 2007 17:54:26 Peggy S replied:
I already have xampp installed as my testing server and everything is working fine.

I just want to be able to view the index.php file in dreamweaver, design view vs. only being able to view it in code view.
Replied 27 Mar 2007 21:28:03
27 Mar 2007 21:28:03 simon marlow replied:
In that case, sorry you can't.

Regards,

sdm
Replied 20 May 2007 03:37:49
20 May 2007 03:37:49 jim bader replied:
Try Edit / Preferences / File Types.. and remove .php from the list of extensions to open in code view.

Replied 20 May 2007 23:34:22
20 May 2007 23:34:22 Alan C replied:
Hi
what Simon says sound right to me. The php gets processed on the server and the result becomes html, which is then served to the browser. So there's no html for dw to show.

If you use html with small amounts of php then dw can show the html parts but will still not be able to show you the results of the php evaluation. If you really need to see it then the best way is to design the page totally within dw but then you lose some of the flexibility of hand coding.
Replied 21 May 2007 13:14:04
21 May 2007 13:14:04 hannaheloise hannaheloise replied:
I do not think you acually can make it in that way, anyone plz correct me if i was wrong at this point

iPhone Converter
www.iphoneconverter.com/

Reply to this topic