Forum Moderators: mack
I am running Windows XP Home edition, so I had to find a third party server. I installed Xitami, and installed PHP with that, and it works great. Any *.php file I put in the main HTML directory of the Xitami directory (the default) shows up and executes itself in a browser when typing "http://localhost/whatever.php.
However, here is where my ignorance completely puts me out of commission. In trying to run scripts where I need to define a full server path, I am stumped. I can get these scripts up and running in no time on my remote site, but I can't figure out the syntax to use in configuration files when using localhost. If my root path is /usr/home/whatever on my remote server, I can't figure out what it would be on my local server -- and I've tried just about everything.
In a similar vein, when permissions have to be set (the Dreamweaver manual says I need to set permissions for Write and Execute in their PHP example files) I haven't the slightest clue how to do this. All the instructions are for PWS and IIS, neither of which I can run on XP Home Edition.
I'm sure this seems to be a horribly stupid set of questions -- I'm very proficient in getting things running remotely, but clueless when "localhost" comes into the picture (other than being able to get the local server set up and able to execute simple PHP tags...).
Any help in shifting my paradigm will be greatly appreciated!
On the permissions question, right click on the file and select Properties from the end of the list. On the dialogue box select Security and this is the place where you can alter the privs. This is how it's done on Win2k Pro, and I am guessing that XP is similar.
On the pathing question, I'm afraid I can't help you - but I'm sure someone will be along soon with an answer!
PHPTriad turned out to work perfectly for XP Home ed. (It's an Apache/PHP combo). It worked so well, in fact, that I shelled out the $20 for the new version of it (now called "Sokkit 3.0").
Excellent, excellent control panel, easy install, perfect solution. If you have XP Home Ed. and need a testing environment, check it out:
[sokkit.com...]
Just reading this post, as I have just started to tinker with PHP on DWMX, but the link you gave
[sokkit.com...]
The website is under construction ;-(
The correct URL is [sokkit.net...]
I've just finished setting up my sample site in Dreamweaver MX with this rig tonight, in fact. Worked great! I used the set of sample site files that ship with DW MX.
Once you get the main Sokkit program installed, download the free database plug-in also available on the Sokkit site (giving you full MySQL functionality).
I went through the steps in the DW MX getting started guide (Chapter 11, p. 133, "Setup for Sample PHP Site."). Again, no problems. I used the command-line instructions in the DW book for setting up the MySQL database b/c I'm anal, but the Sokkit front end would make it even easier, I'm sure.
The only moment of confusion I had was in finding the user id for the MySQL admin (which is "root" rather than "admin" as the default). The password is the same password you set when installing Sokkit's main module.
Obviously, I'm about as far from an expert as you can get and still be able to turn the computer on, but, if you have any problems with the DW setup, I kept a logsheet of everything I did, so post it here and I may have the answer. :)
As for your base path problems, have you tried using $DOCUMENT_ROOT?
There is a set of predefined server variables [php.net] in php that may help. Then you wouldn't have to change it when uploading.
I would suggest you read this
[php.net...]
Another good place for php discussions is here
Perl and PHP CGI Scripting [webmasterworld.com] ;)