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

learn more… | top users | synonyms

0
votes
1answer
443 views

How can I install yum?

I've downloaded a fedora-based embedded linux (Endian Firewall Community release 2.5.1). The version of kernel is 2.6.32.43-57.e43.i586. It only has smart package management (and rpm). I can't install ...
0
votes
0answers
174 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 ...
1
vote
1answer
366 views

Gearman-Monitor could not connect to 7003

I installed gearman-job-server on my Linux server, and started the job server with mysql persistent queue on port 7003. Then I downloaded Gearman-Monitor and run it on an apache server, trying to ...
2
votes
1answer
1k views

Use remote PHPUnit coverage in PhpStorm

I am working in the following setup: There is a development VM running, where I can access the codebase and use it as project location in PhpStorm. Everything (nginx, database, phpunit, ...) is ...
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
385 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
209 views

What is the PHP config ini files prefix good for?

Out of nothing but curiosity: Why are the symlinks in /etc/php5/conf.d prefixed with either "10" or "20"? E.g. 20-pdo_mysql.ini and 20-curl.ini I'm running Debian and installed PHP from the dotdeb ...
0
votes
0answers
483 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
1answer
262 views

How to execute a php file when a cron job is created

I want one of my PHP file to be executed when the cron job is executed. I want to do this for updating the database of every users. It is a Banking application project and I need to update every ...
1
vote
1answer
624 views

updating to PHP 5.3 on Debian 5.0 (lenny)

I need to update PHP on a rackspace server, currently the server use PHP 2.6, i followed these instructions, i added to lines to /etc/apt/sources.list deb http://php53.dotdeb.org stable all ...
0
votes
1answer
764 views

How to use chmod to change a file's permission?

I used ls -l to find file permissions in a shell and found this: File 1: -rw-r--r-- 1 root root 451 Mar 9 15:25 file.class.php File 2: -rw-rw-r-- 1 andy dev 872 Mar 9 15:43 file.class.php I want ...
1
vote
1answer
194 views

how can i use process monitor to figure out what's happening with permissions?

I am trying to use this function in PHP move_uploaded_File to move a file to a different directory than the one it was uploaded to. However, even though the user has enough rights (iusr / iis_iusrs) ...
1
vote
1answer
430 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 ...
0
votes
2answers
437 views

How to inform Ubuntu 12.04 apt-get about older installed version of php

Recently installed php5.3.22 on Ubuntu 12.04 from an excellent install script provided by git://github.com/vladgh/VladGh.com-LEMP.git. This works perfectly. The issue I have is that I now want to ...
0
votes
2answers
2k views

How to install Doctrine in Linux (Ubuntu) through Terminal

Can any one explain the step by step procedure of installing Doctrine in Linux through terminal?
3
votes
1answer
3k views

Apache php_ldap.dll error

I have apache with php 5.4 installed on a Windows 7 64bit machine. When I restart Apache I get the following: PHP Startup: Unable to load dynamic library 'c:/PHP54/ext\\php_ldap.dll' - %1 is not a ...
1
vote
1answer
722 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
179 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
3answers
461 views

Can PHP write to a directory without 0777?

I'm making a website builder, and I have the file render.php, which needs to write to users’ directories. I don't want to give each of the users’ directories 0777, but I still need to be able to write ...
0
votes
1answer
273 views

file_exists() and mkdir($a, $b, true) do not work properly if my Apache runs in a VirtualBox and the DocumentRoot is a shared folder. Why?

I have a Windows7 PC with a hosted VirtualBox (Ubuntu). On the VirtualBox is an Apache2. The is shared to the Windows7 host. So if I use ls -l I see that the contents are owned by root:vboxsf. If ...
0
votes
1answer
39 views

Update all systems

Basically i owns 3 systems where one act as a Balancer Node , and the data for the websites resides over the other two.the balancer node balances the traffic among this 2 systems Balancer System : ...
1
vote
1answer
77 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 ...
2
votes
0answers
496 views

PHP : curl is and Not working in ubuntu10.04 and Nginx

I am running Nginx server on ubuntu 10.04 I am using the php version 5.3.2 .I installed php5-curl using apt-get install php5-curl. Unfortunately the curl package is not displaying in phpinfo() . ...
-5
votes
1answer
967 views

Sending mail via Zend_Mail_Transport_Smtp gives 5.7.1 error [closed]

I am using zend framework and i write the following code for sending a mail from another sever.Bu t dont know why it throws the following exception. 5.7.1 This email has been blocked. The email ...
0
votes
1answer
2k views

How do I downgrade php from 5.4 to 5.3 in CentOS?

I have a webserver running CentOS 6. Yesterday, I installed php-gd with yum install php-gd because I couldn't see graphics on my website. However, when I see my php version, it changed from 5.3 to ...
1
vote
1answer
1k 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
2answers
4k views

CURL Error version OPENSSL_1.0.1 'not found …'

I have the last few days, a concern with CURL. I get this error: curl: / lib/i386-linux-gnu/libssl.so.1.0.0: version `OPENSSL_1.0.1 'not found (required by / usr/lib/i386-linux-gnu / libcurl.so.4) ...
1
vote
1answer
39 views

Need secure solution to get the size of a directory with PHP

I have a vmail directory manage by postfix with the permissions set like this: user: vmail group: vmail permission 700 I need to get the size of that directory with PHP. To do this, I'm using ...
2
votes
1answer
428 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 ...
0
votes
0answers
484 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
1answer
1k views

Search & Replace Using Grep and Sed Command

I want to remove the weird / special characters from the bunch of text files. Here i used the following command to remove the weird characters but it gives me the error. Command : 1) grep -lri -e ...
1
vote
2answers
1k views

Is there a browser based interface for running command line on your host?

I know I can manually run it through PHP's exec() command but I was hoping if there was a ready to download and deploy PHP-based system that could act as a bridge and terminal and you can run commands ...
1
vote
1answer
2k views

Installing PHP 5.4 on CentOS 6

I want to update my CentOS 6 PHP version from 5.3 to 5.4 so I tried this guide: http://www.webtatic.com/packages/php54/ But after running yum install php54w I get this: Setting up Install Process No ...
0
votes
0answers
116 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
1answer
330 views

WampServer's alternative php version not working

I recently updated my Window's wamp version to the latest (64bits & PHP 5.4). It works fine. But then i tried to install the PHP 5.3.1 extension. When i try to use it, Wamp stops on orange and ...
2
votes
1answer
276 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 ...
1
vote
1answer
658 views

Mac PHP compilation: Unrecognized options

I'm trying to compile PHP with a MSSQL extension. I get this error: WARNING: unrecognized options: --with-php-config when I try to run ./configure --with-php-config=/usr/local/php5//bin/php-config ...
0
votes
1answer
777 views

My server is not receiving any php uploaded files

I have a local LAN server running on a Raspberry Pi (apache2) with PHP installed. I know that PHP is working, because I wrote a test file, echo "Hello, World!" and it worked. But, whenever I upload a ...
4
votes
1answer
290 views

Convention on directory of file outside /var/www

By /var/www I am generically referring to the document root for Apache. Often times you want to work with files, but don't want them inside the doc root (PHP examples come to mind). The general ...
5
votes
1answer
791 views

Linux server broken packages

So, I'm trying to install the PHP5 cURL package on a Ubuntu Lucid 10.04.3 server. My concern is that there are broken packages on this server and if I install this package with the broken packages ...
0
votes
0answers
569 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
1answer
49 views

How to convert charset of a file

I have a file (php file) which is has a charset that I need to convert to us-ascii. How can Ido this on Linux?
1
vote
0answers
492 views

Installed new version of php but server still uses older version

I just upgraded to PHP 5.4.11 from 5.3.15 following this link. After upgrading I ran php -v but it shows me following output. Zafars-MacBook-Pro:php-5.4.11 zafar$ php -v PHP 5.3.15 with Suhosin-Patch ...
1
vote
0answers
94 views

Localhost slow on desktop, not on laptop

I am using XAMPP Lite on my desktop and laptop, which uses Apache for the web-server and also supports PHP. My locally hosted image gallery PHP program has its page elements (100s of thumbnails) ...
0
votes
3answers
1k views

Turning on “E_ALL” (errors) in php.ini

I've turned on errors in php.ini by removing the ; in front of the comment on line 240 of php.ini (I'm using PHP 5.4.4). I'm using MAMP for my local server to set up a local environment, and I ...
1
vote
2answers
546 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(); ...
0
votes
1answer
1k views

How to install PHP 5.3.18 on Amazon EC2?

I am googling for a while but with no luck. I am looking for quickest way of installing PHP in 5.3.x version on Amazon EC2. Could someone give me any advice?
3
votes
1answer
102 views

Installed mysql from source on linux and then how to get it work with php?

I installed apache and php from source and got them working together a month ago. Because I'm learning both of them this term. Now I need mysql to do more works. And I installed mysql from source just ...
0
votes
1answer
742 views

web server very slow, bombarded with php-cgi processes?

I have a Parallel Plesk 11.0.0 with CentOS 6.3. Lately, I've noticed that my web server runs VERY slow (not the norm), CPU average at 80% no matter what kind of traffic, and my top is filled with ...
0
votes
1answer
639 views

Slow PHP over ubuntu server | VirtualMachine

I have an Ubuntu-server 12.04LT-64x installed on VMware Player (I found VMWare works better than Virtualbox after few installations over vb). My host computer is an Intel i3 with 6GB-RAM and ...