Home automation with php [closed] - php

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want to do simple automation in my home like on/off lights to explore more about automation. I am a software engineer so I don't know much about hardware to use in this process. I want to do this task in php. It would be very great for me if anybody can help me to achieve this task. Please suggest me any other language if PHP is not suitable for this task.

I did this years ago working with a vendor at CES called Exceptional Innovations. They have small devices you can place between the plug and appliance that connect to home network and you can access via web service.
I'm not sure if they still do it but found this article: http://www.cepro.com/article/using_web_services_to_control_devices_through_vista_media_center/
It was Life|ware WSD. You might check with other home automation vendors and see if they expose an API, but note the media server in your home will likely need a static IP address for Internet connection, then you will need to route requests on desired port to that computer in your router configuration if you want to access from the outside world.
If you are coding in-house, then your laptop/pc will be connected to same network as media server so you can just reference it via interal IPs. If Linksys router, for example, it might default to 192.168.1.3 (assuming .3 is address assigned when device requested IP).

PHP is a serverside scripting. You need to use some other language such as C. Unless you want to switch the lights of remotely (incase you forgot to do it :P ).

Related

How to host an intern webpage and mysql data base? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I am looking for a way to host a webpage and a mySQL data base but in internal network, like an intranet for example.
When I was working on the website and the database, I used MAMP to emule a server on my PC but this work only on one PC. I'm looking for a way to share this website on different PC but only on my internal network.
Sorry for bad english. If there's something not understandable, please ask.
If it's a "repost question", please lead me to the answer I'm looking for. If you need more information, be pleased to ask them.
Thanks.
Unless it is very sensitive I would go for an external webhotel like godaddy.com or similar in your country. And add password protection on the site.
If you want to host it you need a computer that is on 24/7 and install your setup there, but then you are required to handle hardware failures, updating the software and so on.
MAMP and others should work. You might be visiting http://localhost:1234/index.php on your machine so on your network on other device, try http://yourmachinename:1234/index.php. As long as the ports are open, this should work.

Why web servers are needed even for local web application [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I'm searching for a means to overpass the need for a web server when using a local web application. Why aren't there browser extensions or special browsers to do so? It seems very easy to code to me. The browser or extension would call a php interpreter to compose web pages from php files. Local urls (file:///) would be used. No web service or port would be necessary. Is this just nonsense? Or am I the first person to think about this? In fact, this does already work with static html files.
First edit: I was looking for a server for testing purposes, being able to compose output from php files, without the need to communicate through network ports. Maybe I should have started from here, but Stackoverflow does not allow this kind of posts.
That sounds nice, please go ahead and build that technology. I will also use it. But oh, for now that has nothing to do with SO.
Why web servers are needed even for local web application
Because they are web applications. Technically you don't need a web server for local stuff if all your application code relies on client side programming. You can just go ahead open your html files in browser.
Browsers know how to interpret client side code already, so why re-invent the wheel? If you ever wish to write 1 line of server side code then obviously you'd need a web server at that point.

Show content from internal ip's on a custom sub domain ?

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 days ago.
Improve this question
I'm trying to recreate what Amazon, Rackspace, etc. have done (sort of) where :
A. Virtual Machines can be start pretty much via a php command(post, socket, whatever)
B. Each machine is associated with an account of sorts, so it also has it's own little domain.
"B" is where I would like help. What are some techniques to map vm's to a custom sub domain?
I can currently start a vm using vagrant, but I'm not sure how to display it's content (make the assumptions these are web server vm's)
I also know you can map something like "bobspickles.domain.com" to "domain.com/action.php?name=bobspickles" , but I'm not sure if I can use this technique to render whatever internal ip address's content as a result... help?

Publishing a website on the internet [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I finished my two first websites (one static and the other is dynamic) ,now I have to publish them on the internet,I dont know the process, should I have a domain for both of them?
I will add the static website as a link in existant website, i have been told that a static website don't need a domain!
I have serached into the internet to learn how to publish them:
http://www.wikihow.com/Publish-a-Web-Site-on-Your-Own-Domain
http://www.youtube.com/watch?v=k8DlIvat7m4&list=PL0B2E90AFC0367264&index=1
I have used :wampserver,html,php
You need:
A domain name e.g. example.com, NameCheap ain't too shabby
PHP Hosting - somewhere for your site to live, and where your domain name will point to
FTP software, to upload all your files to the server you purchase, theres a multitude of free software out there for this - FileZilla is an excellent choice
Have a look around for each of these, to start with you'll probably want shared hosting - the most affordable and usually easiest to set up. And if you have problems with an specific area, then have a Google, because someone will likely have already experienced the same.
Check out Tizag for a great guide on hosts and loads more info.

Web based software to queue/reserve machines for use [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I'm in need of some sort of software based way to reserve the use of a couple machines. There about 5 different machines used in a lab that are shared among everybody but people need to schedule the days/times they want to use these machines. This is currently handled with pen/paper and you need to physically walk place to place to see when they're free and available for sign-up. I've been tasked with moving this system to a private webserver that currently runs an installation of mediawiki.
I've looked for extensions for mediawiki itself, but I couldn't find any kind of scheduler/planner/queue system that is premade that allows users to reserve a time frame/day to use machine. Additionally it would be nice if anyone could sign up but users were restricted from removing others from the queue(which is why a traditional calendar software with the honor system wouldn't exactly work). The solution doesn't need to be embedded within medawiki itself but must be able to be hosted off of a webserver, do you guys have any suggestions on how I can approach this? The best I can come up with is to buckle down and write my own php/django based site to handle this(I'm not very experienced with either). While I do have time I want to make sure there isn't something available I missed before dedicating my time to writing a custom application, and would appreciate anyone who could help.
While I've not used this:
phpscheduleit

Categories