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

0
votes
1answer
29 views

PHP: how to keep I/O accessible in parent after pcntl_fork()'s child has completed?

I'm using PHP and pcntl_fork(). The idea is that the parent forks and pauses for the child to complete; the child does a task then terminates; the parent can check the return code for the task or the ...
0
votes
0answers
28 views

PHP site with JavaScripts is not working on Raspberry Pi (server) but works on other PC

I have a problem with a site that shows calendar, time, weather and RSS I found on the internet. I made an Apache server on my Raspberry Pi, then copied necessary files to /var/www and at first, the ...
0
votes
0answers
9 views

Unable to send email using PHP

I have postfix installed, but can't get it to send any email. I'm not sure what the problem is, it could be postfix it could be something else. I just can't get php to send mail Here is my setting's ...
0
votes
0answers
12 views

How to use tor with PHP CURL

I want to be anonymous and I want to be able to have my IP changed frequently, so my questions is How can I make the script use Tor proxy as using a php CURL? I'm currently running Windows. I believe ...
1
vote
1answer
57 views

What does the “w” in “yum install -y php56w” stand for?

Following instruction on this page I installed PHP using command: yum install -y php56w My question is: what does the 'w' stand for in php56w?
0
votes
0answers
1 view

Php mail not recieving

My issue is php mails aren't being received. so I have WHMCS on a server here and I am using WHMCS for service & client management but is only allowed on our company network so it won't be ...
0
votes
0answers
6 views

Can PHP sockets and HTTP requests be logged?

I would like to be able to log outgoing HTTP requests from PHP scripts with the time and PHP script location and line. It occurs to me that since you apparently can open sockets in PHP, you would also ...
1
vote
2answers
20 views

Finding php files that have numbers in the filename

Can someone help me with a command line to find all .php files on a server with a number in the filename? I have searched, as best I can, for other answers, but they typically show for a specific ...
0
votes
4answers
268 views

How does the Google bot parse the PHP files? [closed]

How does the Google bot parse PHP file, to calculate its page rank? Does it download the raw php code? (like with curl wget) Or does it download the output html, parsed by the server? (like with ...
0
votes
0answers
11 views

How to allocate size (mb) for folder in website using javascript [migrated]

How allocate folder size (limit) to users using javascript or php. user can change the allocated size in that folder. also need to show usage meter under that folder. eg website given users to create ...
0
votes
1answer
13 views

Environment Variable PHPRC got ignored

I'm using ubuntu 14.04 with php5 version 5.5.9 and starting php via spawn-fcgi. In the fcgi starter script I added an environment variable PHPRC and exporting this variable. export ...
0
votes
0answers
15 views

App Engine Php XDebug PhpStorm Setup issues

Phpstorm documentation indicates that a local php install is required for App Engine but I get a port 9000 conflict on XDebug when Mamp is launched. The app Engine docs indicate that php is installed ...
-2
votes
1answer
42 views

Captive Portal & iOS/OSX, CNA popup fails to login [closed]

On Mac & iPhone, my wifi-captive-portal is detected. But once I'm logged in, the popup : - does not close - nor does display the 'done' button. 'done' button means what ? It means you're logged ...
1
vote
0answers
19 views

Find web server architecture [closed]

I am programming mostly small webs with php and mysql with 10 000 visitors per day. Now I have a web with 50 000 visitors per day and this number still increases. Visitors will load from 50 to 80 ...
0
votes
1answer
10 views

Optimal Apache2 config for this scenario

I'd be interested in hearing opinions on the best config for an Apache web server in this scenario. I have a number of scripts (PHP) that run at regular intervals, the majority all at the same time, ...
0
votes
0answers
7 views

Serving PHP and Node.JS from the Same Apache Server via XAMPP

I have seen a lot of tutorials about the topic. Tho, my question is about domains and subdomains. Suppose i have a domain example.com. It lands on my blog. The forum.example.com lands on a different ...
0
votes
1answer
26 views

how can I restrict access to a folder or file to prevent users from opening it

I have some files and one folders that are private. I don't want the users able to see them. I want to show them a message contained 'this file (or folder) is limited and you can not open it'. until ...
0
votes
0answers
14 views

Sublime Text: Why regex in syntax highlighting does not work?

In sublime text 3 a default syntax highlighting rule paints a sql select just fine if its in the same line, but not if its in the next line: vs After reading this question I opened the PHP package ...
-1
votes
0answers
7 views

Cant connect to mysql ssl with compiled php (ubuntu 12) [migrated]

I have been bashing my head against a wall for a couple of days now. I just cant figure it out. I Run ubuntu 12 with plesk 12 and apache 2.2. I have compiled PHP 5.6.10 and PHP 5.6.11 with these ...
0
votes
2answers
22 views

How to prevent directly accessing a php file from its parent file?

I have a php file in www.example.com/somefile.php that includes a file in another directory www.example.com/directory/someotherfile.php. How can I prevent someone from accessing someotherfile.php ...
0
votes
0answers
25 views

Squirrel Mail - POP3 Migration - Server to Server

I'm looking to migrate Squirrel Mail mailboxes POP3 over to a new server and i can't find a guide on how to do this and which plugin would be best to use? I've managed to install Squirrel Mail on the ...
0
votes
0answers
19 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 ...
0
votes
2answers
51 views

Curl post form and get result

I found this website http://www.fonefinder.net/findome.php , that locates phone provider by number (ex: http://www.fonefinder.net/findome.php?npa=562&nxx=866&thoublock=1666) shows VERIZON ...
0
votes
0answers
15 views

PHP's HTML ouput randomly cuts off and fails to load the full webpage [migrated]

Been having an issue with one of my client's websites whereby the page will not fully render (the HTML source just cuts off if you look in "View Source") causing Javascript to not execute and content ...
0
votes
1answer
20 views

<select> menu and PHP

I am using a menu to try to get data into a DB. I have seen this, <select name="exam" id="exam" style="background-color: #FFDDF4"> <option></option> <?php foreach($exams ...
0
votes
0answers
21 views

Running SCP through PHP does not yield same result as CMD

I have a Microsoft Windows Server 2012 R2 Foundation running an MSSQL server and PHP. My goal is to replicate tables from the MSSQLdatabase to a Debian Wheezy MySQL database. I have successfully ...
0
votes
0answers
62 views

Fedora 22 Docker Container unable to network

I have been struggling with Fedora 22 and getting Docker images to be able to communicate with the outside world. Not sure how to start testing this, or even where to start to look. Let me explain ...
0
votes
2answers
28 views

Access a built-in mac webserver from another machine

I'm using php to create a built-in web server in my Mac, so I can access my webpage files and route them through a file. In order to do this, I'm using the terminal command php -S localhost:8080 ...
0
votes
0answers
10 views

SELinux issue with php_shell_exec

I have a php site on CentOS7 that needs to use some shell scripts using php_shell_exec. But the scripts do not run due to SELinux (that I require). None of the scripts use sudo, I understand that ...
0
votes
2answers
43 views

How to highlight PHP, HTML & JavaScript at same time with Notepad++?

The file extension and language is PHP, and need to highlight HTML and JavaScript at the same time with the main language PHP in Notepad++ Example of code to highlight: <?php $form_name = ...
1
vote
0answers
19 views

php.exe can not find .dll files

I recently installed xampp which of course installs php. I want to run php from the command line so I added it to the PATH variable in windows using setx path ... This worked well so that now I ...
2
votes
3answers
77 views

Can't include an HTML link in PHP script, but works fine as MySQL query

I'm using the following as part of a PHP script: mysqli_query($con,"UPDATE table SET description='<a href="http://123456.biz/index.php/123/321/456/*/789">text</a>' WHERE description IS ...
0
votes
0answers
17 views

How to prepare Windows based environment to test multiple PHP versions?

I guess this is more general question so asking it at superuser, not on stack exchange. I have to create windows environment with both IIS and Apache, and test latest 3 PHP versions. (At the moment ...
0
votes
1answer
47 views

Php ffmpeg exec

with code $a = exec('"ffmpeg" -y -i "test.mp4" -ab 128k -s 640x480 -vcodec mpeg4 -acodec:a copy "output.mp4" 2>&1 ', $output, $error); Input file was 82.21mb output file was 13.74mb ...
0
votes
0answers
58 views

Zabbix 403 Forbidden using httpd24-httpd

Using latest version of Zabbix. Running RHEL 6.6 and needed to use a different repo to get newer versions of Apache and PHP. The new httpd directory is /opt/rh/httpd24-httpd/root/etc/httpd When I ...
0
votes
0answers
20 views

php failed signature verification and may have been tampered with

I have been unable to install any version of PHP on Windows/IIS via Web Platform Installer 5.0 running on Windows 8.1. I have tried several different versions of PHP: 5.3, 5.4, 5.5, 5.6. Each time, it ...
0
votes
1answer
55 views

move_upload_file or copy when submit form in dropzone.js error

I'm using dropzone.js to upload file. I'm setting autoProcessQueue = false. When i click button upload, it will process processQueue() and run action PHP. In PHP, i get file and save it to session. ...
1
vote
0answers
45 views

PHP Proxy without cURL

The next 2 weeks I'll be watching the house for my parents. But before I went here, I forgot to forward ports in the router. I do have a kind of access. I can place files on my webserver. But I need ...
0
votes
0answers
33 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 ...
0
votes
1answer
111 views

Every 5 min cron job between specific time (Windows server 2008 and batch file)

Previous colleague set up cron job every 5 min for 24 hrs. Now I need to modify this only running between 7am to 7pm. I had never learned cron job so I googled and tried but it didn't work. Task ...
2
votes
0answers
84 views

Something “kills” my Apache-PHP-Processes after some time

I have the following really strange problem and hope, you guys can help me out. If there are any questions, I'll try answer them as best as i can. The problem I have a web server with Debian 6.0, ...
1
vote
1answer
65 views

scheduling with cronjob to run the php file for only one time

How do I run the php file only once using the cron jobs. i.e., to schedule task to work on 20/06/2015 10:30:00 I tried something like this : 30 10 20 6 ? 2015 /usr/bin/php ...
0
votes
2answers
138 views

Can't connect to ftp server - Connection refused by server

I'm new to this forum and ftp. When I try to connect to a ftp server using filezilla, It returns - Connection attempt failed with "ECONNREFUSED - Connection refused by server". I run the Network ...
1
vote
0answers
15 views

Phabricator and MAMP PRO Configuration? Keep getting a 403

I currently have MAMP PRO installed, where I run local WP installs. I am trying to install Phabricator. I followed all the directions on their site, but I can't get it to work. I have all apache ...
1
vote
0answers
32 views

Cannot configure PostgresSQL extension for php in Cpanel

I have a Centos 6.6 x86_64 vps cloud server with WHM and cpanel. It contains easyapache installed in it and working fine. php sites are working fine with it. I have installed PostgresSQL 9.3 in the ...
0
votes
1answer
23 views

Wrong php launched for <?php directive embedded in HTML

On my laptop (osx 10.2.2) , i brewed apache 2.4.12 and php 5.5.22, with php-fpm. Strangely, when i ping on the server for a .php file, apache binds properly to the new php and runs that. If however, ...
1
vote
0answers
26 views

Installing php extensions in openwrt

I am using openwrt barrier breaker on microtik rb450g router board To run php on openwrt i installed php5 packages using opkg But now i need to install php extension specifically intl extension so far ...
0
votes
0answers
18 views

Configure PHP settings on per vhost basis

I have an Apache server that has two websites. I want the two sites to have a bit different PHP configurations. The setup: The two vhosts share the configuration php.ini file. The same php.ini is ...
0
votes
1answer
47 views

Cannot access AWS webserver using public IP

I have a free AWS account and have set up a EC2 Virtual machine on Windows Server 2008 R2. I use RDP to access the VM. I have set up XAMPP and deployed my PHP application in it. I can access it ...
0
votes
0answers
33 views

nginx + php5-fpm displays 502 Bad Gateway

After an update php5-fpm stopped working. It shows blank page, and after restarting nginx 502 Bad Gateway. In nginx log there is following line: 2015/05/27 20:27:08 [error] 3034#0: *40 recv() failed ...