server-side

my server side PHP still got hacked after reCaptcha (hundreds-spam-emails)

♀尐吖头ヾ 提交于 2019-12-02 08:16:42
My previous question on StackOverflow was about that someone was sending me hundreds of spam emails every few hours. Now, I fixed the script on the server side but the next morning I still got 30 emails or something and my hosting company gave me a new password to my FTP and moved my index files to a backup map(website offline), they said it was hacked because of the suspicious script below. They said "This often happens via a leaked script in your website, a script that is "out of date". What does that mean? They say in the email that there is something with this script file. Which is

link between private key and signed certificate in keystore

隐身守侯 提交于 2019-12-02 06:46:53
I am doing the jetty SSL configuration . I have created CSR using keytool which has added a private key to the keystore, Received the certificate based on the CSR, converted the certificate to DER format and imported the certificate into the keystore as trustcacerts The signed certificate has the root/intermediate certificates in the certificate path I also installed the root and intermediate certificate in the IE under the trusted root certificate after converting it into DER format. while using https , the browser shows certificate error and considers the certificate as self signed

PHPMailer User Attachments

北城以北 提交于 2019-12-02 06:25:51
I'm attempting to create a form that sends an email with user populated data. So far everything send correctly however the attachment is never included in the email sent. Any help would be appreciated. HTML form asking user for data. "Mailerindex.html" <html> <head> <link rel ="stylesheet" type = "text/css" href = "style.css" /> </head> <div class="form-style-8"> <body> <form action= "PHPMailer.php" method ="POST" id="from" enctype="multipart/form-data"> <input type="text" name="fname" placeholder="Your Name"/> <input type="number" name="phoneNum" placeholder="Phone Number"/> <input type=

epoll loops on disconnection of a client

烈酒焚心 提交于 2019-12-02 00:36:06
问题 I am trying to implement a socket server by using epoll . I have 2 threads doing 2 tasks: listening to incoming connection writing on screen the data the client is sending. For my test I have the client and the server on the same machine with 3 or 4 clients running. The server works fine until I don't kill one of the client by issuing a CTRL-C : as soon I do that the server starts looping and printing at a very fast rate data from other client. The strange thing is that the client sends data

epoll loops on disconnection of a client

孤者浪人 提交于 2019-12-01 21:14:42
I am trying to implement a socket server by using epoll . I have 2 threads doing 2 tasks: listening to incoming connection writing on screen the data the client is sending. For my test I have the client and the server on the same machine with 3 or 4 clients running. The server works fine until I don't kill one of the client by issuing a CTRL-C : as soon I do that the server starts looping and printing at a very fast rate data from other client. The strange thing is that the client sends data each 2 seconds but the rate of the server is higher epoll_wait is also supposed to print something when

Getting the referrer URL in php ( including parameters )

て烟熏妆下的殇ゞ 提交于 2019-12-01 20:45:09
Are there any HTTP Headers I could use to grab the entire referrer URL using a webserver/server-side scripting? Including query string, et cetera? You should be able to grab it from the $_SERVER['HTTP_REFERER'] variable. To add to Chacha's point, I don't know if you want to capture the client side hash part of the referrer URL (sometimes, you do). I.e. if the client came from " http://www.domain.com?x=3#y=5 ", the $_SERVER['HTTP_REFERER'] will only contain " http://www.domain.com?x=3 ", and the hash part won't be sent up to the server. If you want to capture that hash part (officially called

Can PHP run after the page is loaded?

大兔子大兔子 提交于 2019-12-01 06:30:27
问题 So PHP is executed server-side. But is it possible for PHP to be run after the page is loaded? To illustrate, if I had a value (stored in a file, lets say) that changed every second. When I hit a button that uses Javascript to ask PHP to get that value, does it display what the value currently is, or what it was at page load? 回答1: I think you need to get one of those diagrams that show how basic HTTP and the web server works. It will make more sense to you, than explained in plain words here.

What is the Meteor server-side path to /public?

落花浮王杯 提交于 2019-12-01 04:41:26
On the Meteor client-side, I know that files in the project's public directory are referenced at '/'. How are they referenced on the server-side? I am trying to get a directory listing with fs.readdir, but I don't know how to construct the path to get to the server side equivalent of the client side '/images/gallery'. Any advice? When I use the fs-module I just use './public' for my public folder, works fine on my local install. And then I set it to whatever's correct at the production server using environment vars. Edit (an example): This method will return all .HTML files from the public

Is a Session ID generated on the Server-side or Client-side?

断了今生、忘了曾经 提交于 2019-12-01 01:03:40
This web page http://www.w3schools.com/ASP/prop_sessionid.asp states that a session ID is generated on the ServerSide. If this is the case, then how does a server know it's still the same client on the 2nd request response cycle? Surely the SessionId would be generated on the ClientSide so that the client would be sure of passing the same value to the server? The SessionID is generated Server Side, but is stored on the Client within a Cookie. Then everytime the client makes a request to the server the SessionID is used to authenticate the existing session for the client. The session ID is

what is difference between file reading and streaming?

一曲冷凌霜 提交于 2019-11-30 18:19:12
问题 I read in some book that using streaming is better than reading a whole file at a time in node.js , I understand the idea .. but I wonder isn't file reading using streams, I'm used to this from Java and C++, when I want to read a file I use streams .. So what's the difference here ?? also what is the difference between fs.createReadStream(<somefile>); and fs.readFile(<somefile>); both are asynchronous, right !! 回答1: First thing is fileread is fully buffered method. and streaming is partial