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
405 views

Tunneling through SSH for 1521 port access?

I am developing locally on my computer, using my own Apache server with PHP configured. My database however is remotely located on an Oracle 11g Database Server. We were also given a separate remote ...
4
votes
1answer
7k views

Install PDO-driver for Postgresql

When i run PDO::getAvailableDrivers() i can see that the only available driver is sqlite, and i want to use Postgresql. What should i do to accomplish that?
16
votes
5answers
4k views

How to go to a website on a shared server by its ip address?

I have a few questions, please help: Fist, I can access Google search just by typing http://74.125.224.211, because this is the IP address returned by nslookup. However, I could not do so with the ...
1
vote
1answer
396 views

How do i install apache on my ubuntu 12.04 where it has virtualhost

According to the docs https://help.ubuntu.com/10.04/serverguide/httpd.html i have done following, and that is almost how i do always in my Fedora, but Ubuntu looks like its not working. a) DNS to IP ...
2
votes
1answer
1k views

Can I Call AHK Script From PHP or Javascript - Also How Do I Pass A Variable to a Script?

If I have an AHK script which has a variable in it - how can I pass a value to that variable so that the script runs with that value? Can I call an AHK script from PHP or Javascript - if so how? I ...
2
votes
1answer
544 views

Changing the PATH environment variable in Apache

In my phpinfo(), in the section Apache Environment, I want to change the value of the variable PATH. This is possible? I tried SetEnv PATH /mypath, but it does not work. How do I change the PATH ...
2
votes
1answer
287 views

curl works at the command line, but how do i put it in a php file?

The following curl format works for me from the command line. The line below is just sample data, but the format works. curl -u email@email.com:1234567 https://api.email.com/status How do I ...
0
votes
0answers
321 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
1answer
56 views

Use HTML page like PHP/ASP page [closed]

In ASP and PHP, one can add "?blahblah" to display pages dynamically. I saw somewhere that html page is used in similar way (e.g. index.html?etc.crontab). How is this possible? Is this page really ...
2
votes
3answers
2k views

PECL install error after upgrading to OSX 10.8

I've just upgraded my OS to Mountain Lion and PECL is no longer working (it's on a test drive so no drama, but I'd like to get it working so I can upgrade the OS on my shiny new SSD as well). I'm ...
1
vote
1answer
441 views

can't install php5-devel on SLES11

I'm runnig for the first time SLES11(SP2) nad I have to install php5-devel on it, my problem is that it doesn't work with yast, I've download the rpm file and tried to install it, but it some how ...
0
votes
2answers
215 views

Excessive PHP errors in Joomla

I have Joomla 2.5 installed on Windows 7 with Apache 2 and PHP 5. I have countless PHP errors in the log like the following: [01-Sep-2012 19:33:55 UTC] PHP Strict standards: Only variables should be ...
2
votes
1answer
405 views

Weird file truncation issue in CIFS mount

With reference to: http://stackoverflow.com/questions/12211629/php-file-put-contents-not-truncating-file-in-cifs-mount We have a Seagate BlackArmor NAS device, which is mounted on our Ubuntu 10.04 ...
0
votes
2answers
3k views

PHP pages are not parsed by Apache on CentOS

I have installed Centos 5.x, Apache 2.2, PHP 5.3 and MySQL 5.5. I also installed phpMyAdmin. I am able to access phpMyAdmin through the browser without any issues. However, when I create a simple ...
1
vote
0answers
512 views

php interactive mode gives no prompt

I'm running Windows 7. I just downloaded the "binaries and source" distribution of Php 5.4.6. When I unzip the download and navigate into the directory and enter the command php.exe -a on my command ...
1
vote
0answers
456 views

Problems with mcrypt on Snow Leopard

I'm having libmcrypt troubles on my Mac, version 10.6.8, php version 5.3.8. I want to enable libmcrypt but I don't appear to have mcrypt! I've tried following directions to install libmcrypt on a ...
1
vote
0answers
196 views

Mercury with Xamp does not mail, but gives no error

Im making a website, and after users have registered i want to send them an email. Im using the codeigniter framework which has some neat premade mail functions in it. The code is working like it ...
2
votes
1answer
1k 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
676 views

Set permissions to www user to run ImageMagick

I have installed ImageMagick on my OSX Lion. When running from the console everything works fine. But when I'm trying to run 'convert -version' from a php script : <? exec('convert -version', ...
3
votes
1answer
15k views

Perrmission to run specific command by sudo as www-data users without password

I have a webserver that also plays internet radio. As www-data user I want to run some commands, for example I've made this in /etc/sudoers file: www-data ALL=(ALL) NOPASSWD: /usr/bin/amixer ...
1
vote
1answer
2k views

Can't get phpmyadmin to work on Ubuntu 12.04

Alright, I've been following this guide (along with others to double check) to attempt to get a working lamp stack installed, but phpmyadmin always throws an HTTP 500 server error. PHP executes fine, ...
1
vote
1answer
5k views

How to gain permission to read/modify in Ubuntu?

I just installed Ubuntu and when I open some file in the terminal then i can access that file as root using sudo -i to change ownership. However, if I modify a file in my local server folder ...
3
votes
2answers
771 views

How to access MySQL when I delete the root user on openSUSE 11?

Unfortunately I deleted MySQL users with the command delete from mysql.user and now I can't access MySQL. I tried looking at MySQL - ERROR 1045 - Access denied, but it is not proper for me because ...
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.
0
votes
2answers
2k views

PHP script won't render in browser - just displays the code

I use Fedora 17 on my laptop, and I am trying to do some web development work on it. I have installed Apache, MySQL and PHP on the laptop (following this guide when it comes to what software to ...
1
vote
1answer
438 views

PHP doesnt render pages

PHP doesn't render pages in Ubuntu 11.10 Installed apache/PHP using sudo apt-get install php5 mysql-server apache2 my file (info.php): <?php phpinfo(); echo "test"; ?> opens in ...
0
votes
1answer
102 views

Put file on FTP server using PHP

I have an FTP server running on my home computer. I've built a super simple web interface for depositing files onto the server without the use of a native client using the HTML5 File API. I have the ...
0
votes
1answer
158 views

Centos: php-devel trashed mysql

Good morning. I'm on a CentOS machine, did a yum install php-devel Flat out saying this MySQL Daemon failed to start. Starting mysqld: [FAILED] which ...
1
vote
1answer
372 views

Localhost spits out PHP source code

I just installed MAMP 2.1.1 on OS X 10.7.4. The MAMP Start page says everything is running. MySQL is running, I can issue command line commands in Terminal. I tested PHP by typing: php -f ...
1
vote
0answers
336 views

PHP document root problems (permission denied)

I've set up PHP on my OS X 10.8 system and am trying to test it works. I created a file named "phpinfo.php" and placed it in my document root with the contents below: <?php phpinfo(); ?> ...
8
votes
3answers
25k views

PHP script can't run bash script. sh: Permission denied

I'm trying to exec a .sh script from PHP, however it is not executing. I checked the error logs, and I'm getting the 'sh: Permission denied' error. I checked under which user php is being run, and ...
4
votes
2answers
6k views

Unable to use Google Chrome as the external browser in Eclipse

I'm trying to use Google Chrome as the external browser for Eclipse PDT. I always get the following error: Could not launch external web browser for http://... Check the Web Browser preferences. ...
1
vote
2answers
1k views

after fresh install of mountain lion MAMP goes crazy, php segmentation faults and parse errors

I was working on developing a wordpress theme/plugin, and stupidly I decided to upgrade to Mountain Lion. I installed it as a fresh copy. But now, I'm experiencing weird errors. First error I ...
0
votes
1answer
585 views

XAMPP with SkyDrive

Is it possible to shadow my PHP project under development in SkyDrive hosted under XAMPP while keeping the folder in c:\xampp\www directory. This way I can share a small-enterprise level project with ...
0
votes
1answer
523 views

Php reading a file with several lines [closed]

I have a file named file.txt that looks like this: Line 1 Line 2 Line 3 Line 4 using the command: $content = file_get_contents(file.txt); echo $content I get the output on one line: Line 1 ...
3
votes
1answer
887 views

What is the difference between apt-get install php-apc & pecl install apc?

Wanted to setup APC php cache to a fresh 12.04 precise ubuntu box. Do apt-get install php-apctotally replace apt-get -y install libpcre3-dev; sudo pecl install apc? If not what are the differences?
0
votes
1answer
225 views

Where can I find per virtual host php settings on Debian

I try to set in php open_basedir to /srv/www because I need to link folder from one virtual host to another, so I set in /etc/php5/apache2/php.ini open_basedir = .:/tmp:/usr/share/php5:/srv/www but ...
0
votes
1answer
3k views

Apache Startup doesn't work with PHP 5.3 in Debian Lenny

Today I updated PHP 5.2 to 5.3 but then Apache Startup doesn't work. Apache says: Starting web server: apache2apache2: Syntax error on line 205 of /etc/apache2/apache2.conf: Syntax error on ...
1
vote
1answer
679 views

Playing sound on server using php

I want to play a sound file on my server using PHP. The PHP script is called by Apache and runs under the user 'nobody', which has by default no access to the speakers. So I created a new user ...
2
votes
0answers
179 views

PHP web application can't connect mysql installed with Zend Server CE on SuSE Linux 11.4

I had a running LAMP system. SUSE 11.4 with Apache 2, MySQL and PHP 5.3 Then I installed Zend Server CE. Everything is OK, but now I can't connect it to MySQL. The MySQL Server is running. If I ...
0
votes
1answer
574 views

Is there a MAMP-like application with up-to-date components (Apache, MySQL and PHP)?

I'm using PHP and MySQL to develop websites and web applications on my Mac. Using Git and a deployment service I deploy the code to the production environment. I'm looking for a MAMP-like application ...
0
votes
1answer
3k views

IIS site taking an extremely long time to load?

I have a local copy of my website running on IIS 8 (this is in the Windows 8 RP) with the latest version of PHP with FastCGI, and a complete MySQL install (I selected the lowest memory using option in ...
1
vote
1answer
93 views

What is a good file extention for CLI PHP programs?

I use PHP for some OS scripting, is there any proper file extension other than .php for PHP cli programs? So I can assign php.exe to run these kind of files directly. Is .phps a good candidate? I ...
4
votes
3answers
205 views

How to get a static version of my site?

I need to save a static version of my site by using the sitemap which has about 400 URLs. What is the best way to do that?
3
votes
2answers
26k views

Configuring Aptana 3 to work with PHP & XAMPP

I have installed XAMPP and aptana. But when I run my php file it shows me a text format of it. (I've started XAMPP in the background) What did I do wrong? Edit: Now I think I found the problem, ...
1
vote
1answer
449 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
6k views

How to upgrade libxml on CentOS

I have a following version of CentOS: $ cat /etc/issue CentOS release 5.5 (Final) Kernel \r on an \m and following version of libxml: $ php -i | grep libxml libxml Version => 2.6.26 libxml ...
2
votes
2answers
131 views

Detect filetype in narrowed region

I am using the terrific NrrwRgn plugin. I often edit XML files with PHP in CDATA sections, so in the narrowed buffer I get this: <![CDATA[ $foo='bar'; doSomething($foo); ...
0
votes
1answer
833 views

How to get media info with PHP? [closed]

I have several movies with "mov" and "mkv" extensions on my server and I want to get media info like size, time, audio streams, video streams etc. via PHP. Is it possible?
0
votes
1answer
271 views

Url rewrite rule [closed]

How to redirect a page form show.php?id=(15charstring) to show/(15charstring) I tried like this it is doing reverse means it is redirecting /show/(15chars) to show.php?id=(15chars) RewriteEngine on ...