Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
Heh... it was from my signature. The code in my signature displays "hello world".
-
Would it really do any difference in terms of performance?
-
I don't get why you'd want to do that. That would limit you to 87 characters only (or 89 if you count linefeeds at the end). Anyways, the foreach loop will never get to the end each time since you've commented out the if statement around the continue structure. I.e. this: $spaces = $width - $wordlength; $index = 0; do { $words[$index] = $words[$index] . " "; $index = ($index + 1) % ($wordcount - 1); $spaces--; } while ($spaces>0); $lines[$line_index] = implode("", $words); will never get executed.
-
Efficiency is always something you should mind. It's hard to say whether your script/site/application will run efficiently. Whether it is an issue to load a lot of things depends on what those "things" do. If it is e.g. very CPU intensive tasks, then it might be a problem. You could try using some profilers, which will show what things that take up most time in your script execution. There is e.g. a profiler built into Zend Studio.
-
Well, Apache is one of the most popular web servers. I'd guess that is in fact is the most popular. Most servers run that.
-
I'm not sure if there is an easy way to determine the DVD's region. It's typically written on the DVD case. More info: http://en.wikipedia.org/wiki/DVD_region_code
-
The directory index appears if there is no index (index.html, index.htm, index.php, index.py or whatever the server is configured to use as index page) file. Alternately it may show a 403 Forbidden error if it is turned off. For a production environment it would serve absolutely no purpose, except if the folder's purpose is to hold various files. On a development environment it can be used to, well... see the contents of the folder. That you saw it was probably not intended.
-
I see it correctly as well. Ask your client to send you a screenshot.
-
You cannot use the password. You'd have to create some sort of one-time-login URL. Sort of like: http://example.com/login.php?username=<username_here>&login_key=<random_stuff_here> That is of course if it is a login link you are intending to create.
-
It depends on whether you are accessing it using POP or if you use Gmail's web interface.
-
This will hide it from everything else than IE: <!--[if IE]> <style type="text/css"> test </style> <![endif]--> I don't think there are any ways of making CSS visible to Opera only using HTML only. Then you'd have to use PHP or Javascript to check the browser.
-
Have you read the name and description of this forum?
-
A framework also saves you from doing your application's/sites's core each time you start something new, which is IMO the most boring part. Another advantage is that large frameworks such as CakePHP is managed and developed by many people which means there are more people to spot (and fix) potential security issues. Frameworks are often optimized to speed as well and would probably take you some time to achieve the same speed as well if starting over again and again each time. Only the first one applies if it is your own personal framework though. Just my thoughts.
-
It sort of depends what is on TV, but 1-2 hours would most days cover the amount of time I spend watching TV.
-
I was talking about server-side. Applications like Google Maps use Javascript on client-side.
-
I don't like when sites start playing sounds without asking me first.
-
(slaps forehead) There is something called "Server side javascript": http://en.wikipedia.org/wiki/Server-side_JavaScript I must admit that I've never heard about it before though. I'd rather not use it though, as I, based on my limited Javascript knowledge, believe that it is far less powerfull than e.g. PHP and ASP.
-
How to create a shared folder depends on your operating system. I will assume you are running Windows XP. If you have simple file sharing turned off: Right click on the folder and click Properties. Click on the "Sharing" tab and choose "Share this folder". Give it a share name and optionally a comment and set advanced settings such as caching and security settings. If you have simple file sharing turned on (default): Almost the same as above only when you are on the "Sharing" tab you will have a check box saying "Share this folder on the network". Give it a share name again and optionally allow write access when accessing the folder from remote. The names may be called something a little different from what I said since I translated it from the Danish version of Windows. Edit: How to access shares: If you know the computer name of the computer having the share then you can type \\ComputerNameHere in the address bar (not the browser's) or the "Run" dialog. This will give you a list of the shares. If you have the share name as well then you can do like this: \\ComputerNameHere\ShareNameHere. I.e. for my computer I would do like this to get to "SharedDocs": \\Daniel2\SharedDocs If you don't know any of those informations then you can open Network Places and you will see the shares on your network. You can also click on the "Show workgroup computers" link on the task pane on the left side. Again, stuff might be called other things in the English version that what I said.
-
I'm not quite sure what you mean, but the protocol works like described here: http://www.faqs.org/rfcs/rfc959.html (no, I haven't read it myself).
-
You could use the LAN connection to transfer it or if you have a removable drive (external hard disk, memory stick etc.) you could use that instead. I don't know which way that would be the fastest one. If I should make a guess, then I'd probably think that something like an external hard disk would be fastest.
-
You might find this guide useful when you've created your layout: http://www.csslicingguide.com/guide/stage_1.html
-
I think you all mean Adobe® Photoshop®.
-
It was Crayon Violent's
-
Is it "wrong" to piggyback off someone's wireless network?
Daniel0 replied to a topic in Miscellaneous
[quote author=tomfmason link=topic=105646.msg581247#msg581247 date=1177333810] I don't see anything wrong with someone using an open connection for entertainment purposes. [/quote] It sort of depends on what kind of "entertainment" you are looking for... -
I'd let it grow as big as needed. I use a lot of classes and each class generally has its own file. Example: /include/database.php /include/database/mysql.database.php /include/database/mysqli.database.php ... /include/functions.php /include/error_handler.php /index.php