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

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
864 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
540 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
427 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
242 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
345 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
4k 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
7k 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
124 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
163 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
641 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 ...
1
vote
2answers
121 views

All-in-one PHP solution to share files?

I have enough hard-disk space on a PHP-capable hosted site so I can host the files there instead of my work PC at home. I was wondering if someone knew of a good, light PHP server application that ...
1
vote
1answer
202 views

In PHP is it ok to use ?> TEXT <?php instead of echo() [closed]

For example: I have a php file like this: <?php if ($var == true) { ?> <p>Some text here</p> <?php } else { ?> <p>Some different text</p> ...
0
votes
1answer
3k views

How to connect to localhost port from android?

I have EasyPHP server on my local computer. I am making program that is connecting to PHP scripts and returns me result to my local PC. Everything works nice I am using 127.0.0.1:8888 address and ...
3
votes
1answer
479 views

Yum update on Fedora with option

is possible to install PHP with option --enable-pcntl (compile flag) with yum on Fedora 14? I would like turn on pcntl support for my php scripts but I don't want to compile PHP. Update: Thats it, ...
1
vote
1answer
924 views

Set php mail() function to use smtp authentication

So, how can I set php's mail() function to use smtp authentication? I have a web server and then an mail server. All company's email, incoming or outgoing, passes through the mail server and I was ...
0
votes
2answers
312 views

Fix for php 5.3.9 libxsl security “bug” fix

just this morning i updated my debian server to php 5.3.9 , change log (last item in list) has a fix for this bug and now when running any hosted site using XSL transforms i get: Warning: ...
1
vote
1answer
158 views

How can I get the PHP linter output right in vim on Windows?

I'm using PHP linter to check syntax errors in PHP , right from vim with that command : :!PHP -l "%" when I do that, ( I'm on Windows ) , Windows open another CMD and the result of the parsing is ...
1
vote
1answer
799 views

Finding where a variable or object was declared Netbeans

In Netbeans PHP if you control + mouse1 click on an object or variable it will go to the initial declaration, if it's in the same script. But is there any way to make it go to the initial declaration ...
1
vote
0answers
595 views

How can I run a PHP CLI program in the console in Eclipse PDT?

I can only open PHP Command-line Interface programs in browsers in Eclipse PDT. I want to run it in the command line so that I can get the user's keyboard input.
1
vote
0answers
957 views

Couldn't start apache

I've installed xampp 1.7.7 on windows 7 x64 and imported configuration files from 1.7.7. With default php.ini which is shipped in 1.7.7, apache start, but the web pages are browsed white pages and at ...
0
votes
1answer
53 views

Diffing a PHP class file

I'm looking for a program that can diff/merge code files, and be aware of method names. Currently, I'm diffing two files in WinMerge - one is a class called Core_Search, the other is a class called ...
0
votes
2answers
2k views

PHP ssh extension

I'm trying to install the ssh extension of PHP following this article. My machine is a Linux mpriki 2.6.26-2-686 #1 SMP Mon Jun 21 05:58:44 UTC 2010 i686 GNU/Linux (lenny13 distrubition When I type ...
0
votes
2answers
416 views

Undo saved file after close

I've lost a very important file, because when I'm working on it, and I decide to test something there, I've deleted a very important part in it, and then my PC shuts down, so now I have missing a very ...
0
votes
2answers
441 views

Panic - Coda. Code navigator doesn't recognize PHP

So, its simply began to be too lazy to parse my php code and it doesn't show anything. Only comments. No functions, no classes. How can i fix it? Syntax-mode is correct: PHP-HTML.
3
votes
1answer
602 views

How to completely remove MySQL files from my windows computer

I have recently installed apache, php, and mysql. Apache and php are configured properly, but when I tried to configure mysql it shows that there is already a security file for mysql that is setup and ...
2
votes
1answer
815 views

Can't install Gearman on Red Hat

I'm having problems installing Gearman from Red Hat on Amazon. I couldn't find a repo so I downloaded Gearman version .25, installed it and installed drizzle from their repo using: yum install ...
0
votes
1answer
44 views

Disabling a root password for a PHP website

I have transferred a PHP/mySQL site to a different ISP. The clients want to protect access. I don't really want to change the Admin login - that is programmed using salt. I was thinking of creating a ...
0
votes
1answer
444 views

Code Completion using CodeIgniter on Espresso

I have downloaded Espresso to use as a PHP (CodeIgniter) IDE, but it appears that Espresso doesn't have code completion for CodeIgniter. Is there anyway that I can enable the code completion in ...
1
vote
3answers
2k views

How to keep PHP and MySQL of ampps as default in MacOSX?

I'm using MacOS X 10.6.2. I want to use AMPPS http://www.ampps.com/ as my local development server so my question is how do I keep my AMPPS PHP & MySQL default?
3
votes
2answers
4k views

Error message: sudo: mysql_secure_installation: command not found

I'm trying to learn PHP and I'm just in the process of installing apache,msql and PHP. I'm on a mac osx 10.7.2 I downloaded: mysql-5.5.18-osx10.6-x86_64.dmg I'm now at the point of setting the ...
0
votes
1answer
48 views

Allow Verified Users Only To View Directories

I want to upload some websites I have worked on to an Apache server. What I would like to do though is to use an .htaccess file or something similar to redirect the user to a login page if they go ...
1
vote
1answer
588 views

How to access virtual serial port using PHP?

I'm trying to send an SMS via a 3G Modem with php, but I can only access com1. I can't access com3 (the 3G modem) because it's a virtual serial port. Does anyone know how to access a virtual serial ...
1
vote
1answer
126 views

Enable PHP extensions on Windows system

I'm using Apache 2.2 along with Windows 7. I just need to enable MySQL extension to work. Its okay when I'm using windows binary (.msi). But when I'm trying with .ZIP file, MySQL extension is not ...
2
votes
2answers
17k views

http://localhost:8080 is not working on running apacher Server through XAMPP

I am unable to configure a PHP/MySQL/Apache environment on my local machine using XAMPP. In my xampp control panel the Apache and MySQL status is shown as started, but localhost URL is not working. ...
1
vote
0answers
83 views

apache error message on every system restart

Every time I restart my computer, Apache "has encountered a problem and needs to close". I have Windows XP Professional SP3, and am running Apache 2.2. Here is the screen I get when I click the "more ...
2
votes
1answer
549 views

Amazon EC2 (Linux) + RDS (MySQL) + PHP + pdflatex = LaTeX to PDF online

I would like to have a website capable of converting LaTeX documents to PDF online. So for example user types in some raw LaTeX (document), I'm saving it into my MySQL database and I'm able to convert ...
0
votes
2answers
553 views

In Vim, I'm trying to have all class methods fold automatically when I open a file

When I open a PHP file that contains a class, how can I have Vim automatically fold the document up like this?:
0
votes
1answer
363 views

PHP on IIS7 not showing pages

I have a PHP website on a Windows 7 machine I'm working with and it cannot be viewed by any browser - IE, Chrome, Firefox. When navigating to the root of the website (default index.php) the browser ...
1
vote
1answer
4k views

Uninstall LAMP Ubuntu 11.10

I recently installed a LAMP stack on my Ubuntu 11.10 machine so I can work a little more easily with some of my outside work. However come to find out the lamp stack is conflicting with my core paying ...
0
votes
1answer
270 views

How to reapply Zend Framework nature to a netbeans project?

I'm working on a netbeans project with a Zend Framework "nature" on two computer synced by mercurial. On the first computer, where the project has been created, project is marked as a ZF one and I can ...
1
vote
0answers
352 views

Unhelpful suggested autocomplete tags when editing HTML & CSS with Aptana Studio

I switched from PHPed to Aptana 3 because of the Zen Coding Addon which is not available for PHPed. My Problem is as follows: I'm coding HTML / CSS. When I type <div st the first suggestion is ...
3
votes
3answers
6k 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 ...
0
votes
1answer
171 views

Path of the FTP server log

I am using Apache with PHP on a Unix server, and some days back someone changed some PHP files. As part of the investigation, I want to know where the FTP log is saved for the same server so that we ...
2
votes
1answer
115 views

Create a Vim command to add a php debug statement

I'm trying to create a vim command to easily insert a debug statement on the variable name under the cursor. I would at least like to handle some common cases so it doesn't have to be perfect but the ...