logophobia
Members-
Content Count
92 -
Joined
-
Last visited
About logophobia
-
Rank
Member [Level 3]
- Birthday 08/30/1986
Contact Methods
-
Website URL
http://
-
Both have their advantages and disadvantages. PHPPros:-free-can do alot of stuff out of the box (some libs are commercial but most of them have free counterparts)-pretty fast-5.0+ has full support of OOP (object oriented programming)-simple to learn-doesn't force OOP like asp.NETCons:-With some things it is slower then asp-Its a scriptlanguage, not compiled. Distributing code can be a problem and its slower (Theres a commercial package called zend optimizer which does this on a limited scale, providing a speed boast, but its not free)-Lack of advanced OOP in version lower then 5.0 (I think they still run 4.0.3 here)-Bloated syntax (for example the syntax for accessing different kinds of databases is different etc)-Working OOP makes it slowerasp.NET (most recent version of asp)Pros:-Much free developers software, most free tools are better then the commercial php IDEs-With some stuff its faster then php (because its compiled where php is intepretended)-Full OOP-advanced features like templating-Compiled-You can use alot of languages with .NET, such as C# visual basic etc.-Easy to learn when you know visualBasic-Very clean OOP-oriented syntaxCons:-Works only on MS ISS (which has a history of security breaches)-Server-side software costs alot, so cheap asp hosting is rare-Complicated high level language, forced you to use OOP rather then making it optional like php. For quick&dirty stuff, php is better and it has OOP stuff when you need it-For more then basic functionality you need to buy libraries, where php can do stuff like generate images, flash en pdfs out of the boxI personally like php. It is very basic & very powerfull but asp.net has its advantages too. But since I am on a limited budget I don't have a choice.
-
I am doing a school project and the guy I am doing it with want some animations. Since gif animations are not supported by php (patent trouble) I had to make a flash movie. I allready have the basic code and stuff but the images I try to import in my flash movie don't show. I am trying to use a gameboard as background for the movie. After the TODO comment I am going to edit the image so I get an animation, but first things first so this is my code: <?php//invoer://array met posities van de huizen $huis//array met posities van de hotels $hotel//array met posities van de spelers $speler//begin en eindpositie van de bewegende pionen $begin en $eind//mp3 om te spelen $mp3//nieuwe sprite (bewegend plaatje)$sprite = new swfSprite();//loop door de framesfor($x = $begin; $x <= $eind; $x++){ //laad plaatje $image = imageCreateFromJpeg('images/monopoly.jpg'); //TODO: tekenen huizen, pionnen, animatie etc. //voer image stream uit en buffer het ob_Start(); imageJpeg($image); $buffer = ob_Get_Contents(); ob_End_Clean(); //voeg image toe aan shape $frame = new swfShape(); $bmp = new swfBitmap($buffer); $frame->addFill($bmp); //voeg het frame toe aan het filmpje en ga naar het volgende frame $sprite->add($frame); $sprite->nextFrame();}//voeg de sprite toe aan een filmpje$movie = new swfMovie();$movie->add($sprite);//bewerkt filmpje voor uitvoer$movie->setBackground(255, 255, 255);$movie->setDimension($bmp->getWidth(), $bmp->getHeigth());if(isset($mp3)){ $movie->streamMp3(file_get_contents($mp3));}//voer flash uitheader('Content-type: application/x-shockwave-flash');$movie->output();?> Sorry for the comments, don't have time to translate them. Can anyone tell me how to get this working? I get a flash movie outputted but it's blank. Thanx in advance.
-
Not a script really, just use textarea and enter stuff between the 2 tags.<textarea style="border:1px solid #76a5d5; color:#fff; background-color: #000;" cols="15" rows="20" maxlength="15" id="user" >ENTER STUFF HERE</textarea>Or use the value attribute of the input tag if you don't want a multi-row input box.<input type="text" style="border:1px solid #76a5d5; color:#fff; background-color: #000;" length="15" maxlength="15" id="user" value="ENTER STUFF HERE"/>
-
Thx, ill try that.
-
didn't know where to post this but since I build this database with php, I post it here.I have to build a relational database 4 a school project. Made a webbased interface and made a database with primary&foreign keys and not null fields to preserve the integrety of my database.-When I insert an empty field or I just don't give the field where the field has the property NOT NULL it just fills in nothing or some default value (it ignores the not null property).-When I insert 2 rows with the same primary key in the same table it doesn't throw an error but just inserts it-When I insert data in a field with a foreign key with a value that doesn't match the field it refers to then it doesn't throw an error but just accepts itHow can I force mySQL to throw errors when these situations occur? This way the whole concept of relational database is useless. Thx in advance 4 any help.
-
Sorry 4 the late reaction, I had an error in my css before that line so that is why it didn't work. Thx for the help anyway .
-
oh, hmm, that's a typo here. It's not like that in the real css file, and it still doesn't work. Correction: H1 { font-weight: bold; text-align: center; font-size: 0.8em; } Sorry about that.
-
Ok, I want H1 to be smaller than normal and centralised. But my css size code doesn't have effect (even 0.3em doesn't work) and it doesn't validate. And the xtra ; didn't work btw.Please help.
-
H1 ( font-weight: bold; text-align: center; font-size: 1.0em }I want to have H1 to be centralized and bold but not larger. If I apply it to a document then the H1 will still be too large (larger then normal font-size) and it doesn't validate, can someone please help me this. Thnx in advance.
-
I looked it up. It seems that the new ADM 64 processor has a built in protection versus buffer overflow security leaks (as where arrays crash because they are too small). Check out this site. As with the future version of windows, that's hardly 'protection'. It's a controll where the vendor can check what you do with the content of your HD to ensure you don't have any illegal stuff on your PC. Garanteed security leaks.
-
Site Design And Forum :) come see
logophobia replied to hatebreed's topic in Websites and Web Designing
Pretty cool design. Will probally scare of some peeps . -
Do U Think Firefox Loads Pic Slower ? lets vote on this
logophobia replied to ashiezai's topic in General Discussion
I think IE is faster with the pics. Although firefox beats IE with rendering etc, I saw some stuff on the internet that it is actually 40 % at loading pictures then IE. Sad but true. I am sure they'll improve some day. -
I keep hearing these commercials on the radio about a processor which keeps virusses out (AMD athlon). Is this *BLEEP* or what? How can a processor be anti-virus?
-
Nice graphic layout. It just contains alot of errors (in both firefox&ie). Some stuff is cut in half & the links don't show very well. In IE I also got an anoying ad-ware pop-up that tryed to install spyware on my pc (search-assistant, yea right). I had to shut down my browser to get rid of. pls, don't show those kind of pop-ups on your site, it scares away visitors.