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

1
vote
1answer
882 views

WAMP 2.2e - 403 Forbidden in Offline and Online mode

I just installed a WAMP Server 2.2e, wamp icon in tray is green, showing - Wamp server is offline. When i'am trying to access my localhost address, i receive an error 403 Forbidden. For localhost, ...
2
votes
2answers
12k views

Notepad++ General Purpose code formatter.

I enjoy a lot that I can hit CTRL+Shift+F on eclipse and it automatically formats the code according to a profile. My question is how can I do something similar on Notepad++? Where would I go about to ...
1
vote
0answers
70 views

ldap exchange 2003 code 49 - ERROR_PASSWORD_MUST_CHANGE

I am trying to write a function to allow a user to reset their password when they must change their password (code 49 - ERROR_PASSWORD_MUST_CHANGE). I ask for their username, current password, then ...
1
vote
1answer
142 views

Upload .SQL Files to Wiki

Changes to my team's database are recorded in our internal wiki. Currently, in addition to a brief description, the .sql scripts are added as text. This is becoming bulky and making the page difficult ...
2
votes
1answer
818 views

Upgrade PHP to 5.4.14 on OS X 10.7.5 Lion

I am trying to upgrade PHP on my Mac. I have downloaded PHP 5.4.14 and have no problems with the configuration command: ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ ...
0
votes
1answer
173 views

Cron Job Command To Delete 0 Byte Files

I need to have a Cron Job, that when it runs automatically deletes all of the files inside of a folder that are exactly 0 bytes. The script I am using allows users to enter their username so it ...
0
votes
2answers
270 views

Why is it so hard to send emails using PHP? [closed]

This is not a coding issue, so I think "superuser" is the best place to post this. I have been trying to send email using PHP for about 1 week now, and still no success. My story so far: Trying to ...
0
votes
1answer
637 views

curl (48) An unknown option was passed in to libcurl, cannot install composer

I'm trying to install composer via cURL but I cannot find how to download the phar archive. I've installed cURL from source activating in it's build ssl and ssh compatibility; I need composer to have ...
1
vote
1answer
268 views

PHP Exec function reports failure on some commands that work by SSH

I'm on CentOS 6 64bit with PHP 5.4.12. This is very strange behavior by PHP. See the following script: echo 'Trying Query: whereis jbig2dec<br>'; exec('whereis jbig2dec',$output) or ...
0
votes
1answer
4k views

How to connect php 5.4.4 with microsoft sql server 2008 R2 in windows Xp?

How to connect php 5.4.4 with microsoft sql server 2008 R2 in windows Xp? i have installed xampp 1.8.0 with apache2.4 and php 5.4.4 embedded in it. i have installed microsoft sql server 2008 R2. i ...
0
votes
0answers
89 views

Create two partial php.ini files

I want to two split php.ini into two files so that I can move important entries to a new file. I think it is a .ini file so, any rule for creating partial .ini files will also apply to it. Is it ...
6
votes
2answers
7k views

Where'd PHP for cygwin go? Still have a copy with PHP installed? Wanna share?

I used to have cygwin with PHP installed and working, but the hard drive on which was installed crashed catastrophically. Cygwin was just about the only thing that hadn't propagated to my backup yet, ...
1
vote
0answers
482 views

Configuring XAMPP and “PHP Tools for Visual Studio”

I am using XAMPP and the "PHP Tools for Visual Studio" extension in order to code in PHP. I already configured XAMPP to use xDebug and mod_rewrite. The web site looks OK when I copy everything into ...
0
votes
0answers
491 views

PHP does not work on alias (XAMPP)

I trying to make alias on my local machine with XAMPP for my PHP project. I added follow in httpd.conf: Include "conf/alias/*" And make two files for aliases, one of them is like: Alias /aiuu ...
0
votes
1answer
404 views

Recover corrupted file after power outage

I am working on a PHP project for a customer. While I have edited the code, I had a power outage in the whole home. When my computer back I tried to open the main php file , but I get weird null ...
0
votes
1answer
358 views

OSX Server - LDAP / pwpolicy - How to disable a account?

For some reason, Apple is great at just changing the syntax or path of (insert random feature here). And thus, I'm having trouble disabling (not locking a account, that seems to work fine by setting ...
0
votes
4answers
8k views

WAMP Server's Apache Service Not Starting in Windows 8

I have a problem starting the Apache Service in WAMP Server, when i test port 80, I get the following message on the console Your port 80 is actually used by : Server: Microsoft -HTTPAPI/2.0 Things ...
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 ...
1
vote
0answers
98 views

repeat command until process start or timeout unix

Is there anyway to check the number of file in a directory, if the number of files is correct, say 5 files, zip the files with zip -r total.zip. If the number of files is wrong, wait 3 seconds, and ...
0
votes
1answer
95 views

Keep cmd open for period of time

I have scheduled a taks on my windows 7 machine to run every 15 minutes and I have that working. The command is C:\wamp\bin\php\php5.3.5\php.exe -f "C:\wamp\www\vmstage.php" Still, all working. ...
0
votes
2answers
53 views

How can i look up where Constants are defined using Aptana

I am currently working on a shopping cart using an open source PHP framework. it is quite large. i recently installed a plugin that included over 160 separate files!, there is now some kind of logic ...
1
vote
1answer
147 views

What kind of encoding is this?

I found some base64 encoded text in a compromised php file. When I decoded the base64 string, it was the following directive: ...
1
vote
1answer
4k views

Recursive write permissions on files and folders: Prestashop installation

I am trying to install Prestashop in my Linux machine. But it says Recursive write permissions on files and folders: ~/config/ ~/cache/ ~/log/ ~/img/ ~/mails/ ~/modules/ ~/themes/default/lang/ ...
0
votes
1answer
369 views

s accessing mysql database on server from other PCs

I have installed XAMPP on a server PC. I want to access it from other PC through MySQLWorkbench or even access it through server IP and PHPMyAdmin page. I tried configuring the httpd-xampp.conf file ...
0
votes
1answer
103 views

Apache/PHP installation on OSX differences?

I'm wanting to update the local version of PHP on my Mac.. i've been doing some digging and got a little confused. If i run php -i from the terminal it says: $ php -i phpinfo() PHP ...
0
votes
2answers
176 views

PHP Installation on RHEL

Am trying to install and configure PHP 5.2.17 - 32 bit on RHEL6.2 but am getting error while configuring as below : checking libxml2 install dir... no checking for xml2-config path... ...
0
votes
1answer
172 views

index.php file gets downloaded after PHP reinstall

I'm using SugarCRM CE edition 6.4 I uninstalled the php5 from the server (Debian Squeeze) then reinstalled all the php5 with it's modules. Restarted Apache (/etc/init.d/apache2 restart). Then after ...
1
vote
1answer
86 views

Windows: Run PHP via command line from htdocs

I'm trying to run PHP via the command line (Windows 7), however it's a pain tuping the full path to PHP every time. I tried using mklink mklink /D "c:\xampp\php\php" php however that doesn't seem ...
1
vote
1answer
338 views

How can I force dreamweaver to show CSS syntax highlighting for a PHP file?

this is my first ever question here. Basically I have a dynamic CSS file, meaning the PHP changes the colours of borders and stuff depending on the preferences saved in database. My problem is not ...
0
votes
1answer
288 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
147 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
280 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 ...
1
vote
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 ...
1
vote
1answer
5k 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
203 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
121 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
320 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
212 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
573 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
490 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
88 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
313 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
367 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
930 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?
1
vote
1answer
2k 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
530 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
119 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 ...
6
votes
0answers
781 views

Should we still set cgi.fix_pathinfo=0 when configuring nginx+php5-fpm? [closed]

Security breach was found in nginx+php5-fpm default configuration in 2010. A lot of nginx+php5-fpm configuration guides tell us to set cgi.fix_pathinfo=0 to be safe. Is it still actual for current ...
1
vote
3answers
334 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
196 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 ...