I actually don’t know whether I am asking a proper question. Let me describe my problem first. End user <-1-> web server (by PHP) <-2-> an internal process (by C or C++) <-3-> an external hardware The 1 should be something like ajax request. The 2 should be something like inter-process communication. The 3 should be uart RS232 communication. The
Tag: php
What is the proper method for enabling MSSQL support in Laravel homestead?
I’ve seen a lot of people talking about FreeTDS and Sybase drivers, but I can’t seem to figure out what I need to enable laravel/php access to MSSQL databases from a Linux Web Server running the Laravel Homestead Vagrant box. Answer I’m resurrecting this because it was one of the early results on google for my problem… First, ssh into
Why doesn’t PHP include work on my Raspberry Pi?
So I’m very new to Linux and I just bought a Raspberry Pi to serve as my webserver and I noticed the following lines, with the location var/www/mysite/index.php, doesn’t work properly: I don’t even get any errors or warnings, just a blank page showing “Hello1”, even though I have turned error_reporting and display_error on in the php.ini file. It’s like
Convert RBG to CMYK with use of ICC profile in PHP
I am currently building an online APP which allows users to pick a color for text from a usual javascript color picker. I want to convert the returned value to CMYK and I know there is not one simple run-of-the-mill method to achieve this, given there are ICC profiles and all that. I still want to achieve a relatively useful
PHP’s exec() Function and the .history File
Given that the user that apache is running as on my server is a real user and has a home directory with a .history file, will running commands via exec() cause entries to be made in that file? For example if I run exec(“whoami”) and I login as that user and run the command history will I see an entry
Mongodb connection in PHP not working
I am using Ubuntu 12.04 LTS and installed pecl in /opt/lampp/bin/ . When installing second time its throwing error – Command run previously – pecl install mongo pecl/mongo is already installed and is the same as the released version 1.5.1 install failed Now when I am Checking by – echo extension_loaded(“mongo”) ? “loadedn” : “not loadedn”; It is showing not
Protect PHP source code
due to bad internet bandwidth in my country, the client wishes for me to install my PHP/MySQL application on his Windows server or a Linux server. What is the best way to protect the source code? Or the folder where the PHP source code resides. The client should be able to use the rest of the server freely. Thank you.
PHP upload file code works on Windows XAMPP but not on production Linux box
I’m using this PHP to upload CSV files: and it works perfectly on my dev XAMPP setup. When I deploy the site on the Linux box it behaves as if the file upload is successful but it isn’t in the desired folder or tmp folder. My form is: My browser returns from the echos: I had a friend more familiar
Output results from Linux command into a table with PHP
I’m mid way through clobbering together a captive portal to run on a Raspberry Pi and have the basics working, but I’m now stumbling whilst creating some administration pages. What I am essentially trying to do is create a table in HTML/PHP so that I have the ability to “kick” users from the service. I have a script already in
PHP: how to start a detached process?
Currently my solution is: and in file.php is there any way I can do this just with exec? Answer No, detaching can’t be done with exec() directly (nor shell_exec() or system(), at least not without changing the command, and using third-party tool which does detach). If you have the pcntl extension installed, it would be: Call it like this: