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
0answers
11 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
19 views

pdf zip file extraction does not work fine when download from server [on hold]

I have developed one application with pdf file creation using core php. I have showed in a grid and check particular pdf to download it will convert to zip. when extract the zip the checksum error(the ...
0
votes
0answers
5 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
0answers
21 views

How can I send email through PHP on my VPS [on hold]

So I have this PHP script on my site, it basically collects form data and is supposed to bundle it up and ship it out to my desired email address. However, it seems to work at first, and by that I ...
-1
votes
0answers
5 views

Cannot change form data using getElementsByName [migrated]

I am building an ecommerce site on Wordpress to be used by multiple agents. At present, the page uses a standard PayPal link which includes the line: <input type="hidden" name="business" ...
0
votes
1answer
13 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
19 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
21 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
35 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
19 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
18 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
23 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
8 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
18 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
28 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
33 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
0answers
37 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 ...
0
votes
0answers
16 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
0answers
4 views

Is it possible to get response in array form in ajax-php [migrated]

I am new to ajax, i am trying to get the price and total depend of item selected ,i have tried to do this in my code .but one question arise,Is it possible to get response in array form in ajax-php ...
0
votes
1answer
104 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
17 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
23 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 ...
-2
votes
0answers
11 views

neebie . get a bash file that can be run and seen on a html.pnp page

I have a bash file, that when run from putty works and makes a connection to my media server and copies the username and password to a file. Is there a way for this to be able to be run from a php or ...
0
votes
0answers
20 views

Get value from external script, and put into variables [migrated]

I (will) have around 800 products in a Wordpress installation. If I need to update prices, I don't want to have to locate / open / change / save umpteen files via the admin panel. So my idea is to use ...
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 ...
0
votes
0answers
8 views

Postfix errors when triggering mails from a server different than the mailserver

We used to have a server for everything, where our PHP scripts and the mail server would run on the same server. Now we moved our php scripts to a different server and we seem not to be able to send ...
0
votes
1answer
24 views

Cannot install WordPress ($_POST is empty)

I am trying to install WordPress on my site under http://example.com/blog. What I did so far is: Download and unzip the most recent version of WordPress Upload the contents of the wordpress folder ...
0
votes
0answers
29 views

WordPress won't load unless iptables is disabled

I am running CentOS 6.6 using nginx. WordPress will not load unless iptables is disabled. I tried to add the 9000 port for fastcgi, but that did not work. I am guessing it has something to do with ...
0
votes
0answers
56 views

Plesk 12 PHP Cache options

On my Plesk 12 vServer I've installed multiple PHP versions: PHP 5.3 PHP 5.4 PHP 5.5 PHP 5.6 I'd like to enable a cache method (APC, Redis, XCache or Memcache) for all of those PHP installations. ...
1
vote
0answers
55 views

Setup default PHP version in Plesk 12

I've just setup a Plesk 12 CentOS6 vServer. I installed some PHP-versions like 5.4, 5.5 and 5.6. The customers can change the running PHP version in the interface. All is working fine, but I have one ...
0
votes
0answers
24 views

Linking files to be found by PHP server

What is the correct way to link local directory ~/dir to /path/dir, so that the PHP server looking for /path/dir/file.php will find ~/dir/file.php? In my concrete situation I am running XAMPP PHP ...
0
votes
0answers
6 views

Can I use an outgoing service on my SMTP server on a differnt port to 587/465?

Creating my own SMS service using PHP and came to an impasse: the firewall uses ports 587 and 465 for SECURE IMAP so it's a no go to use TLS or SSL on those ports. Is there a way I can use different ...
0
votes
0answers
23 views

Lost trying to set up mail server forwarding. iRedMail Roundcube Mail

I'm rather new to linux, setting up email servers, and programming in general. I'm using AWS ubuntu to create an iRedMail email server. I have the basics set up but I can't figure out how to set up ...
0
votes
0answers
33 views

Setting up php to send email through IIS

I have a wordpress site on my Windows 2012 R2 IIS server. I have installed SMTP. These are the setting I've done in php.ini: [mail function] ; For Win32 only. ; http://php.net/smtp SMTP = localhost ...
0
votes
1answer
40 views

Google Maps API and bandwidth consumption

I have a site that uses 2 Google Maps APIs. https://maps.googleapis.com/maps/api/js and https://maps.googleapis.com/maps/api/geocode/json This "mapper" site communicates with 2 Google Maps APIs, ...
1
vote
2answers
37 views

PHP server permissisons for files and directories granted, but still not allowed

I have php code on Codeanywhere where I'm simply trying to create a file on the server but yet gets the following error : "Warning: fopen(file.txt): failed to open stream: Permission denied in ...
1
vote
0answers
40 views

Not able to run php files on apache server using NetBeans IDE

I want to create a php project using NetBeans IDE. I have set a LAMP server on my ubuntu 14.04. So I had to configure the IDE to copy files automatically to the apache server.I followed this - ...
0
votes
1answer
34 views

Shared hosting: how do they estimate server CPU usage? [closed]

I'm using several shared hosting services and wondered many times: how do they calculate those "CPU seconds"? For example one of those limiting me with 300,000 seconds/month, 10,000 seconds/24h and ...
0
votes
0answers
27 views

Write permissions to xampp on windows 7

I have installed xampp on windows 7 in C:/ directory. I am trying to run a PHP installation file (timetrex installation) I am getting the following error: ...
0
votes
0answers
13 views

nginx configuration - Allow local access (different rules for local requests?)

I'm working on a debian 7 nginx server. Because the server is online available, I restricted the access with following lines in the site-configuration ( server {} ): auth_basic "Restricted"; ...
1
vote
1answer
33 views

why does my local hosts file enable me to see remote server php files?

I have a hosting package with some company. They give me a temporary URL at which I can access the site and see HTML files. But when I try to access PHP files it gave me an error (500 Internal Server ...
0
votes
0answers
28 views

exception to domain forwarding

I have forwarded a domain from a hosting site to our own http server. I would now like to host some pages directly on host server to take advantage of some of the services they have; for example - a ...
1
vote
3answers
51 views

Is python server side or client side? [closed]

I am debating on using python or work with JavaScript & PHP. Basically what I am trying to do is run an algorithm against some data pulled from my database. ( the algorithm can be very demanding ...
1
vote
1answer
21 views

Limit PHP permissions

I want to set it up so that PHP scripts can only read/write files contained in a certain directory and nowhere else on the hard drive (preferably, per virtual host). I figured I could do this by ...
0
votes
0answers
27 views

Installed PHP extensions to wrong PHP version

I just bought a VPS and it came with PHP5.3.3 and that wasn't good for our website, so I successfully (so it seemed, anyway) installed PHP5.6.7 and successfully registered it with Plesk. For the ...
0
votes
0answers
36 views

XAMPP Apache error AH01599: Cannot get media type from 'x-httpd-php53'

I'm trying to setup Xampp on a Mac (OSX 10.10.2), its setup and normal PHP runs, however when I try and run a Wordpress site the PHP code doesn't execute, it just prints out in the browser and I keep ...
3
votes
3answers
501 views

Which is the best and simplest Windows Subversion client I can install to get the Google Client Library for PHP?

My operating system is Windows 7. The google-api-php-client is made available on GitHub, and can be downloaded with Subversion. The documentation provides the exact command line command to download ...
0
votes
0answers
68 views

Nginx + PHP projects outside of root

I'm trying to setup project directories outside of my server root in Nginx 1.0.15 (I can't get any newer versions due to environment). I want my directory structure to look like this: /var/www |-- ...
0
votes
0answers
21 views

Once again Trovebox (OpenPhoto) setup hangs/fails at final step 3

Trovebox setup doesn't proceed beyond step 2. Gives a blank page 3 Having the same issue as this post but advice there is not resolving my issue Trovebox (OpenPhoto) setup hangs/fails at final step ...
0
votes
0answers
12 views

How to install package with locale dependencies?

I've built my own PHP5.5 on my RedHat6.6 two month ago in order to support Sybase database connections. Today I want to enable memcached support. I tried yum install php55-php-pecl-memcache.x86_64 ...