Skip to main content
Participant
February 25, 2007
Question

Webpage testing error

  • February 25, 2007
  • 1 reply
  • 455 views
I don't know if you can help me as I'm running WAMPSERVER, PHP MYSQL APACHE. Please excuse my inexperience because I'm talking from a designers point of view.

I'm ok in desiging static pages and recently learning about dynamic pages. I've decided to use Dreamweaver PHP and MySQL so I can create dynamic content (on local folder).

Anyway, I heard that setting up mysql and php apache is a pain and I was pointed in the right direction ...wampserver.

I set this up no problem and even got my apache working as remote server. When I type http://localhost/ I see my mysql working fine.

So I started to play around with dreamweaver, setting up a database in the mysql console and binding the database making the dynamic page.

However, when I test the page using live data view or externally I get the following message:


'Fatal error: Can't use function return value in write context in C:\wamp\www\TMP7galme0kbc.php on line 5'


I have no idea what this means! I do know that when I make a static page, the page does open and works.

I don't know if its a configaration problem between dreaweaver and the root folder (but why would the static page work??). Is it a problem with the binding of the database?

Another thing, when I type localhost in my web browser, I can connect to the wamp homepage on my local folder, whcih means the server is working. When I click on links from this page to get to the dyanamic page I'm trying to open, the page works.

Headache grrrrr...

This topic has been closed for replies.

1 reply

Inspiring
February 25, 2007
pa18 wrote:
> However, when I test the page using live data view or externally I get the
> following message:
>
> 'Fatal error: Can't use function return value in write context in
> C:\wamp\www\TMP7galme0kbc.php on line 5'
>
> I have no idea what this means! I do know that when I make a static page, the
> page does open and works.

It means you haven't set up your testing server correctly in the
Dreamweaver site definition. A static page doesn't need to be parsed
(processed) by the web server; a PHP page does.

> Another thing, when I type localhost in my web browser, I can connect to the
> wamp homepage on my local folder, whcih means the server is working. When I
> click on links from this page to get to the dyanamic page I'm trying to open,
> the page works.

First of all, you need to get your testing server definition correct.
When you have done so, you also need to change your settings for Preview
in Browser. Go to Edit > Preferences. Select Preview in Browser and
deselect the option to preview using a temporary file. Links don't work
in temporary files.

The settings you need for your testing server are this:

Server model: PHP MySQL
Access: Local/Network
Testing server folder: C:\wamp\www\siteName\
URL prefix: http://localhost/siteName/

If you're just beginning to dip your toes in PHP and Dreamweaver, you
might find my book "Foundation PHP for Dreamweaver 8" helps prevent too
much head-banging. It covers all aspects of working with PHP in
Dreamweaver, and is written from a designer's point of view. You can
find more details on my site:

http://foundationphp.com/dreamweaver8/

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
pa18Author
Participant
February 26, 2007
Thank you David, for the solution. It is the connection setup problem. I've been having problems with wampserver...installing and uninstalling, and most of my links are all over the place.

Your book looks interesting! I do need more understanding on PHP and Dreaweaver.
Deaf_Web_Designer
Inspiring
February 26, 2007
In addition to more understanding about does PHP works around or with Dreamweaver, if I may add... practice, practice and practice is the way to go.

Perhaps some cup of fresh-brewed coffee from Starbucks, if you love Starbucks. Go and buy some pound of coffee that you like, and make some fresh brewed coffee right there at home. ;) Because you are going to need some coffee with some practices with PHP around Dreamweaver.

Good luck and cheers, DWD (Brian)

quote:

Originally posted by: pa18
Thank you David, for the solution. It is the connection setup problem. I've been having problems with wampserver...installing and uninstalling, and most of my links are all over the place.

Your book looks interesting! I do need more understanding on PHP and Dreaweaver.