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
1answer
251 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
198 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
588 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
701 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
644 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
67 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
559 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
991 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
141 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
949 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
665 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
86 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 ...
0
votes
1answer
388 views

How to make CSS and other fonts show on default Chrome Printing

I'm printing a page of my PHP application with the ( ctrl + P ) (default printing). How can i make sure that the CSS (tables, padding, cellspacing, background picture with opacity) are printed along ...
1
vote
1answer
1k views

How to hide URL Path in PHP Print Out

I'm printing a page of my PHP application with the ( ctrl + P ), at the base of the printout, the url path is shown..i.e http:// localhost:8080/student/result.php how can i hide this or customize it. ...
-1
votes
2answers
318 views

PHP page comes up blank on this Mamp setup

I installed MAMP on this Mac OSX 10.6.6. A phpinfo test seems to say that PHP is installed. But when I open a file (e.g. index.php) in the browser, it comes up blank. What could be the problem?
0
votes
1answer
78 views

Enabling PHP on the Mac

I have done all the steps for enabling php on the Mac: edited httpd.conf to uncomment loadmodule for php verified that php.conf has the right information have web sharing enabled But the apache ...
0
votes
1answer
932 views

PHP web application can't connect mysql installed with Zend Server CE on Mac OSX

I'm setting up development environment on Mac OSX. However the PHP web application can't connect the mysql server installed with Zend Server CE. The error information is below, [Type] dbnot_connect ...
2
votes
2answers
2k views

ffmpeg works on terminal not with PHP exec

If I execute a ffmpeg command from terminal, I get the desired result: ffmpeg -i src.mp4 -ar 22050 -ab 32 -f flv -s 320x240 video.flv Terminal's output ... video:3404kB audio:1038kB global ...
0
votes
0answers
1k views

Running out of memory, fork can't allocate memory

We are getting out of memory frequently, as well fork cannot allocate memory. I did some investigation. It seems that scripts are not case as I thought before this. I will share information which I ...
1
vote
1answer
5k 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 ...
7
votes
5answers
17k views

How to rename multiple files in multiple folders with 1 command

We want to rename our *.html files to *.php but (sadly enough) have not enough knowledge to do it with a dos batchfile and/or cmd prompt command. The problem is that each file is in seperat folder ...
1
vote
2answers
733 views

Can a web server and XBMC HTPC co exist happily? [closed]

I have a machine that is currently dedicated to running my home theatre. It is way more powerful than it needs to be, and spec wise would have no problem running both a few websites and an HTPC What ...
5
votes
2answers
283 views

modify 128 bytes

I have to replace on a linux webserver, the first 128 bytes of some binary files. The files have a size of ~ 5Gb and I just have to rewrite the header bytes. What would be the best aproach to do this ...
0
votes
1answer
99 views

no php/asp/scripts to send a form

'm working on developing a server in java to embed it into a new programming language as a part of run time support. I don't want php/asp or any script support, but I need to send requests from html ...
1
vote
0answers
208 views

PHP Report Maker 5 Export Feature

Is there a way to add a default header for an exported report in PHP Report Maker. For example, if i choose Export to Word, it will automatically generate the header and footer that is appropriate to ...
2
votes
4answers
6k 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 ...
0
votes
2answers
809 views

Scanning directories in my Network via PHP

I want to read all directories of a specified directory via PHP. (unfortunately Im not good enough in VB/C/Java to make a more efficient workaround) With this code, I could read all files from /tmp/ ...
10
votes
1answer
515 views

Different background color for multiple filetypes in vim

Is it possible to have different background colors in vim (ie. one light, one dark) when dealing with files with multiple filetypes (ie. :set ft=html.php)? In PHP code with HTML embedded, it can be ...
0
votes
1answer
1k views

Lighttpd + PHP permission problems on Fedora

I'm trying to set up a Lighttpd webserver with PHP support. I have basically followed the instructions in this article, but after restarting the server (though I did not receive an error message and ...
3
votes
3answers
15k 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 ...
0
votes
1answer
412 views

Is there a way of parsing a PHP script but not executing/running it?

I know that you can run php -l filename.php to run a syntax check on a file, but is there a way of parsing the file without actually executing it (ie without running any of the in-built PHP functions) ...
0
votes
1answer
234 views

VMWare Fusion on Mac w/ Ubuntu - Setting up shared LAMP Environment

I recently purchased a Mac and installed VMware Fusion and Ubuntu. I've setup LAMP on Ubuntu and setup a mirrored folder between the mac and ubuntu. I want to be able to do my development on the Mac ...
1
vote
1answer
322 views

PHP code can’t read MySQL database

I have installed WAMP server and created some tables and databases in MySQL from the command line. I am trying to use phpMyAdmin to access MySQL but they do not show in phpMyAdmin, nor can my PHP code ...
4
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 ...
1
vote
3answers
6k views

Installing cURL on Ubuntu

Am trying to install cURL on my ubuntu server using the command sudo apt-get install php5-curl However i get the following error Reading package lists... Done Building dependency tree Reading ...
1
vote
0answers
61 views

PHP: error when requiring PEAR.php

I'm having an include path problem: get_include_path() returns .:/usr/share/php:/usr/share/pear Pear.php is in /usr/share/php: # ls /usr/share/php Pear.php but require 'Pear.php' gives me a ...
0
votes
0answers
121 views

Tooltips for custom function signatures in TextMate

I'm using TextMate, and there is a good short key to see "documentation for function call (tooltip)". But it works only for PHP-internal functions. It would be good to have this functionality for ...
1
vote
1answer
2k views

PHP files are downloaded instead of getting interpreted

I'm encountring some difficulties with my Apache2/PHP5. All was well-configured and working, but after reinstalling apache2, the PHP files are displayed without being interpreted. I tried many ...
0
votes
1answer
159 views

xampp plus apache php mysql separate installers

I am wondering, having my system currently installed with XAMPP, is it okay if I will install another Apache, PHP, mySQL (separate installers)?
0
votes
2answers
629 views

ubuntu 10.04 command “# type php” returns nothing

I have 2 LAMP servers with ubuntu 10.04... both with php5 successfully installed. on server1 i run the command # type php in terminal and the response is: "php is /usr/bin/php" however in server2 I ...
2
votes
2answers
2k views

Installing PHP/Apache on Windows XP

I'm trying to install an Apache web server with PHP on my Windows XP Pro box, but I'm not having any luck. I'm trying to mimic a production server, so I'd rather not have the latest. The prod ...