Skip to content
Advertisement

Tag: php

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.

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:

Advertisement