-
Replied To a Post in Didi build it wrong or something?
--> No ram installed yet Found your problem. It's likely the BIOS prevents boot/access without RAM installed (otherwise, what's the point, right?) -
Began Watching Didi build it wrong or something?
So I basically tried to make a gaming pc, first one. And I encountered a big problem. I thought I had everything set up and connected (with the disappointment that … -
Replied To a Post in Trying to upload image type files only.
also, for your file input on the html you may want to look into the accept attribute: <form action="/action_page.php"> <input type="file" name="pic" accept="image/*"> <input type="submit"> </form> https://www.w3schools.com/tags/att_input_accept.asp Again, this is … -
Replied To a Post in Trying to upload image type files only.
If you want to stop it client side (to prevent the form from submitting at all), you can look at the input data's type (which should give you the mime … -
Began Watching Trying to upload image type files only.
Hello, I am trying to prevent my form, from submitting if the file is not an image type file but i keep failing, the array that i am using keeps … -
Replied To a Post in send php email with html table format.
between lines 49 - 52 you are redeclaring $headers. You need to concat that stuff :) (like what you did on line 50) -
Began Watching send php email with html table format.
I am trying to recieve my form email in a more organized html table format. I get the email in code form. How can i get it translated? <?php $howDidYouHear … -
Gave Reputation to Reverend Jim in Memorable Quotations
If ever a time should come, when vain and aspiring men shall possess the highest seats in government, our country will stand in need of its experienced patriots to prevent … -
Replied To a Post in Moving files from one folder to another
You need to escape your slashes in string literals. `'C:\Users\mchalla\PycharmProjects\837_unzip\venv\SampleUnzipFiles\DelimitedFiles'` should be `'C:\\Users\\mchalla\\PycharmProjects\\837_unzip\\venv\\SampleUnzipFiles\\DelimitedFiles'` or, you know.. be consistent and just flag it also as a raw string :-P `r'C:\Users\mchalla\PycharmProjects\837_unzip\venv\SampleUnzipFiles\DelimitedFiles'` The … -
Began Watching Moving files from one folder to another
Hi All, I have a task in Python where I need to move .csv files into a new folder. I tried using the below code but it was throwing me … -
Replied To a Post in How can I run multiple dedicated servers for one domain?
TL;DR: Focus first on where your code is stalling requests. Fix them. If you can't possibly change your code, then invest in hardware. Set it up yourself or by someone … -
Gave Reputation to pty in Datepicker to display div based on day & ISO week #
Perhaps I didn't fully understand what you're after, but I'd steer clear of using plugins when you can use standard inputs. Here's [a five minute stab](https://codepen.io/anon/pen/MQMNrN) at what I *think* … -
Replied To a Post in Upload image in to the database
So... I see your check for existence SQL, and your actual insert... I don't, however, see your attempt to save the file data to the database. Am I misunderstanding your … -
Began Watching Upload image in to the database
i have been trying to upload image files in to my database but i failed in many ways, the form saves everything except the image files. i am not sure … -
Replied To a Post in PHP Warning: count(): Parameter must be an array or an object that impleme
So, if you return false you don't have an array - hence your error. You should first check to see if you have an result before you run count. You … -
Replied To a Post in Web login
Any number of possibilities. Your office network may block or blacklist certain web requests, or the firewall blocks them. If that's the case, you may end up getting a malformed … -
Began Watching Web login
Hello, There is something that confuse me. Check this site: www.fresway.com When I try to login. There is this error appearing: JSON.parse unexpected character at line 1 (I am using … -
Replied To a Post in PHP Warning: count(): Parameter must be an array or an object that impleme
what does this do? ` $list = getListed(array('EducationID' => 'Id', 'L1Education' => 'L1Value', 'L2Education' => 'L2Value'), array($table_prefix.'educations', 'Id'));` if the answer isnt "it RETURNS an array" then you found your … -
Began Watching PHP Warning: count(): Parameter must be an array or an object that impleme
hi im working on a php script and i have come across the following error does anyone have a ideal what can cause this the error is: PHP Warning: count(): … -
Marked Solved Status for High CPU Usage with Threads / Sockets
Hi all, So before I went and posted ~800 lines of code, I have 2 questions: 1: What is the preferred way for us to post "complex" C++ (of course, … -
Replied To a Post in High CPU Usage with Threads / Sockets
So, turns out the sockets were a red herring. I had a "reader" thread that basically shot through a linked list of "message" objects, and if that list was empty … -
Replied To a Post in High CPU Usage with Threads / Sockets
That whole thread is about using Sleep() or Event Objects to work as a shared handle for signaling. :-P Unless I missed something else in there that you would like … -
Gave Reputation to rproffitt in High CPU Usage with Threads / Sockets
About replicate what IIS does. Think about the years IIS and other systems with hundreds of programmers have been working on this. Now, for your first expedition I don't think … -
Replied To a Post in High CPU Usage with Threads / Sockets
It's just a test VM so I can practice. I spend most of my day writing JS/SQL/CSS and we use a propretary C++ backend, and I want to contribute more … -
Edited High CPU Usage with Threads / Sockets
Hi all, So before I went and posted ~800 lines of code, I have 2 questions: 1: What is the preferred way for us to post "complex" C++ (of course, … -
Created High CPU Usage with Threads / Sockets
Hi all, So before I went and posted ~800 lines of code, I have 2 questions: 1: What is the preferred way for us to post "complex" C++ (of course, … -
Began Watching High CPU Usage with Threads / Sockets
Hi all, So before I went and posted ~800 lines of code, I have 2 questions: 1: What is the preferred way for us to post "complex" C++ (of course, … -
Replied To a Post in Has any one come across issues with AES_ENCRYPT function in MySql
Also, since you're passing through PDO I assume you migrated machines or something like that - are you sure your PDO vars are being set correctly? If you pass in … -
Replied To a Post in Evaluate my code please!!
First: Have you tried it? Does it do what you expect? Second: If you're gonna short circuit a process ( if (num === 0) .... ) then do it before … -
Began Watching Evaluate my code please!!
Hello, Can someone help me in developing my coding skills. I wrote code factorial. I see different logic at different places but no where I found the one that I … -
Replied To a Post in PHP and sockets
I did look into the idea of writing a php extension, but it seems it's fairly difficult to do so on a windows system. Right now, I have done a … -
Replied To a Post in Has any one come across issues with AES_ENCRYPT function in MySql
when you say blank, do you mean null or an empty string? Also, have you tried just running a hash by itself and seeing what the output is? (ie, select … -
Replied To a Post in Trouble with uploading a product with multiple images
So first, you have no reason to check the length of the files uploaded other than if it's greater than 0.. and even then ... meh. Let the logical loop … -
Began Watching Trouble with uploading a product with multiple images
I am new to PHP and MySQL and I will really need some assistance. Whenever I fill in all the information and submit my form, It successfully adds all information … -
Replied To a Post in Add a product with details and two or more images and retrieve it
based on your table structure, you insert 2 records into your image table, both of them with the same productID value. Is this what you're talking about? -
Began Watching Add a product with details and two or more images and retrieve it
Hello . Suppose I have a product table with attributs id, name, quantity, image, description. and I have another table image which contains id, productId, imagepath. and I have a … -
Replied To a Post in Has any one come across issues with AES_ENCRYPT function in MySql
as noted here: https://stackoverflow.com/questions/13713912/mysql-query-returns-blank-field-with-aes-encrypt If it's not a blob type data field, you may get blank. If it contains invalid data, it may also return blank. -
Began Watching Has any one come across issues with AES_ENCRYPT function in MySql
Hi Thank you in advance for the replies I will be getting.. Much appreciated. Basically I am running the following mysql query using PDO UPDATE users SET password = AES_ENCRYPT(:password,:supersalt) … -
Replied To a Post in Upload multiple images for one product using PHP
JP, uhh... maybe open your own thread on this.. been dead for over 4 years. The short answer is wat anas.man suggested; Use that, get multiple images in the file … -
Began Watching Upload multiple images for one product using PHP
Hello, Happy new year guys.. I am trying to find a way to Upload and Display multiple images for one product on an ecommerce website that I am working on! … -
Replied To a Post in php mysql
So lets be clear - no one is going to do the work for you without compensation - that said, I will try to give you some ideas on how … -
Began Watching php mysql
hi, im den and started to learn php. i need help on how to code. the problem is something like this: in my mysql database there are input personnel. i … -
Replied To a Post in How can I run multiple dedicated servers for one domain?
Im not sure what a "software load balancer" would do other than put up a cache state for repeat requests... but that's just because I can't conceptualize it. However, the … -
Replied To a Post in How can I run multiple dedicated servers for one domain?
is that 150 per second? If not, then you have something seriously weird happening that is taking a long time to complete. Are these persistent connections (like sockets)? You also … -
Replied To a Post in How can I run multiple dedicated servers for one domain?
Its unlikely that PHP is your bottleneck. Are you using a database? If so, I would start there and see if you have any particularly long running processes that you … -
Replied To a Post in How can I run multiple dedicated servers for one domain?
You know.. an alternative to your issue might be just optimization... What is it your site does that you are noticing slow downs? (if you don't mind me asking). If … -
Marked Solved Status for IP/Connection info with TCP Socket
Is it possible to know which connection sent data wiht recv()? Current setup is - Main Thread spins and waits - Thread 1 - do stuff unimportant to socket - … -
Replied To a Post in IP/Connection info with TCP Socket
Nevermind. Case of misunderstanding the recv() function. For any others who make the same mistake I did, recv should be called on the socket you created from accept() :-/ Not … -
Replied To a Post in How can I run multiple dedicated servers for one domain?
nope. Not at all their problem. It will become their problem if your site crushes their bandwidth, but it's likely your server will struggle long before they notice your site … -
Created IP/Connection info with TCP Socket
Is it possible to know which connection sent data wiht recv()? Current setup is - Main Thread spins and waits - Thread 1 - do stuff unimportant to socket - …
The End.