Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
For the chat thing you'd want to write a push server and clients that connect to it. When a client sends a message it should go to a server and the push server should then send the information to the recipient client. You could also do it the pull way, but that would result in far too much overhead if there are many clients connected at once seeing as they would have to poll the server at a regular interval in order to know if there are any knew messages for that particular client. It kind of goes like this: 1) client1 and client2 connect 2) client1 sends a message to server which is meant for client2 3) server sends (pushes) client1's message to client2 The messages is as simple as just storing it in the database and assign user ids to it (recipient and sender user ids). Just make sure you cannot read messages that you haven't either sent yourself or are recipient of.
-
The only point in it is reducing bandwidth usage. If you strip all the comments and whitespace then the file will be smaller for the user to download and the site will consequently load faster.
-
You picked the FAQ board when moving, Barand. I moved it to the correct one.
-
Think I'd make money off a local hosting company?
Daniel0 replied to tibberous's topic in Miscellaneous
-
Think I'd make money off a local hosting company?
Daniel0 replied to tibberous's topic in Miscellaneous
I'll tell you how it's "possible": overselling Trust me, they wont be able to live up to what they promise (cf. this post for instance). I suggest you to write some small scripts that will keep on making big files and using bandwidth and see how well they're able to live up to "unlimited" bandwidth and disk space. Let me know what happens -
You are still using PHP to generate it - not HTML. Besides, you shouldn't do that seeing as it would be impossible to cache it.
-
Sounds like a member that used to be here who adamantly kept coding without any whitespace whatsoever to save diskspace...
-
Think I'd make money off a local hosting company?
Daniel0 replied to tibberous's topic in Miscellaneous
Man... I need them to tell me where to get harddisks with infinite storage. I'd like one of those... -
Any Nucleus Users have trouble going to website? Or just my IP blocked?
Daniel0 replied to robart's topic in Miscellaneous
Doesn't load for me. -
ActiveX can burn in hell.
-
If you are serving the files dynamically, then you should not load the entire file into a variable at once. It's better to send it in chunks to the user. It sounds like that could be the problem seeing as your script is using a lot of memory. Edit: To show what I mean, here is a small example script: <?php $file = 'file.txt'; if ($fp = fopen($file, 'r')) { header('Content-Type: application/force-download'); header('Content-Length: ' . filesize($file)); header('Content-Disposition: filename=' . basename($file)); while (!feof($fp)) { echo fread($fp, 1024); } fclose($fp); } else { echo 'Sorry, the file could not be found...'; } ?>
-
Gentoo should never be considered broken, just in need of service. I suppose you could say that about everything then I used the 2008.0_beta2 CD for installing and it didn't work out of the box. Well, truth be told, it is Gnome that doesn't work, not Gentoo, but I still blame Gentoo because their installer didn't install a working version. 2008.0 stable has been released so I'll try that when I get time.
-
No, that''s not possible.
-
Here is for my laptop: Processor: Intel Core Duo 2 T7500, 2.2 GHz Memory: 2 GB Graphics: NVIDIA GeForce 8600M GS HDD: 2*160 GB @ 5400 rpm (+1 external at 750 GB) Monitor: 17" WXGA+ Network: - Wireless: Intel Pro 3945ABG, 54 Mbps - Wired: Realtek something, 1 Gbps (hardly ever used) Mouse: Logitech VX Nano OS: Vista x64 and whatever Linux flavor that is currently installed (currently a broken Gentoo install) Next time I get a new one I'll probably get a MacBook Pro to see if they're so good as they claim.
-
Try this: <ol class="entries"> <li class="loop"> <a href="">Test</a><div class="score">9.3 / 10</div> </li> <li class="song"> <a href="">Test</a><div class="score">9.5 / 10</div> </li> </ol> ol.entries li { clear: both; } ol.entries li a { float: left; } ol.entries li .score { float: right; } I renamed your class because it should reflect the content, not how it looks.
-
I like the layout. Here are some observations I made while using it: - Icon view doesn't retain image proportions - After uploading and browsing in details view it will auto-switch to icon view. Same goes for other dialogs (e.g. delete confirmation). Also, the drop down list doesn't update to icon instead of details so you will have to switch twice in order to get back to details view. - When trying to create a folder with the name phpfreaks I get this error: "The folder name must not contain any of the following characters: /, \, :, *, ?, ", <, >, |" - Pressing enter in forms in dialogs doesn't submit the form. - You cannot rename files.
-
What do you want us to comment on? There is hardly any content and the design is pretty plain (read: boring). It's just a white border around a very sparse amount of text.
-
I reckon it's just the max bandwidth within LAN. I don't see why any normal person would need a 1 Gbps connection.
-
POST is used when you are POSTing information to the server and GET is used when you are GETting information from the server. I'd say it's pretty simple and I don't see why you would "change the way information is passed". An example of a POST request could be the one I will do when I finish typing this post. An example of a GET request could be searching or viewing a topic.
-
Actually, the forums account for the vast majority of hits. It is by far the most popular thing on PHP Freaks. Moreover, the browser stats where roughly like that before we launched the site as well. Also, it is viewable, albeit less pretty, in IE6 and in my opinion there is no valid reason to why you would not have upgraded to IE7 by now.
-
Lol... it's called that? Will the name change when you get a king instead of a queen?
-
Here you go... according to these stats, IE6 is 10.7%. [attachment deleted by admin]
-
1) Use the correct forum 2) Do not attach a poll without it being necessary 3) Don't color your posts For the record, I do not like morons...
-
FTP cannot upload multiple files simultaneously either. Your client is simply just doing a recursive iteration through all the items in the folder (and possible subfolders).
-
Lol... have you tried pointing your IE6 to phpfreaks.com?