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
6 views

Linux pt_BR Locale - Bad Translations

I'm using Amazon Linux AMI 2014.09 (up-to-date) to host my PHP application, that uses locales for internationalization (usually it's pt_BR). On the production server the pt_BR translations is not ...
0
votes
1answer
1k views

How to get php_mssql.dll working properly on IIS 7.5 and PHP version 5.2.17?

First of all I'll give a very brief introduction of what I'm trying to make. I need the mssql php functions to work on the webserver. I know that such functions were deprecated in PHP 5.3 and above. ...
4
votes
2answers
11k views

How to upgrade to latest PHP, MySQL, and phpmyadmin on CentOS 5.8 (32bit)?

I have searched around on the internet and cannot find a reliable source for installing the latest versions of PHP, MySQL, and phpmyadmin on CentOS 5.8 32bit with apache. I have tried a couple times, ...
-1
votes
0answers
12 views

Amazon EC2 responds very slow sometimes

I have setup a PHP application on Amazon EC2. Webserver is Apache and Database is MySQL. The setup runs fine on the staging (dedicated server). But, the response for the same code base on EC2 is very ...
-5
votes
0answers
26 views

bug php files , Adhesion connections in the server? [on hold]

Please, This file is responsible for downloading files from sub-servers The problem, the connections to the subserver, remain in the server does not end or close, This causes very high load We ...
-1
votes
0answers
22 views

Centos 6 php install mess

I removed PHP to try to resolve other issues (couldn't install php-fpm due to conflicts) and now I can't install it at all. I'm really new to the command line so no surprise that I messed something ...
0
votes
1answer
9 views

How to findout where spam is coming from with EXIM?

I've tracked down the user which was sending out spam but I am wondering how can I determine where the script is that is doing it? I ran a scan looking for the mail() function but found nothing. ...
0
votes
0answers
10 views

php segmentation fault function call [migrated]

I am getting a segmentation fault when I call a method of an object. The method is actually implemented in the base class, and I call the same method in a lot of different places in my site, but when ...
0
votes
2answers
44 views

Server compromised, how deep is the intrusion when PHP files are changed in folder without write permissions [duplicate]

I know there have been a lot of similar questions, but none of them covered this specific question: I found on almost all PHP files on a clients server script injections, it was actually the script ...
2
votes
1answer
3k views

nginx / php-fpm error logging

I'm trying to figure out where the PHP errors are going in my setup. I'm running nginx as the reverse proxy to PHP-FPM, but I'm not seeing the various E_NOTICE or E_WARNING messages my app is ...
0
votes
1answer
829 views

Apache: How to switch from CGI/FastCGI Server API to DSO?

Apache: How to switch from CGI/FastCGI Server API to DSO? I want to switch back and forth. I found this answer for the reverse step, but I need the the first part: Apache: How to switch to ...
0
votes
1answer
1k views

Sendmail: DSN: Service unavailable

I've been having trouble getting my server to send email and I haven't for the life of me figured out how to fix it. If anyone could give me some simple pointers, that would be muchly appreciated! ...
0
votes
0answers
6 views

ffmpeg mp4 and webm files save to standard folder but only webm to mounted folder

So i am running an ffmpeg command on my linux server using the php exec command : exec("(nohup nice -n 19 " . $ffmpegPath . " -y -i " . $srcFile . " -f mp4 -pass 1 -passlogfile " . $video_pass_log . ...
0
votes
1answer
3k views

File upload permissions issue on Windows Server 2008 R2 IIS 7.5 PHP 5.3 with Drupal v.7.26

I have website on Drupal version: 7.26 OS on server is Windows Server 2008 R2 Web server $_SERVER["SERVER_SOFTWARE"]: Microsoft-IIS/7.5 Server API: CGI/FastCGI Core PHP Version: 5.3.28 file_uploads: ...
3
votes
2answers
1k views

Sendmail chdir(/clientmqueue) permission denied

My centos server can send mail using the 'mail' command but not from php. Maillog says: sendmail[18010]: NOQUEUE: SYSERR(nginx): can not chdir(/var/spool/clientmqueue/): Permission denied My ...
0
votes
0answers
28 views

OsTicket + IIS + mySQL + Extremely slow queries

Background: I am a .net developer, limited php coding knowledge Asking this question because I think it is a php/mysql/version/implementation issue, and not getting real information from the OSticket ...
0
votes
3answers
1k views

CGI error from PHP when running exec() on IIS

Windows Server 2003 x64 PHP 5.2 IIS 6.0 The program Ink2Png.exe is set with Everyone->Read and Execute permissions. As does its dependency (microsoft.ink.dll) PHP Safe Mode is off exec() is ...
0
votes
0answers
8 views

How do I trace the source of FastCGI timeout isseus on PHP and IIS 7.5?

I have a problem which I am hoping you experts can really help me find the root cause of. I am getting random page time outs (which manifest as a 500 error) that I cannot find the root cause of. PHP ...
-1
votes
0answers
20 views

How to install change password plugin in Zpanel

I tried to install Roundcube's change password plugin in Zpanel and I followed this link : - ...
2
votes
0answers
67 views

Zabbix PDF Report Generation

if any of you have an idea how to implement zabbix generate PDF reports? in forum I found some like this: https://www.zabbix.com/forum/showthread.php?t=24998 . I try implement this to my zabbix ...
0
votes
0answers
6 views

Install amphp / thread on a Debian Wheezy 64 bits

I'm trying to install a multi-thread PHP system on one of my server. After a few readings, the simplest solution seems to use Pthreads with an Amp\thread implementation ...
0
votes
0answers
11 views

PHP Java bridge installation failed [on hold]

I am configuring PHP Java bridge on my Ubuntu Server 12.04(64 bit). I have installed PHP and Apache through apt-get install. I have installed jre 6 through bin file and installed Tomcat 5.5 from tar ...
0
votes
0answers
16 views

What is causing my PHP curl requests to time out?

So I have a PHP script that posts a large file to a remote API. But whenever the response takes longer than about 200 seconds to come back, then I just get a content-length of zero in the response. ...
0
votes
1answer
8 views

PHP/Ruby captive portal first domain seems cached

I have created a captive portal with iptables I use what many people seem to use : Users can request DNS, packet marked as 99. 99 means no internet else the user does have access. When a user ...
4
votes
3answers
3k views

Chrome caching 302 redirects

I have a php script with is used to rotate banner images on a site. Under Firefox/IE page refreshes will make another request and a different image will be returned. Under Chrome, the request seems ...
6
votes
4answers
20k views

How can I install mysql PDO driver in Ubuntu 10.04 and PHP 5.3.2

I tried to install mysql PDO driver with this command: $ sudo pecl install pdo_mysql but I got the following error: WARNING: "pecl/PDO_MYSQL" is deprecated in favor of ...
0
votes
1answer
715 views

How to stop Nginx sending static file requests to the CakePHP app controller when running Cake in a subdirectory?

I'm trying to run a CakePHP app from within a subfolder on Nginx, but the static files are not being found and are instead being passed to the app controller. Here's my current config: location ...
-3
votes
0answers
20 views

Raspberry and sessions - unusable slow [on hold]

I´m running my project on my raspberry with Apache2 and PHP5. It´s non public, so me and a friend are currently the only users. The site basically executes shell commands and waits for their finish. ...
0
votes
0answers
5 views

nginx chunked_transfer_encoding enable/disable inside script

It is possible to control the value of chunked_transfer_encoding on/off sending a header or something from a PHP script? Thank you
1
vote
1answer
946 views

PHP oci8 dll not loading on windows 64 bit XP. What am I doing wrong?

on win 64, I installed apache, php etc. Everything works fine, except the oracle part. I can connect to oracle from sql developer which means my tnsnames.ora file is correct. When apache starts, there ...
0
votes
0answers
3 views

Need to Run PHP 5.5 on a specific directory

I have PHP 5.3 installed on Zend Server in my machine. I am using Windows 2008 server R2(64 bit). But i need to run PHP 5.5 on a separate directory to run a bdd tool called codeception. How it can be ...
0
votes
3answers
3k views

error in php not logging or displaying

I can not get any errors to display on screen on write to a log file. When check phpinfo() print out I have same value of master a local for display_errors On display_startup_errors On error_log ...
-1
votes
0answers
11 views

Enable fileinfo module on php 5.3 [on hold]

I'm currently using a shared host, which has disabled fileinfo module during their php installation. Given the fact that I cannot reinstall php on the server, is there any way I can use fileinfo ...
3
votes
2answers
3k views

nginx with php-fpm downloading php files rather than executing them on mac os x (local environment)

I'm having trouble getting PHP files to execute on my local development machine. I seem to have successfully installed nginx and php-fpm also seems to be correctly installed, and running but can't ...
0
votes
0answers
45 views

PHP install on clean Amazon Linux AMI

I'm trying to get a script working to bring up new Amazon Linux EC2 instances with php55 and the Amazon PHP sdk. However, I'm running into a problem that I think is caused by PHP version conflicts. I ...
0
votes
4answers
3k views

Can't connect to mysql server (13) using php function

I opened every links google results had thrown to me in regards to this MySQL error. I have been spending hours to get this to work.. I have a web server (apache in centos installed in host B, and ...
1
vote
1answer
1k views

All PHP sites stopped working on IIS7, internal server error 500

I installed multiple drupal 7 sites using the Web Platform Installer on Windows Server 2008. Until know they worked without any problems, but recently internal server error 500 started to show up ...
6
votes
2answers
2k views

Php pdo_dblib - cannot find/unable to load freetds

Self-hosted box, RHEL 6 PHP 5.3.3 PDO installed freetds installed pdo_dblib - so far no luck installing My goal is to use PDO with sybase. Attempting to install pdo_dblib from the appropriate ...
1
vote
1answer
412 views

Need help starting lighttpd

Today I installed lighttpd on my CentOS 5.6 machine attempting to replace httpd. The things I did: yum install lighttpd nano /etc/lighttpd/lighttpd.conf I set the document root to my files service ...
0
votes
1answer
12 views

php with fcgid not working anymore after upgrade to wheezy

I have some issues with a server that I have recently upgraded from Debian Squeeze to Debian Wheezy. When I call a php-page only the php-source-code of the page is beeing show but not interpretated ...
0
votes
1answer
769 views

Error in osm data data import while nominatim installation

I am doing nominatim installation on my server. I run the following command ./utils/setup.php --osm-file /usr/share/osm2pgsql/planetfile/planet-latest.osm.pbf --all to import the pbf file and Few ...
0
votes
1answer
43 views

Android browsers adding random numbers to php files

Not sure if this should be here or the Android forum - really depends on the solution. I'm having an issue with numbers or hash-like characters randomly being added to my php pages. This only seems ...
1
vote
0answers
17 views

CentOS - Files to Copy to get Consistent MIME-type detection in PHP

I have the same website (written in PHP) running on two servers. I've tried uploading the same exact file to both servers through the website. On one of the servers, the file's mimetype is detected as ...
1
vote
1answer
8 views

Windows server 2012 R2 limiting request data in php

I work mainly with with Linux based servers and Sugarcrm. One of my clients has deployed his suagrcrm instance on a windows server. SugarCrm is a php application that I would normally run under a LAMP ...
-1
votes
1answer
13 views

Is it possible to remove CGI from PHP hosting? [on hold]

I have PHP based web hosting in HP-UX server. In QA security audit they identify CGI as a vulnerability. And they recommend to remove the CGI potion of the hosting. Will it impact the PHP hosting? ...
-2
votes
0answers
15 views

Change nginx root on different requests

I am trying to configure nginx. If I enter http://localhost/dav it should use index.php script from configured root (c:/wt-nmp/www/app-dav/frontend/web) in location /dav directive. But when I debug ...
0
votes
0answers
6 views

how to install an older version of a pecl package

I have this code $passengerId = new \MongoId(oPassenger->getId()); return $this->createQueryBuilder('Device') ->update() ->multiple(true) ...
0
votes
1answer
23 views

Installing Plesk 12 of on Virtual Server

I'm trying to install Plesk 12 on a Virtual Server through VMWare, however I keep getting error message relating to php-common being required for php-imap and php-mbstring, but I have the correct ...
0
votes
1answer
23 views

Multiple server blocks in nginx: Php not working on server 2

I have a nginx server running on my webserver. I would like to achieve the following: example.com + www.example.com -> /my/web/dir/www pma.example.com -> /my/web/dir/pma The first point is not ...
1
vote
1answer
837 views

Which PHP modules are required to install wordpress?

I have 5 wordpress sites. I use hostgator shared hosting for all of them. Now I have decided to switch on to a VPS. I got a unmanaged VPS and configuring it for wordpress. I am following this ...