PHP is a widely-used general-purpose scripting language that is especially suited for Web development. The current version is 5.3.3, released on July 22, 2010.

learn more… | top users | synonyms

0
votes
0answers
53 views

debugger tends to block server when listening until restarting phpStorm

I follwed the instructions from this post on how to set up xdebug with php storm. It works great but the problem is that it works for the first request only. ie Let's say I turn the listener on. I ...
0
votes
0answers
995 views

ownCloud WebDAV interface seems to be broken

I've been trying to host ownCloud on my server but everytime I try to it tells me this : Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to ...
7
votes
3answers
43 views

PHP version for super user is fcgi instead of cli

I have a strange problem with PHP version when using CLI. When I login as root and use: php -v I get an info that php is running in CLI mode which is fine, but as soon as I use sudo php -v I get ...
0
votes
0answers
17 views

httperrors for Linux

I'm here because the Google has failed to get me what I need. I just recently graduated from university, and I'm working on a website. Back in college I used the school's web server for my projects, ...
0
votes
0answers
21 views

Notepad++ auto format php code [duplicate]

In VisualStudio, i hit the keys CTRL+E, D and my C# code gets formatted. Is there a way to do this in notepad++ for PHP code?
0
votes
1answer
54 views

Unable to run localhost in windows [closed]

I want to run php code on my localhost. For the purpose,I just downloaded the wamp server for windows 8 and installed. But when I am trying to open local host , I am directed to the IIS windows. I ...
0
votes
0answers
730 views

xampp MySQL app not running (win8)

I am using xampp for few month. But facing and error for 2 days and MySQL app isn't running. I reinstalled xampp and it was working fine, but when I restarted, it stopped working again. Here are error ...
0
votes
0answers
65 views

Centos 6 rsyslog missing audit.log

I'm trying to get to work the wkhtmltopdf on apache, php 5.5, centos 6 64bit. The error is "sh: /usr/local/bin/wkhtmltopdf: Permission denied" so my thoughts were selinux. I tried to follow steps ...
1
vote
1answer
200 views

Setting up email for domain on a VPS

I have my site set up and functioning on a vps. The domain is on godaddy. The nameservers point at godaddy then i have set the a record to point at the IP of the VPS and its working fine. I now need ...
0
votes
0answers
44 views

How to wget range that fills a PHP URL

I try to wget from 1 to 724.. When I try this line in the terminal : wget http://exemple.fr/resultats.php?ID={1..725}.html everything works fine except that the pages downloaded are no filled with ...
-2
votes
1answer
34 views

Typical cases where I might use exceptions in programming [closed]

Can someone please help me with something that seems simple but I've never really got my head round. Exceptions! I know how to write an exception but countless code samples with variables foo and bar ...
0
votes
2answers
522 views

Open local .php file as normal HTML with Firefox

I always preview HTML files on my local Firefox before uploading them to production website. Similarly, I have a ".php" file which is 99% HTML and 1% PHP, and I would like to preview it on Firefox. ...
0
votes
3answers
78 views

Building PHP For MacOS

I was using XAMPP and decided to uninstall it and use MacOS' in-built apache and php modules. But while uninstalling XAMPP I deleted /usr/bin/php files and other PHP-CLI files accidentally. And I ...
0
votes
0answers
92 views

Compile PHP by source. Stuck at phar.phar

I am trying to install PHP (Version - 5.5.11) by source since I need php installation with enable-debug and enable-maintainer-zts options. Downloaded the package ./configure --enable-maintainer-zts ...
1
vote
0answers
70 views

Why is connection hanging on 80 or 443?

So I'm using Chef and Vagrant to provision a LAMP stack on a box which I have done before to great success, when along comes this problem. Details as follows: So netstat says we are good tcp ...
1
vote
1answer
69 views

Can't connect to MySQL database after moving to local [closed]

I can't connect my website to the mySQL database installed on the same box. I've had a website running on a shared host and decided to move it local. Installed Ubuntu Server - check. Installed LAMP ...
0
votes
2answers
59 views

Cache a single PHP file with parameters

So I build a PHP script that receive some data and provides it like an API. The data doesn't changes much, but the script runs every time it's requested. Is there a way to tell Apache to cache the ...
0
votes
0answers
64 views

vhost running on local machine only shows root directory correctly

I am using Ubuntu14.04 and I have created a virtual host on apache2. I have my Laravel project trying to run on virtual host in apache2. I set it on /etc/hosts 127.0.1.1 mw Then since I have PHP ...
0
votes
0answers
150 views

Configuring email in PHP for Elgg using postfix

I am trying to setup PHP for running Elgg. I have PHP 5.5 installed in a Ubuntu 14.04 VirtualBox VM. I need to complete the following requirement (elgg requirements page) : Proper configuration and ...
1
vote
1answer
540 views

How to execute a php file from a bash file?

My goal is to make a script that I can execute through a cron job. The script needs to find several killstat.php files in multiple directories and execute them. This is what I have so far: ...
2
votes
1answer
174 views

Adding sudoer for all but root

Here is the base of my problem: I would like to add sudo rights to a user, but not to use it as root for security reasons. I have a PHP script needing to run a command (drush) through exec(). ...
0
votes
2answers
223 views

Upgrade Failure in FreePBX Installation

I'm building FreePBX 2.11.0.25 from source over Asterisk asterisk-11.9.0 (also built from source) on a Ubuntu 14.04 64-bit server installed on a VMWare VM. During installation I had an error that ...
0
votes
3answers
87 views

Let user '_www' execute binary in /usr/local/bin

Total *nix n00b, so I apologize in advance. I installed ffmpeg through homebrew, now I want to call it from a PHP script with shell_exec(), e.g. ffmpeg -v. But nothing is happening. From Terminal it ...
0
votes
2answers
438 views

Apache2/PHP no longer logging errors after deleting error.log

I deleted error.log file from my logs directory. As root, I used vi to create error.log file again. root:root owns the file, permissions are -rw-r--r--. Same ownership and permissions as access.log. ...
0
votes
0answers
146 views

cPanel/WHM - Assign cron jobs to specific account package automatically

I would like to know if it's possible to, when creating an account in a specific package, automatically assign cron jobs to run in it. Example: I've created the account "example", wich is in package ...
-2
votes
1answer
11k views

pass a JavaScript variable to php via Ajax [closed]

I try to pass a JavaScript variable to php via Ajax so then I can make sql query. I call function votepick(id ) onchange event. However not working and get error Uncaught ReferenceError: $ is not ...
0
votes
1answer
139 views

GREP for multiple strings with wildcard

I am trying to copy lines from a log file from certain days. Here's an example of what they look like. 2014-05-01T15:53:16+00:00 DEBUG (7): 2014-04-301T11:08:10+00:00 DEBUG (7): This GREP ...
0
votes
1answer
82 views

login to phpmyadmin on suse 13.1 fails

' i try to login to PhpMyAdmin (on opensue 13.1 lamp) and get error: Login without a password is forbidden by configuration (see AllowNoPassword) What should i do for enter to phpMyAdmin without set ...
1
vote
1answer
2k views

Nginx & UserDir & PHP

I have a fairly simple nginx/1.4.7 installation (from Debian/unstable) and I'm trying to get PHP scripts to run inside a UserDir. server { listen 8083; ...
6
votes
1answer
12k views

How to manually install Apache, PHP and MySQL on Windows?

How do I install Apache with PHP support and the MySQL server on Windows without using any ready-to-use packages like WAMPServer or XAMPP ?
0
votes
0answers
50 views

unable to compile php on ubuntu

I'm trying to compile an older version of PHP (5.2) on Ubuntu 13.04 and am having some difficulty. Here's what I tried (from my home directory): sudo apt-get install php-pear wget ...
0
votes
0answers
63 views

Connecting to remote database via phpMyAdmin - Validation error

I've been trying to connect to a remote MySQL database via local phpMyAdmin, as per explanation by this tutorial. However, I'm not authenticating properly with the database due to the IP address ...
0
votes
2answers
2k views

Configuring PHPMyAdmin to connect to remote database

After Googling the possibility of using PHPMyAdmin to connect to remote databases, I found this article, which confirms that this is supported after a simple config edit. In the article, the author ...
0
votes
1answer
202 views

PHP max_input_vars delaying server response time

Hi im using a CentOS vps with 6gigs of dedicated ram im hosting WordPress on that a little while ago i got an error saying that max_input_vars have exceeded so i have edited my php.ini and made it to ...
0
votes
0answers
31 views

Run java in php apache2 in browser [duplicate]

I wrote a simple PHP file which calls a java application. It runs on cli without problems but I can't run it on browser. Output: "Java HotSpot(TM) 64-Bit Server VM warning: ...
0
votes
1answer
2k views

Upgrade to PHP 5.3.23 on Ubuntu 12.04

I want to use Zend Framework 2. I have installed the ZendSkeleton Application. When I try to install Framework, I get the following error: #> php composer.phar install Warning: This development build ...
0
votes
1answer
2k views

how to enable event MPM Apache 2.4 Ubuntu 14.04 with thread safe PHP?

I upgraded to Ubuntu server 14.04 expecting the default apache installation would use the new event MPM, but instead I find the old memory-eating prefork. I've successfully set up event MPM in Arch ...
0
votes
1answer
25 views

How to know from which domain I am getting mails from myself?

I am getting mail from myself, I know it is getting sent through php or through any other server side script. But I want to know from which domain I am getting those mails from myself. I am a php ...
0
votes
0answers
61 views

FFMPEG - merge videos on different time intervals

I have 3 videos (video1/video2/video3). I would like to play them on different time intervals: video1 plays from 0-15s (video1 with sound, video2/video3 mute) video2 plays from 15-21s (video2 with ...
0
votes
1answer
439 views

Why none of the rainbow parentheses plugins work with filetype=php?

I've tried a dozen rainbow plugins. They all work, until i open a php file or set filetype=php. Then I get parentheses with the same color in that buffer. what is the reason for this? I tried ...
0
votes
0answers
13 views

PHP issue when upgrading

I installed new PHP version with HomeBrew, but Apache2 does not run that version but the old one. Even though when I do php -v, it returns PHP 5.5.1, when I do in a PHP script <?php phpinfo(); ...
-1
votes
1answer
121 views

404 error on a previously installed Wordpress Site in IIS 8 [closed]

I am hosting a Wordpress site on IIS 8 with php and fastcgi installed. The problem is that i had to reinstall the IIS completely to install the exchange server (because it needs the Default website ...
1
vote
1answer
52 views

why would running apache as a service produce different results when simply starting it from the command line

I have a .php script that produces different results when apache is launched as a service, as compared to when apache is simply started from the command line with httpd.exe. I have checked things ...
0
votes
0answers
130 views

Centos 6 - Lighttpd/ 403 error on PHP files, and issues adding website

So, I do have PHP/MySQL and PHP-FPM installed, but when I try to access PHP files, I get a 403 forbidden error. I have been looking around Google quite a lot, and not finding anything that is solving ...
0
votes
2answers
243 views

Numbers are not displaying properly in excel report

n excel report generation, numbers are displaying 7.70225E+11 but it should display like 770225145579 . Any one please help to solve this issue. My code is, <?php include("connection.php"); ...
0
votes
1answer
285 views

How to fix PHP installation when xml2-config is missing?

I am fairly new to Linux (just getting set up using the Mint 16 distro), and I got everything working correctly with my Apache 2.4.9 with MySQL and PHP5.5, but I am using this for local Web ...
0
votes
0answers
707 views

Windows server 2012 r2 IIS PHP

I have php installed on a windows server 2012 r2 box that is running IIS When running a script with a mail function it will hang and eventually bring this error: C:\Program Files ...
0
votes
0answers
95 views

Is mod_fastcgi-2.4.6 compatible with apache2.4.9 CentOS?

I need to install multiple php handlers in apache2.4.9 one php version as apache handler and other one I need to run as mod_fastcgi but while compiling and installing with apache 2.4.9 I'm getting a ...
0
votes
0answers
205 views

How can I compile and install Apache2.4.9 with multiple PHP versions (5.5, PHP5.4)

I have compiled apache2.4.9 and php 5.5 with php5.4 versions php 5.5 version is installed succssfully as apache handler and I tried php5.4 with cgi and enabled LoadModule cgi_module modules/mod_cgi.so ...
-1
votes
1answer
1k views

Why doesn't Google Chrome show PHP in page source?

Why doesn't Google Chrome show the PHP in the source? For example, here's a page I did (mostly with JQuery). I decided to have a small bit of PHP to fetch the IP address and display it (in a ...