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

learn more… | top users | synonyms

4
votes
2answers
4k views

How do I upgrade PHP on CentOS and Kloxo?

I need to upgrade PHP so that I can upgrade joomla on my dedicated server. I have: kloxo 6.1.6 php-5.2.17-1 Linux CentOS-55-64-minimal 2.6.18-194.32.1.el5 x86_64 x86_64 x86_64 GNU/Linux I searched ...
0
votes
1answer
3k views

PHP mail() function not working in Mac OS X

I did follow all the links given in this post, nothing worked out. Please explain me why PHP mail() does give so much problem? what exactly happening and why it will not work? I am using Mac OS X ...
0
votes
0answers
22 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
5 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 ...
1
vote
2answers
3k views

WAMP not executing PHP

My WAMP server is not executing PHP. I have already tried the following things: restarted just Apache restarted all WAMP services restarted the WAMP application restarted my whole system renamed the ...
0
votes
1answer
23 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
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
20 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
12 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
1answer
21 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
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
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
8 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....
3
votes
2answers
3k views

make a certain software version the default in ubuntu

I currently have 2 version of php installed on ubuntu 12.04. one for php 5.3 installed using apt-get while the other one is installed with xampp with php 5.5 When i execute these commands: > ...
0
votes
1answer
4k views
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
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
1answer
22 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 ...
3
votes
3answers
2k views

After upgrading PHP to version 7, why can't I use the mongodb driver?

Well here's an odd situation I've found. I've been using PHP and MongoDB together on a project, and updated the associated software. After the upgrade, I did make sure to update the new conf files and ...
0
votes
1answer
5k views

How to enable event MPM Apache 2.4 Ubuntu 14.04 with thread safe PHP?

I upgraded to Ubuntu server 14.04 expecting the default Apache installation would use the new event MPM, but instead I find the old memory-eating prefork. I've successfully set up event MPM in Arch ...
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
21 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
3k views

Upgrade my xampp for linux (UBUNTU) using command line

I have xampp version 1.7 but I want to upgrade it in newest version from command line. Is there any command to upgrade xampp for ubuntu using command line?
0
votes
1answer
7k views

Curl returns “Connection Refused” when trying to access XAMPP via localhost

I am running XAMPP (Apache, MySQL and PHP) on my Windows Vista computer. I have curl installed on my machine. When I try to curl my localhost in the command prompt, I get the following: curl -v -i ...
20
votes
1answer
74k views

How to manually install Apache, PHP and MySQL on Windows?

How do I install Apache with PHP support and the MySQL server on Windows without using any ready-to-use packages like WAMPServer or XAMPP ?
0
votes
3answers
3k views

Convert PDF to JPG without Imagemagick

Is there a way to convert a common UTF-8 encoded PDF to a JPG without using ImageMagick or Ghostscript? The reason I'm asking is, that I have to replace or "simply" double layer a small part (date) ...
4
votes
2answers
8k views

NginX+PHP-FPM setup: Why is this configuration workaround needed to properly set PATH_INFO? [Debian7.4]

It took several hours to find out how to properly configure NginX, but I still think I might have missed something. Mainly because this perfectly working setup raises more questions than it answers. ...
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
29 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 ...
0
votes
2answers
477 views

#126 - Incorrect key file for table '.\mysql\db.MYI'; try to repair it

I posted my question on serverfault but they hold my question by advising to post it in SuperUser I installed Xampp and can see localhost page as well as both apache and mySQL is starting fine but ...
0
votes
1answer
5k views

Ho do you stop and start php-fpm?

Ok I'm trying to install Ion Cube on an AWS instance created by Bitnami: https://aws.amazon.com/marketplace/pp/B007OUYR4Y/ref=srh_res_product_title?ie=UTF8&sr=0-4&qid=1413489962522 ...
1
vote
0answers
21 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 ...
2
votes
2answers
18k views

How to fix: “phpMyAdmin - Error Cannot start session without errors”?

When I try to login to PHPmyadmin I get the following error: phpMyAdmin - Error Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your ...
2
votes
1answer
10k views

apache 2.4 + php 5.4.7 cannot load php5apache2_4.dll

I am trying to make Apache (httpd-2.4.3-win32) to work with PHP 5.4.7 (VC9 x86 Thread Safe) on Windows 7. Apaches default page is working and proudly says: "It works". PHP CLI is working and ...
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 ...
0
votes
1answer
3k 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 ...
0
votes
3answers
3k views

How to Configure Adobe Dreamweaver CS6 with PHP and ASP .NET?

I have Wamp Server on my PC and also Visual Studio and I want to Configure Adobe Dreamweaver CS6 with ASP .NET and PHP so that I Can design Dynamic website....
5
votes
3answers
6k views

How to log php error in a separate file?

I just did an upgrade of my server to Fedora 17 and merged some configuration files containing .rpmnew into the existing ones. I have been successfully logging my php errors in a separate log file by ...
1
vote
2answers
5k views

CURL Error version OPENSSL_1.0.1 'not found …'

I have the last few days, a concern with CURL. I get this error: curl: / lib/i386-linux-gnu/libssl.so.1.0.0: version `OPENSSL_1.0.1 'not found (required by / usr/lib/i386-linux-gnu / libcurl.so.4) ...
0
votes
2answers
2k views

Autocompletion for custom PHP classes in Sublime Text 2/3

How can I get autocomplete in Sublime Text 2 (or 3) to work with built-in and custom PHP functions, methods and classes? In Atom I've got it working with built-in functions, like this: In Sublime ...
0
votes
1answer
55 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 ...
-3
votes
1answer
33 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
37 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
2answers
1k views

Class 'MongoDB\Driver\Manager' not found

I am creating REST APi with Lumen framework. I use Mongolab for my mongoDB and i want to host my app on google App Enginge. I am using Jessenger lib for communicating with my DB on MongoLab. Everhting ...
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
0answers
35 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
4answers
145 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 ...