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
votes
0answers
16 views

Easiest way to integrate payments into code [on hold]

I have a web application I am thinking of making commercial. I have little to no experience with handling currency online, and it would be easier and more efficient to handle automatically. I'm ...
0
votes
1answer
18 views

<select> menu and PHP

I am using a menu to try to get data into a DB. I have seen this, <select name="exam" id="exam" style="background-color: #FFDDF4"> <option></option> <?php foreach($exams ...
0
votes
0answers
17 views

Running SCP through PHP does not yield same result as CMD

I have a Microsoft Windows Server 2012 R2 Foundation running an MSSQL server and PHP. My goal is to replicate tables from the MSSQLdatabase to a Debian Wheezy MySQL database. I have successfully ...
0
votes
0answers
29 views

Fedora 22 Docker Container unable to network

I have been struggling with Fedora 22 and getting Docker images to be able to communicate with the outside world. Not sure how to start testing this, or even where to start to look. Let me explain ...
0
votes
0answers
7 views

Sync a field data from database of local host server to remote server after establish network connection [closed]

I want to make offline web application. On offline mode, i entered some data by form filling which save to local database. Now I want to sync this data automatically to remote server whenever internet ...
0
votes
2answers
14 views

Access a built-in mac webserver from another machine

I'm using php to create a built-in web server in my Mac, so I can access my webpage files and route them through a file. In order to do this, I'm using the terminal command php -S localhost:8080 ...
0
votes
0answers
10 views

SELinux issue with php_shell_exec

I have a php site on CentOS7 that needs to use some shell scripts using php_shell_exec. But the scripts do not run due to SELinux (that I require). None of the scripts use sudo, I understand that ...
0
votes
2answers
20 views

How to highlight PHP, HTML & JavaScript at same time with Notepad++?

The file extension and language is PHP, and need to highlight HTML and JavaScript at the same time with the main language PHP in Notepad++ Example of code to highlight: <?php $form_name = ...
1
vote
0answers
17 views

php.exe can not find .dll files

I recently installed xampp which of course installs php. I want to run php from the command line so I added it to the PATH variable in windows using setx path ... This worked well so that now I ...
2
votes
3answers
48 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 ...
0
votes
0answers
10 views

How to prepare Windows based environment to test multiple PHP versions?

I guess this is more general question so asking it at superuser, not on stack exchange. I have to create windows environment with both IIS and Apache, and test latest 3 PHP versions. (At the moment ...
0
votes
1answer
21 views

Php ffmpeg exec

with code $a = exec('"ffmpeg" -y -i "test.mp4" -ab 128k -s 640x480 -vcodec mpeg4 -acodec:a copy "output.mp4" 2>&1 ', $output, $error); Input file was 82.21mb output file was 13.74mb ...
0
votes
0answers
24 views

Zabbix 403 Forbidden using httpd24-httpd

Using latest version of Zabbix. Running RHEL 6.6 and needed to use a different repo to get newer versions of Apache and PHP. The new httpd directory is /opt/rh/httpd24-httpd/root/etc/httpd When I ...
0
votes
0answers
9 views

php failed signature verification and may have been tampered with

I have been unable to install any version of PHP on Windows/IIS via Web Platform Installer 5.0 running on Windows 8.1. I have tried several different versions of PHP: 5.3, 5.4, 5.5, 5.6. Each time, it ...
-1
votes
0answers
31 views

Cannot Work PHP? [migrated]

I have recently started to upgrade my intranet server to PHP but i am having trouble getting the code to work. php data test <?php // Connect to MSSQL and select the database ...
0
votes
1answer
20 views

move_upload_file or copy when submit form in dropzone.js error

I'm using dropzone.js to upload file. I'm setting autoProcessQueue = false. When i click button upload, it will process processQueue() and run action PHP. In PHP, i get file and save it to session. ...
-1
votes
0answers
14 views

Fatal error: Allowed memory Size

Have been seeing this error on my site which i traced but could not get it, If anyone can help "Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in ...
1
vote
0answers
28 views

PHP Proxy without cURL

The next 2 weeks I'll be watching the house for my parents. But before I went here, I forgot to forward ports in the router. I do have a kind of access. I can place files on my webserver. But I need ...
-1
votes
0answers
6 views

How to set function in HTML while outputing HTML with PHP [migrated]

Sorry for little weird tittle, english is not my native language, and its little hard for me to express myself about this, so I hope i'll get clearer in explanation :) I have this piece of code, to ...
0
votes
0answers
26 views

website hosting on my local server using mamp in mac

I want to host a wordpress site locally on my MAMP server. This is the procedure I followed: 1.Installed the duplicator plugin on the site and created the site package. 2.Downloaded the installer and ...
0
votes
1answer
78 views

Every 5 min cron job between specific time (Windows server 2008 and batch file)

Previous colleague set up cron job every 5 min for 24 hrs. Now I need to modify this only running between 7am to 7pm. I had never learned cron job so I googled and tried but it didn't work. Task ...
2
votes
0answers
71 views

Something “kills” my Apache-PHP-Processes after some time

I have the following really strange problem and hope, you guys can help me out. If there are any questions, I'll try answer them as best as i can. The problem I have a web server with Debian 6.0, ...
1
vote
1answer
50 views

scheduling with cronjob to run the php file for only one time

How do I run the php file only once using the cron jobs. i.e., to schedule task to work on 20/06/2015 10:30:00 I tried something like this : 30 10 20 6 ? 2015 /usr/bin/php ...
-4
votes
0answers
13 views

PHP/MYSQL INSERT FORM [migrated]

PROBLEM: as soon as you enter the webpage it enters into the SQL table, even if you do not submit, immediatly after you enter the webpage it sends a blank to the SQL table, here is the codes ...
0
votes
2answers
78 views

Can't connect to ftp server - Connection refused by server

I'm new to this forum and ftp. When I try to connect to a ftp server using filezilla, It returns - Connection attempt failed with "ECONNREFUSED - Connection refused by server". I run the Network ...
1
vote
0answers
10 views

Phabricator and MAMP PRO Configuration? Keep getting a 403

I currently have MAMP PRO installed, where I run local WP installs. I am trying to install Phabricator. I followed all the directions on their site, but I can't get it to work. I have all apache ...
1
vote
0answers
9 views

PHP cURL Request for Web Service Returning Error [migrated]

I continue to receive the error: "Failed to de-serialize entity" when making the REST request below. I'm assuming it has to do with the formatting of my json, but can't for the life of me figure it ...
1
vote
0answers
25 views

Cannot configure PostgresSQL extension for php in Cpanel

I have a Centos 6.6 x86_64 vps cloud server with WHM and cpanel. It contains easyapache installed in it and working fine. php sites are working fine with it. I have installed PostgresSQL 9.3 in the ...
0
votes
1answer
21 views

Wrong php launched for <?php directive embedded in HTML

On my laptop (osx 10.2.2) , i brewed apache 2.4.12 and php 5.5.22, with php-fpm. Strangely, when i ping on the server for a .php file, apache binds properly to the new php and runs that. If however, ...
1
vote
0answers
18 views

Installing php extensions in openwrt

I am using openwrt barrier breaker on microtik rb450g router board To run php on openwrt i installed php5 packages using opkg But now i need to install php extension specifically intl extension so far ...
0
votes
0answers
16 views

Configure PHP settings on per vhost basis

I have an Apache server that has two websites. I want the two sites to have a bit different PHP configurations. The setup: The two vhosts share the configuration php.ini file. The same php.ini is ...
0
votes
1answer
30 views

Cannot access AWS webserver using public IP

I have a free AWS account and have set up a EC2 Virtual machine on Windows Server 2008 R2. I use RDP to access the VM. I have set up XAMPP and deployed my PHP application in it. I can access it ...
0
votes
0answers
23 views

nginx + php5-fpm displays 502 Bad Gateway

After an update php5-fpm stopped working. It shows blank page, and after restarting nginx 502 Bad Gateway. In nginx log there is following line: 2015/05/27 20:27:08 [error] 3034#0: *40 recv() failed ...
0
votes
1answer
22 views

How can I change the admin username in phpVirtualBox

I am using phpVirtualBox. The default setup adds a user with username: admin and password: admin. I can change the password, but can't seem to change the username. How can this be accomplished?
1
vote
0answers
44 views

Pear upgrade not working in Ubuntu

When I try to upgrade Pear it shows a message on terminal as follows Will upgrade channel://pear.php.net/xml_util Will upgrade channel://pear.php.net/pear Will upgrade ...
0
votes
1answer
27 views

PHP installation issue on a Windows Server hosted in the Azure cloud

I am trying to setup PHP and MySQL on a Windows Server that is currently in Azure cloud using the information from this blog post. Now I am testing the PHP installation using the methods specified in ...
1
vote
3answers
102 views

How to convert TIFF to PDF using Ghostscript

How can I convert TIFF to PDF using Ghostscript? I tried to use the code below but it not working: Snippet $input_file_tif='test.pdf'; $input_file_orig_name='1234.tiff'; $gs_command = "gs -q ...
0
votes
0answers
43 views

nginx gives 404 and 403 in all the files in webroot

I have setup a webserver in a virtual machine on my laptop and I can't get nginx to work. My home DNS is put to example.home for easy access. Here are the symptoms: When I try to access ...
1
vote
0answers
32 views

Apache: a certain string makes POST request hang

Here is a minimum working example of the issue I have. I know by now the error seems to be particular of my server/setup, but I'm still curious about what is going on. There are two files, m1.php and ...
0
votes
0answers
32 views

How to add system user permissions to a folder in os x?

The folder /Applications/MAMP/tmp/php is used by php. I installed a library called GhostScript that uses X11 to render PDF to JPEG. It seams it got to use this folder when I call it by ImageMagick, ...
0
votes
0answers
9 views

Execute a .workflow file on a Mac from network

I want to execute a .workflow file to start playing iTunes on my Mac. I have started the apache server, and maked a php script: itunes_play.php <?php enter code hereexec("sh ...
1
vote
0answers
21 views

grep php output show more than grep query

I'm having an issue where php file | grep "query"'s output shows EVERYTHING, not just the grep'd output. EX: php /vagrant/code/test.php | grep "Do not show anything" Shows anything echo'd in the ...
0
votes
0answers
50 views

How to remotely connect to MySQL database running on Windows Server 2012?

I've been developing my web application locally, but now I need to test remotely. I have a Windows machine running Windows Server 2012 with XAMPP installed and configured. How can I connect remotely ...
0
votes
1answer
35 views

Test whether PHP is correctly installed on my Mac

I use Homebrew to installed the php 5.6, I followed the guide from Homebrew to enable Apache and PHP (such as uncommenting the httpd.conf file), then I can successfully access to http://localhost/ and ...
1
vote
1answer
67 views

Activate PHP OpenSSL module on Mac Yosemite

I've got a new MacBook Pro (with latest Yosemite) I'm setting up for web development. I am running PHPStorm as my IDE. PHPStorm cannot use its built-in composer functionality, saying it cannot connect ...
1
vote
0answers
29 views

Running ruby script through php as www-data

I am running a php application on an apache server. From the php application I need to run a ruby script on the command line. I have verified that running the script directly from a terminal as user, ...
0
votes
1answer
228 views

Roundcube, php 5.6 and self-signed certificates

I am currently porting one of my servers to another. That server is running Postfix + Dovecot using a self-signed certificate. My web-frontend used to be roundcube. Now is the problem, that the new ...
1
vote
0answers
29 views

Impact of adding a 32-Bit ODBC driver to a 64-Bit Win Server 2008 R2

Would there be no problem if i ADD another ODBC driver to a server (a 32bit version to cater my 32bit PHP application) with an existing ODBC 64bit version? Would it not create confilict to other ...
0
votes
2answers
35 views

Can I add a second php.ini file that supercedes the first?

I've made changes to my php.ini file, so I don't update the php.ini file whenever I update the PHP package. I'd like to "fork" off my changes to a different file, so I can update the actual php.ini ...
0
votes
0answers
5 views

PHP file printed to file

I have my PHP scripts in my public_html file and when I try to run them in browser, the file entire file is printed instead. Is there a way to fix this? I'm not sure if this is a problem with my lamp ...