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

3
votes
1answer
371 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
619 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
582 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
512 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
26 views

Linux : Setting which php bin to use in CLI

Hi i'm trying to use php command in linux. However I have two installations of php, one I got from the sudo-apt-get and one from a stack, Lappstack. Don't ask how I got there, but nevertheless i'm ...
2
votes
1answer
110 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
558 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
960 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
843 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
197 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
341 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
221 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
983 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
2k 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
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 ...
2
votes
1answer
772 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
527 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
111 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
361 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
906 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
638 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
672 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
39 views

PHP equivalent of rbenv/rvm

I've always used Ubuntu's official repositories for installing PHP, but after playing with tools like rbenv and rubybuild for Ruby installations, I am wondering if better tools/techniques exist for ...
1
vote
1answer
34 views

latest Luna eclipse PDT nolonger gives common function suggestions

I was using helios version of PDT but it was compatible only till v5.3 so I downloaded latest luna version to get v5.5 support from here. but after downloading this instead of supporting new functions ...
1
vote
1answer
35 views

amazon ec2 intance rhel7 ftp not downloading

this is driving me insane. i am trying to download files using FTP. i tried with PHP's FTP, the FTP binary, WGET, none of them work. They all have the same problem. When get command is initiated, the ...
1
vote
1answer
221 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
193 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 ...
0
votes
0answers
23 views

Send to other server like my own - Virtual Device

How do I change the user agent of my browser so the the site I am viewing thinks I am viewing from a phone or tablet? Currently sites see me as a PC (correctly) and I am I unable to test the mobile ...
0
votes
0answers
145 views

PHP Web Proxy does not perform ajax requests properly

I have this problem Gmail will not load except with a web proxy, which lead me to do some testing. I am using latest PHProxyImproved. After testing on my web app, it appears that all AJAX pulls do ...
0
votes
0answers
309 views

PHP exec iconv doesn't work

I have an .sh script and an iconv command inside. I can't use the PHP iconv function. I don't knwo why but with my script the iconv command doesn't do anything. It's creating an empty file without ...
0
votes
0answers
300 views

How to set NetBeans 7.2 as my default PHP files IDE on ubuntu 12.10?

I'm using Ubuntu 12.10 64 bit I have installes XAMPP And Netbeans 7.2 IDE. The problem is I can't open any PHP file using Netbeans IDE and when i click "open with" I cant find netbeans within the ...
0
votes
0answers
78 views

How to display assets on localhost

I'm trying to run a site on a MAMP stack, but when I load a page the assets aren't showing up. I inspected the Net tab in Firebug, and my stylesheet tags are pointing to the right CSS files, but the ...
0
votes
0answers
325 views

Excel csv encoding default

Ok here's the deal I exported a csv in UTF-16 format via PHP and open it in excel...All the encoding works perfectly. My question is, suppose I edit this csv and then just hit save in excel and ...
0
votes
0answers
96 views

php memory usage - how does it work?

I have a wordpress blog, with complicated plugins and theme. I recently hit fatal error cannot allocate memory error on 256mb. 256 itself is allot, so I got rid of 1 plugin and it went back to 60MB, ...
0
votes
0answers
53 views

Several PHP versions on Mac

I have several versions of PHP on my Mac. Problem is, whenever I try to install new libraries, I'm not sure which version I'm installing them to. I'm using the command line on Mac OSX, and I read ...
0
votes
0answers
413 views

“unrecognized options” while installing php

I want to compile php 5.4.8 on my mac 10.8.2, but get some errors which cant solve by my self, so need your help. Firstly i get default php options with php -i | head, after it do this command ...
0
votes
0answers
164 views

Pure-FTPD parallel upload issue

i am copying approx 300 10MB files from another server to my server. everything works just fine but i tried to run parallel thread so that i can complete it fast i got surprised as another file will ...
0
votes
0answers
172 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
0answers
276 views

Crash in audio resampler with some audio rates - FFMPEG PHP ( Solved! )

i have a problem with this command( FFMPEG PHP ): Command: ffmpeg -i 62f76f050494f0ed6a5997967c00c0c0.wmv -ss 0 -t 99 -y -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 -f flv ...
0
votes
0answers
91 views

Can HTML/PHP/Javascript code be commented in a single click/keycombination?

The question it's clear enough. I want to be able to select certain code and with a key combination or menu element be able to comment it in Aptana Studio 3. Yes, I can add the tags myself but I'd ...
0
votes
0answers
262 views

Installed Apache httpd and PHP5.4 on CentOS, but no mention of PHP in httpd.conf file?

Using Centos 6.3, I installed Apache httpd 2.2 with PHP 5.4 (from a custom yum repository) and MySQL. PHP works fine on the command line, but there's no mention of it in Apache's httpd.conf. I know ...
0
votes
0answers
196 views

sudo: a tale of two folders

I have 2 folders: drwsrwsr-x 25 ftpuser www-data 4096 Jun 7 13:45 demo drwsrwsr-x 28 ftpuser www-data 4096 Jun 7 12:43 dev and a script to create a folder within these. When I run the script ...
0
votes
0answers
194 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 ...
0
votes
0answers
1k 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 ...
0
votes
0answers
120 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 ...
0
votes
0answers
90 views

Manual Installation of PHP 5

I've manually installed PHP 5.3 in IIS 7 (using Windows 7). I could generally run PHP scripts but I can't seem to create files(and directories). I've checked the php.ini files (yeah, two, there's the ...
0
votes
0answers
232 views

production server with php and jsp on a mac

I have a working development server with Apache, MySQL, PHP and Tomcat. I use virtual hosts for PHP websites (like admin.local and test.local) and I only have one .jsp webapp which runs on ...
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 ...
-1
votes
0answers
21 views

Windows 7 and xampp - unable to read My Documents - 403 Access forbidden

This is driving me crazy, please help. C:/xampp/apache/conf/extra/httpd-vhosts.conf # This one works perfectly <VirtualHost *:80> DocumentRoot "C:/xampp/projects/test" ServerName ...