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

learn more… | top users | synonyms

0
votes
1answer
183 views

Understanding the use of gearman with memcached as persistent storage

I have configured Gearman on my Centos environment with both client and workers running on the same machine. It runs fine. I am trying to use gearman with memcached persistent storage. I have ...
0
votes
0answers
160 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/'); ...
-1
votes
1answer
28 views

My PHP form is not accepting data after I added a code to not allow empty data through. What is a better way to code this?

So my form was not accepting empty data and that of course was good, but when I just added a username and email it would accept it without the password. I thought by adding this piece of code ...
0
votes
1answer
20 views

PHP & AUTH_DIGEST variable not present when using DigestAuth

I want to setup Http Digest Authentication on my apache server. So I enabled apache module auth_digest and restarted my apache server. I also added the folowing to my VirtualHost: <Directory ...
0
votes
0answers
64 views

Coda 2 PHP plugin for cross-file auto completion

I’m currently using Coda PHP & Web toolkit version 4.2(beta) for PHP autocomplete. But it only seems to autocomplete if the function/var/definition etc is defined in the same file. Is there a ...
1
vote
0answers
78 views

PHP documentation plugin for Xcode

Does anyone know if there are any plugins that allow Xcode to use code completion and documentation for PHP? I realise there’s a similar Xcode/PHP question on Super User but that was from five years ...
0
votes
0answers
43 views

How to tell which version of mod_php5 did apache2 load?

I installed an Ubuntu 12.04 server with ISPConfig. Since it ships with rather old PHP5.3 I installed 5.5 in /opt following this guide. Everything works except for PHPMyAdmin, installed via Ubuntu ...
0
votes
0answers
23 views

Invalid response to 'wp.getCategories' from XmlRpc server

I use Windows live write to post blogs for wordpress. It works fine to publish a blog or update tags. However, I encounter the following error while updating categories. The response to the ...
1
vote
1answer
23 views

Directing incoming requests based on port number

I am not sure how to describe my issue, but I will try to explain. I have been hosting a personal Minecraft server from my PC. I then changed the DNS on one of my site's sub domains to my IP. It ...
4
votes
1answer
4k views

How can I remove Apache2 that I have installed in Mac OS X?

A while ago I thought that it would be handy to install Apache2 on my MacBook and not go the easy route by just installing MAMP. However now I’ve changed my mind but I can’t simply delete Apache2. ...
0
votes
1answer
203 views

How can I install PHP 5.4 in Debian 7.5 (Wheezy)?

I wonder if you have any way to install PHP 5.4 on Debian 7.5 via apt-get, adding some URL in sources.list. I added the following lines however it asks a lot of dependencies: deb ...
1
vote
1answer
155 views

Submit data to db and load next page PHP and SQL

This is just a test page I am working on. Trying to get my submit button to load the next page "order.php" It just keeps loading the same page. Should I be writing this in PHP or HTML? If you look ...
1
vote
3answers
2k views

How can I install PHP 5.6.14 on Mac OS X 10.11 (El Capitan)?

I recently upgraded from OS X Yosemite to El Capitan, and I needed to re-install PHP. So, I downloaded php (version 5.6.14), ran the ./configure file, and then ran sudo make. However, when doing so, ...
0
votes
0answers
43 views

What is the purpose of XAML files in a PHP site?

A client's website is primarily .php based, but I noticed the site contains .xaml files. What is the purpose of a .xaml files in a .php based site structure? Do they have a purpose or would it be ...
0
votes
1answer
55 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
104 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
249 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
69 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
59 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
55 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
102 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
99 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
250 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
490 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
577 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
326 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
26 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
1k 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
129 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
720 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
380 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
331 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
18 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
177 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
24 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
64 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
156 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
83 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
40 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
56 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
60 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
28 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
129 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
50 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
106 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
95 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 ...