#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    1
    Rep Power
    0
    All,

    I just wanted you to know that php software will be a stable platform.

    I have developed my own auction/fixed price sale/reverse auction site based
    upon the code from php. I used php4/mysql to implement the site.

    If you would like to see, check out http://www.buypccentral.com.

    Thanks,

    Chris Smith,
    webmaster@buypccentral.com http://www.buypccentral.com
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    51
    Rep Power
    15

    >>will be a stable platform

    ??? I'd bet that PHP has been a stable platform for quite some time now. Just ask IBM.com, livebid.amazon.com, and mp3.lycos.com. They all use PHP to do *major* web processing.

    I checked out your site. Very cool!

    wj gilmore
    wjgilmore@hotmail.com
  4. #3
  5. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>I just wanted you to know that php software will be a stable platform.

    You should have said "I just wanted you to come to my site".

    Just so you spam here and wanna get some traffic? If you want, I can give you huge traffic, as huge as a DoS attack.
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    1
    Rep Power
    0
    You know,

    It is guys like the one in the post above that gives open source platforms a bad name. If you would slow down and read the post, it says "If you would like."

    As for the DoS attack, As the site is a live, operating business, I am sure they will ensure that you recieve a good dose of legal reality.

    I am not really into posting to groups for traffic, takes to long for to little benifit.

    But for those who are interested in PHP being a realistic aproach for running an e-commerce site, seeing that it does and will work my assist in helping them make their mind.
  8. #5
  9. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,648
    Rep Power
    4493
    Here's what this guy posted on the MySQL forum
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
    All,

    I just wanted you to know that mysql software will be a stable platform.

    I have developed my own auction/fixed price sale/reverse auction site based
    upon mysql . I used php4/mysql to implement the site.

    If you would like to see, check out http://www.buypccentral.com.

    Thanks,

    Chris Smith,
    webmaster@buypccentral.com http://www.buypccentral.com
    [/quote]

    There's not a real question in these posts. Wouldn't you enquire if they were stable before you designed your entire site around them???

    I think freebsd was right...

    ---John Holmes...
  10. #6
  11. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    1
    Rep Power
    0
    As well your comment didn't state a question, not all discussions are based on question.

    Data is what drives you and I here. You watch it on the news every day. Some raise question other state fact. In the end, we all need to know.

    In fact, the very reason that this forum even exists proves this fact. You came to see what others are doing. I just pointed out my success.

    You are free to believe what you wish, but if php.net didn't post that php4 was released, (which doesn't state a question) Then how would you know?
  12. #7
  13. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    1
    Rep Power
    0
    hi!!

    I'm a student computer programming. I'm working at a business for school now (don't know the english word for it).
    I'm making a PHP standard e-commerce store, which can be used over and over again by different businesses.

    I just ask for advice or tips to make this store. Especially the cart I'm interested in. Do u use sessions? Did u do something with the lifetime of the sessions.

    Well thanks!

    anita

    ps. the site looks nice
  14. #8
  15. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    1
    Rep Power
    0
    I used a mysql table for the cart system. This is how I accomplish it.

    1. I gave each user an ID. (mysql auto_incremnt column)
    2. when user put a item in cart I wrote the user"ID" to a column in the cart table along with other data that references the item in cart.
    3. when the user looks at cart or checks out, I used a simple select statement to get cart values. (select * from cart where userID = $userID)

    And yes, I did use sessions, but I found that the sessions support what kind of broken at the time of authoring on the win32 platform (php4 in canidate release at the time) so I rolled my own
    ______________________________________

    $session = md5(uniqid(rand()));
    SetCookie("sid", "$session", time() + 14400);
    $s = $session;
    $query = "insert into sessions values (null, null, '$s','')";
    $result = mysql_query($query);
    _______________________________________

    if you visit the site (or remember) after the index page loads, put you mouse on any link, in the url you will see the session (really long number, s=324j2345982435l234)

    I do expire those as well, this depends on your preference and site traffic.

    If I had it to do over again, I would have not wrote my own sessions support, I would have used the built in functions.

    If you would like, I can send you some of the cart coding.

    Thanks,

    Chris Smith
  16. #9
  17. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    1
    Rep Power
    0
    Let me offer another suggestion,

    create a messages table for the static verbage on the site. Then white a function to select certain messages. (I think you should be using functions alot in your code, an e-commerce app will make the same calls to view/add/modify/delete products often)

    Don't put static site content in include file, the whole file needs to be loaded in RAM on the server, and for a given page, you may only need 10 or so message variables.

    Example:
    content of messages.php

    $site = "www.foo.com";
    $homepage = "Welcome to foo.com";
    $prodname = "Really big computer.";

    Do you need all these variables set on every page? I didn't, so I put then in a db table. and wrote this;

    // function to get a message from db
    // requires message ID to sent to function
    function getmes($messID) {

    $messquery = "select message from messages where messID = '$messID' limit 1";
    $messresult = mysql_query($messquery);
    $nm = mysql_num_rows($messresult);

    if ($nm == 0) {

    echo "No message found.";
    } else {
    $x = 0;
    while ($x < $nm) {
    $message = mysql_result($messresult, $x, "message");
    $x++;
    } // end while $x
    echo $message;
    } // end if $nm == 0

    } // end getmes function

    When you add a message to the message table. remeber that ID from the auto_increment column. Then you can use in this in you html templates.

    <table>
    <tr><td>
    <? getmes(1);?>
    </td></tr>
    </table>

    On a large site this will improve performance on the web server, but it increases the load on the db server. But overall you should get better performance, with an added plus! You can change the "static" type content per business easier.
  18. #10
  19. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>You came to see what others are doing.

    Not really.

    >>I just pointed out my success.

    Who do you think you are?

    >>Some raise question other state fact

    Right. But you may show your code in reply to someone's question and state the fact.
    Making announcement here like: "PHP4.0.3 was released" is fine as it benefits the readers.
    Telling people to go to your site by all means is considered as SPAMMING.

    >>If you would like to see, check out http://www.buypccentral.com.

    If this is changed to:

    If you would like to know how I did it, check out my open code page at http://www.buypccentral.com

    then it would be fine as it benefits to the ones (the readers only) who are interested in doing the same tasks.

    Telling readers to go to your site to make a proud of yourself is not a FACT nor is it a question, it's inappropriate in this forum.

    You no longer need to further backup your original statement
    "I just wanted you to know that php software will be a stable platform."
    as it's now a history and a true FACT that you intended to SPAM.

    [This message has been edited by freebsd (edited October 12, 2000).]
  20. #11
  21. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    1
    Rep Power
    0
    I will not continue this debate with you on my intent with my original post. My actions in this thread speak for themselves.

    Thank you for your opinion,

    Chris Smith

Similar Threads

  1. Replies: 2
    Last Post: August 18th, 2004, 11:45 PM
  2. Replies: 7
    Last Post: March 17th, 2004, 06:39 AM
  3. How to see the Memory used by a PHP script?
    By Pardall in forum PHP Development
    Replies: 4
    Last Post: February 13th, 2004, 04:54 PM
  4. Replies: 1
    Last Post: January 30th, 2004, 03:10 AM
  5. Replies: 4
    Last Post: January 28th, 2004, 09:29 AM

IMN logo majestic logo threadwatch logo seochat tools logo