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

learn more… | top users | synonyms

0
votes
0answers
16 views

How to install MongoDB & Its driver for Windows 10 (Step by Step)?

I want to install MongoDB & MongoDB Driver for Windows 10 ... There are many version of MongoDB that I don't know which version is proper for Windows 10. I downloaded one of them & It works, ...
0
votes
0answers
4 views

Apache not upgrading to php7 on ubuntu 14.04

I installed php7 with all it's dependencies, following this tutorial: https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-php-7-on-ubuntu-14-04 Everything is installed, but the php7 ...
0
votes
0answers
5 views

How will I get phone call in my web application via API? [on hold]

I am trying to develop a web application in Laravel framework to book ticket online via phone call. For that purpose I need to get a phone call API provider in India. I know various providers for web ...
0
votes
0answers
30 views

MySQL & PHP, mysqli_num_rows always returns 0 [migrated]

I have a little problem with a basic register script that im writing and i cant seem to be able to fix it. Well, here is the code: <?php //MySQLi connection $con = mysqli_connect("-","-","-","...
0
votes
0answers
19 views

ffmpeg headers not found while configuring ffmpeg-php

I am configuring ffmpeg-php in a cpanel installed centos 6.8 server. I was able to successfully install all necessary packages that were required to install ffmpeg. Also I had successfully converted ...
0
votes
0answers
11 views

brew install php70 with package

Sorry for this simple question, but I search a lot, I don't know how to do that. I installed the php70 with another package $ brew install php70 I found this option $ brew info php70 ... --with-...
0
votes
0answers
24 views

Page not found on webserver in my raspberry pi

I wrote a simple rest api few weeks ago, this api working good into my webserver (bitnami - localhost), and also to my pay hosting. Now I setup a webserver with the raspberry, I'm a linux newbie and I ...
0
votes
1answer
19 views

Why my php files on my website show source in chrome ?

I just get some troubles with my php files. I host my website from my computer and I get an index.html file which link to other php files for my website , in firefox when I go from the index files to ...
0
votes
0answers
8 views

Can a Smarty PHP site run on Azure Web Apps

I'm new to the Smarty templating engine but have been given a site to modify. I have it working locally on a Linux Mint box. I want to put it on Azure Web Apps (not a VM) temporarily to show the ...
0
votes
0answers
7 views

WHM PECL install module with an older version

I am trying to install PHP/mailparse, but WHM PECL only showing the version 3.0.1, and when I try to install it, it says: pecl/mailparse requires PHP (version >= 7.0.0), installed version is 5.6....
0
votes
0answers
6 views

PHP: Passing Objects with methods between pages [migrated]

There are varied existing questions regarding passing PHP class objects between pages, mostly by serializing, compressing, etc. However, the methods of the object don't get passed. I have a class say:...
0
votes
1answer
21 views

Certificate verify failed, using fresh Plesk installation

I have a fresh installation of Debian 8.1 Plesk 12 Plesk installed Postfix and Dovecot and added a default certificate for Postfix. I'm running PHP 5.6 for my website. New in 5.6, PHP verifies ...
0
votes
0answers
5 views

how to make a javascript which list all the files from the list of web pages of a google search?

i wanna make a search engine for files using help of google, which list files and their sizes while searching, uses google web crawler algorithm and does not show web pages but files from the web ...
1
vote
1answer
20 views

Notepad++ turning my angle brackets into comments automatically

I'll be quick. I'm creating a simple website that generates a set of random characters, but I'm having a little trouble with the php code. From what I can see, Notepad++ is automatically turning my ...
0
votes
1answer
22 views

MySQL insert into table - syntax problems

$servername = 'edited'; $username = 'edited'; $password = 'edited'; $dbname = 'edited'; $name = $_POST ['name']; $email = $_POST ['email']; $number = $_POST ['number']; $manufacturer = $_POST ['...
0
votes
1answer
12 views

How to find out what auto-starts my php?

So I installed php56 using homebrew a couple of months ago. I configured my OSX Yosemite somehow so that it auto-starts php when I login. But now I don't know how I did it anymore! Both /Users/{...
0
votes
0answers
27 views

How do I get bash history for users running commands via PHP shell_exec()?

Is there a .bash_history or something similar stored out of memory when running shell commands via PHP's shell_exec() or backticks? PHP is running Cloudlinux+FPM multi-tenant where each user owns its ...
1
vote
0answers
19 views

How to uninstall 'AMPPS' stack on a machine running on 'Windows 10 Home Single Language ' operating system?

I'm using a machine running on 'Windows 10 Home Single Language' 64-bit operating system. I just installed AMPPS stack on this machine by downloading the installer from URL : http://ampps.com/...
0
votes
0answers
28 views

Variable WHERE in one query [migrated]

I'm trying to list a simple query. I have table "users" and columns: "name" and "payment" = (1/0) I want echo all and count how many have payment 0 and how many payment 1. I don't know where put ...
0
votes
0answers
6 views

How can i retrieve and use functions from a wsdl automatically generated with php?

I already have a wsdl generated file given from the client and i need to write a client/server Soap app with php based on it, so that i can easily retrieve and use the functions ! here is the wsdl. I ...
-3
votes
1answer
32 views

file_put_contents is not overwrite / overwrite context option not specified [closed]

I heard that file_put_contents overwrite the file if it exist ? That's what i want but it doesn't work. What do? $contentsAnnonces = file_get_contents("http://website1.fr/file.xml"); $...
0
votes
1answer
53 views

How to download multiple images from .txt files

I got this documentation to download pictures from txt file but i have no idea how can i do this…Should i use a php script to get those pictures on my server ? The file photos.txt is framed as ...
0
votes
1answer
36 views

A browser cannot find a file on localhost

OS Linux Mint onto VirtualBox I've installed PHP like in this manual, https://community.linuxmint.com/tutorial/view/486 When I am trying to test PHP and go to http://localhost/testphp.php it gives ...
0
votes
3answers
44 views

Download file from ftp server #1 to ftp server #2

I would like to use a Php Script with cURL library to download one directory name datas ( with one .xml and one .txt.zip file ) which is inside my ftp server #1 into my ftp server #2 . This directory ...
0
votes
0answers
34 views

Joomla website returns 500 error

I've ran into a problem which I'm unsure how to approach. I have a Joomla based website (that I didn't code but rather maintain) that went offline 2 days ago. Trying to fetch the website the server ...
1
vote
0answers
10 views

Ubuntu Launcher PHP working directory

I have created a launcher for PHP: [Desktop Entry] Type=Application Name=PHP Terminal=true Exec=/usr/bin/php %f Icon=/home/virsacer/Icons/php.png When I open a PHP-file with it, the working ...
0
votes
0answers
26 views

joomla https: Error 310, too many redirects

I have joomla 3.5.1 running under apache 2.4 behind an nginx reverse proxy. It works fine without SSL. My nginx does SSL fine, and then proxies the requests (in plain HTTP) to apache. I followed the ...
0
votes
2answers
41 views

Firefox & Chrome download PHP Files. While other browsers work… :s

I have a really strange one, and am unsure where to start looking. I dont think its a issue with the Server, as no other users have complained about access. Also ill provide you with a Link (If i ...
0
votes
1answer
40 views

Setting up PEAR (excel) on Linux Ubuntu

First off, I have never used Pear before, I'm a complete newbie, but I need to mix php and excel so... I ran sudo apt-get install pear and that went smoothly, but I can't get any further. I tried ...
0
votes
0answers
74 views

How to upgrade from PHP v5.4 to PHP v5.5 in bitnami ubuntu

I am using a bitnami ubuntu server. When I run the below command /usr/bin/php -v PHP 5.5.9-1ubuntu4.17 (cli) and if I run following command php -v PHP 5.4.34 (cli) I don't know where I am ...
1
vote
1answer
26 views

How to set PHP timezone for cloud based web server distributed to different geographic regions?

I'm getting the following warning while running php -i: PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the ...
0
votes
0answers
50 views

PHP permission denied for FreePBX sysadmin

Trying to install the sysadmin module in FreePBX, but it keeps giving this: mkdir(): Permission denied /var/www/html/admin/modules/sysadmin/install.php the materials provided herewith, you agree to ...
0
votes
1answer
85 views

403 when opening “/mw-config/index.php” for configuring MediaWiki on WAMP

I'm following this guide When I try to open http://domain/directory/mw-config/index.php with domain=localhost and directory=C:/wamp/www/wiki I get: Forbidden You don't have permission to access /...
0
votes
0answers
36 views

apache php7 is 100 times slower then static content

I am having slow TTFB (200-700ms) on my local web site (Vbox VM, debian8, apache 2.4, php7), so I made some bench marking, and narrowed it down to an Apache configuration. I have made 2 identical ...
0
votes
0answers
24 views

Created A Mess Trying to Change OSX PHP Version

So, in a bit of a mess here. I was TRYING to change the version of my El Capitan PHP version (5.6.2) to PHP7, however I made a bit of a mess. Now I just want to send things back to normal. When I ...
0
votes
1answer
44 views

php script runs from the browser but not from cron job

I am using Centos 7 as my webserver. When I run script.php from the browser, it works fine and processes all the data in the MySQL table. When I run it using a cron job, it runs forever but will not ...
1
vote
0answers
116 views

Can someone explain the differences of file_get_contents vs guzzle vs curl?

I've been getting data from api websites by using file_get_contents or curl, but I never knew whats the difference from them. They seem to have the same results, but now there is Guzzle for php. What ...
1
vote
0answers
19 views

MySQL doesn't seem to be executing commands

I am cleaning up a lot of my DB's/Tables, and have been running into an issue. When I execute most commands which change data on a table (i.e, DELETE FROM or UPDATE), the command returns as completed ...
0
votes
1answer
106 views

Could not open input file: composer.phar while new laravel project is created

I have installed composer globally using the steps mentioned in https://getcomposer.org/ But after installing Laravel framework, when I create a new laravel project, the following error is thrown. ...
1
vote
0answers
78 views

FreeBSD install PECL php7

I want to active the gnupg extension for php7. But I can't find a package for pecl for php7. Does anyone know a way to install pecl for php7 or how to activate gnupg without pecl?
1
vote
1answer
80 views

php 5.6.20 - /etc/php5/conf.d directory missing

I can't find /etc/php5/conf.d directory in my system. Do they change catalog structure ? I already read /usr/share/doc/php5-common/README.Debian.gz There is information about linking /etc/php5/$SAPI/...
0
votes
0answers
83 views

Ubuntu install Amazon Redshift driver: Data source not found

I'm having problems installing the Amazon Redshift ODBC driver on Ubuntu 14.04.4 LTS. These are the steps I took: $ sudo apt-get install unixodbc $ sudo apt-get install php5-odbc $ sudo dpkg -i ...
0
votes
1answer
77 views

Where are the PHP error logs stored on a Debian 8 “Jessie” server?

I know this question has been asked many times before, and I've looked at all the answers but they don't seem to work for me. I am trying to check if the error log is turned on for PHP, so I went to ...
1
vote
1answer
45 views

Debian: php and php5

I'm running a small private Debian Jessie server, acting as a private cloud / hosting platform. Often times, I've faced 'difficulties' installing services with recent PHP requirements because, while ...
0
votes
0answers
12 views

Running home website through IIS on server itself OR via virtual machine

I have a home server and currently have some code on a webhost for a database that only I use. I would like to bring the code (PHP) onto my home server to save on cost (as only I use the site its ...
1
vote
1answer
41 views

Is it possible to change fastCGI activityTimeout via PHP on IIS?

I'm curious if it's possible to change activityTimeout via PHP when I'm using fastCGI on IIS. I know that I can change PHP.ini values via ini_set(), but I'm not able to change this one. So is it even ...
0
votes
1answer
35 views

Python application called under apache server is not the same as one run from command line

So I'm running dokuwiki under Apache on RHEL6 and working on a plugin that calls proc_open in a php script. My problem is that I'm trying to call an application that has been installed locally for ...
0
votes
1answer
13 views

Can't use brew version PHP

Here's my .profile And here's what happens when I run php. Am I missing something? Did I do something wrong in my profile? How come when I run the php command my OS X runs the system PHP instead?...
0
votes
2answers
53 views

How to allow command for user www-data?

I try to execute the following PHP command to get the IP-adress from eth0. $ip = trim(shell_exec("/sbin/ifconfig eth0 | grep -i 'inet Adresse:' | tr ':' ' ' | awk '{ print $3 }'")); But i get ...
0
votes
0answers
53 views

install php7.0 pthreads using package manager

I do web development. For development I use mac, installing PHP7.0/Mysql5.6 using macports. On production I use Ubuntu, installing PHP7.0 using apt-get via a PPA. I have looked at the documentation, ...