Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have read many articles, forums and informations about SNMP.
Even though I struggle with my project.
The goal of my project is to display data that I get from SNMP on a web page. (Nice designed interface). SNMP protocol is compulsory. And it should run on linux server (I want to add more devices in a final part of project e.g. router, switch.)
Could anyone tell me some quick info what has to be done (step by step review)?
I would be glad for every help. I am confused about what is the best way.
Ajax/database/websockets/traps?
I would like to use PHP or Node.js if it possible.
I'm doing a similar project for my internship :
I'm using Perl script for back-end with Net::SNMP for snmp request,
Perl CGI for front-end,
and JSON for DB.
I suggest using a framework to create the web interface, for example Django (https://www.djangoproject.com/) in python.
Then you could use a python library (pysnmp will be great) to retrieve the SNMP data, and create a custom View to show this data in a web page.
If you want to stick with PHP, you can use the functions described here http://php.net/manual/en/ref.snmp.php to access the SNMP server, and again using a framework will be great (Laravel, Symfony ...)
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have already created a website with a mysql database. Now, I am attempting to create an IOS app that will connect to the same database that my website "talks to". All of the tutorials I have seen have relied exclusively upon PHP and have walked through the process of creating the database. My website was not written with PHP, so I am completely lost on how I get PHP to help me in this case. I'm new to all this, so I am not sure what information is helpful, but so you know:
The website templates were written in HTML and CSS,
views page (functionality) written in python,
Flask is the microframework, and
pymysql is the ORM
Any pointers in the right direction would be much appreciated.
If you are using Flask then this is how you need to go through - there are other ways, but I would go for this -
Install Flask REST API to expose rest api from your site. You can get the documentation here - http://www.flaskapi.org/
Expose required API's from your website using flash rest api
Consume those API's with your mobile application.
NOTE: Don't ever expose your database directly to client side. BAD IDEA. Always use a middleware, could be php, python, .net - does not matter what it is.
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 7 years ago.
Improve this question
I am currently working on a project where I need a backend for a mobile (iOS) and web application. For another project that I worked on a while ago, I used Parse.com as the backend since I did not have to deploy the application to the general public.
Since the application I want to launch may have a sudden burst of requests I wanted to use another service. Therefore, I am currently working on a PHP/MySQL backend that receives http requests and returns JSON encoded data.
Would this be an ideal setup for a scalable backend or is there any other service such as www.backendless.com that would enable me to have the same functionality without having to code everything myself?
I'm not an experienced backend developer and I am currently using most of my time on the backend and not working on the front-end.
Thanks.
PHP is a good language to start with and it's good enough (though not the best), first you need to choose a framework to help you getting what you want faster & more optimized and I suggest the Phalcon PHP framework, this one use some components from the C language which makes it faster than the others
After getting good in PHP please read more about the Restful APIs, because that's how you will handle the data for a mobile application.
And if you want a service for the backend like Parse I suggest Firebase for you, hope my answer helped. Good luck with your app.
Everyone knows Parse is going to be unavailable so next ready option for BaaS is Firebase but keep in mind there are many things that are not Supported by Firebase unlike Parse, for example image storing, push notifications ...
Another option is AWS Mobile Hub
I have been using Cakephp for my last 5 projects, creating backends to use as cms and as rest API (in my case I used JSON as response, but there are other formats). [http://book.cakephp.org/2.0/en/development/rest.html]
It is very easy to create your models, controllers and get started with your API. It also provides a lot of authentication methods, etc.
Parse is shutting down so it is not an option.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to create large and complex reports (with graphs, images, pagination, headers and footers, etc) from my Symfony 2 application.
I've been searching the web, looking for Symfony or PHP complete report generators (like Crystal Reports, Report Builder or JasperReports), but I haven't found anything. The only thing I've found are some libraries to generate PDF's from PHP, and the wkhtml2pdf tool.
Is there any reporting tool for Symfony 2 or, at least, for PHP? Or must I use JasperReports and search or write any plugin to call Jasper from Symfony? I haven't deployment constraints because I have my own VPS (no shared server), so I have root access.
For a "pure" PHP solution, you can use PHPJasperXML, which renders Jasper Reports natively into PHP, so you don't need to setup Java and a bridge for PHP, there are some limitations as this is not an official implementation, but it's pretty useful nonetheless.
By the way, the reports can be created with IReport, and then simply used on PHPJasperXML.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am building an app that will first be a web app and soon will get built into a mobile app.
My approach to this is. Have core app built and deployed on one machine. The web-app will be on a different machine (both on amazon). The web app is just ui wrapper in this situation. It will make all the calls to the core app to function.
My question here is. What is the best way for the webapp server and core app server to talk to each other?
Does everyone just use http calls for this purpose?
Are there any open-source tools/libraries that help here?
Platform : lamp with codeigniter on amazon.
You can create your own REST based API service and communicate to it from different applications. You can consider JSON as request and response data type, as it is most optimized and widely acceptable.
So, the technique is:
Separate application functions from front-end functions.
Let the API handle all the application functions.
Let your front-end system(s) call the application functions through the API.
Create restful web service for this purpose. Use JSON as an output data. This will make it easy to access in all platforms.
REST is my first choice. Since you mentioned that you are using codeigniter, this align with the way Codeigniter works. For the message type you can use json/XML , however since json is JavaScript object, I think you should use json.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
In the middle of 2010, I found a class library called PHPToCLib. It ran flawlessly for over a year - I was able to implement a tremendous amount of my own, custom code into a an AIM Bot that I could run from my CMD Prompt. However, near the end of 2011, the servers stopped responding to the script. It connects to toc.oscar.aol.com on port 5190, and that hasn't been changed. I am indeed aware that AOL discontinued their TOC2 servers and that it's not possible to connect with them anymore. However, I downloaded a program called TerraIM that uses the same specifications and is somehow able to connect to them. I was wondering if there were any updates on how I could get my script to connect, and if so, what do I need to change?
Thank you in advance.
TerraIM also supports the OSCAR protocol which I assume it's defaulting to. If you are working with IM bots the absolute best way to go is to leverage libpurple. Unfortunately there is not a good PHP binding to libpurple. There are a couple python bindings. If you don't wish to migrate your code, there is an implementation that provides an HTTP interface which may be easy to integrate with depending on your use case. Alternatively, you could use thrift to comminute between your existing PHP code and the python bindings -- this would require a bit more coding than leveraging an HTTP interface. Here are some resources you may find helpful:
Python bindings:
github.com/fahhem/python-purple
github.com/Raptr/Heliotrope
HTTP interface from HTTP binding:
github.com/atamurad/http-purple
Thrift:
http://thrift.apache.org/