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

1
vote
1answer
6k views

How to upgrade libxml on CentOS

I have a following version of CentOS: $ cat /etc/issue CentOS release 5.5 (Final) Kernel \r on an \m and following version of libxml: $ php -i | grep libxml libxml Version => 2.6.26 libxml ...
2
votes
2answers
129 views

Detect filetype in narrowed region

I am using the terrific NrrwRgn plugin. I often edit XML files with PHP in CDATA sections, so in the narrowed buffer I get this: <![CDATA[ $foo='bar'; doSomething($foo); ...
0
votes
1answer
774 views

How to get media info with PHP? [closed]

I have several movies with "mov" and "mkv" extensions on my server and I want to get media info like size, time, audio streams, video streams etc. via PHP. Is it possible?
0
votes
1answer
236 views

Url rewrite rule [closed]

How to redirect a page form show.php?id=(15charstring) to show/(15charstring) I tried like this it is doing reverse means it is redirecting /show/(15chars) to show.php?id=(15chars) RewriteEngine on ...
1
vote
3answers
3k views

How to setup VIM for php development?

I have been trying a lot (but not smartly) to figure out setting up VIM, ctags, omnicomple for PHP development. On Googling I found this file. But have no clue how to use it. What have I done until ...
1
vote
1answer
941 views

How to execute home directory shell script file in php

How to execute /home/scripts/test.sh file in php Previously i have placed 'test.sh' file in the /usr/bin and calling in my php file like this exec('test.sh ' . escapeshellarg($testString)); But ...
0
votes
3answers
312 views

Windows batch command equivalent for these PHP and Bash commands

What are the equivalent commands in Windows if I have these commands in Linux? if (!is_dir('geoip')) mkdir('geoip', 0744); shell_exec('unzip -oj GeoLiteCity.zip -d geoip/'); shell_exec('rm -rf ...
1
vote
2answers
3k views

How do I locate php.ini?

I installed php on the server and php_info(); displays: Configuration File (php.ini) Path /home/gmcnulty/php However, I don't see anything there nor do I see any php directory? How do I ...
0
votes
1answer
559 views

Why does phpMyAdmin display an error with this setup?

Trying to setup phpMyAdmin for the first time with MySQL. I just created the config script with the wizard as follows: $i++; $cfg['Servers'][$i]['host'] = 'http://server_name_here.edu'; ...
0
votes
1answer
90 views

Emacs indents after a line starting with a hash in php-mode

I suspect this has to do something with the C/C++ indenting php-mode indenting is based on, however the hash symbol in PHP just indicates a single-line comment and is not a reason to indent the next ...
0
votes
2answers
218 views

PHP crazy behavior on mount

I have a mount to my windows machine on a linux machine. When I try to run any php scripts there it says it's not found, however, when i copy the files to the local storage it runs with no problem. I ...
0
votes
0answers
197 views

sudo: a tale of two folders

I have 2 folders: drwsrwsr-x 25 ftpuser www-data 4096 Jun 7 13:45 demo drwsrwsr-x 28 ftpuser www-data 4096 Jun 7 12:43 dev and a script to create a folder within these. When I run the script ...
1
vote
1answer
3k views

How to change the configure command for PHP

I need to enable Freetype for PHP's GD, and I'm getting absolutely nowhere trying to figure out how. According to this article I need to change the configuration command, but I have no clue where to ...
0
votes
3answers
408 views

Redirecting HTTP traffic from a local server on the web

I have a web server (let's call it C1) that is running an Apache/PHP server and it is port forwarded so that I can access it anywhere. However, there is another computer within the web server LAN that ...
2
votes
1answer
2k views

Weird Apache error - Apache hangs & needs restarting regularly

I've been recently receiving this weird error where Apache just becomes unresponsive and completely stops until it is manually restarted. It gets to a point where I can not longer retrieve apache ...
-1
votes
1answer
187 views

Web Server for SVN+PHP+Django+Rails [closed]

Foreword: I am not asking for the differences between Nginx and Apache, nor do I want to start a "which one is better discussion. I would like to ask for help with choosing the most adequate solution ...
1
vote
1answer
565 views

SSD causing 100% CPU usage in Apache/PHP

I wanted to increase the performance on my development laptop so I added an Intel 320 Series SSD as my primary drive. Everything is amazingly fast, as expected, except Apache/PHP. I develop Magento ...
0
votes
1answer
107 views

Local Apache won't send PNGs correctly

Can't figure this out: Yesterday my local Apache config was sending PNGs just fine, today the browser is trying to decode them as JPGs and thus, only showing a "missing image" error despite returning ...
0
votes
1answer
387 views

Issue with PHP and osx 10.7 - runs via command line but not in browser

I recently removed MAMP as I wanted to have more control over my machine and wanted to make use of PHP5.4 I installed using the script located here I cannot now not even get my default PHP that is ...
1
vote
1answer
510 views

Upgrading php - Errors were encountered

Running debian 4.0 Trying to $ apt-get install php5 I get Reading package lists... Done Building dependency tree... Done php5 is already the newest version. 0 upgraded, 0 newly installed, 0 to ...
0
votes
3answers
704 views

What are the correct permissions on Mac to run PHP?

I enabled Apache2 and PHP 5.3 on my Mac Mini and have setup a virtual host. However when I browse to http://{MyVirtiualHost}/Index.php I get the error: You don't have permission to access ...
3
votes
1answer
1k 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 ...
1
vote
2answers
238 views

Is there a way to file the cause (or target file) of disk write operations in linux (RHEL6.1)?

I have a virtual machine with a php based application (in apache) on it, when looking at disk activity there is a constant 170kbps write when apache is running. When we apply load then the ...
1
vote
2answers
590 views

Looking for PHP memory/CPU graph generator [closed]

Basically, that's what I'm looking for. I want an app that makes a live graph of the server's CPU and RAM usage. Is there anything like this?
0
votes
1answer
1k views

Give permissions to www-data user to run a local script

I actually try to launch a gnome-terminal with a PHP script, and seems I have some problems with the users www-data; My script only makes an ls -l command in a directory (is just for a test) and I ...
0
votes
1answer
137 views

Bitnami Stack copying via SSH

Hello Wonder if anybody can help. I'm new to SSH & linux, and going through setting up a server. I'm picking up bits and bobs of bash ok, and remembered someone suggested using bitnami stack for ...
3
votes
3answers
3k 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 ...
1
vote
2answers
258 views

How can I design a Custom gateway for wifi

I once logged-in to my router (192.168.1.1) and noticed that alot of my neighbors are connected to it, probably more than 16 different IPs/MAC adresses are stored in my DHCP logs. After I have setup ...
0
votes
1answer
145 views

apache file requests and parsing

I have just run into an interesting situation at work that shot to hell my understanding of how apache2 executes php files. I was under the impression that apache2 would determine the correct file ...
0
votes
1answer
253 views

PHP 5.4.3 RPM and steps of installation?

Can someone please point me a PHP 5.4.3 RPM that includes mysql and PDO ? I appreciate if someone can guide me or give me link to step by step installation of rpm. I have redhat linux. (gcc version ...
1
vote
1answer
1k views

“php: command not found” after changing PHP system files in OS X

I wanted to install Symfony on Mac OS X Lion. Apparently, as MAMP was already installed on my computer, there was a problem with the "timezone" field in the php.ini file. I can't remember exactly the ...
0
votes
1answer
5k views

Steps to install PHP 5.4.3 from rpm and yum?

I got a link saying following steps of installation of PHP 5.4.3. rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm yum install php54w Can i use above method safely? Or any other rpm that i ...
0
votes
0answers
206 views

VirtualBox host OS fake IP for apache

I have apache installed on the guest machine. But in many scripts I have following condition: if (!in_array(@$_SERVER['REMOTE_ADDR'], array( '127.0.0.1', '::1', ))) { header('HTTP/1.0 403 ...
1
vote
1answer
646 views

How to Create Subdomains with CakePHP? [closed]

Does anyone know how to create a subdomain with cakephp? For example: www.domain.com/subdomainname like this without any additional characters attached to the subdomainname.
4
votes
2answers
742 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 ...
0
votes
1answer
708 views

Apache and PHP with cURL

I am running Sun server with Solaris 10/SPARC. I had/have Apache 1.37 with PHP 5.2.1 running as a dynamic extension, and want to enable cURL support. I have tried to re-compile PHP with the ...
0
votes
1answer
69 views

What's the minimum requirement to run xdebug developement?

I've a very inexpensive virtual server but I get regular stuck in my developement with xdebug and Typo3 websites. Currently I'm running sshd, ftp, xdebug, mysql, postfix on my server and it's only for ...
0
votes
1answer
2k views

ZIP support not found: SugarCRM needs ZIP support in order to process compressed files

Ok, trying to install SugarCRM and I seem to be failing horribly. Everything is uploaded. Folders have write privlages (777 currently for the moment) PHP Memory limit is at 256M extension:php_zip.dll ...
1
vote
1answer
583 views

Upgrade php from 5.2 to 5.3 on lenny

I (among other things) manage an older debian Lenny server - and now have a need to update PHP from version 5.2 to 5.3 (we currently have 5.2.26 installed). This is required to support some of the ...
0
votes
1answer
2k views

Autocomplete user defined function/variable names in Coda

Is it possible natively, or is there a plugin, that will use Coda's autocomplete function for user defined methods and variables?
0
votes
2answers
1k views

How does Thunderbird Send Email?

Well, the title might be a bit misleading, but I couldn't find a better way to describe my question. I tried to set up my machine to send email via the php mail() function. It turns out I can't. My ...
0
votes
1answer
143 views

VIM: Highlight += with a background

I have been coding in PHP lately, which is weakly typed so integers are added with += but strings are concatenated with .=. That means that I wind up using += where I shouldn't and PHP actually then ...
0
votes
2answers
2k views

php build error: /usr/bin/ld: cannot find -lltdl

I am not a build guru and could use a pointer. I'm trying to make php5 on linux. I have successfully run config. I run make and get the following error: /bin/sh libtool --silent ...
1
vote
2answers
982 views

Configuring PHP on Windows 7 with Apache Web Server

I already have an Apache server (2.2.22) up and running on my local machine, and have been using it to serve back static content. I am now trying to install PHP (5.2+) so I can get Apache serving ...
1
vote
0answers
717 views

cannt run phpunit tests on bash ubuntu 11.10

I'm working with Ubuntu 11.10 as root on my local machine, I've installed xampp 1.7.7 and While following a tutorial on sitepoint on how to install pear to use PhpUnit, I didn't notice it then, but ...
0
votes
1answer
1k views

How to convert .flv to .m4v files through FFmpeg

I want to convert FLV files to M4V files. What is the exec (PHP) Linux code for this conversion?
6
votes
2answers
1k views

How can I enable readline for PHP 5.4 on Ubuntu 11.10?

I installed PHP 5.4 on my Ubuntu 11.10 PC like this: $ sudo add-apt-repository ppa:ondrej/php5 $ sudo apt-get update $ sudo apt-get install php5 It's working fine but I don't have the readline ...
0
votes
1answer
6k views

CentOS 5.8 Server, manual install PHP 5.2.17

I would like manually install PHP 5.2.17. I manage to install httpd and mysql. But when I want to PHP 5.2.17, I could not found a proper guide. These the step I had done with a fresh installation of ...
0
votes
1answer
87 views

PHP Input Output is stuck? [closed]

<?php mysql_connect("localhost", "root", "pass") or die("Could not connect: " . mysql_error()); mysql_select_db("smcs"); $result = mysql_query("SELECT * FROM others"); $row = ...
0
votes
1answer
2k views

Installing php_apc.dll on wampserver

I need your help. I'm trying to install php_apc.dll into my php directory. So far this is what i've done: I copied php_apc.dll to c:\wamp\bin\php\php5.3.0\ext. I've also restarted the server ...