PHP is a widely-used general-purpose scripting language that is especially suited for Web development.

learn more… | top users | synonyms

2
votes
3answers
195 views

Can't include an HTML link in PHP script, but works fine as MySQL query

I'm using the following as part of a PHP script: mysqli_query($con,"UPDATE table SET description='<a href="http://123456.biz/index.php/123/321/456/*/789">text</a>' WHERE description IS ...
2
votes
1answer
177 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: header("R\145\x66resh\072\x20\x32\x35\x3b\x20\x75r\x6c\075\"\x68\164\164\...
2
votes
1answer
1k views

Is having Linux VPS same as Amazon EC2 or S3 [closed]

I am new to Amazon services so have no idea, whenever i ask some questions on forums , few recommend Amazon instead of VPS. So i want to know is having Amazon EC2 or S3 is exact replacement of VPS. i ...
2
votes
4answers
15k views

yum install a particular version

I am currently using centOS 5.2 I want to install php 5.3.3. how do I install using yum?
2
votes
2answers
2k views

Custom php.ini override for each user

How can I make it so that each user (with Apache's mod_userdir) has a php.ini file in their home directory that gets used along w/ the system php.ini (currently in /etc/php5/php.ini? Cheers! EDIT: ...
2
votes
3answers
6k views

Is it true Visual Studio 2010 will support PHP for free?

I have read this here http://www.codeplex.com/php4vs but can't find any official confirmation.
2
votes
1answer
28 views

Web Server Security : www directory

I have a question about Web Server, especially PHP / Apache Server. A Developer told me and my colleagues that today it is bad to put our Web directory in WWW directory, because it is unsecured (...
2
votes
2answers
1k views

phpinfo() and php -v shows different version of PHP

I wanted to know which php version I am using so I wrote the standard script: phpinfo(); Which gives me PHP version 5.6.10- the correct PHP version needed for my application. When I tried in ...
2
votes
1answer
511 views

TextMate 2 “Go To Symbol” not working for PHP

I’m running TextMate 2.0-alpha.9419 and experiencing this issue: the editor doesn’t see my method definitions within a class, and won’t let me jump to them via “Go To Symbol”. The only method that TM ...
2
votes
3answers
24k 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 ...
2
votes
2answers
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 ...
2
votes
1answer
574 views

how to debug PHP script in bash

Can someone tell me the best way to run a PHP script and output content and errors to a text file (using nohup) using the unix shell?
2
votes
3answers
651 views

Can I run `phpunit` on an open PHP file inside vim?

Is there an easy way to run phpunit on open php test file inside vim?
2
votes
1answer
3k views

PHP: Mongo client not found

I've installed XAMPP on my MacBook. PHP and MySQL are working fine, so I followed it up with mongo. I did the following: brew install mongo (success) brew install autoconf (success) sudo /...
2
votes
1answer
428 views

How can i block my testing domain for search engine

How can I block this site, that I administer (http://test.puttinout.com/), for search engines? As I have noticed, Google has indexed most of our pages, but we don't need that Google indexes those ...
2
votes
1answer
664 views

Why “php x.php &” leads to a STOPPED background process

x.php: <?php sleep(15); ?> console: $ php x.php & [1] 5742 [1]+ Stopped x.php Result: a "STOPPED" process - it's there forever until I send a TERM and then CONT signal....
2
votes
2answers
4k views

Unable to write files on CentOS

I have a VPS running on CentOS 6 and apache2 as webserver. I have several PHP scripts running in my server, and everything goes smooth, except to file writing. For some reason, my PHP scripts are ...
2
votes
3answers
8k views

WHM enable or install PDO driver

how to enable or install pdo extansion for php , i cant use easyapache and i cant find php.ini in WHM after install script on host i get this error: Fatal error: Class 'PDO' not found in /home/...
2
votes
1answer
2k 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 ...
2
votes
1answer
749 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!
2
votes
1answer
5k 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 ...
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 ...
2
votes
1answer
520 views

How to deploy only select files through BitBucket

I'm hosting a small php-based website through Bitbucket. I have some files under version control that I don't want to deploy in production (helpful scripts, .xcf files, etc). Is there some way to just ...
2
votes
2answers
948 views

Create a local DNS TLD for development

I do a lot of web dev, mainly RoR and PHP, I've got a VMs which holds my dev environments and handling multiple clients on them is a pain. With PHP you just create a subdir, but with RoR it's a little ...
2
votes
1answer
1k views

Broken Formatting In Notepad

Often I have problems with formatting in Notepad on Windows XP Home. For example hidden space between characters or line breaks. When I copy text with broken formatting to another place, it all ...
2
votes
3answers
2k views

AllowOverride for userdir

I need to allow all userdir (host.com/~user) to override options in their .htaccess, such as php_value. Where do I configure Apache to AllowOverride ?
2
votes
1answer
8k views

PHP 5.3.1 with IIS 6.0 returning 404 but file is really there

I installed PHP 5.3.1 VC9 for Windows x86 and selected IIS FastCGI as the target webserver. My system is a 32-bit Windows XP with IIS 6.0. Before this I installed IIS FastCGI extension. Now when I ...
2
votes
2answers
475 views

How to upload multiple files to sourceforge.net?

I recently added the details of my php mvc framework to Sourceforge which can be found here: https://sourceforge.net/projects/ezphp/ I also added repository: https://ezphp.svn.sourceforge.net/...
2
votes
1answer
1k views

Windows XP - 'New' Context Menu Items

I am attempting to create new items in this context menu. Some file extensions cannot be added. I have tried both the TweakUI method and the manual registry editing method but both seem to yield ...
2
votes
1answer
79 views

How is it possible for a person to upload files to a site they don't have credentials to? [closed]

A little while ago I got this email: hi there, i am [name], security expert. your website is not secured. you use a weak password. and you didnt install security to prevent hacking/malware ...
2
votes
1answer
2k views

ffmpeg - joining 2 videos to play one after another

I'm trying to join two video files together - I'm piping the commands through PHP exec() as these videos are selected by the user. I can get it working, in that it does output a video of the correct ...
2
votes
1answer
1k 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 \ --infodir=/usr/...
2
votes
1answer
10k 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
2k 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
361 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 ...
2
votes
2answers
133 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); ...
2
votes
2answers
275 views

Is there a way to file the cause (or target file) of disk write operations in linux (RHEL6.1)?

I have a virtual machine with a php based application (in apache) on it, when looking at disk activity there is a constant 170kbps write when apache is running. When we apply load then the ...
2
votes
2answers
2k views

Installing PHP/Apache on Windows XP

I'm trying to install an Apache web server with PHP on my Windows XP Pro box, but I'm not having any luck. I'm trying to mimic a production server, so I'd rather not have the latest. The prod ...
2
votes
1answer
6k views

How can I open .PHP files with PHP.exe in Windows 7?

I have WAMP (Apache/MySQL/PHP) installed on Windows 7. PHP 5.3 is included. I tried "test.php -> right-click -> open with -> browse -> PHP.exe" but PHP.exe does not get added to the "Open With" list. ...
2
votes
1answer
2k views

php fopen permission problem

I'm learning php, and am having a problem while writing a file upload page. In the docroot, I have index.php (the page that calls fopen) and a directory called "images", where I wish the temporary ...
2
votes
1answer
8k views

WAMP server won't run with PHP 5.3.4 but will with PHP 5.2.11

I have a 64bit Windows 7 Professional machine. I'm running WampServer Version 2.1 with Apache 2.2.4. It was installed on a clean machine. I'm using the default ini/conf files as they come. Wamp is ...
2
votes
1answer
1k views

Using NetBeans for pure HTML/JS/CSS development

Is it possible to use NetBeans to create HTML/JS/CSS projects which can be run by a local web browser instead of a full PHP project which has to be passed through an interpreter?
2
votes
1answer
874 views

php's pecl - oauth - Mac OS X 10.6.6

I'm trying to install a php extension through pecl and I'm getting some weird errors... any ideas? wcmisdpilotpc1:~ alexus$ sudo pecl install oauth Password: Notice: Array to string conversion in ...
2
votes
1answer
903 views

what exactly happens when I “sudo apt-get install php-pear”

I'm a little confused about the reasoning behind installing PEAR through CLI like this: //shell sudo apt-get install php-pear AFAIK Pear is just PHP library - so - that's just bunch of PHP classes. ...
2
votes
2answers
1k views

How should I install PHP 5.3.3 on Snow Leopard?

What is the recommended way to upgrade PHP to 5.3.3 on Snow Leopard? If I compile from sources does it replace the existing PHP install 5.3.1. I need it because I'm using nginx as my webserver. PHP ...
2
votes
1answer
380 views

installing w3c validator on Fedora 11

On Fedora 11 i have installed w3c validator using yum install w3c-markup-validator is this installation configure each and everything including the complete website? followed this doc http://...
2
votes
1answer
2k views

How to edit the PHPUnit library path in Zend Studio?

I'm trying to set up Zend Studio so I can use PHPUnit, but I can't figure it out. The PHPUnit library path is un-editable. What should I do?
2
votes
1answer
218 views

Can't Compile PHP 5.6.12 on Windows 10

I setup a PHP build env as windows.php.net suggests, with php-sdk & the build tools. So I know it's not the enviroment. However, when I attempt to run my script to compile PHP: call buildconf.bat ...
2
votes
1answer
301 views

PHP 5.6.6 loading but not interpreting in Apache2.4 64 bit Windows

I have installed Apache 2.4.12 (Win64) VC11 from Apache Lounge. Typing httpd -M tells me that php5_module is loaded and shared. I have PHP 5.6.6 win32 VC11 Thread Safe installed. The Apache server ...
2
votes
2answers
381 views

Command Not Found When Executed via PHP shell_exec()

I want to execute following command on my Ubuntu server using php: android create project --target 8 --name $fname --path ./$fname --activity MainActivity --package $fpack 2>&1 The above ...