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
1answer
15 views

Unable to start PHP Server in linux command line

I tried php -s localhost:4444 WebContent/ But my ubuntu terminal gives Usage: php [options] [-f] [--] [args...]
0
votes
0answers
10 views

PHP - Socket programming [on hold]

I have need to start, stop, restart, force-stop(kill), get live output and send commands, to a java application. The java application is run on one server, and the web server is run on another ...
0
votes
0answers
10 views

Can't use sessions in phpdesigner 8

Im getting errors in phpdesigher 8 preview run: session_start(): Cannot send session cookie - headers already sent in... Cannot send session cache limiter - headers already sent in... But it's ok at ...
0
votes
1answer
19 views

how to print a page from web browser without print window using javascript or php

I am developing an POS application for my own shop in web. Now for that in billing section have features like select the products and print bill, this process is only two steps. However when I click ...
0
votes
1answer
28 views

“Too many files open” on Mac OSX after running apache in PHP with XDebug for some time

I am running Mac OS X 10.9.4, including the builtin apache2 webserver with PHP 5.5.14 from brew (packages: php55, php55-intl, php55-pdo-pgsql, php55-xdebug). When running this setup it works quite ...
0
votes
0answers
7 views

Uploading many files with PHP [on hold]

I am trying to upload multiple files (250) with PHP to an server. The problem is that after a few times the site will just cancel the upload. I think it has something to do with the config of PHP or ...
0
votes
0answers
8 views

hash_hmac sha512 authentication in python [migrated]

I'm trying to write python authentication bot for: https://comkort.com/page/private_api There is no full php example. I'm guess somebody could put it here. There is only snippet of php code: ...
0
votes
0answers
7 views

Configuring Apache with PHP-FPM, Apache failed to start

I followed this guide to configure PHP-FPM with Apache on my server but after I restart Apache successfully: [root@localhost vhost]# service httpd restart Stopping httpd: ...
-6
votes
0answers
20 views

Como cria um editor de codigo em python [closed]

Estou procurando um exemplo de como cria um simple editor de código php usando python qt ou gtk. estou fazendo um trabalho de facudade e gostaria de apresenta um editor de condigo com destaque de ...
-1
votes
0answers
17 views

Undefined class constant 'MYSQL_ATTR_MAX_BUFFER_SIZE'

I have EasyPHP 14.1 configured and running properly on a Windows 7 x64 machine. Trying to open a web-app called Open Device Manager, I get the following error Fatal error: Undefined class constant ...
0
votes
1answer
9 views

PHP in Debian Terminal not working with extensions

I have Debian 7 installed on my server with a standard LAMP stack and also Mongo DB. Mongo as well as other third party PHP extensions work correctly through apache. These extensions however do not ...
0
votes
1answer
30 views

CentOS 6 - Send user defined command from PHP

I have a web control panel and I need my allow my users to send commands to their application. I a similar problem to SQL injection. $user_input='good command'; shell_exec('tmux send-keys session1:0 ...
0
votes
1answer
28 views

PHP - Read file from remote server

So I have two CentOS servers. On server1 I have a log in the directory /home/something/logs/latest.log On server2 I have my apache server, and I want it to read the log on server1. I need to do ...
0
votes
0answers
6 views

Fatal PDO Error - But PDO is enabled? [migrated]

I recently switched website hosts, however with the new hosts, we are encountering some PDO problems. Everything indicates that PDO is enabled on my server, however, when I test it through php, with a ...
-1
votes
0answers
10 views

Starting PHP built-in web server with no warning

I am using php -S http://0.0.0.0:8080 to serve a web application locally, it's the most convenient way except for the fact that it is raising warning like Strict Standards: .... Is it possible to use ...
0
votes
2answers
26 views

Sending mails and narrowing what script does it

I'm using a very old Ubuntu server that was some time ago a mail server which was infected. Sadly there is a running web page on that server. Some script/page/malware is trying to send a lot of spam - ...
0
votes
1answer
44 views

Difference between connecting to 127.0.0.1 and server ip

I am brand new to php, databases, and linux and had a problem where I could not connect to mysql databse with the php mysql_connection function. When I used the ip address of my VM I kepy getting a ...
0
votes
1answer
24 views

Mozilla Thunderbird HTTP Authentication

I set up Mozilla Thunderbird on Windows 7 Enterprise, and I set my main page to my own site. (Which requires HTTP/1.1 authentication). Before I even have an HTTP authentication window (displayed for ...
0
votes
0answers
7 views

Error while trying to create an album in MySQL in Trovebox

When trying to create a new album in TroveBox I just get an simple error message in the ui notifying me that it failed. No information is in logs from Apache and MySQL. The current user can write in ...
0
votes
1answer
27 views

Unable to start bash script with shell_exec

I've been googling and trying to solve this problem with my php script for a few days now and I'm hoping someone here can see the problem I'm missing in getting my php script to kick off my bash ...
0
votes
1answer
10 views

How to navigate PHP-based pagination with WGET?

I'm trying to come up with a list of possible names for our next baby boy and have been looking through the site IndiaParenting. Each name on the site has a detail page at a URL like this one ...
0
votes
0answers
16 views

Plupload not displaying in Trovebox's upload ui

After finally having gotten Trovebox installed and configured (self hosting) I've hit a wall. On the upload ui Plupload (the image uploading 'widget') is not showing (see image below). As well the ...
0
votes
2answers
65 views

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

I've been following the install instructions found here about how to install and configure Trovebox on a Ubuntu server running Apache: Ubuntu 14.04 LTS Apache: 2.4.7 MySQL: 5.5.37 PHP: 5.5.9 ...
1
vote
2answers
116 views

PHP can't connect to PostgreSQL with “permission denied” error with SELinux

My PHP app can connect when I turn off SELinux, but not with it on. setenforce 0; curl -I http://domain.com; setenforce 1 Yields no errors in /var/log/httpd/error_log. However, if I have it on, I ...
0
votes
0answers
23 views

I'm getting 500 server error in when trying to send ajax to codigniter+NGINX in production in ec2

When Im in my local environment when I send with ajax rest post http://localhost:8080/index.php/api/get_user I'm getting an answer from the server (Codeigniter + NGINX). But when I do it with ...
0
votes
0answers
30 views

install ImageMagic library to php

When i try to sudo pecl install imagick i get this message: Can't find PHP headers in /usr/include/php The php-devel package is required for use of this command. ERROR: `phpize' failed And sudo ...
-1
votes
1answer
28 views

OSX Mavericks - Upgraded PHP not loading

I was wondering if someone could help me. Im running mavericks OSX ... When i type php -v i get the following: PHP 5.4.24 I needed to upgrade the PHP version, so i followed an online guide and ...
0
votes
2answers
38 views

phpMyAdmin cannot login - keeps asking for credentials

I have phpmyadmin on my Arch linux box, it is running, so is apache with php and mysql. When I go to http://localhost/phpmyadmin/, it shows the usual login prompt. However, no matter what I enter, ...
0
votes
3answers
53 views

how to change path of php ini windows

I've downloaded php, addeded it to my path and im trying to enabled openssl php --ini tells me that configuration file is c:\windows which there was nothing there, I dont want to copy php into ...
1
vote
0answers
56 views

Setting up rutorrent on 10.9 Mavericks

I'm getting the following error when loading rutorrent that's hosted on my 2010 Intel Core Duo 2 Mac Mini: [23.06.2014 11:31:20] Bad response from server: (404 [error,list]) <!DOCTYPE HTML PUBLIC ...
0
votes
1answer
32 views

Can't login to local phpmyadmin

Hy, I've just installed MySQL and PHPMyadmin on my OS X Maverics, following this link: http://www.coolestguidesontheplanet.com/downtown/get-apache-mysql-php-and-phpmyadmin-working-osx-109-mavericks ...
0
votes
0answers
28 views

Apache will not show index pages

I have just set up my brand new raspberry pi with Rasbian-Wheezy and a clean install of apache and php. I got the "it works" page, and then put my website in place and everything was working, but at ...
0
votes
4answers
70 views

Website not showing errors, just 500 page

I have moved some code from development to production and it was not working so I am trying to debug but for the life of me I cannot get access to the errors to find out what is wrong. I have tried ...
0
votes
1answer
39 views

Why is PHP not running

I have ubuntu 14.04 desktop, I have apache2 php5 and all those packages installed. Yet PHP scripts won't run.. My site config: <VirtualHost *:80> ServerAdmin seven@localhost DocumentRoot ...
0
votes
1answer
52 views

FFMPEG not working after upgrade php version from 5.2 to 5.3.28

After upgrade php version DL() function is not working. I have tried with extension=extension.so in php.ini its working but below command ffmpeg -y -i input.m4v -vcodec libx264 -vpre ipod640 -bt 50k ...
-2
votes
1answer
46 views

Secure way to manage mysql through web browser

I would like to offer clients access to their own mySQL database. Is there a secure way of doing this? Is there any way to secure phpmyadmin without using a htaccess password or restricting it to ...
0
votes
0answers
31 views

Phpmyadmin hide_db hides all databases

I want to hide the information_schema database from users as it has caused confusion. I have the following in config.inc.php: $cfg['Servers'][$i]['extension'] = 'mysqli'; /* Optional: User for ...
0
votes
2answers
30 views

Mounted HDD not having enough permissions from Apache/PHP

Piwigo gallery, on apache and php. The root system is a RAID 128GB. /var/www/html is on the root file system. Mounted the 320GB hdd to /var/www/html/320 using defaults, it's an ext4 fs. Put a ...
0
votes
0answers
32 views

Unable to print A6 on Canon LBP 2900B php

I am working on web application. In which I have to print an invoice on A6 paper. To better control priniting I used TCPDF. In TCPDF options I have setup it to print A6. Now my TCPDF is working fine. ...
1
vote
0answers
71 views

Apache2 + Php + Pthreads HowTos

I'm running Ubuntu 14.04 LTS 64 bit. What I would really love to do is sudo apt-get install libapache2-mod-php5 but compile PHP with --enable-maintainer-zts so I could later install pthreads with pecl ...
0
votes
1answer
24 views

Cron error “missing url”

Hope this is the correct place to post this. I am setting up a cron job to refresh a twitter feed. I want to overwrite the file each time the cron job executes. My current command is: /usr/bin/wget ...
0
votes
0answers
9 views

debugger tends to block server when listening until restarting phpStorm

I follwed the instructions from this post on how to set up xdebug with php storm. It works great but the problem is that it works for the first request only. ie Let's say I turn the listener on. I ...
0
votes
0answers
339 views

ownCloud WebDAV interface seems to be broken

I've been trying to host ownCloud on my server but everytime I try to it tells me this : Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to ...
5
votes
1answer
22 views

PHP version for super user is fcgi instead of cli

I have a strange problem with PHP version when using CLI. When I login as root and use: php -v I get an info that php is running in CLI mode which is fine, but as soon as I use sudo php -v I get ...
0
votes
0answers
14 views

httperrors for Linux

I'm here because the Google has failed to get me what I need. I just recently graduated from university, and I'm working on a website. Back in college I used the school's web server for my projects, ...
0
votes
0answers
19 views

Notepad++ auto format php code [duplicate]

In VisualStudio, i hit the keys CTRL+E, D and my C# code gets formatted. Is there a way to do this in notepad++ for PHP code?
0
votes
1answer
31 views

Unable to run localhost in windows [closed]

I want to run php code on my localhost. For the purpose,I just downloaded the wamp server for windows 8 and installed. But when I am trying to open local host , I am directed to the IIS windows. I ...
0
votes
0answers
99 views

xampp MySQL app not running (win8)

I am using xampp for few month. But facing and error for 2 days and MySQL app isn't running. I reinstalled xampp and it was working fine, but when I restarted, it stopped working again. Here are error ...
0
votes
0answers
24 views

Centos 6 rsyslog missing audit.log

I'm trying to get to work the wkhtmltopdf on apache, php 5.5, centos 6 64bit. The error is "sh: /usr/local/bin/wkhtmltopdf: Permission denied" so my thoughts were selinux. I tried to follow steps ...
1
vote
1answer
38 views

Setting up email for domain on a VPS

I have my site set up and functioning on a vps. The domain is on godaddy. The nameservers point at godaddy then i have set the a record to point at the IP of the VPS and its working fine. I now need ...