jerb Posted May 28, 2006 Share Posted May 28, 2006 Hello there! I've tried and Tried but I cant get the light script to work, I know its probably something stupid but I'm completely oblivious. first off my apache folder is located at C:program filesapache software foundationapache2.2 in htdocs I have index.php (gives me errors when its .html) I cant access this page by typing http://localhost , I get a directory listing of my music fodler (password protected) but I ebleive this is simply a mistake on my part in confhttpd.conf I have the firecracker (I've verified it works) located on COM1 but it has a thermosensor cirucuit (small PIC with attatched thermoressistor, the program I found only works on com1) this device measures and records the temp every 30 sec. so maybe there's a conflict. I am using the code provided in episode 1, but when I click Off nothing happens. I do not know where I should put light.exe (/bin ?) thanks for any help you can give Quote Link to comment Share on other sites More sharing options...
Shaun Posted May 28, 2006 Share Posted May 28, 2006 Can you get to it by typing http://localhost/index.php ? If so then you probably need to modify your DirectoryIndex directive to include index.php. Light.exe should be either somewhere in your PATH or in the working directory of the PHP script (getcwd will return that). Quote Link to comment Share on other sites More sharing options...
jerb Posted May 28, 2006 Author Share Posted May 28, 2006 http://localhost/index.php does not get me where i want to be If I put a file named Index.php in the directory that comes up when I type http://localhost/ It just gives me the same listing with a file named Index.php, however by changing it to index.html I get the page with the two buttons like I'm looking for, however when I click on either of the buttons I get the error: Not FoundThe requested URL /index.php was not found on this server. Where is the directoryindex located? the Getcwd file emntioned was in my Perl dir, I am unsure how to find my Path Quote Link to comment Share on other sites More sharing options...
Shaun Posted May 28, 2006 Share Posted May 28, 2006 Well shouldn't you have both a index.html and index.php then? Presumably the first will have the buttons in it and the latter will have whatever PHP is supposed to be in there in it. WINDOWSSystem32 will be in your path, you could put it there. Quote Link to comment Share on other sites More sharing options...
jerb Posted May 28, 2006 Author Share Posted May 28, 2006 I split it up so all the HTML was in the index.html file and the Php script is in index.php. the files are located so that when I type http://localhost I get the website with two buttons however when I click those buttons it shows me a page showing my php lights.exe is in ststem32 Quote Link to comment Share on other sites More sharing options...
Shaun Posted May 29, 2006 Share Posted May 29, 2006 Do you have PHP installed and Apche set up to use it? Quote Link to comment Share on other sites More sharing options...
jerb Posted May 29, 2006 Author Share Posted May 29, 2006 I have them both installed though I'm not sure if they're setup properly. i'm going to try to reinstall both of them today Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.