Trang 4 / 10 FirstFirst 12345679 ... LastLast
Hiển thị kết quả từ 31 đến 40 / 100
  1. #31
    Tham gia
    14-04-2006
    Bài viết
    2
    Like
    0
    Thanked 0 Times in 0 Posts
    Các bạn ơi vui lòng chỉ giúp,

    Người mới bắt đầu nhập môn thì đọc sách nào vậy?
    Tác giả, NXB, ....

    Thứ hai là cái chứng chỉ của zend học theo chương trình nào vậy?

    Mình đã tìm kiếm trong rum mà chưa thấy topic nào nói về điều này cả.

  2. #32
    Tham gia
    08-03-2008
    Bài viết
    3
    Like
    0
    Thanked 0 Times in 0 Posts
    Không hiểu sao khi em làm đúng như hướng dẫn mà không thể kết nối php với mySQL được. Thử cài cái mySQL bằng loại có cài đặt thì khi kết nối nó đòi username và pass. Cái này ko biết lấy ở đâu.
    Các bác hướng dẫn cụ thể thêm chút về nó ko?
    (em đã cài php thành công. Đã chạy được các file php nhưng phpinfo thì không kết nối được với mySQL)

  3. #33
    Tham gia
    08-11-2004
    Bài viết
    1,023
    Like
    0
    Thanked 21 Times in 5 Posts
    Username và password có bắt nhập khi cài đặt chứ nhỉ
    Nếu không, bác thử với user là root và pass để trống xem

  4. #34
    Tham gia
    01-01-2008
    Bài viết
    1,058
    Like
    5
    Thanked 15 Times in 11 Posts
    Quote Được gửi bởi phichan1525345@h View Post
    Không hiểu sao khi em làm đúng như hướng dẫn mà không thể kết nối php với mySQL được. Thử cài cái mySQL bằng loại có cài đặt thì khi kết nối nó đòi username và pass. Cái này ko biết lấy ở đâu.
    Các bác hướng dẫn cụ thể thêm chút về nó ko?
    (em đã cài php thành công. Đã chạy được các file php nhưng phpinfo thì không kết nối được với mySQL)
    Trong quá trình cài MySQL có phần cho bạn điền password và username cho root (người điều hành tối cao : administrator). Mặc định username là root, pass trống Thử đi nhé !

  5. #35
    Tham gia
    15-04-2008
    Location
    Bình Phước
    Bài viết
    6
    Like
    0
    Thanked 0 Times in 0 Posts
    Cũng là dân lính mới tò tè, góp script "require" (hay include), dành cho ai
    đó muốn tìm học PHP_Basics như tui.
    Chỉ với script "require" ta có thể tạo 1 site theo PHP đơn giản nhứt.

    Giả thiết các bạn đã setup tốt Apache - PHP - MySQL vô PC của bạn.

    Copy các files sau vô C:\Appser\www\

    1/ index.php

    <html><head>
    <title>php_basics</title>
    </head><body>

    <?
    require("ind_head.inc");
    ?>
    <?
    require("ind_left.inc");
    ?>
    <?
    require("ind_righ.inc");
    ?>
    <?
    require("ind_styl.inc");
    ?>
    <!-- page content -->
    <table width="65%" cellpadding = 12 cellspacing =0 border = 0>
    <tr><td>
    <a name="#up"></a>
    <h2>Unconditional love</h2>
    <p>A story is told about a soldier who was finally coming home after having
    fought in Vietnam. He called his parents from San Francisco.</p>
    <p>&quot;Mom and Dad, I'm coming home, but I've a favor to ask. I have a
    friend I'd like to bring home with me.&quot;</p>
    <p>&quot;Sure,&quot; they replied, &quot;we'd love to meet him.&quot;</p>
    <p>&quot;There's something you should know,&quot; the son continued,
    &quot;he was
    hurt pretty badly in the fighting. He stepped on a land mine and lost an arm
    and a leg. He has nowhere else to go, and I want him to come live with
    us.&quot;<br>
    &quot;I'm sorry to hear that, son. Maybe we can help him find somewhere to
    live.&quot;</p>
    <p>..........</p>
    <p align="center">******</p>
    </td></tr>
    </table>

    <?
    require("ind_foot.inc");
    ?>

    </body></html>
    ___________

    2/ File "ind_head.inc"

    <html><head>
    <title>PHP_BASICS</title>
    </head>
    <table width="100%" cellpadding = 12 cellspacing =0 border = 0>
    <tr bgcolor = aqua>
    <td align = left><img border="0" src="../img/stork1.gif" width="104"
    height="112"></td>
    <td>
    <p align=center><font face="Arial" size="9"><b>PHP_BASICS</font></a></b></p>
    </font></td>
    <td align = right><img border="0" src="../img/stork1.gif" width="104"
    height="112"></td></tr>
    </table>
    <table width = "100%" cellpadding = 4 cellspacing = 4>
    <tr bgcolor = #b3b3b3>
    <td width = "20%" align="center">&nbsp;</td>
    <td width = "20%" align="center">&nbsp;</td>
    <td width = "20%" align="center">&nbsp;</td>
    <td width = "20%" align="center">&nbsp;<a href="index.php">ENGLISH</a></td>
    <td width = "20%" align="center">&nbsp;<a href="index.php">FRENCH</a></td>
    </table>

    <table width = "100%" cellpadding = 4 cellspacing = 4>
    <tr >
    <td width = "25%" align="center">
    &nbsp;</td>
    <td width = "25%" align="center">
    &nbsp;</td>
    <td width = "25%" align="center">
    &nbsp;</td>
    <td width = "25%" align="center">
    &nbsp;</td></tr>
    </html>
    _____________

    3/ File "ind_left.inc"
    <html><head><title>PHP_BASICS</title>
    </head>
    <table cellpadding="2" align="left">
    <tr><td>
    <p style="background: #c0c0c0">
    <img border="0" src="../img/star1.gif" width="16" height="16">
    <b><a href="index.php"><font face="Arial" size="2">Home</font></a></b>
    </td></tr>
    <tr><td>
    <p style="background: #c0c0c0">
    <img border="0" src="../img/star1.gif" width="16" height="16">
    <b><a href="index.php"><font face="Arial" size="2">Unconditional<br>
    &nbsp;&nbsp;&nbsp;&nbsp; love</font></a></b>
    </td></tr>
    <tr><td>
    <p style="background: #c0c0c0">
    <img border="0" src="../img/star1.gif" width="16" height="16">
    <b><a href="index.php"><font face="Arial" size="2">Unconditional<br>
    &nbsp;&nbsp;&nbsp;&nbsp; love</font></a></b>
    </td></tr>
    </table>
    </html>
    ___________

    4/ File "ind_righ.inc"
    <table border="0" width="13%" cellspacing="10" cellpadding="1"
    align="right">
    <tr>
    <td width="100%">
    <p align="center"><img border="0" src="../img/angkor1.jpg" width="120"
    height="90"></td>
    </tr>
    <tr>
    <td width="100%">
    <p align="center"><img border="0" src="../img/hoguom1.jpg" width="120"
    height="75"></td>
    </tr>
    <tr>
    <td width="100%">
    <p align="center"><img border="0" src="../img/hue1.gif" width="120"
    height="90"></td>
    </tr>
    <tr>
    <td width="100%">
    <p align="center"><img border="0" src="../img/nhatrg1.jpg" width="120"
    height="80"></td>
    </tr>
    ____________

    5/ File "ind_foot.inc"
    <html>
    <body>
    <table width = "100%" cellpadding = 4 cellspacing = 4>
    <tr bgcolor = #b3b3b3>
    <td width = "20%" align="center">
    &nbsp;</td>
    <td width = "20%" align="center">
    &nbsp;</td>
    <td width = "20%" align="center">
    &nbsp;</td>
    <td width = "20%" align="center">
    &nbsp;<a href="index.php">ENGLISH</a></td>
    <td width = "20%" align="center">
    &nbsp;<a href="index.php">FRENCH</a></td>
    </table>
    <hr size="1" noshade>
    <p align="center"; class="small"> Copyright 2008 - Designed by <a
    href="mailto:conmeobp@gmail.com"> ConMeoBP</a> - All Rights Reserved</p>
    </body>
    </html>
    ___________

    6/ File "ind_styl.inc"
    <body background="../img/bgd01.jpg">
    <style>
    <!-- P {font-size : small;} -->
    P {font-size : 12.0pt;}
    H1 {font-family : Verdana, Arial; text-align : center; color : red;}
    H2 {font-family : Verdana, Arial; text-align : right; color : navy;}
    H3 {font-family : Verdana, Arial; text-align : right; color : olive;}
    H4 {font-family : Verdana, Arial; text-align : right; color : #302e52;}
    H5 {font-family : Verdana, Arial; text-align : right; color : purple;}
    H6 {font-family : Verdana, Arial; text-align : left; color : maroon;}
    A {font-size : 10.0pt; font-family : Arial; color : #302e52; font-weight :
    bold;}
    <!-- A:Visited ==> Left_Frame & Right_Frame -->
    A:Visited {font-size : 10.0pt; color : navy; font-weight : normal;}
    A:Active color : #302e52;}
    BODY {font-size : medium; font-family : Georgia, Times; color : #302e52;}
    A.large {font-size : medium; color : #302e52; font-weight : normal;}
    A:Visited.large {font-size : 10.0pt; color : red; font-weight : normal;}
    A.Active.large {font-size : medium; color : #302e52; font-weight : normal;}
    <!-- P.small ==> Foot_frame -->
    P.small {color : maroon; font-size : x-small;}
    </style>
    </body>
    __________

    Nếu như các bạn muốn có đầy đủ hình được đề cập ở các files trên, và coi các scripts kia cho ra cái giống gì đây, trước khi copy vô
    C:\APPSERV\WWW
    bạn có thề vô đây lấy về

    www.tiepsuc.org

    ConMeoBP
    TB - Bài viết trên dựa theo sách "PHP For Web Professionals - Christopher Cosentino - 2000". Nếu bạn nào cần photo sách này, tin tôi hay, tôi sẽ đem gởi sách này ở trụ sở DDTH số 205 Trần Bình Trọng Q5 - TP HCM, để các bạn mượn photo.

  6. #36
    Tham gia
    05-11-2007
    Bài viết
    2
    Like
    0
    Thanked 0 Times in 0 Posts
    cho hỏi anh amida một chút: để có một website như chạy được trên Internet thì cần có một trang web, một domain, có cần trả tiền thêm một hosting, và mình có thể tận dụng máy tính của mình làm server được không?

  7. #37
    Tham gia
    08-11-2004
    Bài viết
    1,023
    Like
    0
    Thanked 21 Times in 5 Posts
    Sai box rồi bạn nhé Nhưng xin trả lời luôn.
    Bạn vẫn có thể dùng máy tính của mình như 1 server nếu bạn đáp ứng đc khoản sau:
    - PC mạnh để đảm bảo nhiều clients có thể request đc.
    - Tiền điện nếu bạn duy trì website liên tục.

  8. #38
    Tham gia
    01-01-2008
    Bài viết
    1,058
    Like
    5
    Thanked 15 Times in 11 Posts
    Quote Được gửi bởi amida View Post
    Sai box rồi bạn nhé Nhưng xin trả lời luôn.
    Bạn vẫn có thể dùng máy tính của mình như 1 server nếu bạn đáp ứng đc khoản sau:
    - PC mạnh để đảm bảo nhiều clients có thể request đc.
    - Tiền điện nếu bạn duy trì website liên tục.
    Bổ sung : nếu dùng gói internet xài nhiu trả nhiu thì coi như bạn mạc (nếu không đủ tiền chi trả =)))

  9. #39
    Tham gia
    24-06-2008
    Bài viết
    4
    Like
    0
    Thanked 0 Times in 0 Posts
    Cảm ơn bạn Amida nhiều

  10. #40
    Tham gia
    20-08-2007
    Bài viết
    26
    Like
    0
    Thanked 0 Times in 0 Posts
    Dùng IIS đi pà con, tui thấy dễ hơn rất nhiều. hi hi nhưng mấy pro dùng LINUX thi hông giám can!

Trang 4 / 10 FirstFirst 12345679 ... LastLast

Bookmarks

Quy định

  • Bạn không thể tạo chủ đề mới
  • Bạn không thể trả lời bài viết
  • Bạn không thể gửi file đính kèm
  • Bạn không thể sửa bài viết của mình
  •