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

4
votes
1answer
2k views

update Eclipse PDT to php 5.5

The current stable php version is 5.5.1. At Eclipse PDT we're however still stuck on 5.4. I tried updating it to the latest version but it doesn't give me any new updates. In preferences - > PHP -> ...
4
votes
1answer
140 views

Convention on directory of file outside /var/www

By /var/www I am generically referring to the document root for Apache. Often times you want to work with files, but don't want them inside the doc root (PHP examples come to mind). The general ...
4
votes
1answer
381 views

Linux server broken packages

So, I'm trying to install the PHP5 cURL package on a Ubuntu Lucid 10.04.3 server. My concern is that there are broken packages on this server and if I install this package with the broken packages ...
4
votes
2answers
424 views

Can I recover a rm -rf-ed Mercurial repository?

I made the mistake of wiping out my entire project directory with a quick "rm -rf project". Of course, the .hg directory went with it. I had about 15-20 changesets, that I have not pushed to anyone, ...
4
votes
2answers
2k views

Error starting Apache with PHP module on Windows: “Cannot load php5apache2_4.dll into server: Access is denied”

I'm having some difficulty installing Apache 2.4.7 with PHP 5.5.7 on Windows Vista Service Pack 2. When trying to start Apache, I'm getting the error: Syntax error on line 176 of C:/Program ...
4
votes
1answer
4k views

How can I add color highlighting for PHP functions?

I've recently begun using Notepad++, and have found a part of its styling functionality that confuses me. I'm currently attempting to color all of PHP's defined functions (such as count(), strlen(), ...
4
votes
3answers
416 views

Is there a way to build my own “Portable” Windows AMP (Apache, MySQL, PHP) Stack?

I know there are things like XAMPP thats portable, but it does not use latest version of the software, can I build my own? I prefer portable stuff as they don't require installs, won't be affected ...
3
votes
2answers
64 views

What are the .php~ files?

I am working on one PHP project, and I am having some files for that. Some of the files have anextension as file_name.php~ What does it mean and how do those files get created?
3
votes
4answers
657 views

What are the benefits of using Linux OS to develop a PHP based website?

in a PHP dev environment I recently visited, the lead dev was adamant that they use Linux on their machines for Zend development. I personally use Windows and have the same results during ...
3
votes
3answers
3k views

phpmyadmin symlinks error after ubuntu upgrade

After the upgrade of my ubuntu server to 13.04 my phpmyadmin is no longer reachable. the browser reports 500 (internal server error) and in the error.log it says: PHP Fatal error: require_once(): ...
3
votes
3answers
15k views

Downgrade PHP from 5.5.3 to 5.4.x in Ubuntu 13.10

During the update from Ubuntu 13.04 to 13.10, PHP was upgraded to 5.5.3. How can I downgrade to 5.4.x?
3
votes
4answers
6k views

permission denied when doing fopen on a 777 permission file in php

Im not new to php or file permissions. But i just migrated an extremely simple script to a new server I setup. The folder which the script runs is in the document root. The permissions for the folder ...
3
votes
2answers
3k views

Convert file to PDF using LibreOffice under user apache (i.e. when using PHP)

I installed libreoffice-headless and can convert documents when logged on into the shell as a normal user. [root@desktop ~]# yum install libreoffice-headless [root@desktop ~]# yum install ...
3
votes
3answers
2k views

PHP code is returned instead of executed

I have L-Ubuntu 11.04. I've installed Apache2 and I'm trying to simulate a server on my local file system by navigating to localhost in the browser. The problem is that I can't seem to get php to ...
3
votes
3answers
5k views

How to convert .PDF and .doc/.docx files to .HTML files?

Does anyone know of any software (preferably open source, Linux or PHP) that can convert both PDF and/or DOC/DOCX (and maybe other document formats too: rtf, txt, etc.) to HTML? I've got ...
3
votes
3answers
2k views

HTTP responses curl and wget different results

To check HTTP response header for a set of urls I send with curl the following request headers foreach ( $urls as $url ) { // Setup headers - I used the same headers from Firefox version 2.0.0.6 ...
3
votes
5answers
6k views

How to find out from Apache what pages cause long loading times?

How can i find out what PHP scripts take longest to load in Apache?
3
votes
1answer
7k views

Using symbolic link directories with Apache, PHP and Windows 7

I am trying to setup a symbolic link for a directory and I am getting the strangest error. I am using: mklink /d C:\www\site\inc C:\inc where C:\inc\script.php is the file I need to run. This ...
3
votes
1answer
825 views

What is the difference between apt-get install php-apc & pecl install apc?

Wanted to setup APC php cache to a fresh 12.04 precise ubuntu box. Do apt-get install php-apctotally replace apt-get -y install libpcre3-dev; sudo pecl install apc? If not what are the differences?
3
votes
2answers
3k views

Compiling PHP on OS X: iconv works only if forced to 64-bit

I'm trying to compile PHP and I kept getting this error during make: Undefined symbols for architecture x86_64: "_iconv_open", referenced from: __php_iconv_mime_decode in iconv.o ...
3
votes
1answer
3k views

How is Apache mapping files without extensions?

My local dev setup is mapping things like http://mydomain.dev/testhtmlpage to testhtmlpage.html and http://mydomain.dev/testphppage to testphppage.php. The browser stays on the orginally enter URL. ...
3
votes
4answers
5k views

why are my mails being sent to junk folder?

I am using my own domain's email address : admin@mysite.com i have a simple email sign up form, where emails entered are sent to admin@mysite.com using php's mail(). i discover it always goes into ...
3
votes
1answer
1k views

NginX+PHP-FPM setup: Why is this configuration workaround needed to properly set PATH_INFO? [Debian7.4]

It took several hours to find out how to properly configure NginX, but I still think I might have missed something. Mainly because this perfectly working setup raises more questions than it answers. ...
3
votes
1answer
194 views

How can two identically named files exist in the same place on linux

. I'm not a novice in linux I created a bunch of files with php using file_put_contents() I can't view the created files via browser I can view the files from the ftp but can't ...
3
votes
2answers
107 views

According to current knowledge where should you store passwords on your server and how do you protect them?

Given is a system of PHP and MySQL on a virtual server. I want to save passwords there. Frequently you hear people speak about their system being hacked and credit card information being stolen. ...
3
votes
2answers
2k views

php startup error Invalid library (maybe not a PHP library) 'pcntl.so'

After searching for hours to solve my problem and found nothing helpful I ask my first question here. I want to compile and install php 5.3.17 cli with pcntl extension enabled on a Debian server. The ...
3
votes
1answer
7k views

Perrmission to run specific command by sudo as www-data users without password

I have a webserver that also plays internet radio. As www-data user I want to run some commands, for example I've made this in /etc/sudoers file: www-data ALL=(ALL) NOPASSWD: /usr/bin/amixer ...
3
votes
3answers
13k views

Unable to remove PHP packages from CentOS, but also unable to update PHP package to PHP 5.3

I have an interesting, albeit infuriating problem with CentOS. I'm trying to configure this server to run a Symfony2 website I've built. The website doesn't work, and I've pinned down the problem to ...
3
votes
3answers
3k views

Changing HTTP_ACCEPT_LANGUAGE

Is it possible to change HTTP_ACCEPT_LANGUAGE? I'm using Firefox.
3
votes
2answers
405 views

PHP application (client) for managing my multiple email accounts

Looking for PHP application which I could use on web server instead of Thunderbird to manage my multiple email accounts* (consolidate them like in GMail). The problem is that I need web-based ...
3
votes
3answers
107 views

How web servers can find each other in a local network?

I would like to build a local network consisting of several computers each of which is running a web server. These web-servers should communicate with each other. But the problem is that IP addresses ...
3
votes
1answer
337 views

What crashed Automake?

When downloading open-source software from the internet (in this case: PHP 5.5.5), they often come with an Automake "script" (if I can call it a script) for building from source. Now I'm trying to ...
3
votes
1answer
83 views

Installed mysql from source on linux and then how to get it work with php?

I installed apache and php from source and got them working together a month ago. Because I'm learning both of them this term. Now I need mysql to do more works. And I installed mysql from source just ...
3
votes
1answer
438 views

Yum update on Fedora with option

is possible to install PHP with option --enable-pcntl (compile flag) with yum on Fedora 14? I would like turn on pcntl support for my php scripts but I don't want to compile PHP. Update: Thats it, ...
3
votes
2answers
415 views

Installing python through pecl - how do I “specify path to Python distribution files”?

I have found several instances where this question has been asked, but never answered. This is the part where the installation goes wrong checking for Python files in default path... not found ...
3
votes
3answers
912 views

PHP 5.2 and PHP 5.3 on mod_php (apache) on Ubuntu 11.04

I have to develop both on php 5.2 and on php 5.3. I need those two versions installed on my system and ability to switch fast between them. One solution I found is to upgrade/downgrade everytime I ...
3
votes
1answer
5k views

How to install PHP, Pear, PECL, and APC with Homebrew on Mac OS X?

I'm trying to install APC for PHP 5.3 in the easiest way possible. I love Homebrew so I started down that route. I was able to install PHP 5.3.6 with this command: brew install ...
3
votes
2answers
612 views

Reverting PHP to 5.2 from 5.3 in Lucid 10.04

I recently upgraded my main development laptop to Lucid. Lucid upgraded PHP to 5.3 and as I'm mainly a PHP developer, this has caused quite a few problems. What's the easiest way to revert back to the ...
3
votes
1answer
797 views

WAMP not working anymore

I had been successfully using WAMP on my PC for a year or so but after I got internet connection through LAN, I noticed that WAMP has stopped working. When I go to http://localhost or http://127.0.0.1 ...
3
votes
1answer
612 views

Self hosted drop.io clone? [closed]

Anyone have any pointers to some LAMP-based code to get the functionality of drop.io (send large files) on a self hosted site?
3
votes
1answer
228 views

CLI stopped working when running php artisan serve - Laravel 4 Win7

I added a path to my environment variables : C:\wamp\bin\php When I run the command php artisan serve it says Laravel development server started on `http://localhost:8000` But after that a dialog ...
3
votes
1answer
524 views

Can't access wiki site through any other computers on my LAN

I am trying to set up an internal wiki site for my company. Product info, specs that sort of thing. I have downloaded and installed WAMP Server 2.2 (Apache 2.2.22 MySQL 5.5.24 PHP 5.3.13) as well as ...
3
votes
3answers
2k views

How to log php error in a separate file?

I just did an upgrade of my server to Fedora 17 and merged some configuration files containing .rpmnew into the existing ones. I have been successfully logging my php errors in a separate log file by ...
3
votes
1answer
557 views

How to completely remove MySQL files from my windows computer

I have recently installed apache, php, and mysql. Apache and php are configured properly, but when I tried to configure mysql it shows that there is already a security file for mysql that is setup and ...
3
votes
2answers
3k views

How do I upgrade PHP on CentOS and Kloxo?

I need to upgrade PHP so that I can upgrade joomla on my dedicated server. I have: kloxo 6.1.6 php-5.2.17-1 Linux CentOS-55-64-minimal 2.6.18-194.32.1.el5 x86_64 x86_64 x86_64 GNU/Linux I searched ...
3
votes
1answer
481 views

PDT/PHP plugin in Eclipse in Ubuntu not working - “page not found” error

I am not having success getting the PDT (PHP Development Tools, SDK 2.0.2 and 2.1.2) plugin to work in Eclipse in Ubuntu 11.04. I encounter the following page when attempting to run a php file: Not ...
2
votes
1answer
83 views

What is the PHP config ini files prefix good for?

Out of nothing but curiosity: Why are the symlinks in /etc/php5/conf.d prefixed with either "10" or "20"? E.g. 20-pdo_mysql.ini and 20-curl.ini I'm running Debian and installed PHP from the dotdeb ...
2
votes
3answers
141 views

Linux Web Server

I'm looking to set-up my own local web server using Linux, to allow me to run and develop PHP applications using Apache and MYSQL. Can anyone recommend the best distribution of Linux server to use. ...
2
votes
1answer
282 views

How to use PHP scripts?

I found a script for converting m3 files (3D models used in Starcraft 2) to obj files, but I do not know how to use it. All the information I got was "Well, here is the script.", so I cannot really ...
2
votes
4answers
954 views

How do I access this code that my friend sent me?"

It's a .php file, and he sent it as an attachment which I received on my mac through microsoft outlook. When I open up the file, I get this text message: "This attachment was removed because it ...