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

0
votes
0answers
4 views

lp printing crossdomain on local printer

How can files located on web server (.png or .pdf) be printed on local printer ? I have a DYMO LabelWriter 450 attached to a local POS sytem, running LAMP / Debian wheezy. Currently product labels ...
0
votes
0answers
8 views

IIS | Block execution of files in directory

I am dealing with user uploads via a PHP application. I want to secure the server so no exploits are available to the user, such as uploading a php shell and executing it. I have set it so all ...
0
votes
0answers
14 views

PHP error reporting without notices

I have been trying to set up php.ini file for error reporting. I wanted for my log file to show everything except notices. Referring to my researches, solution was to use this command: ...
0
votes
0answers
16 views

End of script output before headers: php5

I've inherited the sysadmin role on a server that's running a wordpress website on top of Apache 2.4/Debian. It almost works, but it is issuing "500 internal server error" from time to time. In my ...
-1
votes
2answers
11 views

Symlink in crontab, script not found [duplicate]

I'm running Debian testing and can't get a simple cron to run a symlinked PHP script. I've a php script in a subdirectory in my home folder /home/foobar/dir/script.php (which starts with the ...
0
votes
1answer
29 views

Public and Private keys incorrect for user

I've followed this tutorial (which worked for me on several VPS's) to configure a secure way to install and update themes and plugins in Wordpress. Basically: sudo adduser wp-user cd /var/www sudo ...
0
votes
0answers
12 views

secure cookie in Apache => php session resets on every page load

I have set secure cookie in Apache based on this tutorial. But php session resets on every page load. for example this sample code: <?php session_start(); echo session_id(); ?> displays ...
-1
votes
0answers
21 views

Web Socket server using up extreme amounts of RAM

I am using this web sockets server from google https://code.google.com/p/phpwebsocket/ The default maximum frame size is 100000 bytes. When I send a ~100kb message and issue a peak memory command I ...
-3
votes
0answers
13 views

Error while installing PostgreSQL PHP PDO driver, at running ./configure

I have found a tutorial, installing PostgreSQL's PDO driver on PHP. I couldn't do without a tutorial, because yum and other repo's couldn't find required pdo packages. It starts with wget ...
0
votes
0answers
8 views

Run php as CGI with Apache 2.4 on Debian returns not found error

I am trying to run php build from source as CGI. I've added this to apache config ScriptAlias /cgi-bin/ /usr/share/php54/bin/ AddHandler handle .php Action handle /cgi-bin/php-cgi virtual ...
-1
votes
0answers
13 views

openshift php script not able to write files.

I want to install contao on openshift, but the install script stops and the check script shows error on php writing files: http://spahn-pointout.rhcloud.com/check/ All php-fles have 600 and orders 700 ...
-1
votes
0answers
14 views

Sending large amount of requests each month [on hold]

My server app needs to request a large amount of pages each month, process those pages and write results to DB. As it stands now it needs to request about 25 000 pages. Practically all of these are ...
1
vote
1answer
44 views

Nginx and different versions of PHP FPM + PHP

Due to a better understanding of what I wish to achieve thanks to Mark and his previous answer, I am posting a (hopefully) clearer and slightly different variation of my previous question as that ...
0
votes
0answers
8 views

open_basedir in different apache vhosts

Just playing around with open_basedir settings in some Apache vhosts. I created two identical vhosts for testing with differing ServerNames. Only one of that vhosts contains the open_basedir ...
0
votes
0answers
15 views

AVG Antivirus causes slow PHP response time

My PHP website has suffered from really slow response times, and after a long research I finally found out the culprit is AVG Antivirus installed on the web server. The website is running on IIS 7.5 ...
2
votes
1answer
22 views

Limit the total memory usage of PHP-FPM

I'm running PHP-FPM on my Debian servers. My question is about the memory usage. I can only set the memory_limit inside PHP, and that shouldn't be too low for some requests. I also can only set the ...
-1
votes
0answers
6 views

Zend OpCache active but [on hold]

I installed php-fpm and Opcache on my new server. When I do php -v : PHP 5.4.36-0+deb7u3 (cli) (built: Jan 9 2015 08:07:06) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) ...
0
votes
0answers
10 views

PHP session handler using redis not work

I was sets 3 servers : 192.168.7.147:6379 <-- redis server 192.168.7.162 <-- web server 1 (using phpredis, with local devdomain jttest.com ) 192.168.7.218 <-- web server 1 (using phpredis, ...
0
votes
0answers
13 views

PHPPGAdmin on Windows - authenticate users against Active Directory

I installed PHP, Apache 2.4, and PostgreSQL 9.4.1 on Windows machine which belongs to Windows domain. My pg_hba.conf: hostnossl all postgres 127.0.0.1/32 md5 hostnossl all all ...
-1
votes
1answer
82 views

Multiple versions of PHP through nginx

EDIT: For future reference Multiple versions of PHP through nginx Nginx and different versions of PHP FPM + PHP I am running Ubuntu 14.10 with a LEMP stack using PHP 5.5.12. I have a number of ...
-2
votes
0answers
20 views

Website shows only info.php [on hold]

My webpage www.wohnungsengel.de shows since today only a blank site saying only info.php. I didn't change anything so now I am pretty confused what could be the reason for this. Any idea on what could ...
-2
votes
1answer
38 views

Accidently removed all PHP dynamic libraries [on hold]

I was trying to remove a startup module folder(ioncube) and accidently removed the PHP startup modules/extensions folder (debian) Now I'm getting this PHP Warning: PHP Startup: Unable to load ...
0
votes
2answers
40 views

What happens when you update PHP while your server is running?

I'm serving files with Apache and PHP-FPM via FCGI. When I run yum update on a live server, what happens when PHP gets updated? I can imagine three scenarios: php-fpm is stopped, then restarted ...
0
votes
1answer
11 views

WordPress permalinks are not working

I am having a problem with WordPress permalink redirects not working correctly. I was able to specify the permalink convension through settings interface. WordPress properly names hyperlink. However, ...
2
votes
0answers
28 views

Apache rewrite works under FreeBSD, not under CentOS

I have 5 production servers which are running FreeBSD 9.2, but we are planning on transitioning to CentOS. Because of this, I am attempting to set up some virtual machines to emulate our production ...
0
votes
0answers
13 views

What would cause /app/code/core/Mage/Checkout/Model/Type/Onepage.php to truncate? [on hold]

This morning we started getting calls from customers stating that the checkout page was returning a white screen. We turned on errors in Magento and were greeted with the following error: Parse ...
0
votes
1answer
17 views

PHP scripts fail after adding .htaccess to password protect a dir

I added .htaccess and .htpasswd to a dir in order to password protect it. That part works. AuthType Basic AuthName "Password Protected Area" AuthUserFile /path/.htpasswd Require valid-user But ...
0
votes
1answer
8 views

Php fatal error loading 'Mail/mimeDecode' even with php-pear install

I have centos machine where I have install using yum install php-pear. So I tried this in my php page require_once 'Mail/RFC822.php'; require_once 'Mail/mimeDecode.php'; I get this error "Warning: ...
0
votes
4answers
401 views

Permissions set to 555. How can another user modify the files? [duplicate]

I run an Ubuntu 12.04 x64 VPS with Vesta, and a site in PHP. It has been hacked several times with injected code that looks like this: <?php ...
0
votes
0answers
15 views

SoapFault Can't Connect to Host

I am attempting to get the Woocommerce Fedex shipping plugin for Woothemes working against the error SoapFault Can't Connect to Host. The previous developer who tried it took out the barest details ...
-1
votes
0answers
17 views

Mail services disabled but server still sends spam [duplicate]

A domain on my host was sending spam e-mails. It was an outdated joomla version and there were everywhere in their web directories php bot spam scripts. From my side I disabled the php's mail() ...
-4
votes
0answers
19 views

nginx Query Driven Content per Every Page and Angular.js Frontend [closed]

I was originally considering nginx for a new project hosted on a Linux box. Every page on the website will be primarily dynamic, derived from numerous database queries. Most every page will contain an ...
1
vote
0answers
36 views
+50

How to Upgrade to PHP 5.5 on Windows Server 2008

What is the proper way to upgrade from PHP Version 5.4.32 to PHP Version 5.5.22 on Windows? All that I can find is how to to install. PHP is already running on Windows Server 2008 R2 64 bit alongside ...
0
votes
0answers
27 views

php55-session fails to initialize, freebsd / ports

I have installed the extensions, base library and php55-session via ports https://forums.freebsd.org/threads/no-session-support-in-default-php-installation.12565/ but a basic session fails to ...
0
votes
1answer
14 views

php internal server not visible externally from amazon aws

I am doing some testing on a server for which security is almost zero importance. For these tests I want to use a php server provided internally as of version 5.4. However on amazon AWS the bound ...
2
votes
2answers
37 views

PHP emails, Postfix and Message Queue

I've been running a web platform that needs to send a considerable amount of emails daily. At the implementation date I and my partner decided to setup Postfix on the server and use Swift Mailer class ...
0
votes
2answers
34 views

index.html will execute PHP code

I have a server with suPHP, Apache2 and PHP5.4. I noticed that a document index.html will execute PHP code, while test.html will not execute PHP code. Of course I do not want that PHP code is ...
0
votes
1answer
15 views

Concurrent MySQL processes

I have a file, let's call it a.php, which executes a long cycle of iterations, each one of them makes some queries to the database. To complete the cycle, it takes quite some time (some hours). My ...
0
votes
1answer
22 views

php using live server as oppose to local server despite virtual host settings

I had planned on migrating a website to another server, So having copied the code and database etc, and changed my hosts file on windows, everything worked almost as expected. I could load the site ...
0
votes
0answers
22 views

Max memory for HHVM instance on vServer

Im tried hhvm on my vServer and have problems with the memory used. The performance is great, but the used memory consumption is horrible. I have a vServer with min 4GB and max 8GB memory and hhvm ...
0
votes
0answers
3 views

PHP read Hindi text file in unicode formate [migrated]

I am using this code for reading a file which contains Hindi alphabets. <?php $arrbyline=file('E:\HindiFile.txt'); foreach($arrbyline as $lines) { echo $lines."<BR>"; } ?> Here, i ...
0
votes
0answers
20 views

URL having file names with accented characters [duplicate]

In one of my PHP based websites, I have a script which will display an image from a CentOS server. Image path is taken from MySQL database. Image files stored on the server (and corresponding ...
0
votes
1answer
26 views

Does php-frm make PHP run faster?

As I understand it, php-fpm makes PHP pages respond faster by managing a farm of pre-loaded PHP interpreter processes so the end user doesn't experience the overhead of initialising the PHP subsystem, ...
2
votes
0answers
26 views

Roundcube, upload fail

I have Roundcube installed on Ubuntu 14.04, using NGINX, with static IP, SpamAssassin, ClamAV . Sending/receiving email was fine including downloads, however cannot upload anything to send. ...
0
votes
1answer
47 views

PHP dependancy issue after upgrading to PHP 5.6.5

I'm trying to install Laravel, this required me to upgrade to php 5.6.5. This was a success and php is running fine, but im having 2 dependency issues when i try to install other packages that laravel ...
1
vote
0answers
22 views

How to prevent Opera Turbo compression

I have a site (running Apache and PHP) that allows users to download JPEGs. The user clicks once on a link to download the JPEG, the same as when you download a zip file (not using right-click ...
2
votes
0answers
22 views

Tuning Amazon Linux worker tier

I have a worker tier that is using PHP process control (pcntl) functions to send multiple requests to the SNS service in parallel. My question is how best to tune MPM_PREFORK directives to get the ...
0
votes
1answer
21 views

Read user's environment variable in php script

I'm trying to query environment variables that i have set my .bashrc file (i'm running Ubuntu 14.04) in a PHP scripts that run's under Apache server. When i query the getenv('MY_VAR_NAME') or ...
0
votes
1answer
46 views

Wordpress category links are not working on an Nginx server

I just configured a new server to move my website. After I migrated, everything works fine except for category links. If we visit a category, it will give a 404 error. Page permalinks are working ...
0
votes
0answers
7 views

Resources Not Loading When Running From PHP Internal Server

I followed this tutorial: http://symfony.com/doc/2.3/quick_tour/the_big_picture.html And ended up with this: Now Obviously, the resources are not loading. As I'm installing a fresh Symfony project ...