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
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
988 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
115 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
522 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
206 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
622 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
5k 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
521 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
281 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
69 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
321 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
353 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); ...
0
votes
1answer
154 views

make error in PHP_PERL

I am following the answer in this thread to make the perl module for php. am using ubuntu 12.10. unable to use PHP_PERL extension. Unable to install the extension as well The short steps are: ...
0
votes
1answer
2k views

Shutdown Debian from php script

I am trying to shutdown my RaspberryPi running Raspbian from a php script running on lighttpd webserver. shell_exec("sudo /sbin/shutdown -h now 2>&1"); I added lighttpd ALL=(ALL) NOPASSWD: ...
0
votes
0answers
548 views

Apache2 HTTP Error 500 when attempting to access localhost, no error in log

In Ubuntu, I'm trying to setup my PHP website locally in Apache2. I am able to get the "It works!" page to show when I navigate to localhost in the browser. I then copied the default site in the ...
-4
votes
1answer
128 views

PHP Version 5.2.17 [closed]

I'm new to PHP development. After I signed up new hosting package, I found that my web host is using OLD PHP, that is PHP Version 5.2.17! The latest version is 5.4.14/5.3.24 What should I do now? ...
0
votes
1answer
381 views

How to verify SCP transfer was successful?

I'm using http://phpseclib.sourceforge.net/ to make an SSH connection to my server, then execute an SCP command to transfers to a remote server. The library's exec() method returns a string (looks ...
0
votes
0answers
516 views

getting following error while installing ffmpeg-php on PHP v5.4.14 / CentOS 5.9

Having trouble installing ffmpg-php on centos, SSH shows following error after commands: ./configure make make install ..... /usr/local/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:1215: warning: ...
0
votes
2answers
401 views

How to install php_mapscript extension on WAMP

I searched over the net for how to install php_mapscript extension on WAMP, but found nothing really clear about it. I tried to install it manually. So I dropped the DLL in the php extensions ...
0
votes
1answer
346 views

Unable to run test.sh file through project.php inside /var/www/

test.sh's path is /var/www/proj/test.sh, and project.php is inside /var/www/ and my test.sh uses and creates some .txt files. when i execute test.sh through terminal it works fine, but when I run ...
0
votes
0answers
130 views

PHP server cache (X-cache) problems

Lately my PHP server (paid host at One.com) has been having a huge delay (approx. 15 minutes) from I change something in my code, to the actual change in the files. When I log in to the FTP, the ...
0
votes
1answer
118 views

Fail to load php module macports

I'm trying to install php module via macports. I have them installed, so I run cd /opt/local/apache2/modules sudo /opt/local/apache2/bin/apxs -a -e -n "php5" mod_php54.so Then I'll ensure myself, ...
5
votes
2answers
2k views

Installing zeromq on Windows 7 WAMP server

I am looking for installing zeromq on my Windows 7 machine for using zeromq with PHP (I am using WAMP server (5.3.4), Apache Server 2.2.17). I followed the documentation on their site, but I don't ...
2
votes
1answer
1k views

Running rsync shell command in php

I am trying to do a rsync from amazon cloud to my local machine by using php. I have $copy = 'rsync -acz ubuntu@ec3-51-123-131-111.compute-1.amazonaws.com:/project/file.txt .' shell_exec ($copy) ...
-1
votes
3answers
4k views

mysql access denied for 'root'@'name of the computer'

I am getting this error everytime im trying to connect to my database Warning: mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user 'root'@'name of the computer' ...
1
vote
1answer
1k 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
14k 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
77 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
164 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
870 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
197 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
295 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
697 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
286 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
95 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
516 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
520 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
463 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
391 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
9k 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
104 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
101 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
56 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
154 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
5k 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
402 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
112 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 ...