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

5
votes
1answer
24 views

PHP version for super user is fcgi instead of cli

I have a strange problem with PHP version when using CLI. When I login as root and use: php -v I get an info that php is running in CLI mode which is fine, but as soon as I use sudo php -v I get ...
3
votes
1answer
229 views

CLI stopped working when running php artisan serve - Laravel 4 Win7

I added a path to my environment variables : C:\wamp\bin\php When I run the command php artisan serve it says Laravel development server started on `http://localhost:8000` But after that a dialog ...
3
votes
1answer
525 views

Can't access wiki site through any other computers on my LAN

I am trying to set up an internal wiki site for my company. Product info, specs that sort of thing. I have downloaded and installed WAMP Server 2.2 (Apache 2.2.22 MySQL 5.5.24 PHP 5.3.13) as well as ...
3
votes
1answer
557 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 ...
3
votes
1answer
481 views

PDT/PHP plugin in Eclipse in Ubuntu not working - “page not found” error

I am not having success getting the PDT (PHP Development Tools, SDK 2.0.2 and 2.1.2) plugin to work in Eclipse in Ubuntu 11.04. I encounter the following page when attempting to run a php file: Not ...
2
votes
1answer
64 views

Extract text out of two lines in a file and output them in a table

I am trying to make a PHP script for my school. School's web directory has about 100 text files, one text file for each student. Every text file has a two lines like: stu $id = '12701'; stu $name = ...
2
votes
1answer
281 views

PHP won't run on command line Linux

I think I may just be missing something simple, but I can not get PHP to run anything on the command line. I'm using Linux Ubuntu. All the exact same files run as expected via the web. I have tried ...
2
votes
1answer
467 views

HighLight matching tags in php

Have php with echoing html tags. notepad++ 6.4.5 is highlighting ok the tags inside php and outisde php. notepad++ 6.5 is highlighting ok the tags only outisde php and NO HIGHLIGHT inside php code. ...
2
votes
1answer
691 views

PHP extension loading in CLI but not in CGI/FastCGI mode

Update 2 (ISSUE RESOLVED): Issue was an incorrect parameter during compilation. See my answer for details. Update: The result of the following command probably sheds some light on the issue! # ...
2
votes
1answer
589 views

Running rsync shell command in php

I am trying to do a rsync from amazon cloud to my local machine by using php. I have $copy = 'rsync -acz ubuntu@ec3-51-123-131-111.compute-1.amazonaws.com:/project/file.txt .' shell_exec ($copy) ...
2
votes
1answer
166 views

Get Apache to send Content-Type text/plain for PHP

How do I get apache to send Content-Type text/plain for php files? I can accomplish this in php using header('Content-Type: text/plain'); I tried adding this to my vhost.conf (I am using Plesk) ...
2
votes
1answer
316 views

Going crazy with php5apache2_4.dll not found

I have a computer with Win XP SP3 and I was going to install a WAMP system on it. I already had a pwerfectly working WAMP (Uniform Server, it is a portable wamp that works on usb stick) on another ...
2
votes
1answer
202 views

Passing Return Key via Shell Script

I'm using phpseclib to run a shell script on my server at a given interval. That script involves using nohup. For whatever reason, if there isn't a user ready to send SIGINT or a return to nohup once ...
2
votes
1answer
5k views

apache 2.4 + php 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
881 views

100 % cpu usage debian 32 bit due to apache processes

So there is a VPS with openvz virtualization, with debian 6.0 32 bit The problem is appearing approx. 1 week ago. The automatic security monitoring system is shutting down the vps that i'm running ...
2
votes
1answer
1k views

How to change cygwin hostname

I'm just searching for a way to change the default Cygwin host name. I need to change the Admin@deluxe ~ part and replace it with something else.
2
votes
1answer
720 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 ...
2
votes
1answer
498 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 ...
2
votes
1answer
108 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 ...
2
votes
1answer
341 views

Using Notepad++ to search/replace PHP code with regular expressions

I would like to update some PHP code into the Joomla framework, replacing things like: $myvar=$_POST["myvar"]; with $myvar=JRequest::getVar('myvar'); This seems like it should be easy enough ...
2
votes
1answer
842 views

php pecl install mac os x 10.6

Does anyone know how to install pecl for mac os x 10.6. I have tried googling with no luck.
2
votes
1answer
629 views

Eclipse Helios on OS X Snow Leopard crashes frequently when editing certain PHP files

I use Eclipse Helios (Eclipse Platform: 3.6.0.I20100608-0911, Eclipse IDE for PHP Developers: 1.3.0.20100617-0520) all the time on OS X (Snow Leopard), and it seems I only run into trouble whenever ...
2
votes
1answer
636 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, ...
1
vote
1answer
21 views

How to place metadata at beginning of MP4 video using ffmpeg

I am trimming the video using ffmpeg but the metadata position was founded at last in output video. Is there any way to put metadata at beginning of output.mp4
1
vote
1answer
65 views

Setting up email for domain on a VPS

I have my site set up and functioning on a vps. The domain is on godaddy. The nameservers point at godaddy then i have set the a record to point at the IP of the VPS and its working fine. I now need ...
1
vote
1answer
36 views

Options to configure Apache to take into account other folders despite /var/www

I am using Ubuntu 12.10, and I know that if I place a php file (index.php) under /var/www, and I visit localhost:80/index.php, it will work fine. However, say that I have multiple projects in order ...
1
vote
1answer
521 views

How to run Visual Studio 2008 and WAMP server on same local machine running WIndows7?

I'm having a machine running on Windows 7. First I installed WAMP server on my local machine. It was working fine. Then I installed Microsoft Visual Studio 2008. From that time the WAMP server is not ...
1
vote
1answer
210 views

Dreamweaver deleted my file contents

I was developing a website using Dreamweaver, I was editing one of my php files and suddenly the electricity shut down and my computer turned off. when I turned on my PC again and open the file that I ...
1
vote
1answer
886 views

PHP warnings after Mavericks upgrade

After upgrading my Mac to Mavericks I've had a few small issues with machine, most of which I've resolved, however when I try to run PHP scripts at the command line I'm not getting these warnings... ...
1
vote
1answer
75 views

Which Gentoo ebuild provide phpize binary?

could someone point to the ebuild which provides phpize binary? It's mainyl used to compile packages with php pecl. I'm on a Gentoo up to date machine, so i'm also on PHP5.5. Thanks in advanced.
1
vote
1answer
62 views

Mediawiki extension error

I'm running the latest version of mediawiki using MoWeS Portable II from my desktop. I just installed this extension on the wiki http://www.mediawiki.org/wiki/Extension:MsUpload It adds an option to ...
1
vote
1answer
1k views

WAMP not executing PHP

My WAMP server is not executing PHP. I have already tried the following things: restarted just Apache restarted all WAMP services restarted the WAMP application restarted my whole system renamed the ...
1
vote
1answer
117 views

404 when trying to use PHPFarm with Apache2

I followed this tutorial: http://www.metod.si/multiple-php-versions-with-apache-2-fastcgi-phpfarm-on-ubuntu/ All is similar, then I put php file (info.php) to /var/www, but when trying to access ...
1
vote
1answer
171 views

Using LDAPS with PHP on Windows

I have a PHP site running in IIS and I want to auth my users against my corporate Domain Controller. Running phpinfo() shows my install is using OpenLDAP version 20319. I can auth just fine when I go ...
1
vote
1answer
560 views

WAMP 2.2e - 403 Forbidden in Offline and Online mode

I just installed a WAMP Server 2.2e, wamp icon in tray is green, showing - Wamp server is offline. When i'am trying to access my localhost address, i receive an error 403 Forbidden. For localhost, ...
1
vote
1answer
275 views

How can I force dreamweaver to show CSS syntax highlighting for a PHP file?

this is my first ever question here. Basically I have a dynamic CSS file, meaning the PHP changes the colours of borders and stuff depending on the preferences saved in database. My problem is not ...
1
vote
1answer
261 views

Auto-mount usb flash drivers for remote servers using bash file for scheduled backup operation

I have to do scheduled backup of servers' databases using a cronjob for the backup task and a bash script for the backup operation. It's a PHP web application. You can choose to store your backup file ...
1
vote
1answer
419 views

PHP files in an HTML5 project

I created a HTML5 Project using Netbeans 7.3, but sometimes I need to run PHP code when testing locally. How do I run PHP code when testing my project locally? The default Netbeans testing URL is ...
1
vote
1answer
94 views

Where can I find examples or tutorials about ingesting files in a Fedora Commons repository using PHP?

I'm having a surprising amount of trouble ingesting an image file into a Fedora Commons repository with PHP (and cURL). Furthermore, I can't find any working examples of this being done online. Are ...
1
vote
1answer
58 views

desktop shortcut does not work

I have created batch file that start apache and mysql server,copy try.exe on desktop and run project in browser.that works fine.but onclick desktop shorcut error occured.error is windows can not find ...
1
vote
1answer
761 views

Adding regions in Notepad for PHP

I have seen how to use a user defined language, but I would like to know if it is possible to add a #region for code folding into Notepad's ++ PHP. I tried using #region x and #end region - it works, ...
1
vote
1answer
1k views

Installing ionCube on Windows 2008 64bit

I've been trying to install ionCube onto my server but have not been having a lot of luck! My server is: Windows 2008 64bit PHP 5.3.14 Thread Safe disabled running as FastCGI In my PHP.ini ...
1
vote
1answer
157 views

Cannot read directory

I am using CentOS 6.3 and I am trying to opendir and readdir using PHP. apache is in the group of the user and I am trying to read the /home/user/mnt which is mounted remotely using SSHFS. ...
1
vote
1answer
321 views

SQL syntax highlighting and code completion in Eclipse PDT

Is there a way of enabling highlighting (and/or code completion for SQL) for SQL syntax in PHP strings variable while developing some PHP works related to SQL using Eclipse PDT?
1
vote
1answer
1k views

Weird Apache error - Apache hangs & needs restarting regularly

I've been recently receiving this weird error where Apache just becomes unresponsive and completely stops until it is manually restarted. It gets to a point where I can not longer retrieve apache ...
1
vote
1answer
430 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 ...
1
vote
1answer
565 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
1answer
281 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.
1
vote
1answer
1k 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 ...
-2
votes
0answers
17 views

Push data to an LED wallboard

I have an Inova LED wallboard that I would like to build a server for and push data to. Can anyone tell me how information is pushed to it? I create wallboards for LCD monitors using PHP and ...