1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Php

Discussion in 'Members' Lounge' started by vtecsir1, Feb 18, 2003.

  1. vtecsir1

    vtecsir1 Senior Member

    Messages:
    3,313
    Likes Received:
    17
    Joined:
    Dec 5, 2002
    Location:
    Orlando, FL
    anyone know of some good sites for tutorials on php , i started php in school and im trying to make a site with a shopping cart for class. havent found any good sites on this and was hoping some of you would know some. sorry this has nothing to do with cars. thanks
     
  2. gupta_p

    gupta_p Senior Member

    Messages:
    296
    Likes Received:
    0
    Joined:
    Jan 23, 2003
    a shopping cart might be a bit more complex .. if you pass ALL the variables in each link, then you don't have to worry too much ..

    but the smart way is to sessions or cookies.. but sessions are the coolest.

    Anyhow .. www.php.net <-- read, learn.
     
  3. pissedoffsol

    pissedoffsol RETIRED

    Messages:
    49,693
    Likes Received:
    53
    Joined:
    Sep 28, 2002
    Location:
    Retirement Home
    dude- i've been messign with php for about 2 years now, and my cart still doesn't work.
    its NOT a good idea to start with one. lol

    http://hondaswap.com/cart

    how gay huh?
    hhahaha
     
  4. gupta_p

    gupta_p Senior Member

    Messages:
    296
    Likes Received:
    0
    Joined:
    Jan 23, 2003
    2 years?! Whoa.

    Want me to write one for you? ;) </brag>
     
  5. TRuggiero_

    TRuggiero_ Senior Member

    Messages:
    678
    Likes Received:
    0
    Joined:
    Jan 23, 2003
    Location:
    Winter Garbage, Fl
    Hey man, how can I get my hands on the CF hood?
     
  6. vtecsir1

    vtecsir1 Senior Member

    Messages:
    3,313
    Likes Received:
    17
    Joined:
    Dec 5, 2002
    Location:
    Orlando, FL
    damn i was told it was really hard, im going to try and learn it though. thanks for the site. i have to learn at such an accelerated pace at my school that i think at the end of the 2 month class i can do it. 40 hrs a week 2 classes. tough school ,fullsail if you havent heard of it.
     
  7. pissedoffsol

    pissedoffsol RETIRED

    Messages:
    49,693
    Likes Received:
    53
    Joined:
    Sep 28, 2002
    Location:
    Retirement Home
    the language itself is VERY easy. IMO, its the easiest language to learn that I know... way easier than ASP, way easier than C++, dont even get me started on Cobol :p

    in case you guys don't know- i coded all of hondaswap in php. all the reference section is all database- all the articles and so on.

    sessions is the ONLY way to make a cart. cookies are worthless when you have sensitive data. a machine might not accept a cookie, and so on.

    the best way to make it happen- is to make a session table in the DB. when a user puts stuff in it, it will hold to their session ID.
    the TRICKY part is getting it to work without having the customer login first. If its a repeast customer, and a cookie re-logs them in- cake. but when you have 5 guests browsing the shopping area and adding things to the cart, shit gets messed up sometimes.
    another problem i faced was if a gust put stuff into the cart, and then went to login or register- by gettting a new session id for being logged in, it cleared the cart.

    its not as easy as it sounds.
     
  8. gupta_p

    gupta_p Senior Member

    Messages:
    296
    Likes Received:
    0
    Joined:
    Jan 23, 2003
    well, u set session expirey times .. they will keep a "customer" (or session id) active for a certain amount of time.

    PHP is definitely the easiest language I learned .. and moreover, PHP has a million different prebuilt function calls.. so it's even easier.


    NNOWWW try building a shopping system in Perl. Yes, that'd be a death defying trick ;)

    But wait .. c++ shopping system .. lol. That'd be funny. Sockets are no fun.
     
  9. pissedoffsol

    pissedoffsol RETIRED

    Messages:
    49,693
    Likes Received:
    53
    Joined:
    Sep 28, 2002
    Location:
    Retirement Home
    perl is bad, mmmmk

    nto to mention its slow as shit.

    cgi = hello and welcome to 1999
     
  10. vtecsir1

    vtecsir1 Senior Member

    Messages:
    3,313
    Likes Received:
    17
    Joined:
    Dec 5, 2002
    Location:
    Orlando, FL
    great i start asp and java next week, pissedoffsol is web media your job or just fun for you?, im curious on the job market for those of you who are out there in it. i grad in a few months and im still looking for jobs. thanks again guys i know its not car shit but i figured some of you do this.
     
  11. kyleirwin

    kyleirwin Retired OG

    Messages:
    2,420
    Likes Received:
    2
    Joined:
    Oct 24, 2002
    Location:
    Vegas
    http://www.w3schools.com/ is a great site to help you to get the idea of whatever you want to learn. i use it a lot. i just finished a cart in asp using server-side javascript (not vbscript). i used cookies, i know it's half-assed, but i was just tryin' to get it done as quickly as possible and it's only temporary.
     
  12. pissedoffsol

    pissedoffsol RETIRED

    Messages:
    49,693
    Likes Received:
    53
    Joined:
    Sep 28, 2002
    Location:
    Retirement Home
    i wish.
    im doing networking for the most part right now. there aint shit for web jobs unless you know .net and db2 and java JEE2 bullshit...
    ive NEVER seen a php job yet. but- it will happen. linux is upand coming... people will soon realize that windows blows
     
  13. vtecsir1

    vtecsir1 Senior Member

    Messages:
    3,313
    Likes Received:
    17
    Joined:
    Dec 5, 2002
    Location:
    Orlando, FL
    no jobs in orlando for design or anything sucks, im going to keep looking and i better learn some more things to make myself more marketable. thanks guys.
     
  14. Domeskilla

    Domeskilla Senior Member

    Messages:
    2,948
    Likes Received:
    0
    Joined:
    Oct 27, 2002
    Location:
    Fort Wayne, IN

    CGI is "1999", but its not as slow as you claim. You can set the time for the data. Like, i know a cgi board that is set 1 second. Its as fast as this board, and it dont have this shit that happens when you leave here and come back and all the topics on the forums index is all the shit you seen WAY back. You have to hold shift+refresh for the board to update.
     
  15. pissedoffsol

    pissedoffsol RETIRED

    Messages:
    49,693
    Likes Received:
    53
    Joined:
    Sep 28, 2002
    Location:
    Retirement Home
    its 10-20 times slower than asp, php, or cfm. its proven to be so.
    why? everytime it gets called, it re-writes an html page.

    not only does it take a long time to process- it reaks havok on the server. Defrag gets nuts really fast on a large site.
     
  16. kyleirwin

    kyleirwin Retired OG

    Messages:
    2,420
    Likes Received:
    2
    Joined:
    Oct 24, 2002
    Location:
    Vegas
    ok, after readin' a bit about sessions, i just re-wrote my cart to use sessions instead of cookies. i might have missed something, because it seemed pretty simple, but it seems to work just fine. i just replaced all the "request.cookies('variable')" with "Session('variable')". if i did something wrong, somebody please let me know, i'll give you a link to the cart as soon as i get it online.
     
  17. kyleirwin

    kyleirwin Retired OG

    Messages:
    2,420
    Likes Received:
    2
    Joined:
    Oct 24, 2002
    Location:
    Vegas
  18. asmallsol

    asmallsol Super Moderator

    Messages:
    8,074
    Likes Received:
    3
    Joined:
    Sep 28, 2002
    Location:
    Houghton/Livonia Michigan

    weres the link?
     
  19. gupta_p

    gupta_p Senior Member

    Messages:
    296
    Likes Received:
    0
    Joined:
    Jan 23, 2003
    Dude, don't joke Perl. It was THE language. It's still up there.

    You can do anything in Perl. (heck, PHP stole the regex stuff from Perl)

    Seriously, ANYTHING.

    Not many languages can brag about that.
     
  20. ALLJDM

    ALLJDM Senior Member

    Messages:
    598
    Likes Received:
    0
    Joined:
    Sep 30, 2002
    Location:
    Tampa, FLorida
    just pay someone to do your school work!
     
Verification:
Draft saved Draft deleted

Share This Page