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

0
votes
1answer
54 views

Need to iterate through a list of files and append text at the first line of the files in th list on a Linux CentOS system

I need to be able to append the text <?php to the beginning of php files in a list. Thank you in advanced for the help.
-1
votes
0answers
282 views

Installing PECL extension on IIS server [closed]

I wanted to install a specific PECL PHP extension (php-pecl-solr)(http://www.php.net/manual/en/book.solr.php). I managed to install it on my UNIX environment. But, I wanted to install it on an IIS ...
-1
votes
1answer
477 views

library for html to rtf conversion [closed]

I am much needed the linux library for converting html document to rtf. As currently, I have used CMS kind of functionality where html is stored in database. I need to convert it in rtf. If any ...
1
vote
1answer
1k views

why nginx can NOT remove the X-Powered-By header of PHP?

I use the proxy_hide_header X-Powered-By directive, but it doesn't work. I had to use the expose_php option in php.ini. Is there anything different between the proxy_hide_header and the expose_php ...
0
votes
2answers
42 views

Why am I beign able to rename my files in Mac Os 10.8.2 even when I don't have permissions

Im setting 444 permissions on a file, but still, Im able to rename files. I tried it through php with the rename() function and in terminal with the mv command. I list my file and it appears as ...
0
votes
0answers
566 views

How to allow apache to execute R binary from PHP exec() without disabling SELinux?

I have R installed in /opt/R of webserver. I need to execute script.r (In R BATCH mode) that is on directory /var/www/html/ using PHP function exec(). SELinux is enabled in the webserver. I suppose ...
0
votes
0answers
291 views

nginx + php5-fpm download files error

I have a wordpress blog running on a nginx/php5-fpm combo and it works great. Hardware is a Debian Squeeze with 256mb of ram. Lately (since 3 days ago) file downloading became nearly impossible, as ...
1
vote
0answers
299 views

How to delete an older version of libmcrypt

I am running through the instructions here to get mcrypt installed: http://michaelgracie.com/2012/09/26/plugging-mcrypt-into-php-on-mac-os-x-mountain-lion-10-8/ Everything seems to work fine, until I ...
2
votes
3answers
2k views

PHP: Is it possible to allow login to multiple account of same site from same browser simultaneously? [closed]

I was thinking if it was possible to allow login to multiple account of the same site from same browser simultaneously . Can this be done in php, What would be the logic involved in that case ? I ...
3
votes
2answers
752 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 ...
0
votes
1answer
924 views

How to recompile the PHP with --with-pgsql

I have installed the postgresql, php and apache to Amazon Linux AMI. Now I want to use the phpPgAdmin, it prompts "Your PHP installation does not support PostgreSQL. You need to recompile PHP using ...
0
votes
1answer
2k views

Can't connect to SMTP server using PHP Mailer but can with Gmail?

I am getting the following error from PHP Mailer when running a script in my local PC: SMTP -> ERROR: Failed to connect to server: A connection attempt failed because the connected party did not ...
0
votes
1answer
376 views

Why showing pear and phpunit is not installed in xampp on ubuntu?

I have installed xampp 1.8 on my ubuntu 12.04. In /opt/lampp/lib/php/PEAR I can see there are two directory named PEAR and PHPUnit. But when I run pear -V or phpunit from terminal it gives the below ...
0
votes
0answers
504 views

installed WAMP addons, now wamp won't start

I was running Apache 2.2.21 (x64) and php 5.3.10 (x64) but I need to run the x32 versions so I can get ioncube to run. The support forums on the wamp website I can install any of the addons and it'll ...
4
votes
1answer
414 views

How can two identically named files exist in the same place on linux

. I'm not a novice in linux I created a bunch of files with php using file_put_contents() I can't view the created files via browser I can view the files from the ftp but can't ...
-2
votes
1answer
35 views

Populate images, script not working properly [closed]

I have this piece of code im working with and it does work except one small issue. When populating the images, there is always one image that doesn't show up on the webserver. e.g. if I upload 7 ...
0
votes
2answers
2k views

Convert PDF to JPG without Imagemagick

Is there a way to convert a common UTF-8 encoded PDF to a JPG without using ImageMagick or Ghostscript? The reason I'm asking is, that I have to replace or "simply" double layer a small part (date) ...
0
votes
1answer
329 views

Lighttpd, PHP errors generate error 500

If I have an error in the PHP code, Lighttpd gives a 500 error and a line like this mod_fastcgi.c.2676) FastCGI-stderr: PHP Parse error:... appears in the log. The php.ini (/etc/php5/cgi/php.ini) ...
1
vote
1answer
227 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 ...
0
votes
1answer
664 views

Map `php` at the command line to point to `/usr/bin/php`?

For some reason using php at the command line references /usr/local/bin/php instead of /usr/bin/php. How can I make $ php script.php the equivalent of running $ /usr/bin/php script.php? Current ...
0
votes
1answer
5k views

Curl Returns “Connection Refused” when trying to access localhost

I am running Xampp (Apache, Mysql and PHP) on my Windows Vista computer. I have curl installed on my machine. When I try to curl my localhost in the command prompt, I get the following: curl -v -i ...
1
vote
1answer
1k views

How to configure SAPRFC with PHP

I am trying to configuring SAPRFC with PHP but it's fail, I tried from many ways and also referred too many links using google search but not found solution on the same, So if anyone have configured ...
0
votes
0answers
580 views

Install Php-pear to /usr/share Raspbian (debian)

I am running Raspbian on my Pi and have installed PHP-pear, I have some software that requires PHP-pear but is normally installed on a Fedora based machine so pear is normally found at /usr/share/pear ...
1
vote
1answer
1k views

Setting up VirtualHost for MAMP server?

Problem I need to setup some VirtualHost records for a MAMP server I have installed on my Mac. In short, rather than using http://localhost:8888/dkbtherapy/index.html I want to use ...
1
vote
1answer
608 views

Email through php and mail command not sending

I have two servers as to which one is hosting my company's email. The other one hosts a website where i have php scripts that sends mail to my mail server. When ever i send an email i get ...
0
votes
1answer
250 views

Using awk or cut command to get CPU percentage

I am trying to execute a Linux command through a PHP script to get the CPU percentage for each core: … with cut: $output = null; passthru("mpstat -P ALL | grep 0 | tr -s ' ' | cut -d ' ' -f 4", ...
2
votes
1answer
1k views

Apache downloads php files instead of running their source

I have just recently upgraded PHP 5.3 to 5.4 on my Debian Squeeze server. Now, instead of executing PHP files, Apache just downloads them, which is really bad. When I try to follow these steps, I get ...
0
votes
1answer
719 views

Installing libevent via PECL fails on Ubuntu 12.04

I have Ubuntu 12.04 built with Moodle Stack installed. I'm trying to install this: $ sudo pecl install libevent I get this error: Failed to download pecl/libevent within preferred state "stable", ...
0
votes
2answers
2k views

Recommended way of installing PHP 5.4

PHP 5.4 is stable for quite some time now. However, when I type apt-get install php5 PHP 5.3 gets installed. Question: Why? And what is the preferred way of installing PHP 5.4? Should I choose a ...
1
vote
1answer
2k views

Setting up Apache + PHP web server in Virtualbox on Win 7

Running Apache and PHP on Windows with XAMPP or WAMP sucks, because installing new PHP extensions on Windows is very hard. Most binary releases for Windows don't work :( So I was thinking to run ...
1
vote
2answers
1k views

Is it possible to create a subfolder inside a symlink folder but not be added into the parent folder?

Is a very tricky question, sorry about that Base on this Folder A file1 file2 Folder B ( symlink of Folder A (softlink) ) file1 file2 that i want to do is create a folder or file inside my ...
0
votes
1answer
94 views

How do I enable PHP on Mountain Lion and view a PHP file?

I followed this guide to enable PHP on Mountain Lion, but now I have no idea where to access the page. I tried localhost/~myusername/info.php where info.php if my file, but nothing loads.
2
votes
1answer
411 views

TextMate 2 “Go To Symbol” not working for PHP

I’m running TextMate 2.0-alpha.9419 and experiencing this issue: the editor doesn’t see my method definitions within a class, and won’t let me jump to them via “Go To Symbol”. The only method that TM ...
0
votes
1answer
2k views

PHP file won't open in browser, only download

I can't get .php files to run on my server. For example, I created a test file entitled "test.php" with the following content (only): <?php phpinfo() ; ?> When I try to open this or other ...
1
vote
0answers
358 views

MongoDB PHP driver installation issue in Red Hat Linux

My server OS is Red Hat Linux. I installed MongoDB 2.2.3 successfully on my server, following this tutorial. I also tried following these instructions for installing the PHP driver for MongoDB, but ...
1
vote
0answers
272 views

Trouble installing php-devel on CentOS

Working with a PHP install and trying to install APC on a server to help with speed issues with an application we're developing. We are having trouble getting phpize installed. phpize is not on the ...
0
votes
2answers
68 views

PHP4 for ARM fedora

I am looking for an ARM RPM of PHP 4, specificity to install on Fedora 17, however I cant seem to find one anywhere. I assume this is most likely down to ARM not being supported by Fedora in the age ...
0
votes
1answer
815 views

SSMTP and PHP sending mail through different domainds(sub-domains)

I'm trying to set up SSMTP on my Raspberry PI(Raspbian Wheezy(Debian ARM port)) Model B, Right now I can send mail through the console just fine, actually getting the mail aswel. The problem is when ...
0
votes
3answers
6k views

PHP Startup: Unable to load dynamic library 'C:"\php\php_mysql.dll' - The specified module could not be loaded

I'm trying to upgrade php 5.4.14 from php 5.4.3 in wamp server 2.2e. I have downloaded php-5.4.14-Win32-VC9-x86 (thread safe). Extracted it under C:\wamp\bin\php. Copied wampserver.conf from ...
0
votes
1answer
1k views

MAMP PRO won't execute PHP files?

For some reason, PHP files display as plain text in the browser when I browse locally via MAMP PRO. I looked through the PHP settings and there doesn't seem to be anything there that would affect ...
1
vote
1answer
125 views

Company Cloud Where I Can Assign Files To A User

I'm looking for a script/solution for my company. Basically a place to store our contracts/invoices for our clients online (so it will be hosted on our web servers), giving our clients access to our ...
0
votes
1answer
552 views

Setup Debian Server, Symlink from /var/www/dir to another directory

I have just started a server with debian, I'm new to this sort of thing so please bare with me. What I'm trying to achieve is this: Request comes in : sub.mydomain.co.uk I have to DocumentRoot ...
0
votes
2answers
232 views

find out if the server root password is known with php or a bash-script

Is there a way to find out if the shell Ubuntu root password is a certain word? I deliver an image with a full Ubuntu installation to my customers, that has a certain root password. I would like to ...
0
votes
1answer
651 views

xampp 1.8.1 on Windows 8 issues with PHP code using Notepad++

I am currently having a problem with xampp on windows 8. I installed xampp 1.8.1 and I didn't have any problems with the installation and I was able to configure Apache and MySQL just fine. But when I ...
5
votes
3answers
6k views

phpmyadmin symlinks error after ubuntu upgrade

After the upgrade of my ubuntu server to 13.04 my phpmyadmin is no longer reachable. the browser reports 500 (internal server error) and in the error.log it says: PHP Fatal error: require_once(): ...
0
votes
0answers
573 views

Install SOAP on PHP 5.4.13

We recently started using MediaTemple for our hosting and only just realized that SOAP is not enabled in the PHP build. None of us are very experienced system admins so we asked MediaTemple whom ...
1
vote
1answer
312 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 ...
0
votes
1answer
71 views

Wamp windows 8 problems

I am unable to see the menus that normally appear when I hover/select apache,php or mysql. These windows refuse to float to the lefthand side of the wamp server root menu, I barely see the edge of the ...
2
votes
1answer
397 views

How to change color of a PHP string in Notepad++?

Example: $string[34] = 'test'; I would like test to be black-colored or at least #333. Current one is light gray and not very visible. Thank you for your time!
1
vote
2answers
378 views

Netstat doesn't work on FreeBSD by php function exec()

In my php-app I need list of all ip connected on 80 port. i've chose this way: <?php $ips = exec("netstat -an |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c", $info); ...