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
403 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
532 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
731 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 ...
2
votes
2answers
247 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
623 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
138 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
267 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
257 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
2k 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
6k 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
207 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
697 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
769 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
747 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
73 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
589 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
144 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
1k 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
742 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
2k 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 ...
0
votes
1answer
434 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
356 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
79 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
989 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
3k 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
2k 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 ...
2
votes
1answer
7k 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
20k 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
759 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
290 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
103 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
242 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
7k 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
916 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
574 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
17k 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 ...