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
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
118 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
200 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
473 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
920 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
764 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
581 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
942 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
407 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
433 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
600 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
797 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
443 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
1k 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
579 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
16k 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
541 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
544 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
355 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
269 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
349 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
113 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 ...
3
votes
4answers
873 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 ...
0
votes
3answers
82 views

Is there any file I can read in unix which contains the time

Is there any file in unix based system which I can read, to get the same value that time() in php would return?
1
vote
1answer
315 views

Making phpStorm default editor of php or other supported files in Ubuntu

How do I can make phpStorm default editor of php or other supported files in Ubuntu? Php storms is run using a .sh file.
2
votes
1answer
5k views

How can I open .PHP files with PHP.exe in Windows 7?

I have WAMP (Apache/MySQL/PHP) installed on Windows 7. PHP 5.3 is included. I tried "test.php -> right-click -> open with -> browse -> PHP.exe" but PHP.exe does not get added to the "Open With" list. ...
0
votes
2answers
860 views

How do I run PHP scripts via CMD without typing “php”?

If I have a batch file called "program.bat"... and I'm on the command line... I can just type program to get the program to run. If I'm on the command line, how do I get program.php to run ...
0
votes
2answers
391 views

Looking for a PHP mail intercepting application

I have PHP (XAMPP) set up locally on a Windows OS, and I am writing a webapp with it. This webapp send out several emails. For testing purposes I do not actually wish to forward mails generated by the ...
1
vote
1answer
340 views

PHP command line blank when I type statements

in Windows 7 I launch PHP.exe but then there's just a pure black command prompt screen and nothing I type results in any feedback at all. If I type: PHP -I Nothing. If I type PHPinfo() ...
1
vote
0answers
245 views

Mac OSX Lion Apache server takes a while to start serving php scripts

I use the built in Apache (web sharing) and the built in PHP in OSX Lion to run DokuWiki as a personal information manager (nobody connects externally). From the previous version of OSX, there seems ...
0
votes
2answers
2k views

Netbeans shortcut to minimise all functions?

I recently got into Netbeans. I used to code in Visual studio, so I'm trying to figure out what all the shortcuts are that I used to use in Visual Studio. CTRL-SHIFT-S, for one, is the same. But I ...
3
votes
2answers
459 views

Installing python through pecl - how do I “specify path to Python distribution files”?

I have found several instances where this question has been asked, but never answered. This is the part where the installation goes wrong checking for Python files in default path... not found ...
4
votes
1answer
4k views

How can I add color highlighting for PHP functions?

I've recently begun using Notepad++, and have found a part of its styling functionality that confuses me. I'm currently attempting to color all of PHP's defined functions (such as count(), strlen(), ...
5
votes
1answer
3k views

How is Apache mapping files without extensions?

My local dev setup is mapping things like http://mydomain.dev/testhtmlpage to testhtmlpage.html and http://mydomain.dev/testphppage to testphppage.php. The browser stays on the orginally enter URL. ...
4
votes
2answers
3k 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 ...
0
votes
1answer
670 views

Running PHP as CLI, takes a long time

Whenever I need something doing, I write a PHP script to do it. I like PHP, it's simple, doesn't need compiling, and I can have a tool written in minutes. Trouble is, when I try running PHP in the ...
5
votes
3answers
9k views

How to add new PHP version to WAMP

I'm trying to install PHP 5.3.8 to work with WAMP (Windows). I downloaded it from the PHP website, copied it in the bin folder, and added this line to wampmanager.ini: Type: item; Caption: "5.3.8"; ...