PHP is a widely-used general-purpose scripting language that is especially suited for Web development.

learn more… | top users | synonyms

5
votes
2answers
5k 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 ...
5
votes
2answers
6k views

MediaWiki: increase session timeout

I have a small MediaWiki wiki in a hosted website. It works pretty well, except that I can't find where to configure the session timeout. Right now, my session expires while I'm editing pages. I've ...
5
votes
1answer
812 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 ...
5
votes
6answers
768 views

Server uptime checker? [closed]

I want to monitor my server's uptime. Is there some free application or a really good paid service that offers this? Obviously, I can't write something that is hosted on the server whose uptime I am ...
5
votes
1answer
716 views

Making Apache use compiled PHP instead of bundled package on Debian

My ultimate goal is to install OwnCloud on my Debian box, a 64-bit squeeze. My setup is pretty simple. I have installed OpenPanel which in turn installs all of the required LAMP modules via APT-GET. ...
5
votes
1answer
5k 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(), ...
5
votes
2answers
255 views

is there any way to find out how I was hacked? What was the weak point?

one of my site hacked few times :( first I lost all databases, some tables were cleared and some of table's data had changed! than at the second hack, all tables were cleared and some php files' codes ...
5
votes
4answers
972 views

Flash drive friendly (portable) XAMPP alternative?

I'm trying to setup a portable MediaWiki wiki on a flash drive using XAMPP portable as a server. http://lifehacker.com/354005/run-your-personal-wikipedia-from-a-usb-stick When I try to start apache ...
5
votes
3answers
751 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 ...
5
votes
0answers
207 views

High CPU usage running Symfony on PHP-CLI

I have a Dell laptop with Intel i7 5th generation running Windows 10 x64 and PHP 5.6.17 x86 environment. When I run a fresh installation of Symfony 3.0 using php-cli: php bin/console server:run In ...
5
votes
3answers
6k 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 ...
4
votes
6answers
6k views

Install multiple PHP environments on OS X Snow Leopard

I just upgraded my MBP to Snow Leopard (OS X 10.6), which took PHP to 5.3 This is great, except I use my MBP as my development machine and I use a lot of PHP libs and frameworks (namely CakePHP 1.2) ...
4
votes
7answers
219 views

Corporate site filter

Alright so my work blocks a bunch of websites for obvious reasons. They even blacklisted logmein.com so thats out. I feel that I am capable of getting all my work done AND keeping up with my warfish ...
4
votes
1answer
3k views

PHP Fatal error: Call to undefined method PEAR::raiseErro() in /usr/share/php/PEAR/REST.php on line 165

when running pear upgrade the following error is raised: PHP Fatal error: Call to undefined method PEAR::raiseErro() in /usr/share/php/PEAR/REST.php on line 165 PHP Stack trace: PHP 1. {main}()...
4
votes
2answers
13k views

PHP Warning: PHP Startup: Unable to load dynamic library php_mysql.dll, Mac 10.6, Apache 2.2, php 5.3.0

I'm trying to use the PHP CLI, and when I enter something like php test.php in the command line it returns: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-...
4
votes
3answers
11k views

how to change path of php ini windows

I've downloaded php, addeded it to my path and im trying to enabled openssl php --ini tells me that configuration file is c:\windows which there was nothing there, I dont want to copy php into c/...
4
votes
2answers
33k views

Configuring Aptana 3 to work with PHP & XAMPP

I have installed XAMPP and aptana. But when I run my php file it shows me a text format of it. (I've started XAMPP in the background) What did I do wrong? Edit: Now I think I found the problem, ...
4
votes
3answers
6k views

Changing HTTP_ACCEPT_LANGUAGE

Is it possible to change HTTP_ACCEPT_LANGUAGE? I'm using Firefox.
4
votes
3answers
21k 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?
4
votes
1answer
10k views

Editing PHP in Microsoft Visual Studio Express 2012

Is there a way to install something in VS Express so I can edit PHP in VS Express Web and have the program color the text like in HTML and JS?
4
votes
1answer
1k views

Escaping Variable in Cat

I'm trying to write a shell script over ssh via a bash prompt. The shell, however, insists on interpreting any variable I want to write instead of writing it directly to file. For example, cat <<...
4
votes
3answers
3k 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 ...
4
votes
2answers
8k 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. ...
4
votes
1answer
2k views

VP8 and WebM, not working in ffmpeg-php

I need a help with ffmpeg-php and Ffmpeg. Ffmpeg: ffmpeg version 1.0.git built on Oct 6 2012 01:54:50 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4) configuration: --enable-gpl --enable-libmp3lame ...
4
votes
1answer
23k 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 ...
4
votes
2answers
7k views

Unable to use Google Chrome as the external browser in Eclipse

I'm trying to use Google Chrome as the external browser for Eclipse PDT. I always get the following error: Could not launch external web browser for http://... Check the Web Browser preferences. ...
4
votes
3answers
8k 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 "PDFtoHTML"...
4
votes
2answers
2k views

How do I install php5 via MacPorts with a custom configure option?

So MacPorts is the most painless way of installing stuff on my machine. But I want some custom options on my php5 install. How do I do this? With a downloaded version of php, I would do this: ./...
4
votes
1answer
2k views

Eclipse as editor for FileZilla. How do I configure it?

I've decided to switch from Netbeans IDE to Eclipse PDT. I use FileZilla to edit files on FTP. I wish to use Eclipse PDT as default file editor for FileZilla. I opened up FileZilla, went to Edit > ...
4
votes
2answers
4k views

PHP CLI not respecting memory limit in php.ini

I am using drush, which is a command-line php app to manage a drupal website. I am running a command to import a lot of data, which is causing me to hit php's memory limit. PHP Fatal error: Allowed ...
4
votes
3answers
222 views

How to get a static version of my site?

I need to save a static version of my site by using the sitemap which has about 400 URLs. What is the best way to do that?
4
votes
2answers
898 views

Execute PHP files in mounted directory from VirtualBox host system is not working

I've set up a VirtualBox with a Debian 6.0 to act as a webserver. The host machine is my PowerBook running OS X 10.7.3. Under /User/cb0/Sites I have a webproject in symfony that I used to develop ...
4
votes
8answers
814 views

Fullscreen (distraction free) PHP editor [closed]

I'd like to know if there is an editor that has PHP code completion and has a fullscreen (not the way komodo edit or notepad++ have) like gedit. I've been searching for some but couldn't find any.
4
votes
1answer
4k 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
626 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 change/download/...
4
votes
3answers
23k 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 ...
4
votes
1answer
7k views

How can I remove Apache2 that I have installed in Mac OS X?

A while ago I thought that it would be handy to install Apache2 on my MacBook and not go the easy route by just installing MAMP. However now I’ve changed my mind but I can’t simply delete Apache2. I’...
4
votes
1answer
298 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
2answers
6k 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 ...
4
votes
2answers
478 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
3k 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
0answers
2k views

Apache2 + Php + Pthreads HowTos

I'm running Ubuntu 14.04 LTS 64 bit. What I would really love to do is sudo apt-get install libapache2-mod-php5 but compile PHP with --enable-maintainer-zts so I could later install pthreads with pecl ...
4
votes
2answers
4k 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
2answers
79 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
1k 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 development....
3
votes
3answers
2k views

Coloured output when tailing php error log

I'm trying to find a way (through escape characters or software) to display coloured lines in my php error log. Right now I'm reading from them (live) with tail -n 50 -f /var/log/apache2/error.log ...
3
votes
4answers
12k views

Copy entire website including PHP and SQL?

Is it possible when copying an entire website and template using wget (httrack or other program) to also get the PHP code and the SQL database? What software would I need to copy/mirror a site like ...
3
votes
2answers
5k views

php-cgi.exe as a windows service

I am trying to start PHP as a service, I run this command: C:\Windows\system32>sc create PHPSERVER binpath= "C:\php\php-cgi.exe -b 127.0.0.1:9000" start= auto [SC] CreateService SUCCESS But the ...
3
votes
4answers
13k 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
3answers
2k views

After upgrading PHP to version 7, why can't I use the mongodb driver?

Well here's an odd situation I've found. I've been using PHP and MongoDB together on a project, and updated the associated software. After the upgrade, I did make sure to update the new conf files and ...