• Announcements

    • MannDude

      Current state of vpsBoard   02/04/2017

      Dear vpsBoard members and guests:

      Over the last year or two vpsBoard activity and traffic has dwindled. I have had a change of career and interests, and as such am no longer an active member of the web hosting industry.

      Due to time constraints and new interests I no longer wish to continue to maintain vpsBoard. The web site will remain only as an archive to preserve and showcase some of the great material, guides, and industry news that has been generated by members, some of which I remain in contact to this very day and now regard as personal friends.

      I want to thank all of our members who helped make vpsBoard the fastest growing industry forum. In it's prime it was an active and ripe source of activity, news, guides and just general off-topic banter and fun.

      I wish all members and guests the very best, whether it be with your business or your personal projects.

      -MannDude

Search the Community

Showing results for tags 'php'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • vpsBoard
    • Announcements & Contests
    • Industry News
  • Virtual Private Servers
    • General Talk
    • Operating a VPS Business
    • Tutorials and Guides
    • Questions and Answers
  • The Lounge
    • The Pub (Off topic discussion)
    • Coding, Scripting & Programming
    • SBC, ARM, Home Automation
  • Marketplace & Reviews
    • Reviews
    • VPS Offers
    • Other Offers
    • Service Requests

Found 25 results

  1. Hello , sorry for the confusing title ,I do not speak english as my first language.(and also sorry if the topic does not fit here) Problem background: I just want to create a website as a competitive program grader for my school. Like complie and run source code on the server. So below is my idea and i would like some help/suggestions before i do it,I still don't know if this will work. Mysql usage: The problem one is that i would use one of the table as my user-submission queue.When user submit a code, I first put it in this table(i suppose it put the new row in the bottom of the table?) . Python program usage: I would run a 24/7 program on my server that check every 10 second if the queue table is not empty, just run the grading process(I know how to do it) and then pop it off the queue.Then check again. PHP usage: When a person submit code, i will use php to put it on the queue table,but it may be the same time my python program is popping something off the queue table too. This is where I get confuse whether it will work or not.(Other usage of the php is just things about web interface which I had done before and know what to do) So,would this idea even work? Will it break my server or something?As a competitive programmer guy I don't know much snd will greatly appreciate any help from u guys. :) Thank you very much.
  2. This is my second post for php based projects. My first thread is about an IoT plattform for Ardunio clients. This post is about creating a simple web interface for a redis key/value store. If you want to install your own redis database you can use this tutorial: I will use following php frameworks to get the rest interface done: Slim, CorSlim, Predis. All the server and client code will be available at github: https://github.com/wlanboy/php-redis-rest-service a) Server We first have to enable CORS support to enable clients of other domains to use our service: require ('CorsSlim/CorsSlim.php'); $app->add(new \CorsSlim\CorsSlim()); $corsOptions = array( "origin" => "*", "exposeHeaders" => array("Content-Type", "X-Requested-With", "X-authentication", "X-client"), "allowMethods" => array('GET', 'POST', 'PUT', 'DELETE', 'OPTIONS') ); $cors = new \CorsSlim\CorsSlim($corsOptions); $app->add($cors); After that we have to get a connection to our local redis instance: $app->container->singleton('redisclient', function() { $client = new Predis\Client('tcp://127.0.0.1:6379'); return $client; }); And define the routes: //Redis routes $app->get('/key/:id', 'getKey'); $app->post('/key', 'addKey'); And implement them with the help of the Predis framework: function getKey($id) { $app = \Slim\Slim::getInstance(); $client = $app->redisclient; try { $value = $client->get($id); $temp = (object) [ $id => $value ]; echo json_encode($temp); } catch(PDOException $e) { echo '{"error":{"text":'. $e->getMessage() .'}}'; } } Done :-) b) Client I use a simple Ajax JS script for the client. The most simple way to create the GET and POST requests. We first defien a data object which is able to create JSON output: function KeyValue(key, value) { var kv = {"key":key, "value":value}; kv.toJsonString = function () { return JSON.stringify(kv); }; return kv; }; And a simple send method that reads form data, sends it to the rest service and prints the response: function sendMessage() { var key = document.getElementById("postkey").value; var value = document.getElementById("postvalue").value; if (value == "") { jQuery.ajax({ type: "GET", url: "https://rest-api/key/"+key, contentType: "application/json; charset=utf-8", dataType:"json", success: function (data, status, jqXHR) { output = document.getElementById("output"); output.innerHTML = JSON.stringify(data); document.getElementById("postkey").focus(); }, error: function (jqXHR, status) { output = document.getElementById("output"); output.innerHTML = status; document.getElementById("postkey").focus(); } }); } } Using GetElementByID + value to get the input. Creating a jQuery ajax request and add the key to the url to get the variable stored in redis. Same with the POST request to store the value of a variable in redis: else{ var contact = KeyValue(key,value); jQuery.ajax({ type: "POST", url: "https://rest-api/key", contentType: "application/json; charset=utf-8", data: contact.toJsonString(), dataType:"json", success: function (data, status, jqXHR) { output = document.getElementById("output"); output.innerHTML = JSON.stringify(data); document.getElementById("postkey").focus(); }, error: function (jqXHR, status) { output = document.getElementById("output"); output.innerHTML = status; output.innerHTML += "<br/>"; output.innerHTML += jqXHR.responseJSON; document.getElementById("postkey").focus(); } }); } This time with a data line to get the JSON data of the contact element. Same JSON.stringify to get the string representation of the json object. Done. Simple server & client example to use a redis database without any binary client. Simple HTTP requests to use the redis service. I will add additional methods to the rest service to add the other redis commands too.
  3. I am looking for a programmer / scripter already familiar with PHP and WHMCS. Project type work, one off custom scripts. Freelance work for someone out there, per piece. If interested, PM me your CV / resume or in lieu of such tell me about your experience. Informal is fine, alternative learners encouraged.
  4. ODD Sharer Behavior

    Hello, I am new here and I am hoping to get some answers and continue to use this forum for all my VPS issues; I have notices an odd behavior through my site over time and I think it's about time I took care of it; I have a VPS through WHM cPanel. Medium size package with 2 CPU Cores and 4GB RAM. About 300 Posts (WordPress Platform); I am using an Ok theme that is optimized actually and my score through gtmetrix is about 98% - 92% for yslow. Here is my issue: When I log in to my personal twitter and retweet my website tweets (Let's say about 10 of them) my VPS overloads immediately to 80% or more while it is under 1% any other times. Checking the logs through cPanel I noticed 1 (one) PHP file with "a lot" of queries and that is a sharrre.php - The only thing I can think of is maybe it is not optimized? The theme builder guy is a "no go" for this specific issue. I am attaching the code of that specific file so maybe you guys can help. I would REALLY appreciate it. Sarah. <?php header('content-type: application/json'); //Sharrre by Julien Hany $json = array('url'=>'','count'=>0); $json['url'] = $_GET['url']; $url = isset(urlencode($_GET['url'])) ? $_GET['url'] ? ''; $type = isset(urlencode($_GET['type'])) ? $_GET['type'] ? ''; $ori_url = isset($_GET['url']) ? $_GET['url'] ? ''; if(filter_var($ori_url, FILTER_VALIDATE_URL)){ if($type == 'googlePlus'){ //source http://www.helmutgranda.com/2011/11/01/get-a-url-google-count-via-php/ $contents = parse('https://plusone.google.com/u/0/_/+1/fastbutton?url=' . $url . '&count=true'); preg_match( '/window\.__SSR = {c: ([\d]+)/', $contents, $matches ); if(isset($matches[0])){ $json['count'] = (int)str_replace('window.__SSR = {c: ', '', $matches[0]); } } else if($type == 'stumbleupon'){ $content = parse("http://www.stumbleupon.com/services/1.01/badge.getinfo?url=$url"); $result = json_decode($content); if (isset($result->result->views)) { $json['count'] = $result->result->views; } } } echo str_replace('\\/','/',json_encode($json)); function parse($encUrl){ $options = array( CURLOPT_RETURNTRANSFER => true, // return web page CURLOPT_HEADER => false, // don't return headers CURLOPT_FOLLOWLOCATION => true, // follow redirects CURLOPT_ENCODING => "", // handle all encodings CURLOPT_USERAGENT => 'sharrre', // who am i CURLOPT_AUTOREFERER => true, // set referer on redirect CURLOPT_CONNECTTIMEOUT => 5, // timeout on connect CURLOPT_TIMEOUT => 10, // timeout on response CURLOPT_MAXREDIRS => 3, // stop after 10 redirects CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_SSL_VERIFYPEER => false, ); $ch = curl_init(); $options[CURLOPT_URL] = $encUrl; curl_setopt_array($ch, $options); $content = curl_exec($ch); $err = curl_errno($ch); $errmsg = curl_error($ch); curl_close($ch); if ($errmsg != '' || $err != '') { /*print_r($errmsg); print_r($errmsg);*/ } return $content; }
  5. This will be the start of a series of tutorials about IoT, servers, clients and how things can be connected. I want to show how a opensource based IoT plattform that is host-able on any shared-hosting account can be build. So no special services, no Azure, no Google, no Bling-Bling-Newish things. No Ruby, no Java, no Phyton. Plain PHP on server and C on client side. No root permissions and no customizing. Back to the roots of simple webhosting. Every single line of code will be published on GitHub. Advices and pushes are welcome. Later on I will add Redis and JS for some Pub/Sub things - but the start will be a plain simple LAMP stack. Table of content: Motivation Client side Server side Protocols So let's start with 1) I really like Ruby - same with MongoDB, Redis, RabbitMQ and Hazelcast. But you have to configure and maintain the whole infrastructure for each single project. Quite time consuming and sometimes frustrating if interfaces are changing or new config-files are invented. As fast as these frameworks and services are growing the more deprecated flags are spread through the users. Not talking about failover, backup/restore and all the small things rising if more than 10 people are using a plattform. A quad-core Raspberry Pi 2 running Ruby code, using a Phyton client connected with a RabbitMQ cluster to store information in a sharded MongoDB database. Whoohoo sounds good must be good. My math professor told me one thing that fits on such projects: "If you do not have a simple solution you are only fixing symptoms and not the real problem". He was and is right. So the IoT thing is about reading analog/digital signals and storing them into a database. Exluding commands, workflows, visualization and all the other BI stuff. I used the Raspberry Pi for most stuff because it was easy to run Ruby/Phyton scripts doing the whole work. But if you look to what has to be done there are three simple steps: measure, ship and store. Measure signals is simple with any AVR 8-bit microcontroller. But they are lacking one thing: The internet connection. The electronic things are quite easy and a physical LAN connection is easy but the TCP-IP stack is very expensive for microcontrollers - they have 2kb of RAM. Good luck to handle SSL handshakes. But why should a single chip do all the work? The make-all-things-possible SoCs are quite expensive and you can only touch them through an SDK. No direct access to the core. So back to the basics. What do you need to "ship" the data? Not much if you have an OpenWRT device. Curl is your friend. Just post the information and done. Authentification, SSL, encoding is done within this tool and you only need a bash and a working internet connection. Most routers do not have a serial connection so I found an cheap way to connect the Arduino and the OpenWRT world. You will find a quite simple solution on the server side too - if you look what has to be done - just receive a post request and store it into a database. Something, I strongly believe, that can be done without Java and Phyton. We will of course build a REST-API, a documentation, authentification, tokens, SSL. So not a too simple PHP script - remeber we want to host the stuff on a shared hosting account for some $ per year. 2) We start with a cheap Arduino Uno R3 and a 9V 1330mA power adapter. ATmega328P with 32 KB flash memory, 2 KB SRAM running with 16 MHz. You have to set a jumper (old IDE HDD jumper is just fine) to disable the Mega16u2 chip. Background: The Mega16u2 is used to upload the code from USB to the ATmega328P chip. But this connection is used for the bridge framework between OpenWRT and the Arduino. The Arduino cost about $20. There is a Arduino version with an OpenWRT core but it is quite expensive: Arduino YÚN costs about $80. The Dragino Yun Shield which can be stacked on any Arduino costs $29. The core itself is opensource - in contrast to the closed YUN product. Product page: http://www.dragino.com/products/yunshield/item/98-yun-shield-v2-3.html Wiki page: http://wiki.dragino.com/index.php?title=Yun_Shield Hardware specs: Processor: 400MHz Flash: 16MBytes RAM: 64MBytes 1 x 10M/100M RJ45 connector 150M WiFi 802.11 b/g/n External Antenna via I-Pex connector 1 x USB 2.0 host connector, used for USB storage or 3G connection 1 x MicroSD card slot Compatible with 3.3v or 5v Arduino A lot of power to run a http client. Compatible with all 3.3v and 5v boards! Running the Arduino Bridge library: https://www.arduino.cc/en/Reference/YunBridgeLibrary Within the AVR code you are able to call functions on the Linux core of the shield. Some basic commands are wrapped like curl: void sendDataToServer(String data) { Serial.println("http client begin"); HttpClient client; String url = "http://testing.com/arduino?data="+data; Serial.println(url); client.get(url); while (client.available()) { char c = client.read(); Serial.print(c); } Serial.println("http client end"); } And the same with process: void postData() { Process linuxcommand; String curlCmd; String curlData[NUM_FIELDS]; // Construct curl data fields for (int i=0; i<NUM_FIELDS; i ) { curlData[i] = "--data \"" fieldName[i] "=" fieldData[i] "\" "; } // Construct the curl command: curlCmd = "curl "; curlCmd = "--header "; curlCmd = "\"Key: "; curlCmd = privateKey; curlCmd = "\" "; for (int i=0; i<NUM_FIELDS; i ) curlCmd = curlData[i]; curlCmd = serviceURL publicKey; Serial.print("Sending command: "); Serial.println(curlCmd); linuxcommand.runShellCommand(curlCmd); Serial.print("Response: "); while (linuxcommand.available()) { char c = linuxcommand.read(); Serial.write(c); } } This code is running on the 8-bit AVR microcontroller which is communicating with the OpenWRT Linux system through the bridge. So a 5V * 1A = 0.12 kW per day device - able to use 5V logic and any WLAN connection - costing sub $50 - which is able to call any REST-Api with a simple C code. No Ruby, Phyton, Node.js or Java needed. End of first part. Looking forward for any comments.
  6. If you're new to PHP, here is a simple parody of Diffie-Hellman expressivity using for loops to get you started. Conversion to a bash script will not be very difficult and you'll be selling 'strong' encryption in no time! :) <span style='font-family: monospace; font-size: 13px;'> <?php // parody of Diffie-Hellman for ($lines=1; $lines<=86; $lines++) { for ($dhm=1; $dhm<=150; $dhm++) { $dhparam = rand(1, 50); if ($dhparam == "1") { $dhparam = "+"; } else { $dhparam = "."; } if ($lines != "86") { if ($dhm <= "150") { print $dhparam; } } if ($lines == "86") { if ($dhm < "145") { print $dhparam; } else { print "++*++*"; break; } } } print "<br />"; } ?> </span>
  7. I've been using ISPConfig3 for a while now. It kinda got annoying everytime I had to add a new domain to VPS, where I would have to manually add an associated client, FTP account, DB, Db account, email domain, email username. I decided to script stuff up and have a simple web form where I would enter a couple of details (client, domain name, username) that would be used to create everything mentioned before. It uses the SOAP library that the ISPconfig3 devs have provided. Check it out on github.
  8. [Hiring] PHP Developer w/ SOAP Experience

    Hello, I'm working on a project in which I need to connect to an API using SOAP, but this is not an ordinary system, here are a few steps/pre-requirements that we already completed and might give you a little bit of insight on the issues I'm facing. At the moment we completed the whitelisting of our Dedicated IP's, and we also installed all the SSL Certificates required for the API that we are connecting to. We already made all these steps and successfully run tests using the CLI and SOAPUI. The problem that we are facing is actually send and receive information on PHP, that is why I'm searching for someone to Authenticate on the API using PHP. I'm open to offers and suggestions, please send me a PM with your Skype name so we can speak further. Note: This should be an easy job for someone that already worked with this type of API's before. Yours Sincerely, Henry
  9. I have another company that is hiring for their customer support team. This is an immediate availability. This is a weekday work schedule with working hours of 23:00 - 07:00 GMT. Some weekend work will happen as the team shares the weekend workload. Pay will be once per month and compensation will depend on your experience level. You must be a native English speaker. What should you know how to do? Apache, DNS, iptables, Linux, PHP, etc. L3 / L4 / L7 basics General technology skills and experience with web technologies Experience with game servers is a big plus If you are interested in this position and believe you are qualified, please send me a private message and attach your resume / CV. Please also attach or write in said message, a brief lead in cover letter telling me why you are a good fit for this position. All resumes and details are held in confidence. Your info will only be forwarded to the hiring company when they state an interest from my submitted notes. I try to inform applicants of the position status and keep things as active on both ends as possible.
  10. Releasing LookingGlass v1.3.0: Project page: LookingGlass Security: It was brought to my attention last week that an RDNS XSS could exploit LookingGlass. As it turns out, illegal characters are not filtered on a lower level (as RFC1034 would suggest). LookingGlass was vulnerable as it simply outputs the contents from a terminal. The fix applied uses "htmlspecialchars()" to filter stdout from terminal. What's the lesson here? Never trust anyone/anything! :) For more information on this type of exploit, visit: ZoczuS Blog - How Reverse DNS can help us with XSS, SQLi, RCE... Changelog: * 1.3.0 (2015-01-25) * Fix RDNS XSS * Fix '&nbsp;' being escaped by temporary patch (SHA a421a8e) * Fix 'REQUEST_URI' XSS (URL is now hard-coded via config) * Catch error when using IPv6 hostname with IPv4 command, and vice versa * Added .htaccess (fixes readable subdirectory) * Added sample Nginx configuration (fixes readable subdirectory) * GNU shred to create test files (fixes gzip and ssl compression) * Update configure.sh (add site url, sudo for centOS, and user:group chown) * Update cerulean and united to Bootstrap v2.3.2 * Update readable and spacelab to Bootstrap v2.2.1 * Update Jquery to v1.11.2 * Update XMLHttpRequest.js Updating: Q. Should I update if I've applied the patch fix? A. YES!!! For information on how to update, please visit the README. (BBCode formatting sucks for in-line code blocks). Version 2: Q. When will the rumoured v2 be released? A. Soon™
  11. Hi all, I have written a PHP class to validate Eu VAT Numbers. It queries the VIES SOAP API and validates the format beforehand. There is a set of regular expressions to validate the number and it would be great if companies with a valid EU VAT number could check if their number is correctly validated. The project is here : https://github.com/suikatech/EuVatValidator It runs on PHP, and you can use the demo file to validate your number using the form included. Please tell your country in your feedbacks. Thanks !
  12. Hey folks, I'm toying with the idea of a MySQL-less Server Status 3 and I'm looking for some testers. There are no bells and whistles in this test from my former post about Server Status 3, this is just testing my mysql-less version. Please let me know if you are interested. Thanks :)
  13. Hi everyone, After years of managing VPSes running Plesk or cPanel for developers who wish they had a secure, lightweight alternative, we've created ServerPilot. ServerPilot is a new control panel that is optimized for running websites on VPSes. https://serverpilot.io It's free for the basic control panel and has paid extras like stats and monitoring. I hope you find it useful. If you have any questions, just let me know. Thanks, Justin
  14. Warning: A bit of a ramble. Over the years on multiple occasions I have had to write software that takes messages sent from one server (remote) and does something (e.g insertion into a database or executing some script etc). This tutorial/guide will cover my current implementation and include some tips and warnings regarding potential pitfalls. This kind of architecture can be utilized by any system implementing a central sever - distributed node structure. For example VPS Panels and CDN Systems Aim: To develop a reliable way for a remote server to send a message or perform an action on another (e.g central server) server. This solution should be reliable (reasonably guaranteed delivery), fault tolerant and reasonably resistant to duplicates. Performance is also important as the system should be able to handle high rates of messages per second and be horizontally scaleable as required. Problems: Problem 1: Reliability & Fault Tolerance Its important that these messages be delivered reliably, this rules out most UDP based solutions. There also should be a memory & disk buffer to cover situations where the receiving central server is otherwise unavailable. Problem 2: Performance Previously many of my solutions had involved using rsyslog and its ommysql module to insert into a temporary mysql table (where the messages would be read in chunks and processed). This solution was extremely non performant (max of 200-300 messages per second per worker) and non fault tolerant (reading in chunks of over 5,000 messages). In addition while this solution was simple it was also capped as far as scaleability due to its common table mysql approach. ---- Our solution: software -> rsyslog -> RELP TRANSPORT -> rsyslog -> unix pipe -> redis -> php Parts of the process that exist on the remote server are colored green ORANGE. Worst case data loss: 25 messages rsyslog Now why do we use rsyslog & the syslog protocol as apposed to sending these application messages direct? Really this is more of a personal choice but there are many great pieces of software out there for dealing with and processing syslog messages (rsyslog, elastic search & kibana etc). And lets be honest, its an easier to use existing software to do the heavy lifting than to develop your own clients, servers and modules for application integration. RELP RELP or Reliable Event Logging Protocol is a protocol developed for use in rsyslog for reliabe syslog forwarding over TCP. Its aim is to provide something that is high performing, non duplicating and with a low chance of message loss. More details on the protocol can be found here: http://www.rsyslog.com/doc/relp.html For our purposes its a great protocol unlike UDP forwarding it has 'guarunteed' delivery and unlike a plain TCP forwarder it performs nicely without needing to massively multiplex. There are also other advantages such as the window size and being more able to determine the state during connection break & recovery. Unix FIFO Pipe A fifo pipe is a great posix way to pass data between processes (IPC). They exist as a "file" with a path and store in memory data in a FIFO manner. These FIFO's have a limited space and it is very important to read as fast as we are able to from them. If we are unable rsyslog's write call will fail and begin writing to the on disk / memory queue (as configured). In order to process at large volumes you may need to utilize multiple inserts into the redis list, this does increase the chances of loosing small amounts of messages if this service crashes. Here I have attached a link the code we are using for this process, its simple and utilizes a 25 entry buffer (equates to less than 1/100th of a second worth of logs for us). We have tested it at handling over 10,000 log entries a second at very minor (<5%) CPU usage. Outputting to a unix pipe is as easy as adding lines like below to your rsyslog.conf file. $template pipe, "~%syslogfacility%|%syslogpriority%|%timegenerated%|%msg%\n" local3.* |/rsyslog/pipe;x4b_pipe Redis By inserting the data from the unix pipe into redis we can now process data from the list from multiple PHP workers (possibly remote) in an atomic way. We can also easily utilize multiple redis servers (for redundancy or via sharding for scalability) or redis cluster when stable. Redis provides a list construct (implemented as a linked list) that can be used as a simple queue with great performance for insertions and pops. An example of usage in this way can be found in the above linked Gist. The CPU usage of redis is minute for this workload so it is safe to say you can have many consumers working before you will need to consider sharding this resource. Redis while writing to a list in memory will also syncronise its datastore to disk, this provides added reduncancy incase of issues such as consumer crash. The size of this datastore also provides a safe buffer to handle any peaks that would not otherwise fit in the space allocated to a Unix FIFO pipe. PHP Reading from the redis queue and performing the intended task is the next logical step. As this is most likely the most constly part of receiving the message it makes sense that this step may require multiple workers. Redis is 100% atomic and this solution is no exception. Simply calling LPOP is sufficient. Further integration with subscriptions may be a more efficient solution however you would need to wager fault-tolerance or a possibly further engineered and complicated solution. Remaining points for consideration: Encryption - You will most likely also want to implement encryption if the data you are transiting may contain sensitive data. IPSec is a good transparent solution for this. Authentication - If trusting the sending address is not sufficient for you then you will want to develop an authentication method. Kerberos may be able to help you with this. -- If you are doing something similar and want to submit a better solution feel free (or improvements). Feel free to argue with my logic, there are few weak point in this solution (e.g the number of processing steps) however I feel they are justified. I hope this has interested you, I'm not really sure why I wrote about this particular topic - just felt it might be useful / interesting.
  15. Hy, Would you recommend a minimal php framework designed to create apis ? I'm looking for something like expressjs with nodejs in php. I've done googleing but tought id ask you what would you use. I'd use it for a small webapp run on a lan in a vm with the resources of a LEB :): -128/256M ram Thanks for your input in advance!
  16. PSI Alternative

    Hey folks; I have a project going I'm looking to provide transparency for, and it seems that phpsysinfo is still pretty derpy. All I'm needing is a smallish script that reports similar info to PSI (example: http://rika.syndtech.net). I don't need monitoring/reporting of any sort, just a live status page that doesn't stumble on dismount every time you try to view it. PSI is actually exactly what I'm after - just really poor on performance. Perl or PHP would be ideal, preferably something that won't require additional packages (just a drop-into-httpd solution). Any suggestions?
  17. My PHP skillset is heavily lacking. What's a good modern resource for producing clean and standard code?
  18. PHP 5.x Remote Code Execution Exploit available since 2013-10-29. Usage found in logs since 2013-11-04. sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle query strings that lack an = (equals sign) character, which allows remote attackers to execute arbitrary code by placing command-line options in the query string, related to lack of skipping a certain php_getopt for the 'd' case. The user agent string changes so there are different versions of the exploit available: 212.62.X.X - - "POST /cgi-bin/php5?%2D%64+%61%6C%6C .." Ubuntu 12.04 LTS is still on 5.3.10 but due to backport save. So please update your systems and restart the webserver.
  19. Running another out of box clean PHP-FPM instance. Having issue where randomly PHP bursts up, smacks VPS RAM ceiling and PHP goes nuts/non responsive. For those that tinker with PHP and do so on limited RAM servers --- what are the tweaks you recommend to keep PHP within RAM limits and well behaved?
  20. KnightSwarm Handelsbolag, a growing Swedish hosting and consulting company with server locations around the world is looking for new contract employees to fill several long term positions. We are entering into a phase of rapid expansion and need high quality, dependable employees to keep up with the growth. If you meet the requirements for any of the listings below, please send us your CV/Resume at careers[at]knightswarm[dot]com and we will get in touch with you to set up an interview. All of the following jobs are work from home and require a stable internet connection and access to a pc with a headset or phone capable of voip access. All positions compensation DOE. Copywriter/Public Relations/Social: This position is part-time ranging between 5-20 hours a week. This person will be responsible for creating content for news/forums/social media/email posts based on information and rough copy provided from different departments. Requirements: Must write and speak English fluently. Proper Grammar is a must. A technical background to understand the business of server hosting and technical consulting to understand the language involved in communications. At least 5 hours a week free time to work on projects. General office experience working with documents using any combination of Microsoft Office, OpenOffice, Google Docs, or any other word processor. Developer: We have several immediate openings for highly motivated self-starters with at least 10-20 hours a week available to work on various web projects. Requirements: Must be fluent in PHP, HTML, and CSS. Other languages are a plus Must be able to use SVN and Git Yii and/or Laravel experience is a big bonus, Understanding of MVC frameworks and patterns are essential Knowledge of virtualization systems is a plus Knowledge of routing and socket-level interactions a plus Artist/Designer: We have an immediate opening for another artist/designer. This role creates mockup wireframes of websites, modifies images and logos for use, and handles other branding and template edits. Requirements: Must be knowledgeable in html and CSS. Javascript is a big plus. Must be knowledgeable and have access to a proper image editor, Photoshop/Illustrator preferred. Must understand image formats and how they are used across the web Must be able to wireframe website design The ability to modify and update templates is a big plus Support Agent: We have an immediate need for more support agents. These agents provide support for email, server hosting, and other such requests made by our customers. The position requires access to a computer and voip during scheduled hours, and very quick turn-around when answering tickets. Requirements: Ability to read and write fluently in English. Basic computing and networking knowledge Advanced knowledge regarding email and how it works The ability to use google to find proper answers to problems on platforms that are not available to you Knowledge of virtualized servers a big plus
  21. Anyone here have any experience with Cherokee web server http://cherokee-project.com/ ? As well as Nginx web server ? One of my Centmin Mod users suggests I look at Cherokee web server and he said he did benchmarks against simple phpinfo php file and it was faster than Nginx and Litespeed web server ? I see Cherokee mentions a front line cache feature http://cherokee-project.com/doc/other_front_line_cache.html is that what is accelerating Cherokee for simple phpinfo php file benchmarks ? Right now I have a test CentOS 6.4 64bit server setup with Centmin Mod Nginx web server + OpenLiteSpeed web server + Cherokee web servers for testing. But Cherokee pretty foreign to me, so wondering if any Cherokee users have some tips to get me in the right direction for benchmark comparisons ? cheers
  22. Anyone here run a site with self hosted ads? I am looking for recommendations for a PHP based advertising script/package (prefer FOSS or similar good licensing). Anything out there others recommend?
  23. I am running Debian on my servers and I want to have a recent version of php. What is the best way to install php? Compile from source? Using dotdeb.org? Another option?
  24. Hi peeps, I just posted a tutorial about Setting up development environment for PHP+MySQL using VirtualBox on a PC machine. Maybe someone will find it helpful: http://dagent.org/2013/05/setting-up-development-environment-for-php/
  25. SolidShellSecurity, LLC ? Your IT Security & Management Company Hey and thanks for checking out our ad! SolidShellSecurity, LLC works with businesses, communities and other online websites to provide them with stable and quality uptime to serve their needs. Are you TIRED of downtime? Are you Annoyed with your current host and slow support times? Is your website not performing at it's MAXIMUM PEAK PERFORMANCE? Are you ready to make your LAST SWITCH to a hard-working, customer-centric, secure and reliable web hosting company? You've come to the right place! SolidShellSecurity, LLC is the right company for you. We mean business when it comes to working with you! We work with several schools and businesses and keep them up and running and functioning. ? EXCLUSIVE FEATURES ? FAST SETUP - No delay - your site will normally be live in seconds! ? Cloud Flare Ready! ? One click installers like Softaculous (We also install/configure custom web apps/needs by request) ? Managed Support - we will work with you ? 99.9% Uptime Guarantee ? Attracta Built in SEO Tools ? User Level and System Wide spam protection ? Off Site Mirror Backups for extra backup protection ? HOURLY backup options ? Online Webmail and FTP (includes Roundcube, Horde, SquirrelMail) ? Spam Protection - Realtime spam blocklists ? Enhanced Caching(faster page loading with nginx/varnish frontend support) ? Intrusion Detection Scanning ? Shell Protection - Virtual Directory Support. Isolation for your files and website(s) so you remain secure and protected ? DomainKeys & SPF Settings ? PHP Memory: NO LIMIT ? Upload Limits: NO LIMIT ? Disabled Functions: NONE ? Security Scans: Monitoring to keep your sites safe from attacks like shells, backdoors, spam, viruses, and more! We protect your sites reputation. ? Email features included: Automatic Virus scanning, Spam Assassin, Clam AV, POP3 Accounts, SMTP, IMAP, Auto Responders, Mailing List, Mail Forward and much more! ? CURL, ImageMagick, GD, PHP 5, MySQL 5, CGI, IonCube, Zend Optimizer and more! ? Even more! Will do custom requests as needed! ? SHARED HOSTING PLANS Package-1 ? Disk: 1,000 MB - RAID10 Performance and protection. ? Bandwidth: 10,000 MB - Premium undersold ? Database Limits: None ? Dedicated RAM: 4GBs (more then anyone else) ? PHP Options: 5.1, 5.2, 5.3, 5.4, 5.5 ORDER NOW @ $2.95/mo Package-2 ? Disk: 5,000 MB - RAID10 Performance and protection. ? Bandwidth: 50,000 MB - Premium undersold ? Database Limits: None ? Dedicated RAM: 4GBs (more then anyone else) ? PHP Options: 5.1, 5.2, 5.3, 5.4, 5.5 ORDER NOW @ $4.95/mo Package-3 ? Disk: 10,000 MB - RAID10 Performance and protection. ? Bandwidth: 150,000 MB - Premium undersold ? Database Limits: None ? Dedicated RAM: 4GBs (more then anyone else) ? PHP Options: 5.1, 5.2, 5.3, 5.4, 5.5 ORDER NOW @ $7.95/mo Package-4 ? Disk: 25,000 MB - RAID10 Performance and protection. ? Bandwidth: 500,000 MB - Premium undersold ? Database Limits: None ? Dedicated RAM: 4GBs (more then anyone else) ? PHP Options: 5.1, 5.2, 5.3, 5.4, 5.5 ORDER NOW @ $9.95/mo ? RESELLER HOSTING PLANS Package-1 ? Disk: 10,000 MB - RAID10 Performance and protection. ? Bandwidth: 100,000 MB - Premium undersold ? Database Limits: None ? Dedicated RAM: 4GBs (more then anyone else) ? PHP Options: 5.1, 5.2, 5.3, 5.4, 5.5 ORDER NOW @ $7.12/mo Package-2 ? Disk: 20,000 MB - RAID10 Performance and protection. ? Bandwidth: 200,000 MB - Premium undersold ? Database Limits: None ? Dedicated RAM: 4GBs (more then anyone else) ? PHP Options: 5.1, 5.2, 5.3, 5.4, 5.5 ORDER NOW @ $12.32/mo Package-3 ? Disk: 50,000 MB - RAID10 Performance and protection. ? Bandwidth: 500,000 MB - Premium undersold ? Database Limits: None ? Dedicated RAM: 4GBs (more then anyone else) ? PHP Options: 5.1, 5.2, 5.3, 5.4, 5.5 ORDER NOW @ $21.42/mo Package-4 ? Disk: 120,000 MB - RAID10 Performance and protection. ? Bandwidth: 1,200,000 MB - Premium undersold ? Database Limits: None ? Dedicated RAM: 4GBs (more then anyone else) ? PHP Options: 5.1, 5.2, 5.3, 5.4, 5.5 ORDER NOW @ $36.37/mo ? WHO WE ARE What do some users have to say about us? ? LOCATED IN THE TOP US DATACENTERS/NETWORKS All our servers are collocated in one of the six COLO@ facilitates. The facilities have some of the best connectivity in the world. We utilize providers such as Cogent, Level3, Global Crossing, Savvis, and MANY more to ensure that your critical data can get where it needs to go, anywhere in the world. What good is connectivity if your equipment doesn't stay on? We pride ourselves on delivering the maximum amount of uptime to your business. All of our locations have fully redundant battery power backup and generator backup to keep your equipment powered up and running no matter what. ? Test IP: speed.solidshellsecurity.com ? Test Files: 10MB - 100MB - 500MB ? SOLID HARDWARE All of our hardware is high-end and running current to next generation specs. Below are the minimum specs that we use for all our servers. ? 16 CORE SERVERS (minimum) ? 74GB DDR3 RAM SERVERS (minimum) ? Adaptec RAID 10 with BBU ? 1GBPS Uplink ? DIRECT SERVER MANAGEMENT Unlike may providers we do not sell our hosting from a resellers account. We manage all of our servers directly and have root access to ensure we can perform all necessary tasks to the server without working with a middle man. This result in lower prices and faster support to each one of our customers. ? WE NEVER OVERSELL Our servers have and always will remain undersold. We never will sell out more resources that what we already have. This image is an example of one of our current NEWEST server we just launched and how many resources or left to you to be used. ? CONTACT US Phone: 18138385852 Sales: [email protected] Follow Us: https://twitter.com/SolidSSecurity Stalk Us: https://www.facebook.com/SolidShellSec Subscribe: https://www.youtube.com/user/SolidShellSecurity SOLIDSHELLSECURITY, LLC is a legally registered business in the state of Florida within the United States. This can be verified by checking the official Florida Corporation/LLC database @ http://sunbiz.org/ --- Filing Document Number: L12000078006 Annual Reports Filed Date: 2013 03/05/2013