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

learn more… | top users | synonyms

0
votes
0answers
5 views

How to send user name and password ajax and codeigniter is it right

I want to send user name password in codeigniter controller <script> $('#login_form').submit(function (e) { e.preventDefault(); var ...
0
votes
0answers
4 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. ...
-2
votes
0answers
11 views

Deleting a specific tag DOM with PHP [on hold]

I have the following string: $string = " <table> <tr> <td> 1 </td> <td> 2 </td> <td> 3 </td> </tr> </table> ...
-1
votes
0answers
10 views

Using php GD library to make an OCR? [on hold]

I wanted to use php GD library to make an OCR. I know there are OCR like Tesseract and phpOCR, but i wanted to learn how to make a one but i am unable to find any relevant material to help me after ...
0
votes
0answers
12 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
25 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 ...
0
votes
0answers
37 views
+50

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
22 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
14 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
7 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
29 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 ...
-1
votes
0answers
10 views

Laraval add custom directory

In laravel, how can i add a custom directory? when i make a folder titled "folder" when i go to domain/folder it shows me that it doesnt exist. This is my paths.php * @link ...
0
votes
1answer
29 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
11 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 ...
-1
votes
0answers
43 views

How to troubleshoot ERR_CONNECTION_TIMED_OUT for my site?

What is the correct way to troubleshoot error from the title? It's happenning randomly: sometimes site works flawlessly, and sometimes you get the "Connecting..." text in browser's status bar when ...
-1
votes
0answers
13 views

Map HostName To File On Apache

I have done this a million times on Windows, but never on Apache/Ubuntu. I have my portforwarding in the router set-up and I have my host name assigned. But when I type the hostname in Chrome I get ...
0
votes
2answers
36 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
22 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, ...
0
votes
1answer
14 views

Why is php cgi loaded in path when doing a 'sudo su <user>" vs just being logged in which uses php cli?

When logged in as root user, php loads the correct version which is php cli. But when i do a sudo su < user >, php is is loading the cgi version which is breaking some of my applications that ...
0
votes
0answers
6 views

How do you make php-cli as the default command in the terminal? It's currenltly running php-cgi

When I'm root and I do a php version. It shows that I am running php-cgi: but I need to use the php-cli version which resides in /usr/local/bin/php -- When I'm logged out of root as a regular user. ...
0
votes
0answers
7 views

Compilation error while installing Mongo PHP extension via PECL

I try to install Mongo PHP extension via PECL (for PHP 7.0.5-4+donate.sury.org~xenial+1) by executing sudo pecl install mongo-1.6.11 I try to install it this way because my Synfony3 project needs ...
0
votes
0answers
54 views

Set volume using php exec and amixer

I wrote a little php script to control the volume of my local machine with alsa: <?php # for simplicity and testing it really just executes the command: echo exec('amixer set Master 5%+') . " \n"; ...
0
votes
0answers
6 views

Tuleap project registration

Is there a way to customize the Register New Project page? For example, I want to have a text box under Trove Categories instead of the dropdown choices. The PHP page I speak of is: ...
0
votes
0answers
57 views

xampp myphpadmin and mysql server 5.7 not working together

I have MySQL Server 5.7 running on my windows 10 machine and I installed xampp 5.6. To start MySQL for phpMyAdmin I have to stop the MySQL57 service which uses port 3306 if it is already running. If ...
0
votes
0answers
17 views

php running on IIS 8 WIN 2012 Server “IS” pointing to correct php.ini but extension_dir is still pointing to “C:\PHP”

Now you're going to say, "Well, Pete, Google it because it's really simple..." OK, I agree. So here are my givens: GIVENS: php is running on IIS 8 on a WIN 2012 Server box php is running nicely ...
0
votes
0answers
14 views

How to get piwik running with nginx on Ubuntu?

Seeing that I want to learn more about linux administration today I wanted to set up an instance of the self-hosted Piwik statistics package for a website I'm running. Since I don't want to disturb ...
0
votes
1answer
12 views

lighttpd with zip extension

I wanted to optmize a project i have by trying out lighttpd instead of apache2 on a Raspberry Pi, but noticed that my php code handling zip files no longer worked because the Zip module for PHP doesnt ...
0
votes
2answers
44 views

Centos - PhpMyAdmin showing blank screen

I have just installed PhpMyAdmin, and when i try to access it it just shows a blank screen. I suspected this is because i followed a tutorial on how to secure php and disabled multiple settings, so i ...
0
votes
1answer
13 views

Php Permission Issues

I'm facing permission problems. I have a project for my school lecture which located here. It basically download some images from internet. And also It has a setup like wordpress and need to modify ...
0
votes
1answer
11 views

Installed LAMP and NetBeans, what do I need to enter in Sources folder?

I have installed LAMP and NETBEANS in my Linux pc. I tried to run my PHP project but I am confused with the Sources Folder. Please help in entering the correct path.
1
vote
0answers
15 views

How to install MySQL on separate box from IIS 7

I've got two servers running Server 2008 r2. I've set up one sever as the webserver with IIs7.0, asp.net, php, nodejs, etc. And I have put MySQL and MongoDB on the other server. As best I can tell ...
0
votes
0answers
16 views

Creating a “fake” disk on windows that actually goes to a remote disk

I have a seagate harddrive connected to my router. I can get to my files but i cannot use the file location in phpstorm. I can edit the files but the file tree is not showing. I read that you could ...
0
votes
1answer
18 views

Whats blocking direct access of error_log in apache

I have searched on google for a long time but it seems like nobody has even asked this question: What is blocking the direct access of error_log on Apache servers? Or is it even an Apache thing or ...
0
votes
0answers
25 views

Virus keeps appearing. How can i find the security hole?

I just started working with this client recently, and when i got into his server, it was full of viruses. At least 4 of his cpanel users had viruses on their websites (completely managed by him). The ...
1
vote
1answer
103 views

Security regarding nginx + php on CentOS 7 with OwnCloud 9

I'm trying to setup a OwnCloud Server v9 for my freelancing purpose. SPECS: - CentOS 7 - nginx - php I'm a little bit confused. I can find only the info about the PHP Version 5.5 in the ownCloud ...
0
votes
1answer
86 views

Ubuntu can't install php5-mysql

Now, before someone marks this as a duplicate, I've been looking around on the internet for the last two days and have been unable to find a resolve for my issue. All I'm trying to do is simply get ...
0
votes
0answers
26 views

Installing PHP on Server 2008 R2 and IIs 7.0

Followed these instructions to install PHP. Downloaded and extracted PHP-5.5.34-nts-Win32-VC11-x86 to C:\PHP. Created the PHP.ini file and turn on/off the directives listed there. Then followed ...
0
votes
0answers
9 views

.htaccess to hide 2 possible directories

I am having difficulties getting the second statement working regarding admins, i am trying to hide both new and admin parts of the directory. new seems to be hiding fine however admin doesnt want to ...
2
votes
1answer
28 views

Web Server Security : www directory

I have a question about Web Server, especially PHP / Apache Server. A Developer told me and my colleagues that today it is bad to put our Web directory in WWW directory, because it is unsecured ...
0
votes
0answers
14 views

Code assist not working right in Eclipse Mars with PDT

I have Eclipse Mars with PDT installed, but code assist is not working right in my opinion. When I type a function call but don't know the right parameters I would like Eclipse to display these ...
0
votes
0answers
14 views

Error while installing apache

When trying to install libapache2-mod-rpaf I get this error: dpkg: error processing package libapache2-mod-rpaf (--configure): subprocess installed post-installation script returned error exit ...
7
votes
6answers
439 views

/usr/bin/env: php: No such file or directory

I want to use .sh script for deployment of my app. That script is on my home server (Ubuntu 15.10 Server), marked as executable. Access to this script is done through ssh, using this tutorial, I have ...
0
votes
0answers
14 views

php email form works on internet site but not on intranet

I have created one website having php email form & working fine on internet server, but same coding am using in my intranet server its showing error: "502 - Web server received an invalid ...
0
votes
0answers
43 views

Is PHPMYADMIN inside iframe possible

So I used this lines of codes. echo '<iframe src="http://127.0.0.1/phpmyadmin/" frameborder="0" style="width:70%;height:70%"></iframe>'; It doesn't show phpmyadmin, it's just blank. ...
0
votes
0answers
13 views

Gosa with openldap giving php error on startup

I am trying to setup GOsa and OpenLDAP on a Centos 7 machine and am encountering some issues. Mainly when i access the /gosa webpage I get the following error: Fatal error: Class 'session' not found ...
0
votes
0answers
85 views

Sending emails from PHPMailer using proxies IP addresses

I need to send emails from PHPMailer using proxies IP addresses, I know that to do so, I need to use the fsockopen function so I can conect to the SMTP account, I also know that if I have to connect ...
0
votes
1answer
46 views

Can't install PHP

I'm trying to install PHP on my Windows 10 64 bit computer. I downloaded php 7.0.4 Win32 from http://windows.php.net/download/ and extracted the contents to a local directory. I try to run ...
0
votes
1answer
125 views

XAMPP and MySQL workbench [duplicate]

Ok so I have this message error in XAMPP: 20:25:37 [mysql] Error: MySQL shutdown unexpectedly. 20:25:37 [mysql] This may be due to a blocked port, missing dependencies, 20:25:37 [mysql] ...
0
votes
0answers
59 views

XAMPP and MySQL

Ok so I have this message error in XAMPP: 20:25:37 [mysql] Error: MySQL shutdown unexpectedly. 20:25:37 [mysql] This may be due to a blocked port, missing dependencies, 20:25:37 [mysql] ...
2
votes
1answer
40 views

Horde configuration

I´m trying to configure Horde in a Windows Foundation 2008 R2 running Apache. I followed the instructions here: Installing Horde Framework 5 I got stuck here: Completing Configuration ...