PHP is a widely-used general-purpose scripting language that is especially suited for Web development.

learn more… | top users | synonyms

30
votes
8answers
19k views

How do I easily highlight the syntax of PHP code in Word?

How do I easily write and syntax-highlighted PHP code (or any others programming language) in a Word 2009 document?
47
votes
6answers
66k views

How do I rename a file to .htaccess in Windows 7?

I'm using XAMPP to test a PHP script. Now, in the root of the folder I want to place a .htaccess file according to the requirements of the script. But Windows won't let me rename it to .htaccess. Is ...
1
vote
4answers
865 views

Some websites prompt to download PHP script after some time, but only in Firefox

This happens only in Firefox - NOT in IE or in Safari (all 3 tested only on a Windows system). Always, viewing a page shows most of the content, and then the browser prompts to download some sidebar ...
6
votes
7answers
1k views

Mac Text Editor (with function list) [duplicate]

Possible Duplicate: Text editor for Mac OS X So I've got a Mac in the post coming to me, and will probably be doing quite a bit of development on it so I am looking for a text editor (PHP + ...
1
vote
1answer
3k 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
4answers
13k views

WAMP Server's Apache Service Not Starting in Windows 8

I have a problem starting the Apache Service in WAMP Server, when i test port 80, I get the following message on the console Your port 80 is actually used by : Server: Microsoft -HTTPAPI/2.0 Things ...
0
votes
0answers
67 views

XAMPP and MySQL

Ok so I have this message error in XAMPP: 20:25:37 [mysql] Error: MySQL shutdown unexpectedly. 20:25:37 [mysql] This may be due to a blocked port, missing dependencies, 20:25:37 [mysql] ...
0
votes
3answers
3k views

Settings to send an email from localhost for PHP code in Windows Vista

I am using PHP 5 and Apache to do programming. My code can correctly send emails on the server, but on my own development machine I cannot send emails. There is clearly nothing wrong with my code, so ...
42
votes
3answers
61k views

How to install an updated version of PEAR / PHPUnit on Ubuntu?

Most tutorials online show how to install PEAR by doing this: sudo apt-get install php-pear This installs version 1.6.1. It works great because it's super easy! My problem is that I want to install ...
18
votes
1answer
71k views

How to manually install Apache, PHP and MySQL on Windows?

How do I install Apache with PHP support and the MySQL server on Windows without using any ready-to-use packages like WAMPServer or XAMPP ?
14
votes
5answers
51k views

Is there a way to use Xcode for PHP web development?

I have heard you could use Xcode for PHP development with syntax highlighting, syntax check, code completion etc. some time ago, maybe years ago. Is there a way to add PHP support to a current Xcode ...
5
votes
2answers
10k views

Convert file to PDF using LibreOffice under user apache (i.e. when using PHP)

I installed libreoffice-headless and can convert documents when logged on into the shell as a normal user. [root@desktop ~]# yum install libreoffice-headless [root@desktop ~]# yum install libreoffice-...
9
votes
5answers
26k views

How to rename multiple files in multiple folders with one command

We want to rename our *.html files to *.php but (sadly enough) have not enough knowledge to do it with a cmd prompt command and/or batch file. The problem is that each file is in separate folder – ...
5
votes
1answer
5k 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(), ...
3
votes
1answer
2k 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 ...
10
votes
1answer
687 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 ...
2
votes
4answers
22k views

WAMP MySQL Service will not start

I did a fresh install of WAMP (v2.1) and it works excep the MySQL isn't starting.... here: and everytime I press "Start/Resume Service", NOTHING happens. I go to my.ini and put in a password.Then ...
1
vote
2answers
7k views

Apache loading PHP module - undefined symbol: unixd_config

I'm configuring a new web server on a RedHat 6.5. I try to enable the php5 module on Apache 2.4.6 as following: LoadModule php5_module /usr/path/to/libphp5.so AddType application/x-httpd-php .php ...
1
vote
2answers
559 views

am using ubuntu 12.10. unable to use PHP_PERL extension. Unable to install the extension as well

I need to run a Perl script because I need a module that Perl has that PHP does not. This is my code for testing purposes in PHP <?php echo ("Hello World"); $perl = new Perl(); $perl->...
1
vote
3answers
337 views

Web Hosting at home on Old Hardware [closed]

This is a re-make of this interesting question. I've rephrased it slightly to avoid pulling aggro and to provide some quality information, as I've pondered this before, but only JUST ran the numbers.. ...
0
votes
1answer
117 views

Wordpress can't upload images due to permissions [closed]

I'm having problems trying to get Media uploads working on my VPS w/ Wordpress. My Apache service is running as user:group apache:apache. My user folder is owned by my user eugene and grouped apache. ...
4
votes
3answers
6k views

Changing HTTP_ACCEPT_LANGUAGE

Is it possible to change HTTP_ACCEPT_LANGUAGE? I'm using Firefox.
3
votes
3answers
6k 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 ...
3
votes
4answers
12k 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 ...
2
votes
2answers
948 views

Create a local DNS TLD for development

I do a lot of web dev, mainly RoR and PHP, I've got a VMs which holds my dev environments and handling multiple clients on them is a pain. With PHP you just create a subdir, but with RoR it's a little ...
2
votes
1answer
2k views

Microsoft PHP SQL Server Drivers not working, cant load module

I am trying to install Drivers for PHP to be able to talk to my SQL Server. I am running PHP 5.5.15 on XAMPP, and SQL Server 2014. I downloaded a driver package from here: http://www.microsoft.com/en-...
2
votes
2answers
1k views

phpinfo() and php -v shows different version of PHP

I wanted to know which php version I am using so I wrote the standard script: phpinfo(); Which gives me PHP version 5.6.10- the correct PHP version needed for my application. When I tried in ...
2
votes
1answer
283 views

php sessions - is it possible to trigger a server script executed by a DIFFERENT user than www-data?

i am running a php+mysql site on a lamp ubuntu cloud server (amazon ec2). i use php sessions. the apache php user is called www-data. for every session (SID), i need to create a temporary folder ...
2
votes
1answer
9k views

apache 2.4 + php 5.4.7 cannot load php5apache2_4.dll

I am trying to make Apache (httpd-2.4.3-win32) to work with PHP 5.4.7 (VC9 x86 Thread Safe) on Windows 7. Apaches default page is working and proudly says: "It works". PHP CLI is working and ...
2
votes
1answer
10k views

php is not recognized as an internal or external command (windows 7)

I added php to the PATH environment var. Showing here my last three entries in the path input: C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseGit\bin;C:\xampp\php\ Somehow when I run php ...
2
votes
1answer
812 views

PHP/cURL/Fedora issues resolving hostname possibly a DNS problem?

I have the following simple test script for cURL/php on a FC12/apache server that has PHP 5.3.2, cURL v7.19.7 (according to phpinfo()): $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://www....
1
vote
4answers
892 views

PHP for Mac OS X

I want to use PHP on my Mac. If I were using Windows I would install WAMP server, but I'm not familiar with how to use PHP on Mac OS X. What kind of software should I use for installing/running my ...
1
vote
1answer
1k views

How to switch PHP 5.5 instead PHP 5.4 in Bitnami

Details: Distributor ID: Ubuntu Description: Ubuntu 12.04.5 LTS Release: 12.04 Codename: precise Bitnami used in AWS I want to install PHP 5.5, so I do next step: php -v PHP 5.4.26 ...
1
vote
2answers
3k views

Vim: How to indent html code correctly in php file?

In php file : <?php ... ?> <html> </html> I could not indent the html source code with operator =. How could I indent it?
1
vote
2answers
1k 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 ...
1
vote
1answer
2k views

PHP not working on fresh install

Ok so i just installed apache2 and php5 following along with this tutorial http://www.socialblogr.com/2010/08/how-to-install-php-monggodb-monggo-driver-on-linux-ubuntu.html But php isn't working,...
1
vote
2answers
3k 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 don'...
0
votes
0answers
2k views

Make mcrypt available to PHP 5.3 on Mac OS X 10.6

$ which mcrypt /opt/local/bin/mcrypt $ mcrypt -v Mcrypt v.0.9.9 (i386-apple-darwin10.4.0) Linked against libmcrypt v.2.5.8 Copyright (C) 1998-2002 Nikos Mavroyanopoulos (nmav@gnutls.org) So I have ...
0
votes
0answers
54 views

How to upgrade from PHP v5.4 to PHP v5.5 in bitnami ubuntu

I am using a bitnami ubuntu server. When I run the below command /usr/bin/php -v PHP 5.5.9-1ubuntu4.17 (cli) and if I run following command php -v PHP 5.4.34 (cli) I don't know where I am ...
0
votes
1answer
125 views

Put file on FTP server using PHP

I have an FTP server running on my home computer. I've built a super simple web interface for depositing files onto the server without the use of a native client using the HTML5 File API. I have the ...
0
votes
0answers
186 views

mod_rewrite working but php pages not found or not recognized (downloaded instead of executed)

In regard to my first post mod_rewrite problems in sandbox: Mac OSX 10.6.6 Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8l DAV/2 PHP/5.3.3 I am making progress but... Now the index.php page is not ...
0
votes
1answer
3k views

PHP: libssh2 prefix on Ubuntu 9.10?

So I decided to install the libssh2 library using PECL. I'm at the point where it is asking me to specify a libssh2 prefix: 5 source files, building running: phpize Configuring for: PHP Api Version: ...