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
22 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
4 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 ...
0
votes
1answer
20 views

library for html to rtf conversion

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 ...
0
votes
1answer
33 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
13 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
15 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
16 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 ...
0
votes
0answers
7 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 ...
0
votes
0answers
11 views

Installing PHP 4 on Windows Server 2012 side-by-side with PHP 5

We have a windows 2012 server with PHP 5 and IIS 8. We have a client with an older oscommerce site that needs to run on PHP 4 with register globals on. We have tried some workarounds for PHP 5 to ...
1
vote
3answers
29 views

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

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 ...
-1
votes
0answers
11 views

Upgrade from PHP 5.3.5 to 5.3.7 on CentOS 5.9

I've got a DV server at Media Temple, and I need to upgrade the version of PHP from 5.3.5 to at least 5.3.7 in order for my favorite PHP Framework Laravel to work properly... Is there an issue with ...
-3
votes
0answers
10 views

Notification cron in PHP for iOS Application [closed]

I can send notification manually as following code. <?php // Device token: $deviceToken = 'xxxxxx'; $passphrase = 'xxxxx'; $badge = 1; // Displays alert message here: $message = 'Match Found!'; ...
-1
votes
0answers
30 views

install phpmyadmin 4.0.3 centOS 6.3 or 6.4 minimal [closed]

I want to install phpmyadmin 4.0.3 on CentOS 6.3 or 6.4 minimal I am a beginner. Can any one help me install it step by step?
3
votes
0answers
41 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
0answers
19 views

Ubuntu 12.04 - Cli using correct php version, Apache is not

I'm working on a chef/vagrant build - the stack I'm using was configured to use php 5.3.10 installed from an apt-package. I need php 5.4.16. I initially tried setting the php version in the cookbook ...
0
votes
1answer
18 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
0answers
17 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
18 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 ...
-3
votes
0answers
15 views

many login interface to same web application [closed]

I have web application "GLPI". to connecte to this application I have to enter the following URL : http://server_ip_address/glpi the first interface is the login interface used to authenticate to ...
-3
votes
0answers
28 views

Are there source code analyzer available? [closed]

I am looking for source code analyzer which can analyze e.g. python and php code. What I exactly want to do is: analyze a single Class, written in php and python, which gives me simple relations of ...
3
votes
1answer
38 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
18 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 ...
-3
votes
0answers
21 views

Warning: mysql_fetch_array() expects parameter 1 to be resource, null given in F:\xampp\htdocs\testing\foreign_key.php on line 19 [closed]

class db{ private $host, $username, $password, $database, $link, $sql; function __construct($x, $y, $z, $a){ $this->host = $x; $this->username = $y; ...
0
votes
2answers
40 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
19 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) ...
0
votes
0answers
8 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
0answers
38 views

debian apt-get install php5-memcache broken

memcache appear this error in debian 6.0.7 i'm doing something wrong? root@xxxx:/home/xxxx# apt-get install php5-memcache Reading package lists... Done Building dependency tree Reading ...
-1
votes
0answers
8 views

How to add a wikipedia like sidebar in mediawiki [closed]

I am a newbie in mediawiki and i am creating a wiki website. I am facing trouble in creating a wikipedia like sidebar in my website. I have tried this code from mediawiki by going to the article page ...
0
votes
1answer
19 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 ...
1
vote
0answers
21 views

PHP static compiling

Has anyone managed to compile PHP statically? I configured PHP with: ./configure --enable-embed=static --enable-static=yes --enable-shared=no --disable-cli --disable-all Before i ran make i edited ...
0
votes
0answers
28 views

Why server alias is not working on xampp?

I have installed xampp on my ubuntu 12.4 machine. I have created a virtual host for one of my project. It works with the server name, but server alias doesn't work. Below is the httpd-vhosts.conf file ...
0
votes
1answer
46 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 ...
0
votes
0answers
18 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
24 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 ...
0
votes
1answer
72 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
35 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
0answers
11 views

PHP send mail works in Firefox no but no longer with Internet Explorer [migrated]

The following PHP send mail function works in Firefox and used to, but no longer works on at least one version of Internet Explorer (10.0.5). I am not certain when this happened, but seems related to ...
-1
votes
0answers
18 views

shell_exec not working in php web appl [migrated]

I made a shell script that detects network interfagces then for each interface it detects the IP address, mask, broadcast address, then it makes a ping to all IP addresses for this network interface. ...
0
votes
0answers
17 views

Why does my PHP 5.4 CLI have a 2-3 second delay before every execution

So I'm using OSX Mountain Lion, and the default PHP (5.3) worked fine. I used php-osx.liip.ch's install script to install PHP 5.4, and that works fine in Apache, and technically executes fine on the ...
0
votes
0answers
16 views

Generating crx file via PHP/phpseclib fails with: “Package is invalid: CRX_SIGNATURE_VERIFICATION_INITIALIZATION_FAILED” [closed]

I'm generating a crx file in PHP using phpseclib. When I try to install the crx into Chrome, I get the error: Package is invalid: 'CRX_SIGNATURE_VERIFICATION_INITIALIZATION_FAILED' Here's my code: ...
0
votes
0answers
11 views

Where do I get default ubuntu 12.04 php5-fpm php.ini default?

I was messing with config file, and forgot to make backup before doing changes... I'd like to see what changes I've accumulated in comparison with defaults. How do I get default php.ini from ubuntu ...
0
votes
1answer
60 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
0answers
44 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
0answers
13 views

How to run a console on Ubuntu to install the daemon?

Now I start to deal with WebSocket and must be installed on phpDaemon Denwer. I read the installation manual but there are items that I have not yet understood ( Where the folder is located in ...
0
votes
1answer
37 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", ...
-3
votes
0answers
25 views

How to find out how many times a link has been clicked? [closed]

Is there a way to check how many times a link has been clicked on a html page? How would the html and php work together?
0
votes
0answers
38 views

How to install and configure database certificate tool?

How to install and configure Firefox Database Certificate Authority Tool (Certutil) I have a PHP based web application with log-in functionality. Now the log-in works with the help of SQLite ...
0
votes
2answers
64 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
33 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
58 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 ...

1 2 3 4 5 16