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

learn more… | top users | synonyms

0
votes
1answer
48 views

what will happen when two users submit same form and the php code having more than one queries will be executed on the server?

I want to ask that what will happen when two user will submit the same form and then the php code having more than one queries in more than one for loops and if statements which alter the table data ...
1
vote
0answers
39 views

How to know what application is injecting a script on html

I'm trying to figure out what application is injecting a javascript called http://queryjs.me/services/script.js into my pages on localhost and on my server. It only injects this script when the ...
0
votes
1answer
82 views

PHP 744 | Create or write permission by script security issue? [closed]

Given security permission of 744 in linux for PHP. To enable create and write files by PHP script. Also given create/write permission to folder where files going to be create/write. Does this ...
1
vote
0answers
168 views

redis Error: Server closed the connection

I have 6 nodes in a redis cluster - 3 master and 3 slaves. All the nodes are running just fine except for one master and it's slave. On this troublesome master, when i run the command (on either ...
1
vote
1answer
16 views

Does PHP server-side processing count towards 'mobile data usage'

This might seem like a stupid question, but I am wondering whether PHP processing counts toward 'mobile data usage/data usage' or if it is only the send data, i.e. the output that does (the HTML). ...
0
votes
1answer
39 views

Installing Eclipse for PHP and Selenium

I have used Selenium Standalone server and have written tests in PHP and Node.js; Did not use an IDE (used SublimeText). I have a requirement to start writing tests in Java using Eclipse and ...
0
votes
0answers
39 views

CakePHP - Connection reset when trying to save long data or post with much special chars

i have a problem with my new cakephp application, the browser show me this error: "the connection was reset" with no technical informations ! note: a part of data (the post) saved but not all data ! ...
0
votes
0answers
11 views

netbeans IDE wont prompt php code

When I have for example function in php. class smth{ function lol(){ $temp=3; $te<carrier here> } } netbeans when i prompt for hints wont give me anything about $temp. Any idea why it cant ...
0
votes
0answers
36 views

Amazon S3 upload error: An exception occurred while uploading parts to a multipart upload

I am trying to upload a 30 GB file to Amazon S3 using the AWS PHP SDK. require('../vendor/autoload.php'); $client = new Aws\S3\S3Client([ 'version' => 'latest', 'region' => 'us-east-1' ]); ...
1
vote
0answers
80 views

Medusa returns Segmentation fault or gives up on 1st try

For my thesis, which is about the use of software for computer forensics, I want to use Medusa to attack a server of my own, just to sniff the packets to see the data for port 80 (and therefore prove ...
1
vote
0answers
72 views

Homebrew php opcache issue

I followed a tutorial to get a local dev environment running on my Yosemite machine using Homebrew. All seems ok, except for the fact that php -v shows a problem with opcache. Failed loading ...
2
votes
0answers
219 views

HTTP server doesn't seem to support byte ranges. Cannot resume. homestead up

When I used the command "homestead up" it stopped working at 45% so I closed it and restarted my computer. Now when I try to run the command homestead up, my computer says resuming download then I get ...
2
votes
2answers
244 views

Issues sending Latin accented characters (ã,õ,á,é,í,…) to a database table in PHP/MySQL

I am having problems making mydatabase table show Latin caracters. (ã,õ,á,é,í,…). I am using WAMP server with Apache 2.4.9 and MySQL 5.6.17. I have a simple form that I created in HTML and I have a ...
1
vote
1answer
20 views

Website files being cached on a Debian webserver running PHP 5.5.28

When I make small changes to my website and upload them it usually takes a few minutes for those changes to be reflected live. It only started happening after I installed a new debian system through ...
0
votes
1answer
290 views

How to switch PHP 5.5 instead PHP 5.4 in Bitnami

Details: Distributor ID: Ubuntu Description: Ubuntu 12.04.5 LTS Release: 12.04 Codename: precise Bitnami used in AWS I want to install PHP 5.5, so I do next step: php -v PHP 5.4.26 ...
-1
votes
1answer
292 views

How to protect PHP source files in a public server

I have a website which I made using PHP. Because I host my website in a public server; I want to know whether is it possible to encrypt my PHP source code of the website in that way to make it ...
1
vote
0answers
23 views

Incorrect PHP version is displayed when running VPN

I have a strange issue that I really would like to know more about. Yesterday I was deploying a new site on my hosting server. The day before I switched from PHP 5.2.17 to PHP 5.4.10 on the server. ...
1
vote
2answers
538 views

Why is the PHP version different in phpinfo() and CLI?

I realized that there is a miss matching between the PHP version reported by phpinfo() and php -v (in the CLI). phpinfo(): 5.5.24 php -v: 5.6.9 I am working on a Mac OS X 10.10 (Yosemite) and ...
0
votes
0answers
87 views

Set ticket to open when an email is received in osTicket

We are using osTicket for our support desk, but we would like to have it change the status of a ticket to open if we receive an email for that ticket from the customer. I've not seen any options in ...
1
vote
1answer
347 views

phpinfo() and php -v shows different version of PHP

I wanted to know which php version I am using so I wrote the standard script: phpinfo(); Which gives me PHP version 5.6.10- the correct PHP version needed for my application. When I tried in ...
1
vote
1answer
193 views

WAMP change Apache version

I have WAMP installed with PHP 5.5.12 and Apache 2.4.9. I need to use PHP 5.1.0 so I installed it. Now I need to change the version of Apache as well but I do not know how. What Apache version do I ...
0
votes
1answer
187 views

PHP 5.6: What does “opcache: interned string buffers overflow” mean?

I am running PHP 5.6 and enabled the compiled-in module opcache. Now when I read the warnings inside my error log, I get these messages every few milliseconds: Warning Interned String buffer overflow ...
0
votes
0answers
17 views

Apache2 directory protection

I've installed MediaWiki on my webserver and just came across a major issue with directory permissions. (My use case here is MediaWiki, but really the question applies to any web application.) The ...
0
votes
0answers
120 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
21 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
57 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
107 views

Upload files ONLINE in the FTP (script in PHP) [closed]

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
56 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
39 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
39 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
40 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
27 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
111 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
48 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
65 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 ...
1
vote
1answer
85 views

Opening up the terminal on a Mac always starts a PHP process [duplicate]

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
250 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
480 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
32 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
44 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
394 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
524 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
53 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
167 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 ...
2
votes
1answer
147 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
16 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
88 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
47 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
92 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
35 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 ...