Shop Forum More Submit  Join Login
Cheerilee teaching PHP scripting by TheArtrix Cheerilee teaching PHP scripting by TheArtrix
The script will probably not run because either the kids forgot to install PHP along with Apache, or because they didn't declare a value for $t.
Add a Comment:
 
:iconubuntaku:
Ubuntaku Featured By Owner Sep 14, 2014  Hobbyist Digital Artist
As an artist, programmer and a pegasister (among others), I absolutely love this!
Reply
:iconpanzi:
panzi Featured By Owner Dec 22, 2013
I rather use nginx and Ruby on Rails or Node.js. 
Reply
:iconkydoon:
Kydoon Featured By Owner Nov 7, 2013  Hobbyist Digital Artist
I was WONDERING what the specific value for $t was supposed to be! XD  This is hilarious.  I didn't expect CompSci humor from you. High-five!
Reply
:icontheartrix:
TheArtrix Featured By Owner Nov 8, 2013  Professional Digital Artist
It's always amusing how I'm an artist to one person and "the tech guy" to the other. I did quite some scripting in my time, but never past the truly professional level. In the end, I find scripting to be highly frustrating and art's more my thing.

Also, $t is supposed to be the "percentage of coolness". In effect, anything lower than 20 yields the statement that it needs to be 20% cooler. It's not very fancy, but you get the idea.
Reply
:icontherealfry1:
TheRealFry1 Featured By Owner Nov 4, 2013  Hobbyist Digital Artist
It worked. I got one thing written on a microsoft word page. ''Pones will there always be.''
Reply
:iconlablayers:
LabLayers Featured By Owner Nov 3, 2013  Student Interface Designer
lolwut?
Reply
:iconturag:
Turag Featured By Owner Nov 3, 2013
Weird. So many nerdy comments about PHP and nobody said that PHP doesn't have variable declaration and an uninitialized variable equals zero for numeric comparations.
Reply
:iconnyteshay:
NyteShay Featured By Owner Nov 2, 2013
An "Apache" web server?
Reply
:icontheartrix:
TheArtrix Featured By Owner Nov 3, 2013  Professional Digital Artist
Reply
:iconnyteshay:
NyteShay Featured By Owner Nov 3, 2013
Oh, I see. I didn't know that. I was thinking some sort of native american server or something.
Silly me!
Reply
:icontheoldhorse2:
theoldhorse2 Featured By Owner Nov 1, 2013
you lost me at apache
Reply
:icontheartrix:
TheArtrix Featured By Owner Nov 1, 2013  Professional Digital Artist
Well, you see... never mind.
Reply
:icontheoldhorse2:
theoldhorse2 Featured By Owner Nov 2, 2013
mhm
Reply
:iconkarach0s:
Karach0s Featured By Owner Oct 31, 2013
Crypto-advertising... :P
How about nginx or lighthttpd? They won't burn your RAM... that much. :D
Reply
:iconfairy-slayer:
Fairy-Slayer Featured By Owner Oct 31, 2013
This is a very sweet and lovely take on a thirty-something version of the best teacher in town. The only mistake is that it needs to be 20% cooler only if it's 83⅓.
Reply
:iconanightlypony:
aNIGHTLYpony Featured By Owner Oct 31, 2013  Student General Artist
This i like ! classic teacher pose but very lovely, nice outfit too :D
Reply
:iconmike-raware:
Mike-RaWare Featured By Owner Oct 31, 2013
Or because the script doesn't start with <?php ;)
Reply
:icontheartrix:
TheArtrix Featured By Owner Oct 31, 2013  Professional Digital Artist
Well played, sir.
Reply
:iconvidgamer123:
vidgamer123 Featured By Owner Oct 31, 2013
<!DOCTYPE>
<head><title>A cool website</title></head>
<body>
<h1>This website is now 20% cooler.</h1>
</body>
</html>
Reply
:icontheartrix:
TheArtrix Featured By Owner Oct 31, 2013  Professional Digital Artist
Now, combine the PHP with the HTML to make it look pretty!
Reply
:iconmanjiluo:
ManjiLuo Featured By Owner Oct 31, 2013
roflyes at the artist's description xD
Reply
:icongeffenleffens:
Geffenleffens Featured By Owner Oct 31, 2013  Hobbyist General Artist
My two favourites from back in the early 2000's in college where Python and Cobalt also Pearl... they where so old that the professors whom taught it to me (except python... even Google used it in the 2000's... don't know about it today heh) said that only a handful of people on the planet know it now (it's not really used anymore for cobalt and pearl) and they can all create C++ or java or whatever inside there already secure code heh. I do custom electronic/mechanical engineering and auto-body work on cars/motorbikes now-a-days, do what you love right? Computer coding was never really a career for me, but still get a smile out of things like this. Top shelf Theartrix, top shelf indeed. :)
Reply
:icontheartrix:
TheArtrix Featured By Owner Oct 31, 2013  Professional Digital Artist
Cobalt sounds familiar to me, as well as Pearl, but I really have no way to visualize it as I never really worked with those languages. I tried coding PHP and web design professionally, but it's just extremely frustrating and I'm just not that good at it.

I really love drawing and I'm really good at it, so I hear ya. Do what you do best, and love doing it.

In my case it does result in being an artist with basic PHP knowledge :]
Reply
:iconrosalliebroken:
RosallieBroken Featured By Owner Oct 31, 2013  Hobbyist
Haha XDD nice job xD
Reply
:icongarciarael:
garciarael Featured By Owner Oct 31, 2013
What's wrong with C or Java?
Reply
:iconcheshiretwilight:
CheshireTwilight Featured By Owner Oct 31, 2013  Hobbyist Digital Artist

It is mostly because of security concerns. Because web servers are constantly exposed to the web, you need a language that, at the most basic level, doesn't allow for security concerns. Java is too flexible and allows for a programmer to easily expose parts of the code to hackers accidentilly, you need to be a Java master to be able to make a Java web server but even so long as you statically type PHP, it will always be secure. C is too simple and while there are several open source C web servers available, it still requires a lot of development work to get the same amount of usability as that which is provided by the PHP community. Also, C isn't supported on all server platforms.

 

That being said, PHP is only good for web servers (typically as a backend for JavaScript, CSS, and HTTP style websites) and shouldn't be used anywhere else because it is too hard to get efficient code from. It is certainly better than mySQL *bleh*

Reply
:icongarciarael:
garciarael Featured By Owner Nov 2, 2013
Okay.
Reply
:iconsambaneko:
SambaNeko Featured By Owner Oct 31, 2013  Hobbyist Digital Artist
"doesn't allow for security concerns."

...and you're saying that's PHP?  Goodness, no!  PHP isn't inherently secure at all; it can be written securely if you know what you're doing, but a lot of beginners' code is dangerously exploitable.
Reply
:iconcheshiretwilight:
CheshireTwilight Featured By Owner Nov 1, 2013  Hobbyist Digital Artist
Well I wasn't saying for beginners. Any code is exploitable if you don't think about it but I've had to think a lot less about PHP online security then I have using Java, C or C++.
Reply
:iconsambaneko:
SambaNeko Featured By Owner Nov 1, 2013  Hobbyist Digital Artist
In general I'd say the security of any language just depends on who's writing it.

The PHP.net site itself was recently compromised (arstechnica.com/security/2013/… ), though the attack vector is not yet known.
Reply
:iconlexyeevee:
LexyEevee Featured By Owner Oct 31, 2013
"even so long as you statically type PHP, it will always be secure"

This is...  very untrue.  There have been a great many security incidents involving PHP.

"It is certainly better than mySQL"

SQL isn't really a programming language.
Reply
:iconcheshiretwilight:
CheshireTwilight Featured By Owner Nov 1, 2013  Hobbyist Digital Artist

Well maybe "always" is a bit strong of a word but it would be far more secure then trying to program your server is, say, Java (using .jsp). You could probably find .asp or C to have different, but equivalent, levels of security, but you won't have the benefit of the Open-Source community and unless you're a pro in those languages, your progamming is bound to open more holes (and waste more of your time).

Also, I hate this "X isn't a programming language because of Y" debates. Just because it's scripted, or is functional or communicates with some underlying interface doesn't make it any less of a progamming language. If code is saved and re-used by a computer without further human assistance, then it is a program, which by definition, was written in a progamming language. That being said, SQL is certainly easier then Java or C (but you aren't going to be a pro overnight).

Reply
:iconlexyeevee:
LexyEevee Featured By Owner Nov 7, 2013
Why is Java inherently more secure than PHP?  Why do you think there's no open-source community around C?  (You do know that, for example, Linux is written entirely in C?)

SQL is very very domain-specific, at the very least.  It's not comparable to C or Java or PHP or any other general-purpose language because they do radically different things.  You can't just learn SQL instead of one of those and call it a day.
Reply
:iconcheshiretwilight:
CheshireTwilight Featured By Owner Nov 8, 2013  Hobbyist Digital Artist
Huh? I said PHP is typically more secure then Java, not the other way around, unless you are agreeing with me? Anyway, let's forget about the security argument. Unless you can find specific statistical data comparing hundreds of similar code samples between .jsp and .php in various web environments on their security, the argument is indefensible.

Here is a further list of arguments for PHP: 
  • It is the most used Web development platform out there
  • The barrier to entry is low
  • All you need is a Web server (typically Apache) and an editor
  • Immediate feedback and greater productivity (you can save files in your editor and click reload on your browser)
  • There is lots of information out there on PHP
  • PHP hosting is extraordinarily cheap.
I made my argument as a proposed reason why people use PHP over C or Java for server-side web development (I didn't mean to say C had no open source community, but rather it is very small compared to PHP is this area). If you, personally, think it is better for some reason or another then use C for web development all you want (I'm not arguing that the other languages are worse, at least not directly). But unless you think these proposed arguments are wrong in answering the first guy's question, then we are going off topic. Personally, my area of expertise is embedded micro-controllers.

What? I said programming language not "general-purpose language". Of course they are radically different. I understand that you could never build an OS with SQL etc. but you also can't execute machine code with C or program an FPGA with Java. Different programming languages are used for different things, otherwise they wouldn't exist at all, but they are all programming languages (why make things unnecessarily confusing?).
Reply
:iconlexyeevee:
LexyEevee Featured By Owner Nov 8, 2013
The barrier to entry for anything is pretty low these days; you don't even need a Web server to write Python or Ruby or Perl; anything that doesn't give you immediate feedback is crap; the Internet has resources on everything; and Heroku will host your low-traffic Python or Ruby thing for free.  Meanwhile, here are my arguments against.

Your proposed argument is wrong.  You said "you need a language that, at the most basic level, doesn't allow for security concerns".  C might be dangerous because of the potential for memory errors, which don't exist in PHP...  but they don't exist in Java, either.  And most big webservers are written in C!  (And I have no idea what static typing has to do with it.)  The real security concerns in web apps are various types of forgery and injection, and PHP nothing to prevent those—arguably, it makes it easier to create those problems in the first place.  I would expect the average Java web app to be more secure than the average PHP web app by a long shot.

People tend to use "programming language" to mean a general-purpose one.  SQL is really a query language, hence the name.  But it's also Turing-complete.  But then, so is CSS.  Terminology is hard.
Reply
:iconjzstudios:
JZStudios Featured By Owner Oct 31, 2013  Student Traditional Artist
At least there not learning C++
Reply
:icongandptrixie:
gandpTrixie Featured By Owner Oct 31, 2013
I'll take C++ over php any day.
Reply
Add a Comment:
 
×





Details

Submitted on
October 31, 2013
Image Size
413 KB
Resolution
800×800
Submitted with
Sta.sh
Link
Thumb

Stats

Views
5,786
Favourites
203 (who?)
Comments
37
Downloads
100

License

Creative Commons License
Some rights reserved. This work is licensed under a
Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License.