PDA

View Full Version : Mac To XP Localhost Connection


PHTC
09-30-2006, 03:10 PM
Hi all, I apologise if this has been answered before but I couldnt find it.

Basically what I want to do is simulate a client server interaction between my pc and my mac, they are connected via a wired router and through mounting servers on the mac and \\<ip address>\<share> on the pc I can access files but I am unsure as to how to go about creating the client server relationship.

I have previously used WAMP to create a user registration page which stores data in mysql tables but what i'd like to do is send the user registration details to the mac from the pc (or vice versa) which then stores the data and returns the relevant page.

If anyone could tell me how to go about doing this (setting up in the mac and coding so that it works) or at least pointing me in the right direction I would be very grateful.

PHTC
09-30-2006, 07:57 PM
Ok well i've cracked the first part, found out about personal web sharing, however my problem now is that apache doesnt seem to be working, when i go to the root page it says its running, however when I go to the page i've created in the sites directory the php code is displayed.

Any ideas anyone?

ddekker
10-02-2006, 07:02 PM
do you have PHP running? I installed PHP4 on our OS X server, you can create a php info file to see what all is running. I create a file called phpinfo.php with this in it

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>

then browse to it and it will list all modules that are up and running, we found that we needed to add a few modules like GD for photo manipulation. I'll try and post an article on my site about this soon, but take a look around the site for a few other tips that might help ya out.


http://trialsoftheswitch.com