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
0answers
66 views

how I can set Xdebug in php.ini for my mini server to seen the error in uniserver?

I tried uniserver portable to get php server run on my computer. [xdebug] zend_extension="C:/UniServer/usr/local/php/extensions/php_xdebug.dll" xdebug.remote_autostart=on xdebug.remote_enable=on ...
2
votes
2answers
742 views

Setting pipefail for a single piped command

I need to execute a number of piped shell commands from a non-BASH script (namely PHP script) like these: command1 | command2 | command3 so that, if command1 fails with a non-zero exit code, each ...
-1
votes
2answers
83 views

Torrentflux broke after upgrade [closed]

A working torrentflux setup seems to have gone broken after upgrading PHP to 5.3 and Postrgres to 9.2beta3 on a FreeBSD 8.2 server. The login screen will show up fine, but after clicking the login ...
0
votes
1answer
39 views

Cannot connect to database

I created a php file to connect to my database hosted on ipages.com with the following simple code: <?php mysql_connect('hostname', 'username', 'password'); ?> When I load this page, I get ...
0
votes
1answer
107 views

Trying to switch to linux as a PHP developer, can't move my development environment

I'm using Windows for my development operations but i'm deploying to Debian/Ubuntu based distros. So i thought if i move my development to a linux distro it will be more comfortable. I'm using XAMPP ...
0
votes
2answers
2k views

How to Configure Adobe Dreamweaver CS6 with PHP and ASP .NET?

I have Wamp Server on my PC and also Visual Studio and I want to Configure Adobe Dreamweaver CS6 with ASP .NET and PHP so that I Can design Dynamic website....
0
votes
2answers
244 views

How can I make breakpoints work when debugging Zend Framework in Komodo IDE 7?

I am trying to use Komodo IDE 7 (7.1.3) to debug a Zend Framework (PHP) project. The project is being served by Apache on a Ubuntu Server and I am using Komodo on Windows 7 on the same LAN. The files ...
0
votes
1answer
101 views

Mass modify all php files on my server

I would like to delete a php code on all my php files on my debian server. indeed I would like to get rid of a line: eval(base64_decode("DQplcnJvcl9yZXBvcnR")); It's present in many of my phpfiles. ...
0
votes
4answers
1k views

How to create a local web host domain name for free

I have installed XAMPP, and my projects are saved in htdocs folder. When I view it in browser the URL identifies as http://localhost/example/index.php How can I access it using a domain name of my ...
1
vote
0answers
123 views

WAMP and WIN 8 issues on port 80

I have tried all to get WAMP running in WIN 8 due to the problems on port 80. I changed the settings in lmhost from 80 to 8080 but I get a error localhost 8080 is not allowed.... I am using chrome as ...
0
votes
0answers
348 views

“unrecognized options” while installing php

I want to compile php 5.4.8 on my mac 10.8.2, but get some errors which cant solve by my self, so need your help. Firstly i get default php options with php -i | head, after it do this command ...
0
votes
1answer
121 views

How to quickly type “->” in Netbeans for PHP

Almost C++ IDE know when they should turn the "." to "->", but with some off my PHP IDE they don't. For example: $f = new Foo; $f. // will not turn to $f-> Is there any trick for do that in ...
1
vote
2answers
491 views

Upload Picture File Paths to Database Without Creating Multiple Records and Giving The Files Random Names

I want to be able upload pictures to a folder and their filepaths to a MySQL database without creating multiple records. For example instead of: id PicturePath size 1 ...
1
vote
0answers
110 views

Solr php extension on zend server ce make fails

I've got curl, and libxml which are dependencies of the solr extension But pecl could not realize that, so I did, pecl install -n solr knowing that I have set the correct php.ini, ext_dir ..etc, ...
2
votes
2answers
116 views

If two separate PATH directories contain a same-named executable, how does Windows choose?

I'm in the process of upgrading PEAR (PHP) on my system. The upgrade script is encouraging me to add "..\PHP\PEAR" to my PATH so that I can use "pear.bat". However, I already am able to use pear.bat. ...
0
votes
2answers
1k views

PHP CLI not respecting memory limit in php.ini

I am using drush, which is a command-line php app to manage a drupal website. I am running a command to import a lot of data, which is causing me to hit php's memory limit. PHP Fatal error: Allowed ...
0
votes
0answers
134 views

Pure-FTPD parallel upload issue

i am copying approx 300 10MB files from another server to my server. everything works just fine but i tried to run parallel thread so that i can complete it fast i got surprised as another file will ...
1
vote
1answer
2k views

CENTOS 6 - How to install php-mysql when php-common @remi is present?

I am having troubles adding mysql support for my php installation, this installation was made using a ready to use-package that came with our VPS. This is my php.info: ...
0
votes
1answer
342 views

Sync Folder Between Two Servers

I have an hourly PHP backup script for my MySQL Database, but now I need a way to synchronize the newest backup file in the bunch to a remote server. Both of them have IIS installed, and both have ...
2
votes
1answer
4k views

How to upgrade PHP on Mac OS X

So i did simple thing: php -i | head ./configure --prefix=/usr --with-snmp make sudo make install But phpinfo() still showing me 5.3.15. Here some results of investigations: PHP_BINDIR = /usr/bin ...
1
vote
2answers
3k views

Where is php executable on Ubuntu?

I have installed apache and php. I know php works as I have tested a simple php file on apache server. I'm writing a simple webserver which should be able to process php files. So what I want to do ...
2
votes
1answer
199 views

Passing Return Key via Shell Script

I'm using phpseclib to run a shell script on my server at a given interval. That script involves using nohup. For whatever reason, if there isn't a user ready to send SIGINT or a return to nohup once ...
4
votes
1answer
780 views

Escaping Variable in Cat

I'm trying to write a shell script over ssh via a bash prompt. The shell, however, insists on interpreting any variable I want to write instead of writing it directly to file. For example, cat ...
0
votes
1answer
401 views

Screen multiuser - Permission denied

I'm trying to send input to a screen session from php. So far I have followed the steps explained here Is running GNU Screen suid root the only way to make multiuser mode work? And I have set ...
0
votes
1answer
32 views

Location of code in a page

I'm working with Google Chrome for debugging and a lot of times i cant remember where i initially implemented codes for different things... I am looking for a php code that i inserted to one of my ...
1
vote
0answers
142 views

How to connect Komodo edit with WAMP?

How do I setup it to preview PHP code over WAMP with Komodo edit?
0
votes
1answer
1k views

Cannot find php-soap package

I'm having trouble getting SOAP installed on my webserver. I am using SUSE Linux and I have PHP 5.2.6. I've tried apt-cache search php-soap but I am not getting anything. When I try apt-cache search ...
0
votes
1answer
162 views

When using PHP math and Binary Numbers [closed]

I am learning a little more about PHP instead of the basic formatting, etc. One of the questions I have is that with the math part of PHP I can do some rather interesting things with math. I am ...
1
vote
1answer
884 views

ffmpeg working when SSH but not when PHP exec

I am not sure why so first here is the error Array ( [0] => ffmpeg: error while loading shared libraries: libvpx.so.1: failed to map segment from shared object: Permission denied ) my PHP ...
5
votes
1answer
406 views

Making Apache use compiled PHP instead of bundled package on Debian

My ultimate goal is to install OwnCloud on my Debian box, a 64-bit squeeze. My setup is pretty simple. I have installed OpenPanel which in turn installs all of the required LAMP modules via APT-GET. ...
0
votes
2answers
2k views

Sublime Text Preview php files on localhost

Hey I've just started using Sublime Text 2 with the SidebarEnhancements package installed. I have it setup so that when I press the build shortcut it previews in Chrome which is fine for my HTML ...
0
votes
3answers
2k views

Trying to get started with YII framework, but I'm stuck

Okay, So I have Xampp installed, and then I have YII installed on localhost inside a directory called "yii". I am now doing a tutorial to learn YII, but I'm stuck on the following page They say: ...
0
votes
0answers
167 views

mod_rewrite working but php pages not found or not recognized (downloaded instead of executed)

In regard to my first post mod_rewrite problems in sandbox: Mac OSX 10.6.6 Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8l DAV/2 PHP/5.3.3 I am making progress but... Now the index.php page is not ...
1
vote
1answer
1k views

Installing ionCube on Windows 2008 64bit

I've been trying to install ionCube onto my server but have not been having a lot of luck! My server is: Windows 2008 64bit PHP 5.3.14 Thread Safe disabled running as FastCGI In my PHP.ini ...
0
votes
1answer
2k views

PHP mail() function not working in Mac OS X

I know this question has been asked many times and people use to give many solutions. I have followed almost all the possibilities which I come across after investigating on it. but nothing worked ...
1
vote
1answer
819 views

How to enable the php 5.4.x version on Mountain Lion

I have installed the latest php version on my mountain lion system using these instructions (http://mac.tutsplus.com/tutorials/server/upgrading-the-native-php-installation-on-os-x-mountain-lion/). I ...
2
votes
1answer
4k views

apache 2.4 + php 4.7 cannot load php5apache2_4.dll

I am trying to make Apache (httpd-2.4.3-win32) to work with PHP 5.4.7 (VC9 x86 Thread Safe) on Windows 7. Apaches default page is working and proudly says: "It works". PHP CLI is working and ...
3
votes
2answers
2k views

php startup error Invalid library (maybe not a PHP library) 'pcntl.so'

After searching for hours to solve my problem and found nothing helpful I ask my first question here. I want to compile and install php 5.3.17 cli with pcntl extension enabled on a Debian server. The ...
2
votes
1answer
902 views

Vim: Context sensitive code completion for PHP

Vim gives me too much options when I use code completion. In a class, and type $class-> it gives me about a zillion options, so not only from the class itself but also from php, all globals ever ...
1
vote
1answer
155 views

Cannot read directory

I am using CentOS 6.3 and I am trying to opendir and readdir using PHP. apache is in the group of the user and I am trying to read the /home/user/mnt which is mounted remotely using SSHFS. ...
1
vote
1answer
482 views

VP8 and WebM, not working in ffmpeg-php

I need a help with ffmpeg-php and Ffmpeg. Ffmpeg: ffmpeg version 1.0.git built on Oct 6 2012 01:54:50 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4) configuration: --enable-gpl --enable-libmp3lame ...
1
vote
1answer
145 views

Does Github's API allow opening issues?

Is it possible to use php on your server to open an issue in Github? I'm trying to use Github's issues as a means to report errors, and let visitors report problems when they occur.
1
vote
2answers
443 views

Strange Behaviour with Unicode Characters in Windows

Ok, I do not know if this is a programming question, but it certainly is a technical one so I am asking it here. I was working on some internationalization stuff in my PHP code, and in order to ensure ...
0
votes
0answers
231 views

Crash in audio resampler with some audio rates - FFMPEG PHP ( Solved! )

i have a problem with this command( FFMPEG PHP ): Command: ffmpeg -i 62f76f050494f0ed6a5997967c00c0c0.wmv -ss 0 -t 99 -y -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 -f flv ...
1
vote
2answers
394 views

Why localhost is too slow while I am downloading and it works perfect when there's no internet at all

My project don't need anything from the internet, no JQuery, no twitter, no nothing! and it works perfectly when there's no internet connection at all, and of course when there's an internet ...
0
votes
0answers
88 views

Can HTML/PHP/Javascript code be commented in a single click/keycombination?

The question it's clear enough. I want to be able to select certain code and with a key combination or menu element be able to comment it in Aptana Studio 3. Yes, I can add the tags myself but I'd ...
0
votes
3answers
137 views

Linux saving a file with a ~

I am attempting to write a php program in linux and I am using either blue fish or gedit. Both those programs are not saving the true name of the file "newaccount.php" but instead saving ...
0
votes
2answers
188 views

OSX installing php 5.4

I downloaded Macports and run a command I get online, which would install php 5.4. It took a while, but seemed to work successfully. I then copied the php.ini.development and renamed it php.ini like ...
0
votes
1answer
116 views

PHP Zend Hash Vulnerability Exploitation Vector [duplicate]

Possible Duplicate: CVE-2007-5416 PHP Zend Hash Vulnerability Exploitation Vector (Drupal) According to exploit-db, http://www.exploit-db.com/exploits/4510/, it says the following: ...
0
votes
1answer
253 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 ...