Welcome to Dream.In.Code
Become an Expert!

Join 149,921 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,990 people online right now. Registration is fast and FREE... Join Now!




I Suck

 
Reply to this topicStart new topic

I Suck, and the reasons why...

westhefunkyhuman
13 Jun, 2002 - 05:54 PM
Post #1

New D.I.C Head
*

Joined: 25 Jan, 2002
Posts: 15

well, guys.. i dont know much of shit on PHP even though i've been trying forever. i used to catch on to things really fast, but i guess my mind is always too busy now days, or something.

anyway, i have two questions..

1) does anyone have any tips on the best way to learn new languages.. i know that PHP is considered to be the easiest, so I'm really sucking it up here to ask this question and hope noone writes me off as a complete dumbass. however, i just can seem to figure out a good way to learn it.. i look through my books, and always just like jump around and never really learn anything.

2) also, i want to make a link on a page change a certain peice of text on the same page. i don't want it to load another page, or stop any processes on that page from running, just change one short bit of text. how would i go about this in PHP? i don't want the code written for me.. just someone to explain it to me like they're speaking to a dumbass huh.gif .

i might as well reveal my true lurker form. blink.gif westheretardedhuman
User is offlineProfile CardPM
+Quote Post

Cookie Mobster
RE: I Suck
13 Jun, 2002 - 06:09 PM
Post #2

nooneenooneenooonee
Group Icon

Joined: 12 Oct, 2001
Posts: 4,723



Thanked: 1 times
Dream Kudos: 18
My Contributions
1) Buy a book on the subject.
2) Check out the php.net manual

Cheers Sam smile.gif
User is offlineProfile CardPM
+Quote Post

Quik
RE: I Suck
13 Jun, 2002 - 06:19 PM
Post #3

D.I.C Lover
Group Icon

Joined: 6 Mar, 2001
Posts: 3,750



Thanked: 1 times
My Contributions
smkone.. backoff him.. please..

please dont discuss issues that regard AIM or what not on here..


Wes... IF you can wait, i'll help you out tomorrow (i have 1exam and work) so i'll find some time.

and the weekend .. wink2.gif
User is offlineProfile CardPM
+Quote Post

westhefunkyhuman
RE: I Suck
13 Jun, 2002 - 06:21 PM
Post #4

New D.I.C Head
*

Joined: 25 Jan, 2002
Posts: 15

i've got a book on the subject. and i guess you guys aren't very newbie friendly here.. i guess i'll just kindly step back into the shadows.

my bad, i'm terribly sorry, and later.
User is offlineProfile CardPM
+Quote Post

westhefunkyhuman
RE: I Suck
13 Jun, 2002 - 06:23 PM
Post #5

New D.I.C Head
*

Joined: 25 Jan, 2002
Posts: 15

thanks for the peace, quik.

i've got to get on a plane at 5:00 tomorrow for that conference in atlanta.. i'll be there till sunday night. sad.gif
User is offlineProfile CardPM
+Quote Post

Quik
RE: I Suck
13 Jun, 2002 - 06:24 PM
Post #6

D.I.C Lover
Group Icon

Joined: 6 Mar, 2001
Posts: 3,750



Thanked: 1 times
My Contributions
oh yeah.. #)@*&@&$
User is offlineProfile CardPM
+Quote Post

RE: I Suck
14 Jun, 2002 - 06:19 AM
Post #7




Joined: --
Posts: 0

I'm not sure what you mean by changing one piece of text without stopping a process but you can do this in javascript by placing the text in a text box and using the onclick() event handler.

If you want to do something like this in PHP what I would reccomend is using the link with PHP_SELF and setting some variables (flags) to tell you dynamically what pieces of the page were running.

you can also use an href='?flag1=1&flag2=1&flag3=0&flag4=1'

this will reload the same page, the flag's can be set with variables and you can use if statements to decide which piece of code to run. For instance:
if ($flag2 == 1){
include this....
} else {
include this...
}

hope this helps,
Hoopster
User is offlinePM
+Quote Post

klewlis
RE: I Suck
14 Jun, 2002 - 07:04 AM
Post #8

cur tu me vexas?
*****

Joined: 9 Nov, 2001
Posts: 1,723

as far as learning new languages, everyone is different but this is what usually works for me:

Read the first third of the book or so, doing all the exercises as you go. After the first third of the book you have the general idea of how the language works, and the basics. Then just start making up small projects you can do with it (an email form, or a simple guestbook, things like that) and try it. The best way to learn is to just do it, even if it takes days to figure out something simple. Use the book as a reference. And don't be afraid to ask questions here; there are tons of people around willing to help.

If you're looking for an easier language to start with, try ASP. I find it to be much more intuitive than many other ones. :)

Oh, and for tutorials, check out www.webmonkey.com and www.wdvl.com. They both have great tutorials that will walk you through the basics of almost any language you could want.
User is offlineProfile CardPM
+Quote Post

Quik
RE: I Suck
14 Jun, 2002 - 08:18 AM
Post #9

D.I.C Lover
Group Icon

Joined: 6 Mar, 2001
Posts: 3,750



Thanked: 1 times
My Contributions
hrmm...

Ive read a third of an ASP book, and a third of a PHP book..
I would say PHP is by far easier to learn.

Im sure Chris and many others will agree with that.

The only backend language I can say is even easier then both, is coldfusion. But it isn't supported by many servers, and isnt very wide ranged with its language
User is offlineProfile CardPM
+Quote Post

klewlis
RE: I Suck
14 Jun, 2002 - 08:19 AM
Post #10

cur tu me vexas?
*****

Joined: 9 Nov, 2001
Posts: 1,723

well I haven't tried PHP so you may be right.

:)
User is offlineProfile CardPM
+Quote Post

RE: I Suck
14 Jun, 2002 - 08:38 PM
Post #11




Joined: --
Posts: 0

I converted a lot of .cfm stuff to .asp while I worked at Intel. I think the reasoning was that ASP was less expensive (if your on IIS servers you basically have it supported) where as coldfusion has an extra cost and isn't quite as robust a development environment.

From a commercial standpoint cold fusion skill is also less common and less valuable in the marketplace. Over the long haul it seems unlikely that cold fusion will last against the might of MS and the low/no cost of Linux/Apache/PHP/MySQL.

If you want to eventually join corporate america knowing .asp will go a long way towards getting a job a "big time company" but the open source products are catching on with big corporations and have caught upto MS in just a couple years. Apache is the most used server on the web and as such it helps PHP and MySQL have a huge reach.

Performance wise it's amazing how fast, reliable and robust PHP/MySQL is. Lots of benchmark sites list it as faster than anything else for a lot of purposes.

I have used all three and PHP is easier than the other two to learn and use. ASP is very easy to learn if you can write VB and HTML but PHP has a speed advantage because of the way it is called. The convenience of form fields autromgically becoming variables in a PHP document makes it easy to use.

Here is a little form I made a while back when I was first getting into PHP.
amortization

No DB, but great dynamic page generation and calculation possibilities. You also can build dynamic images with it which is very cool for charts and graphs.

I highly reccomend PHP for newbies and programmers alike and I wouldn't be surprised if PHP caught ASP as a sought after skill with corporate america. never discount MS though, .NET seems pretty formidable from my limited understanding.

Hoopster
User is offlinePM
+Quote Post

The Neoracle
RE: I Suck
14 Jun, 2002 - 09:36 PM
Post #12

Check, check, 1, 2.
Group Icon

Joined: 30 Mar, 2001
Posts: 4,069



Thanked: 1 times
My Contributions
Not to mention that PHP is PHP. Asp is stuff written in VB or Javascript, then you have ASP C# .Net and ASP .NET. WAYYYY too many letter for me. wink2.gif

And if your korean, you won't get Nimda. biggrin.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 02:48PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month