Ask a Question related to Dreamweaver AppDev, Design and Development.
-
hypamw #1
Testing Server doesn't work
Hello,
I'm following the tutorial to create a dynamic page with database connection.
I survived the database connection problem. Now after I added a table to the
document and do Live Data View, I got this error message:
"
The testing server did not execute any of the scripts in your document.
Possible explanations include:
1) The testing server is not running.
2) The testing server ignores files with the ".php" file extension.
3) Your document does not contain any scripts.
"
I think I can eliminate 3), there are scripts inside the document. But not
sure 1) and 2). The tutorial doen't show how to start the testing server. How
can I check if the testing server is running and ignores ".php" file
extension???
Thanks.
Pw
hypamw Guest
-
Testing Server problem: Server name or address couldnot be resolved!
Not sure if this helps but I was going step by step in the Getting Started Experience Tutorial and when it got to the Database tab -- RDS Login... -
Using CF7 as a testing server
I'm new to Coldfusion and I need to use my own computer as a testing server without access to a remote server. I need to view live CF data on the... -
Using Server Behaviors without Testing Server
Because of the way my company sets up ColdFusion I dont' have a testing server and thus can't use the database connection tool, server behavior,... -
Testing Server for JSP doesn't work
I am configuring the test server to process JSP pages, but it doesn't work. I have configured IIS as my web server. Copied trio.mdb on test server,... -
testing server.?
Good evening, ok i trying to set up a site and use php and mysql testing server, i have installed everything apache, mysql, made edits to code as... -
David Powers #2
Re: Testing Server doesn't work
hypamw wrote:
Hello again.> Hello,
I'm assuming you're still using your Mac, and haven't turned to the dark> The testing server did not execute any of the scripts in your document.
> Possible explanations include:
> 1) The testing server is not running.
> 2) The testing server ignores files with the ".php" file extension.
> 3) Your document does not contain any scripts.
> "
> I think I can eliminate 3),
side in the last few hours. The answer to 1 lies in System Preferences >
Internet & Network > Sharing. Make sure that Personal Web Sharing is On.
The answer to 2 lies in creating a simple file in your Sites folder. All
that it needs to contain is the following code:
<?php phpinfo(); ?>
Save it with a .php extension, and try viewing it through a browser. If
you get a page full of configuration details about PHP, you're in
business. Since you installed Marc Liyanage's package, it should have
automatically made any changes necessary to the Apache configuration
file, so that should be all you need.
--
David Powers
Author, "Foundation PHP 5 for Flash" (friends of ED)
Co-author "PHP Web Development with DW MX 2004" (Apress)
[url]http://computerbookshelf.com[/url]
David Powers Guest
-
hypamw #3
Re: Testing Server doesn't work
Hello David,
I just followed your instruction to check the .php file (type
"http://localhost/~guess/phpinfo.php" on the browser) and the Personal Web
Sharing setting. The php configuration shows on the browser, and Personal Web
Sharing is already turned on. But I'm still getting the same error message.
I was super user when I turned on the Personal Web Sharing, installed PHP
4.3.4 and MySql 4.1.10 and when I changed the password hashing length on root
user on UNIX terminal. For MySql, root is the only user. And I am a normal
user when creating web page on Dreamweaver MX 2004.
Does the problem relate to user permission? Do I need to restart the system?
Any suggestions?
Thanks.
Pw
hypamw Guest
-
David Powers #4
Re: Testing Server doesn't work
hypamw wrote:
To be honest, I don't know. Restarting is always a good idea after> Does the problem relate to user permission? Do I need to restart the system?
making changes, but I doubt if user permissions has anything to do with
it, although it would do no harm to try the same thing when logged in as
an administrative user.
Two possibilities spring to mind:
1. Have you got the URL prefix correct in the site definition? It must
have a trailing slash at the end.
2. Try using 127.0.0.1 instead of localhost. I know that DW had problems
mapping to localhost before the release of the 7.0.1 updater. Since
you're using Jaguar, there may still be a mapping problem.
--
David Powers
Author, "Foundation PHP 5 for Flash" (friends of ED)
Co-author "PHP Web Development with DW MX 2004" (Apress)
[url]http://computerbookshelf.com[/url]
David Powers Guest
-
hypamw #5
Re: Testing Server doesn't work
Hello:
I checked the URL prefix. It is trialed with slash, and I changed "localhost"
to "127.0.0.1" ([url]http://127.0.0.1/~guess/MySampleApp/[/url]). I alse tried to use
"127.0.0.1" on MySql Connection. I logged in as admin and restarted the
system. But the problem persists.
I notice one thing: when the error message window popped up, in the
testing/remote folder(they are the same location), it showed a file named
"comments-view_10credup14.php", where "10credup14" changed each time when the
error message popped up. When click OK to dismiss the error message window,
the "comments-view_10credup14.php" disappeared.
There are these file and directory in the testing/remote folder:
_mmServerScripts (dir)
_notes (dir)
Assets (dir)
comments-add.php (file)
comments-view.php (file)
Connections (dir)
index.html (file)
news.html (file)
Is the folder content OKay? Any hints and suggestions?
Thanks.
Pw
hypamw Guest
-
David Powers #6
Re: Testing Server doesn't work
hypamw wrote:
You seem to have everything set up correctly, but I've never run> Is the folder content OKay? Any hints and suggestions?
Dreamweaver on Jaguar, so there may be something getting in the way that
I'm not aware of. All I can suggest is a visit to the Macromedia
Knowledge Base:
[url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?mode=advanced[/url]
I did a search for "troubleshooting php mac" and selected "Dreamweaver"
from the product list. It came up with four page with a series of
troubleshooting suggestions. I hope you can find the answer in there.
--
David Powers
Author, "Foundation PHP 5 for Flash" (friends of ED)
Co-author "PHP Web Development with DW MX 2004" (Apress)
[url]http://computerbookshelf.com[/url]
David Powers Guest
-
hypamw #7
Re: Testing Server doesn't work
Hello David,
Happy Easter!
(Sorry, if this message was posted for a few times. Since I had problem to
upload it, so I keep trying.)
Finally, it seems I can sort out the problem. I'm new to web development. I
learned a little of html and javascript but nothing on xml.
I followed the instruction in this link
([url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16383[/url]) to test:
1. Testing Dreamweaver MX's connection to the PHP application server (create
a simple .php file inside the original PHP site that contain the
comments-view.php - the one having testing server problem)
2. Testing Dreamweaver MX's connection to the PHP application server and
MySQL database
Both tests worked fine. then I could eliminate the 1) and 2) in the error
message dialog box.
Then, I created a new .php called "test.php" in the same site and copied the
code piece by piece from comments-view.php(the problem file) to the test.php.
Tested it with "Live Data View" button and F12 key. It worked fine until I
added the line of "<?xml version="1.0" encoding="iso-8859-1"?>", then I got the
same testing server is not running error message. If I took the xml statement
out and copied the rest of the code to the end. Everything just worked fine.
Then now I have these questions:
1. As I understand, html and xml files are interpreted by browser. If the
browser doen't support certain html or xml versions, the page will be messed up
or show nothing. When I hit "Live Data View" button and it gives me the
testing is not running message. Does it mean DM MX 2004 has problem to
interprete the xml statement? So so, it is a bug in DM or I'm missing
something?
2. When I was following the tutorial, I've been quite confused about the
concept of testing server, remote server and local root folder. What do they
exactly mean and are they for? Why is the testing server folder same as the
remote server folder? Can they be different?
Thanks.
Pw
hypamw Guest
-
Alexandro Colorado #8
Re: Testing Server doesn't work
On Fri, 25 Mar 2005 05:27:27 +0000 (UTC), hypamw
<webforumsuser@macromedia.com> wrote:
The '<' and '?' is what indicates that is PHP since xml also has this> Hello David,
>
> Happy Easter!
>
> (Sorry, if this message was posted for a few times. Since I had
> problem to
> upload it, so I keep trying.)
>
> Finally, it seems I can sort out the problem. I'm new to web
> development. I
> learned a little of html and javascript but nothing on xml.
>
> I followed the instruction in this link
> ([url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16383[/url])
> to test:
> 1. Testing Dreamweaver MX's connection to the PHP application server
> (create
> a simple .php file inside the original PHP site that contain the
> comments-view.php - the one having testing server problem)
> 2. Testing Dreamweaver MX's connection to the PHP application server
> and
> MySQL database
>
> Both tests worked fine. then I could eliminate the 1) and 2) in the
> error
> message dialog box.
>
> Then, I created a new .php called "test.php" in the same site and
> copied the
> code piece by piece from comments-view.php(the problem file) to the
> test.php.
> Tested it with "Live Data View" button and F12 key. It worked fine
> until I
> added the line of "<?xml version="1.0" encoding="iso-8859-1"?>", then I
> got the
> same testing server is not running error message. If I took the xml
> statement
> out and copied the rest of the code to the end. Everything just worked
> fine.
> Then now I have these questions:
>
> 1. As I understand, html and xml files are interpreted by browser. If
> the
> browser doen't support certain html or xml versions, the page will be
> messed up
> or show nothing. When I hit "Live Data View" button and it gives me the
> testing is not running message. Does it mean DM MX 2004 has problem to
> interprete the xml statement? So so, it is a bug in DM or I'm missing
> something?
>
> 2. When I was following the tutorial, I've been quite confused about
> the
> concept of testing server, remote server and local root folder. What do
> they
> exactly mean and are they for? Why is the testing server folder same as
> the
> remote server folder? Can they be different?
>
> Thanks.
>
> Pw
>
combination the browser may confuse.
What you want to do is to wrap it under the PHP line. somehting like this:
When you go to File > New > Dynamic Sites > PHP you would see something
like this:
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>
--
Alexandro Colorado
------------------------------
Support Engineer
InterAKT Online
[url]http://www.interaktonline.com[/url]
Tel: 40(21) 312.5312
Alexandro Colorado Guest
-
-
David Powers #10
Re: Testing Server doesn't work
hypamw wrote:
Alexandro has already given you a solution for the <?xml problem.> 1. As I understand, html and xml files are interpreted by browser. If the
> browser doen't support certain html or xml versions, the page will be messed up
> or show nothing. When I hit "Live Data View" button and it gives me the
> testing is not running message. Does it mean DM MX 2004 has problem to
> interprete the xml statement? So so, it is a bug in DM or I'm missing
> something?
Another solution is to set short_open_tag to "Off" in php.ini. However,
it also needs the same setting on your remote server, and most hosting
companies have this setting "On" by default.
More importantly, using the xml declaration will force IE6 to render
your CSS in quirks mode. Many developers now remove the xml declaration
to avoid this problem. In fact, DWMX 2004 no longer inserts the xml
declaration (although MX did).
Testing server is normally the Apache installation on your local> 2. When I was following the tutorial, I've been quite confused about the
> concept of testing server, remote server and local root folder. What do they
> exactly mean and are they for? Why is the testing server folder same as the
> remote server folder? Can they be different?
computer. Remote server is the live internet server where you eventually
plan to deploy the website. The local root folder is the folder you use
as the top level of the site when developing it locally.
Normally, the testing server folder and remote server folders will be
quite separate.
--
David Powers
Author, "Foundation PHP 5 for Flash" (friends of ED)
Co-author "PHP Web Development with DW MX 2004" (Apress)
[url]http://computerbookshelf.com[/url]
David Powers Guest
-
hypamw #11
Re: Testing Server doesn't work
Thanks for the explaination. It helps me to understand.
hypamw Guest



Reply With Quote

