Questions tagged [php]
PHP is a widely-used general-purpose scripting language that is especially suited for Web development. Questions about programming in PHP are off-topic and should be asked on Stack Overflow.
1,992
questions
0
votes
0
answers
147
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
1
answer
386
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
1
answer
68
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 ...
4
votes
1
answer
13k
views
Editing PHP in Microsoft Visual Studio Express 2012
Is there a way to install something in VS Express so I can edit PHP in VS Express Web and have the program color the text like in HTML and JS?
3
votes
2
answers
6k
views
Nginx & UserDir & PHP
I have a fairly simple nginx/1.4.7 installation (from Debian/unstable) and I'm trying to get PHP scripts to run inside a UserDir.
server {
listen 8083; ...
1
vote
0
answers
73
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
0
answers
237
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
1
answer
163
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 ...
2
votes
2
answers
3k
views
Notepad++ - HighLight HTML tags in php
Have php with echoing html tags.
notepad++ 6.4.5 is highlighting ok the tags inside php and outisde php.
notepad++ 6.5 is highlighting ok the tags only outisde php and NO HIGHLIGHT inside php code.
...
0
votes
1
answer
670
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
0
answers
440
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 ...
11
votes
6
answers
56k
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 ...
2
votes
1
answer
54
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 (...
1
vote
2
answers
705
views
Why showing pear and phpunit is not installed in xampp on ubuntu?
I have installed xampp 1.8 on my ubuntu 12.04. In /opt/lampp/lib/php/PEAR I can see there are two directory named PEAR and PHPUnit.
But when I run pear -V or phpunit from terminal it gives the below ...
0
votes
1
answer
518
views
website hosting on my local server using mamp in mac
I want to host a wordpress site locally on my MAMP server.
This is the procedure I followed:
1.Installed the duplicator plugin on the site and created the site package.
2.Downloaded the installer and ...
2
votes
0
answers
2k
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
1
answer
2k
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] ...
2
votes
1
answer
962
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
...
12
votes
2
answers
26k
views
Convert file to PDF using LibreOffice under user apache (i.e. when using PHP)
I installed libreoffice-headless and can convert documents when logged on into the shell as a normal user.
[root@desktop ~]# yum install libreoffice-headless
[root@desktop ~]# yum install libreoffice-...
0
votes
1
answer
305
views
Unable to run the batch file for phoronix-test-suite in WindowsXP
I am trying to install phoronix-test-suite in my windows-XP, 64bit. According to the user manual, I only need to run a .bat file from respective directory.
When I double click on the .bat file or ...
0
votes
0
answers
1k
views
file_get_contents() - connection times out
I have debian running on vbox. I wanted to install composer like by doing:
$ cd /usr/src
$ sudo apt-get install curl php5-cli
$ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/...
5
votes
4
answers
2k
views
Flash drive friendly (portable) XAMPP alternative?
I'm trying to setup a portable MediaWiki wiki on a flash drive using XAMPP portable as a server.
http://lifehacker.com/354005/run-your-personal-wikipedia-from-a-usb-stick
When I try to start apache ...
0
votes
0
answers
1k
views
Make a curl POST request from scraped data
I scraped a website using the simple DOM php parser :
<?php
include 'domparse.php';
$html = file_get_html('http://oceanofgames.com/rebel-galaxy-free-download/');
foreach($html->find('form[...
0
votes
2
answers
2k
views
NGINX and php-cgi on Windows "No Input File Specified"
I'm running php-cgi and NGINX. They are running in a folder, however their root directory is 2 directories out, and 2 in from there. When the root was html (default), they worked perfectly, however ...
-2
votes
3
answers
8k
views
mysql access denied for 'root'@'name of the computer'
I am getting this error everytime im trying to connect to my database
Warning: mysqli_connect() [function.mysqli-connect]: (28000/1045):
Access denied for user 'root'@'name of the computer' (...
2
votes
1
answer
5k
views
WAMP php openssl extension activated but not loaded
I've installed WAMP3 and everything finally went well. However, I am now encountering a problem where a PHP extension seems activated but not loaded.
WAMP 32bit on 64bit system (had to for MSSQL ...
-4
votes
1
answer
129
views
Getting wrong result from php math functions
It was supposed to show a result of "5.712" (actually it is 237.12, the correct $b3 = 750000; ) but instead it shows "0.118"
Help needed....
<?php
#This is the Excel formula "=((B4*B5-B3)/(B5/...
1
vote
1
answer
2k
views
How to enable ldap authentication in php
I have one server (Windows Server 2012 R2) and I need to configure
a LDAP users authentication in PHP. Server is domain controller, PHP (5.6) is installed and PHP already has LDAP extension. Bind with ...
1
vote
1
answer
587
views
How to edit and update PHP script like Wordpress?
I would like to ask if there is a software that could help me in mantaining and managing my Wordpress+Plugin modified version.
The problem is that I have a certain number of hacks made to the core ...
-1
votes
2
answers
2k
views
Is it possible to download all images in a PHP website?
I want to download all images from this website for art reference:
http://gbf-wiki.com/index.php?%BF%CD%CA%AA%B5%D5%B0%FA%A4%AD%B0%EC%CD%F7
But all image links are PHP links. This is the sample ...
3
votes
0
answers
225
views
Privilege separation per user for each web application
I'd like to ask a question about LNMP stacks and user privilege separation.
I usually host websites on LNMP stacks and Wordpress on Debian 7 and 8 servers. I separate each Wordpress site into its own ...
7
votes
1
answer
47k
views
Notepad++ General Purpose code formatter.
I enjoy a lot that I can hit CTRL+Shift+F on eclipse and it automatically formats the code according to a profile. My question is how can I do something similar on Notepad++? Where would I go about to ...
0
votes
1
answer
362
views
Invalid library php_pdo_oci8.dll and pdo not loaded
Starting wampmysqld works fine, but trying to start the wampapache service doesn't work (even if I start it from services.msc or from the WAMP icon > Apache > Start/Resumt Service).
During the ...
-1
votes
1
answer
69
views
PHP one line, different variables [closed]
I have a php file with multiple lines that are identical in all ways, except for the variable displayed in them. At the moment, there are 26 lines of code, but can be reduced to two if there's a way ...
-1
votes
1
answer
329
views
How to Find a Backdoor in a Hacked WordPress Site with Debian [closed]
I think there was a backdoor created by the hacker which allowed them to bypass normal authentication.
Wordpress 4.4.2 in apache2 with MySQL
I install chkrootkit, rkhunter but finding nothing!
I find ...
0
votes
2
answers
3k
views
Fatal error: Out of memory Error on WampServer
I have set memory_limit to -1 in php.ini file in Wampserver.
My RAM is 6 Go.
But I still getting this error:
Fatal error: Out of memory (allocated 1673789440) (tried to allocate 67108864 bytes) in C:\...
2
votes
2
answers
320
views
Creating subdomains - permissions
At my work, I sometimes write small applications for visual information on a web based platform (LAOP-jQuery). Some of my colleagues have started doing this as well in order to have better access to ...
0
votes
1
answer
2k
views
Display an image when the web server is accessed
I run a Minecraft network on a dedicated debian 8 jessie machine and I have a LAMP server running on it.
I want to know how can I make it so when people put my server IP into their browser and hit ...
2
votes
1
answer
2k
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 ...
5
votes
1
answer
3k
views
Compiling PHP 7 with mssql support
So I'm trying to switch to PHP 7. Unfortunately I'm in need to connect to an MSSQL Server so I'll need the dblib driver for pdo. With PHP5 you could ust the php5-sybase Package.
So I tried to do it ...
-2
votes
1
answer
221
views
How to get php 7 on mac?
I want to upgrade my php from php5 to php7. I want to do it through the terminal and I just cant figure out how.
Does anyone have a step by step guide on how to do it?
-1
votes
2
answers
855
views
Prevent uninstalling phpmyadmin when uninstalling php
I have a centos 6 server and i want to upgrade my php version from 5.4 to 5.5 but as far as i know i need to uninstall version 5.4 first (most guides say so at least), when i type yum remove php-...
0
votes
1
answer
74
views
httpd-vhosts showing syntax error
I am using the following tutorial.
However when I test my apache I am getting the following error:
Syntax error on line 1 of /Users/jessmckenzie/Sites/httpd-vhosts.conf:
Invalid command 'USERHOME=$(...
65
votes
2
answers
42k
views
The MD5 hash value is different from Bash and PHP [duplicate]
I tried to generate the MD5 sum (using md5sum) of a string, "hello". I tried out different methods as the md5sum tool in Linux, PHP's MD5() function as well as various online text to md5sum ...
2
votes
0
answers
614
views
Imagemagic and php exec: convert: no images defined
The command works just fine from the shell
/opt/ImageMagick/bin/convert /private/var/folders/nl/9cky1krj5_j7zwm34tfkndd40000gn/T/pdfPyflQF /private/var/folders/nl/9cky1krj5_j7zwm34tfkndd40000gn/T/...
0
votes
1
answer
39
views
Apache2 serves all files in the wordpress directories tree. Did I misconfigure it?
First I noticed that if I go to http://example.org/wp-config.php, it gives me an empty page instead of 404 error. I tested it with another file - wp-config-example.php, and it gave me a page with the ...
0
votes
0
answers
102
views
php end tag in strings breaks vim syntax highlighting
I have the following line a long PHP file: preg_match_all("/<.*?>/", $rows[2],$tmp); and after the ?> in this line the syntax highlighting in vim is gone for the rest of the file. How can I ...
0
votes
0
answers
703
views
How can I protect specific web pages from URL sharing? Temporary URLs?
This is a technical question which is based on implementing a special feature on an website.
I know HTML and CSS, I know crude JavaScript (very basic) but I have no clue about PHP or other web-based ...
1
vote
1
answer
3k
views
Accessing PHP web server running on a VirtualBox VM (with host-only network)
I am trying to connect to the PHP built in web server (php -S) running on a VirtaulBox VM.
My host OS: Windows 8.1 x64
My Guest OS: Ubuntu Server 14.04 LTS
I can access the Apache web server just ...
1
vote
1
answer
6k
views
apt-get install libphp-phpmailer not including class.phpmailer.php
I am installing PHPMailer on a Ubuntu 14.04 LTS server. I ran the command apt-get install libphp-phpmailer. It installed the files under usr/share/doc/libphp-phpmailer as expected. However, it is ...