Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
What, you mean like every other country on the planet? In some countries foreign copyrights are not valid because they haven't signed treaties requiring them to. http://en.wikipedia.org/wiki/List_of_parties_to_international_copyright_treaties
-
Why would there exist a such thing? That information might be considered confidential by the user and therefore it would be pretty ridiculous releasing it via a developer API.
-
If memory serves me then the speed of the expansion of the universe itself is proportional to the distance of your current location so therefore I suppose that if the object is at a large enough distance away from you then you could say that it is moving away from you at a speed faster than the speed of light. However, this is only because the space itself is expanding and not because the object by itself is moving. If I remember correctly then I think it was discovered that the light from far galaxies where shifting more towards red which has a lower frequency(?). This is also some of the theory behind the big bang theory because if space is expanding then if you move backwards along the timeline then all space would logically have to be at less space and in the "start" at one point. You might want to get someone with knowledge about physics than me (wouldn't take much, really :-\) to verify this as it's kind of a long time ago since I had any physics lessons, and even those weren't at particularly high level.
-
not necessarily true. there are search engine hacks where you can actually download the source file. this should be illegal, but copyright laws aren't the same everywhere or even recognized everywhere. i worked with a guy who came from jordan (arab). they sell "copyrighted" data (video, software, etc) over there like hot cakes. not legal here, but not not legal everywhere. The only way you can view the source is if you have direct access to the server or if the server is misconfigured. Even then you can protect yourself by minimizing the amount of information that would be disclosed (see: http://www.phpfreaks.com/tutorial/php-security/page5). There is no search engine that can crawl the data on the server if it is not already available. Belief in a such thing just shows ignorance regarding how webservers and PHP work. If we say you use Apache and mod_php then you will first load mod_php in a way similar to this: LoadModule php5_module /usr/lib/apache2/modules/libphp5.so Then you will choose that files ending with .php should have the mime-type application/x-httpd-php: AddType application/x-httpd-php .php Now whenever Apache is asked to serve a file with the extension .php it will forward the file to PHP first. PHP will then parse everything within the PHP tags and send it back to Apache which will finally send it to the client. As you see, the source will only be sent to the client if the server is accidentally misconfigured. No "search engine hack" (whatever that's supposed to mean) can bypass the parsing step and retrieve the raw PHP source code from the webserver.
-
Check attached screenshot. [attachment deleted by admin]
-
You can click Show new replies to your posts on the top of the page to see replies in topics you've posted in. You can also click the notify button when in a topic or when posting a post to get an email when replies have been added to a post.
-
I know it kind of sucks for you that I keep on discussing in a locked topic and you cannot give a response, but I just thought I would add this: Posting in a high traffic forum might actually decrease your chance of getting a proper response. That the forum is high traffic will mean that your topic will quickly move past the first page where I believe most people aren't looking very often. Furthermore, people who specialize in a specific topic will browse forums directly related to that thing more frequently than the more general forums. Therefore, if your question is indeed about MySQL then you would benefit from posting in the MySQL forum where the MySQL experts are. Moving your topic to the correct forum is doing you a favor because we are moving it to a place where you have a higher chance of getting a proper response. What do I mean with proper? Well, you might get a working answer in the wrong forum, but if you post in the right forum then the people who are more knowledgeable in that topic will read it and perhaps get you a better solution. There are many ways to do things, but some are better than others and some outright suck. Nevertheless, that I posted in this locked topic is not an invite to further discussion of the subject. A decision has been made by a staff member and therefore it will be like that. This is not a democracy. Finally I would like to point out the following part from the forum rules:
-
The latter because the former implies that the properties of the class are public.
-
Just use one domain. I don't see the point in creating a separate subdomain for logins. I don't get it.
-
http://php.net/manual/en/book.pdo.php If you're running PHP 5.1+ (which you should) then it should be enabled by default. Edit: By the way, you will have to use InnoDB and not MyISAM as only the former supports transactions. That shouldn't be too much of a problem though.
-
<?php try { $db = new PDO('mysql:host=localhost;dbname=test', 'username', 'password'); } catch (PDOException $e) { die('Connection failed: ' . $e->getMessage()); } try { $db->beginTransaction(); $db->exec('query1'); $db->exec('query2'); // etc... $db->commit(); } catch (PDOException $e) { $db->rollBack(); die('Transaction failed: ' . $e->getMessage()); } ?> If one of the queries inside the second try block fail then it will throw a PDOException and go to the corresponding catch block. The actions will then be rolled back. The rest of the try block will not be executed. If all the queries execute successfully then you will make it to the call to PDO::commit() it will be committed. Edit: Oh, and don't use the type of error handling (die()) I've used here. It was just for demonstration. Implement proper error handling. Then why bother replying?
-
Render the elements using Javascript's DOM interface.
-
I would use a database layout like this: quizzes quiz_id - int(10), primary key, auto incrementing name - varchar(100) (description - text) questions question_id - int(10), primary key, auto incrementing quiz_id - int(10), index answer_id - int(10) text - varchar(100) answers answer_id - int(10), primary key, auto incrementing question_id - int(10), index text - varchar(100)
-
Hey! Daniel. that's a nice article i'm going to read that too... It's a book actually. By the way, I started reading and I think it's pretty good. I'd definitely recommend it.
-
Thats my situation as well, but the real question is...do you know where everything is? If I organized my stuff, I'd be a mess... Actually, the things I "archive" in those new folders are virtually never used. I could've probably just deleted it instead.
-
Why not just do <title>lala</title> in the first place?
-
Here is how I organize my desktop: Put a shitload of files there. When there are too many I'll create an empty folder and put it all in there. Then I'll start over. It's a mess.
-
I'm sorry, but that's ridiculous. How can you dislike something you don't know? That's like saying "That guy over there, I don't know him, but I fucking hate him!" Right... it's not like Flash has similar requirements to the client. Also, take a look at this piece of ActionScript code (source: http://en.wikipedia.org/w/index.php?title=ActionScript&oldid=227252689#ActionScript_3.0_examples): package { import flash.display.Sprite; import flash.text.TextField; import flash.filters.DropShadowFilter; public class HelloWorld2 extends Sprite { public function HelloWorld2() { var shad:DropShadowFilter = new DropShadowFilter (2, 45, 0x000000, 25, 3, 3, 2, 2); var txt:TextField = new TextField(); txt.textColor = 0xFFFFFF; txt.filters = [shad]; txt.width = 200; txt.x = Math.random() * 300; txt.y = Math.random() * 300; txt.selectable = false; txt.text = "Hello World welcome! [" + Math.round(txt.x) + "," + Math.round(txt.y) + "]"; addChild(txt); } } } That looks a lot like Java. You also mentioned that Java is bad because every bit is broken into objects and that it is highly inefficient. However, if you look at the code then you will see that there are several objects in use: TextField, Sprite, DropShadowFilter, etc. Also, regarding the quote John posted above from you. Seeing as you need to compile a Java app, it will only be "created" one time. Furthermore, our site makes heavy use of objects, and, well... it's running pretty fast for me. Chances are that you don't know how to do it correctly and it is therefore inefficient to you when you try.
-
"The Pragmatic Programmer: From Journeyman to Master" by Andrew Hunt and David Thomas is supposed to be pretty good. I haven't read it yet myself though. http://www.pragprog.com/the-pragmatic-programmer
-
For the record, asking whether X language is better than PHP on a PHP forum will only result in biased opinions.
-
Modern datacenters will have high speed internet connections, backup power using UPSs and power generators, redundant components to maximize uptime, physical security using biometric security, fire protection and prevention systems, air conditioning to control temperature and humidity, and 24/7 onsite staff to monitor and fix things. Check out this: http://www.adc.com/Library/Literature/102264AE.pdf
-
HOw about a PHP security section?
Daniel0 replied to willpower's topic in PHPFreaks.com Website Feedback
I'm pretty sure this thread was originally posted in the tutorial help section...hence my link to the tutorial. According to the moderation log, this topic has not been moved. -
HOw about a PHP security section?
Daniel0 replied to willpower's topic in PHPFreaks.com Website Feedback
If you want to discuss security then you can use app design. If you want to have help with a very specific security issue then you can just use PHP help. If you want people to test your script then you can use beta testing. I don't think there are enough topics to warrant a creation of an entire forum dedicated to that. If people want to then we could have an experimental forum and see how it works out. If the activity is too low then we'll just move all the topics to other forums and delete the forum. Otherwise we'll just leave it. We've done that before. -
Oh well... he had other creative names such as phpFreaksCrusher and phpFreakWreckingBall as well.
-
Random fact: In February this year 73 bans were added. Most of those bans were to a single person. Check out this screenshot for instance. [attachment deleted by admin]