PHP is a general-purpose scripting language that is especially suited for Web development. The online manual is an excellent resource for the language syntax and has an extensive list of the built-in and extension functions. Most extensions can be found in PECL.

learn more… | top users | synonyms

-1
votes
0answers
8 views

Summing numbers (addition and subtract) from Div and drop Total to another Div with jQuery [on hold]

I am facing a problem in summing a total value, using add and subtract to get a total value with jQuery. The project I am working on can be visited at https://agent007.prophiler.de/de/speisen Below ...
-2
votes
0answers
10 views

How to enable GSS-Negotiate?

Please tell me how to enable the GSS-Negotiate in Curl OS Debian 8? The current build such: curl 7.38.0 (x86_64-pc-linux-gnu) libcurl/7.38.0 OpenSSL/1.0.1k zlib/1.2.8 libidn/1.29 libssh2/1.4.3 ...
0
votes
0answers
16 views

Upgrade SQLite Library for php 5.4

My php version is 5.4 This is what I get in phpinfo pdo_sqlite PDO Driver for SQLite 3.x enabled SQLite Library 3.6.20 I really need to update this driver. On PHP 5.3 you could do this with ...
-1
votes
0answers
5 views

php disable_function recommended settings [on hold]

Looking to enhance PHP security. What is a recommended disable_functions setting for a shared hosting server with cPanel, PHP 5.5 (CloudLinux), suPHP enabled? My current setting is: ...
-2
votes
0answers
12 views

restore database in mysql without using query

Recently I formatted my computer. Unfortunately I forgot to get backups of my MySQL databases. But I have my previous xampp folder with me. To restore my previous database i copied my previous ...
-1
votes
0answers
4 views

Apache can't find QueXF in my installation

I am interested in installing QueXF on Ubuntu (Desktop, sadly) 15.04 64-bit. I followed these instructions, except with the newest versions of QueXF and its companions. I got to the point where I was ...
0
votes
0answers
4 views

read from memcache in Yii when put was from node [migrated]

We have a Yii application. And we use memcache. In our system node.js writes to cache and php reads from cache. But I get the following error in php: MemcachePool::get(): Failed to uncompress data ...
1
vote
1answer
44 views

Is it possible to connect to MySQL from PHP using the old password encryption protocol?

I am working on a front-end project with a legacy system. I have to access a MySQL 5.6.25 database, which is still using the old pre-4.1 password encryption protocol. In particular I have to write a ...
1
vote
1answer
37 views

Php's shell_exec() and apache

I'm running a ZMQ 'push' interface via Ratche on an Apache server, which works very well on the command line, interacting with my server exactly the way I'd like. Here's the code //script1.php ...
0
votes
0answers
19 views

Install memcache php ext on php 5.6

I have php 5.6.6 installed on Amazon Linux. I want to install memcache extension (not memcached server, we use Elasticache). I try # yum install php-pecl-memcache.x86_64 And get the following ...
0
votes
1answer
26 views

Nginx rewrite downloads php instead of running it

I have the following code to redirect users visiting login.php to another page: http { .... geo $bad_user { default 0; 1.2.3.4/32 1; 4.3.2.1/32 1; } server { .... location = /login.php { if ...
0
votes
0answers
3 views

Debug slow “git pull” operation executed by the Local System account on a Windows Server

On a Windows server, which runs Apache and PHP, the webserver executes a git pull through a PHP script. This is part of a deployment process. When the Apache2 service runs under the Local System ...
0
votes
0answers
4 views

php5-embed does not load extensions

While setting up php on my Ubuntu server (using php5-embed under uwsgi/nginx), I noticed curl.so was not being loaded. The file /etc/php5/embed/conf.d/20-curl.ini exists and contains ...
0
votes
1answer
22 views

Installing php 5.5+ on Centos 6 alongside 5.3

How can I install PHP 5.5+ alongside php 5.3 (or 5.4 with the EPEL repository) on a Centos 6 server? I don't want to remove or supersede the default version, but I would like to have both versions ...
0
votes
2answers
62 views

How can I check who created a file on server?

Looking through server logs I've noticed some mailicious PHP files hidden among WP and Joomla folders and I'm wondering how they got on the server. Is there a way to review that? It's a shared hosting ...
0
votes
0answers
7 views

Php,apache ds,kerberos integration [closed]

I have installed Apache ds and enabled kerberos server(the one coming along with DS).I am successful in connecting to server using GSSAPI authentication from Apache studio.Apache ds and kerbros is ...
0
votes
0answers
13 views

Apache SSO (mod_sspi)

I am trying to implement an auto login function into my mediawiki by using their windows credentials. I am using Apache Server (V2.2). I have implemented the Auth remoteuser extension and has ...
0
votes
0answers
19 views

How can I su -l user -p password from a scripting language running by apache server? [duplicate]

I ahve been trying to run crontab by a PHP script that is run by my apache web server. The user is apache and I have found out by running shell_exec that apache cannot run crontab: $cmd='crontab ...
-2
votes
0answers
16 views

Free Safe and Professional PHP stack like Zend-Server [closed]

I'm looking for a free PHP stack for development and products implantation that has an enterprise security grade and support both Linux and Windows platforms and based on latest stable version of PHP ...
0
votes
0answers
22 views

nginx downloads .php files - error configured

I'm trying to follow this tutorial in order to create an amazon machine with nginx and php: http://stale.coffee/ec2-micro-instance-adventure-nginx-php-mysql.html All good, I opted to use ...
-2
votes
0answers
17 views

is it wisely to use php for a big messenger server? [closed]

I want to start programming a messenger server (chat , groupchat and ...). This server must support milions of users. For first question , is it wisely to use php for this server? Because php is'nt ...
0
votes
1answer
73 views

how to remove .php extension using htaccess on godaddy linux hosting

How to remove .php extension using htaccess file. I have tried many codes (which I found on internet but not got success. An Internal server error is regularly showing. I am using Godaddy Linux ...
1
vote
2answers
42 views

Can't get apache working after installing nginx & hhvm

I had Apache2 running on my local ubuntu machine and I installed nginx & hhvm on my local for debugging purposes by following this tutorial. I would now like to switch back to Apache2 as I had it ...
0
votes
0answers
8 views

How do I set permissions on directory(folder) on IIS 6.0?

I am trying to set permissions on uploads folder. I have two projects - an original project and a pilot project. I am trying to upload images from php code. It works for me for the original project ...
-1
votes
0answers
17 views

Limit php mail to local delivery only cPanel /WHM [closed]

cPanel based hosting - I need to configure the servers so any php based email will only deliver to local email accounts. This is so things like contact forms will work but php mail can't be used to ...
-2
votes
0answers
12 views

$_SESSION failing when calling PHP file through a CDN [closed]

I am not sure if using a CDN is appropriate here in the first place. The content I am hosting is an Apache(with PHP + MySQL) backend for a mobile application. Instead of calling my PHP files through ...
-2
votes
0answers
8 views

Broken PHP or Apache handler [closed]

I have try to install ionCube Loader on my Virtualmin (CentOS 6.6) using Method #2 from http://www.servermom.org/how-to-install-ioncube-loader-on-centos-6/802/ Method #2: Step 1 – Issue the ...
0
votes
0answers
12 views

PHP exec() pkill works but not kill, why? [closed]

When making a PHP script for a website to kill a process, this works to kill all processes with that name... <?PHP exec ("pkill linuxjampded"); ?> But killing them via a specific port ...
0
votes
0answers
29 views

IIS 7.5 - PHP environment variables at the site-level

I have two versions of the same application (demo & staging) running on the same IIS server. The application relies on an environment variable via getenv("APP_ENV") to set configuration ...
-1
votes
0answers
9 views

Can i add Permissions to IIS 7.5 for accesing a Removable Drive

I would like to start a C++-program using PHP on my IIS 7.5 which is designed to remove a Removable Drive which is plugged in into my PC. Now the program getting started but returned array(2) ( ...
0
votes
0answers
16 views

Nginx User Directories

I am trying to configure nginx so that when going to http://example.com/~user/ it will load files from the /home/~user/www/ directory. I have found a script that seems to work for .html files but ...
0
votes
1answer
15 views

PHP 502 Server Error: Problems with code or server?

Not sure if this is the right forum, but I'm hoping someone can help me. We had a web app running on our web server for a while now. Suddenly it stopped working and displays a 502 error - Web server ...
0
votes
1answer
22 views

RHEL and PHP versions

RHEL 7.1 ships with PHP 5.4 and that version is going out of support soon. Based on historical trends, will RHEL upgrade to a new major version of PHP? UPDATE RHEL 7.1 - PHP 5.4.16 RHEL 7.0 - PHP ...
2
votes
1answer
48 views

Reading 65k rows hangs PHP/MySQL

I am developing a PHP application that processes IP adresses. I am working with mysql tables containing up to 4 billion rows. I have a script that currently needs to fetch 65536 adresses from this ...
2
votes
1answer
20 views

PHP/FastCgi - Which is the threshold over which to use nginx instead of apache

I'm a PHP developer, I have always developed on a LAMP environment and it's all gone well 'til now. At the moment, I am developing a PHP web application, still on apache and without the use of any ...
0
votes
1answer
16 views

Block/Prevent Adminer - Apache [duplicate]

I found out that if someone was able to hack any FTP account on my server and upload Adminer they could alter the database. I tried Google'ing a way to block or prevent Adminer from working, but got ...
0
votes
0answers
20 views

What caused apache to crash?

I have a high load server using php/apache/APC working fine for months. In the last 2 days it has crashed midday. if I restart apache it works so the problem is probably in the apache/php/apc stack. ...
1
vote
1answer
16 views

Exim4 intercept all outgoing mail

I have a LAMP stack set up on a Debian 8 (jessie) machine. I'm trying to find a way of intercepting all outgoing mail sent by PHP (through sendmail) and instead of sending it out, deliver it to my ...
1
vote
2answers
28 views

How do I change the username nginx/PHP creates files as

Is there a way in which nginx/php can be configured so it creates files with a specific user. For example when a drupal/wordpress site uploads a file the user is assigned like: john:www-data ...
-2
votes
0answers
21 views

New IIS, PHP not working? But locally states it is

Windows Server 2012 R2. I've setup IIS, it was displaying the default page from the IP correctly: http://185.43.211.186 I then moved my current website: www.fcrp.greenlightgames.co.uk to the IIS ...
1
vote
0answers
80 views

Website exploited, suspected SQL injection + PHP check bypassed, but can't explain how the latter was performed [migrated]

Background: A website I made some year ago has been recently attacked; the exploiters managed to get access to the PHP front-end I made for the client, which is used to upload files, and they managed ...
0
votes
1answer
32 views

Configuring PHP MySql extension

I am trying to load a MySql extension for PHP development. Running <?php phpinfo(); ?> I can see that the MySql extension is not loaded. This is also apparent when running a script that uses ...
0
votes
0answers
22 views

Upgrade PHP 5.6 using symlink on Ubuntu

I'm trying to upgrade to PHP 5.6 from PHP 5.4.34-1+deb.sury.org~lucid+1 on Ubuntu 10.04.4. I've tried upgrading through adding the repo and upgrading via "apt-get install php5" which installs the ...
0
votes
0answers
30 views

Sub Domain Not Working on Nginx server with Apache Handling PHP

I have a domain setup and it is working. However I cannot get any sub domains working. I am trying to setup a sub domain right now for phpmyadmin. I am using Nginx as a reverse proxy for Apache with ...
0
votes
0answers
22 views

php script not executed from command line [migrated]

I'm unable to execute php scripts from command line. I have the following simple code in a file named test.php: #!/usr/bin/php print password_hash("rasmuslerdorf", PASSWORD_DEFAULT)."\n"; On ...
0
votes
0answers
38 views

Match subURIs to index.php file on Apache Passenger

I have the following configuration within a VirtualHost block: #Passenger config DocumentRoot /home/me/railsapp/public <Directory /home/me/railsapp/public> AllowOverride all Options ...
0
votes
0answers
23 views

Garbage files in public_html folder. Is this a security breach? [duplicate]

The public_html folder on my site just got uploaded with a ton of garbage html files with filenames such as vonzipper-sunglasses-men-25jh27.html and tumi-daypack-04po59.html as well as several files ...
0
votes
1answer
31 views

New CentOS 7 server - Sending mail from a PHP application

Apologies for the newbie question but i'm hoping someone can provide me with some help/steps. I am in the process of migrating a website from a managed shared hosting account online to a new CentOS 7 ...
1
vote
1answer
28 views

unable to upgrade my php in ubuntu 10.04

I am trying to update my php from 5.3.10-1~lucid+2uwsgi2 (cli) to 5.4, but getting error. I am trying with the following command: sudo add-apt-repository ppa:ondrej/php5 but getting the error: ...
1
vote
1answer
21 views

Install mysql-php5 to specific php file

I'm running an Ubuntu OS 14.04 hosting Nginx with Zend Server and Apache listening on separate ports. I managed to install Zend Server without any hassle. In an attempt to run Apache beside Nginx, ...