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

learn more… | top users | synonyms

5
votes
3answers
678 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 ...
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
2k 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. ...
4
votes
2answers
12k 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 ...
4
votes
2answers
9k 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 ...
4
votes
2answers
9k views

Install PDO-driver for Postgresql

When i run PDO::getAvailableDrivers() i can see that the only available driver is sqlite, and i want to use Postgresql. What should i do to accomplish that?
4
votes
10answers
25k views

How can I automatically take a screenshot of a website at a specified time? [closed]

I need to take a screenshot of a website automatically at a time specified by me. Ideally it would not be using my computer since it's not guaranteed to be on at the specified time. Is there some ...
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
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
3answers
5k views

Changing HTTP_ACCEPT_LANGUAGE

Is it possible to change HTTP_ACCEPT_LANGUAGE? I'm using Firefox.
4
votes
2answers
6k 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
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
1answer
7k 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
19k 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
3answers
217 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
856 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
796 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
3k 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
2k 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. ...
4
votes
1answer
542 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 ...
4
votes
1answer
281 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
465 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
1k 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
3answers
5k 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
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
77 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 ...
3
votes
4answers
2k views

Which is the best and simplest Windows Subversion client I can install to get the Google Client Library for PHP?

My operating system is Windows 7. The google-api-php-client is made available on GitHub, and can be downloaded with Subversion. The documentation provides the exact command line command to download ...
3
votes
4answers
10k 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
1answer
8k views

What is a stopped process in linux?

So I had some PHP scripts running from the command line, and wanted to stop them running. I ran $ ps aux | grep php $ sudo kill 8754 $ sudo kill 8767 And then ran $ ps aux | grep php again to ...
3
votes
2answers
4k 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
11k 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
7k 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 ...
3
votes
2answers
4k views

How do you install PHP PECL extensions with Macports?

I'm using PHP 5.5 installed through Macports. I'd like to add the APCu PECL library. But there's no macports package and I can't see a way to install the PEAR/PECL command line utility. So how does ...
3
votes
1answer
3k views

Apache php_ldap.dll error

I have apache with php 5.4 installed on a Windows 7 64bit machine. When I restart Apache I get the following: PHP Startup: Unable to load dynamic library 'c:/PHP54/ext\\php_ldap.dll' - %1 is not a ...
3
votes
2answers
30k 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, ...
3
votes
2answers
5k views

OSX, Failed to listen on 0.0.0.0:80 (reason: Permission denied)

I'm on OSX Mavericks. I installed PHP 5.5 from http://php-osx.liip.ch/. When I go to localhost in a browser I get a page that says, "It Works!" which is not a page I created so I am not sure where it ...
3
votes
1answer
9k 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?
3
votes
1answer
2k views

Markdown “single page” PHP web application with live preview? [closed]

I would like to know if there is a PHP web application, such that When called with something like http://example.com/index.php?inputfile=mymarkdownfile.txt; it will open the file mymarkdownfile.txt ...
3
votes
3answers
5k 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
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 ...
3
votes
3answers
141 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
10k 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
24 views

Pass arguments from script to PHP interpreter is not working with quotes, why?

I need to create a wrapper script for PHP interpreter (already in PATH): #!/bin/bash # This is a wrapper for the PHP interpreter. # # We prepare the enviroment for SQL Anywhere PHP extension sourcing ...
3
votes
1answer
1k views

make a certain software version the default in ubuntu

I currently have 2 version of php installed on ubuntu 12.04. one for php 5.3 installed using apt-get while the other one is installed with xampp with php 5.5 When i execute these commands: > ...
3
votes
3answers
2k views

PHP: Is it possible to allow login to multiple account of same site from same browser simultaneously? [closed]

I was thinking if it was possible to allow login to multiple account of the same site from same browser simultaneously . Can this be done in php, What would be the logic involved in that case ? I ...