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

learn more… | top users | synonyms

0
votes
0answers
8 views

store other fields value when press submit button [on hold]

please i want to know how to Save or Store other values if text box name are empty field? now when i press Submit button, other value changed to default value, but i want to when i change still ...
0
votes
0answers
15 views

HTTP/1.1 401 Unauthorized when using XML-RPC PHP client and server

HTTP/1.1 401 Unauthorized This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser ...
0
votes
1answer
12 views

LAMP Setup on CentOS at DigitalOcean

I'm following this tutorial. I got some issues start from step four: Configure Nginx to Process PHP Pages. After I typed this $ sudo vi /etc/nginx/conf.d/default.conf. I can't find server { listen ...
0
votes
1answer
16 views

WAMP with remote DB

I want to use WAMP server with a database located on another place. I can access it through a VPN (openVPN). I will change the config.ini of my PHP code to use the remote database (10.x.x.x instead of ...
0
votes
1answer
20 views

Execute command generated by a PHP script

I have PHP file which has logic based on which I run either bin/phpunit -c Application/app --testsuite $TESTSUITE or bin/phpunit -c Application/app --group group1 group2 when Im doing ...
1
vote
0answers
19 views

Upload files ONLINE in the FTP (script in PHP)

I want to prepare a script in php so I can upload files online ( The files are in some websites with login and password) directly to my FTP ! let me explain to you the operation! There's some ...
0
votes
0answers
13 views

getting permission denied when uploading gfiles using php on ec2

I am trying to upload files using PHP on a Amazon t1.small instance but getting the following error: [ Tue Aug 25 22:04:25.163568 2015] [:error] [pid 6467] [client 120.56.186.247:2440] PHP Warning: ...
0
votes
0answers
23 views

How can I setup multiple php version in Linux?

I am working on a project and I just want to ask on how can I setup multiple PHP version in Linux. The scenario looks something like this since the server already has a PHP but with a version of 5.2 ...
0
votes
0answers
17 views

Debian machine not sending mails (PHP)

I have a local vagrant debian machine hosting a Symfony php application which should sends mails with Swiftmailer. When I move this app to a pre-production or production server mails are sent, so the ...
0
votes
0answers
23 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 ...
0
votes
0answers
22 views

no internet with some programs, it's not the firewall

the last few days some programs cannot get info from internet, that is:i wrote the programs with livecode and created a simple connectiontest program that post to a php file on a website and tells me ...
0
votes
0answers
18 views

Find missing sequence numbers in table mysql

I have a list like this 1 3 9 10 I want it to be like this 1 2 3 4 5 6 7 8 9 10 all the missing numbers will display I try the following query select l.IDBANK + 1 as start from _bank as l ...
0
votes
1answer
39 views

How to move folders into parent folder on Linux Ubutnu

I have a folder structure with varying depths similar to the following. parent/location/businessname/sublocation/hotelname parent/location/businessname/hotelname All of the lower most folders are ...
0
votes
2answers
24 views

How do I configure PHP to run locally?

I have attempted to configure my system to run a PHP server. I'm running Windows 10, and using IIS. I've gone through the Windows Features and turned on the Web Management Tools under the Internet ...
0
votes
1answer
31 views

Terminal on Mac Always Starts in PHP Process

I am on a Mac running Yosemite 10.10.4 and every time I start terminal or open a new terminal tab I am inside of an actively running php process. I must CTRL+C before I can do anything else. I don't ...
1
vote
1answer
27 views

SQL error: [unixODBC][Driver Manager]Data source name not found, and no default driver specified

I am running a PHP script on a RedHat server using Teradatas ODBC drivers. <?php $conn = odbc_connect("Teradata", "username", "password"); $result = odbc_exec($conn, 'SELECT count(*) FROM ...
0
votes
1answer
71 views

Install imap on PHP 5.4 CentOS

So, i tried installing IMAP with yum install php5-imap but package cannot be found: [root@nv-datacenter ~]# yum install php5-imap^C [root@nv-datacenter ~]# yum install php5-imap Loaded plugins: ...
0
votes
0answers
16 views

How to upgrade PHP in SLES 10 sp2?

I need an updated version (at least 5.3) of PHP in my server running SUSE Linux Enterprise Server 10 sp2 (PHP 5.2.5). I've look for instructions but I haven't found. Can you explain me how to do it, ...
1
vote
1answer
35 views

What to do about a possible attack on my server with “../../[…]../../ETC/PASSWD” in PHP?

I am running a web server (no root) hosted by one.com and I once coded a little “tool” that makes funny letters out of a “normal” user input though PHP `$_GET. This stuff is so 2000 but people still ...
0
votes
1answer
32 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
77 views

How to set environment variable in mac osx yosemite and use in PHP web application

I am creating PHP web application. I need to get environment variable in my web application. I am using Yosemite OSX. I have executed following command: launchctl setenv ENVIRONMENT development I ...
0
votes
0answers
23 views

php-fpm -y /etc/php-fpm.conf -R Only works during current run?

So I am trying to solve the FTP Credentials problem in Wordpress from ever occuring again it seems my problem lies in php-fpm. This here is my www.conf for php-fpm: [www] listen = ...
0
votes
1answer
24 views

How to get absolute server path of downloaded file

I have downloaded a file from a page with url download.php?id=312, which 'attaches' a file from the server. Can I somehow find the absolute path to the file on the server, i.e., the real path - not ...
1
vote
0answers
37 views

Can't Compile PHP 5.6.12 on Windows 10

I setup a PHP build env as windows.php.net suggests, with php-sdk & the build tools. So I know it's not the enviroment. However, when I attempt to run my script to compile PHP: call buildconf.bat ...
0
votes
1answer
5 views

Apache2 “caching” my pages, while I don't have cache installed

just to know, I am not a system admin (I mean this is not my job), and I try to configure my apache just to produce my projects. My system is Ubuntu 15.04 and I have installed Apache2 Apache/2.4.10 ...
0
votes
0answers
26 views

How to upgrade php-fpm on OSX Yosemite 10.10.04?

Currently I have this on my machine Milans-MacBook-Pro:local vaske$ brew install php56 Warning: homebrew/php/php56-5.6.11_2 already installed Milans-MacBook-Pro:local vaske$ php -v PHP 5.6.11 ...
0
votes
0answers
21 views

EC2 WP No errors in mysqld.log yet Error w/database connection?

System information: Linux - latest from AWS | Apache - 2.4.12 | MySQL - 5.5.42 | PHP - 5.4.42 memory_limit: php 128M | wp 64M Running new m3.medium instance and having the database connection issue ...
0
votes
1answer
14 views

pmyAdmin how to overcome 2Mb import limit?

I try to import my database tables to local XAMMP dev computer. But i keep hitting 2MB phpMyAdmin limit (Max: 2,048KiB). I try to set all limits to php.ini without luck. So stypid question how i ...
0
votes
1answer
26 views

Browser Downloading Files Instead of Opening Them

My browser is downloading PHP files instead of opening them. If I type into the browser: mysite.com:9000/demo/Test.php It will download the file. However, if I use this for another PHP file then ...
0
votes
0answers
46 views

How to make nginx connect php-fpm with 127.0.0.1, not server's public ip?

I found error 'WARNING: [pool www] child 3715 said into stderr: "ERROR: Connection disallowed: IP address 'x.x.x.x' has been dropped." ' in php-fpm's log, where 'x.x.x.x' is my server's public ip. ...
0
votes
0answers
41 views

Format date from text string in php

Situation 'Commencement Date' input I want to format the users inputted date to DD/MM/YYYY however the input must stay text if the user inputs ASAP Forexample ASAP => ASAP 08/08/2015 => 08/08/2015 ...
1
vote
0answers
22 views

CentOS 6 - Preventing people from accessing certain files?

So I have my CentOS 6 server, which is nice and good. But for some reason, people can always access my board's files and download them, such as http://mariomansion.net/templates/pagelayout.tpl If you ...
0
votes
0answers
10 views

OSX HID control from PHP

Here's a real challenge: I have created a command that types from the CLI in OS X 10.11. osxtype "hello" will send the actually keyboard keypresses for h, e, l, l and o. it will type into what ever ...
0
votes
0answers
14 views

PHP: The form values are not correctly passed to the handler script [migrated]

I am using the hidden.php to pass two values to the "hidden_handler.php" for them to be displayed on a webpage. The two variables being used are $user and $time in the hidden.php . However, when they ...
0
votes
1answer
46 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
55 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
15 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
35 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
98 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
16 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
23 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
300 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
1answer
20 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
20 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
77 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
23 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
22 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
42 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 ...