Page 1 of 1

connecting to xampp server

PostPosted: 05. February 2013 20:08
by droidus
Hello everyone,

I am trying to do local testing with Dreamweaver. I have Apache/MySQL running. In DW, I have the Local Site folder set to C:\xampp\php_site\. The server folder is C:\xampp\php_site\. The web URL is http://localhost/php_site/. I was following this tutorial: http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html. When I click on "Live View", this error message is sent back:

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404

localhost
Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7

Thanks.

Re: connecting to xampp server

PostPosted: 05. February 2013 21:48
by Altrea
Hi droidus,

droidus wrote:In DW, I have the Local Site folder set to C:\xampp\php_site\.

Thats not a requestable directory. Your local site folder have to be inside C:\xampp\htdocs\, so for example C:\xampp\htdocs\php_site\

best wishes,
Altrea

P.S.: For further reading
http://www.apachefriends.org/en/xampp-windows.html
http://www.apachefriends.org/en/faq-xampp-windows.html

Re: connecting to xampp server

PostPosted: 05. February 2013 22:39
by droidus
awesome - thank you!

Re: connecting to xampp server

PostPosted: 05. February 2013 22:56
by droidus
is there any reason why some pages would not be displaying the php properly?

here is what i'm getting: http://tinypic.com/view.php?pic=x3sc2&s=6

Re: connecting to xampp server

PostPosted: 05. February 2013 23:50
by Altrea
droidus wrote:is there any reason why some pages would not be displaying the php properly?

Don't use short_open_tag. It is disabled by default.

best wishes,
Altrea

Re: connecting to xampp server

PostPosted: 07. February 2013 00:19
by droidus
so i just take out the "<?" and "?>"?

not sure what you mean

Re: connecting to xampp server

PostPosted: 07. February 2013 00:23
by Altrea
droidus wrote:so i just take out the "<?" and "?>"?

not sure what you mean

Didn't you read the link i am posting for you?
http://www.php.net/manual/en/ini.core.php#ini.short-open-tag wrote:Also, if disabled, you must use the long form of the PHP open tag (<?php ?>).

Re: connecting to xampp server

PostPosted: 07. February 2013 02:40
by droidus
when you say "by default", how can I change this?

Re: connecting to xampp server

PostPosted: 07. February 2013 10:54
by Altrea
droidus wrote:when you say "by default", how can I change this?

It is bad practice to make the functionality of a scripts dependent of a specific php setting especially if that setting is just a code styling one and not a functionality itself.
With that dependency your script maybe don't run on some servers where this setting is deactivated and that without any good reason.
but this is just a hint from an experienced programmer.

if you want to change this setting, search for short_open_tag = Off in your \xampp\php\php.ini, change it to On and restart Apache.

best wishes,
Altrea