Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18

Thread: Help Me With My First Php Script !!!!

  1. #1
    Join Date
    Dec 2003
    Location
    pg
    Posts
    6
    Rep Power
    0

    Unhappy Help Me With My First Php Script !!!!

    hi..i really need ur guys help. i'm doing my final year project. i'm using mysql+php+pws on windows98. my first simple script doesnt work out:

    <html>
    <body>

    < ?php echo "Hello World"; ?>

    </body>
    </html>

    Just wondering is there any prob with the php itself or pws. I understand that pws does support php. In fact, php was designed to run as a plug-in for existin web server software. rite? Or do i need a third party to interpret it? pls correct me if i'm wrong..tq..

  2. #2
    Join Date
    Feb 2003
    Location
    Kluang, Johor
    Posts
    2,367
    Rep Power
    249
    try: <?php echo "hello world"; ?>

    btw, make sure you have properly set up PHP for PWS. Please refer to: http://my.php.net/install.iis
    Last edited by lcf; 19-12-2003 at 10:00 AM.

  3. #3
    Join Date
    Feb 2003
    Location
    Kluang, Johor
    Posts
    2,367
    Rep Power
    249
    For easy set up PHP and webserver(Apache), try:
    - EasyPHP: http://www.easyphp.org/index.php3?lang=en
    - AppServ: http://www.appservnetwork.com/

    Both installer will install PHP, Apache, MySQL, phpMyAdmin for you. No headache.

  4. #4
    Join Date
    Dec 2003
    Location
    pg
    Posts
    6
    Rep Power
    0
    icf, thanx..i'll try it out..

  5. #5
    Join Date
    Jun 2001
    Location
    Mystic Kingdoms
    Posts
    2,749
    Rep Power
    278
    easyphp best best best..
    yeah yeah.. download easyphp now! and start coding without any... doubt.

  6. #6
    Join Date
    Dec 2003
    Location
    pg
    Posts
    6
    Rep Power
    0

    Question

    Originally posted by lcf
    try: <?php echo "hello world"; ?>

    btw, make sure you have properly set up PHP for PWS. Please refer to: http://my.php.net/install.iis
    lcf, i've tried <?php[/b] echo "hello world"; ?> still didnt work..
    i'm sure that i didnt miss any instruction in the installation manual..

    this is what i get while trying to preview a page in a browser:

    "Security Alert! The PHP CGI cannot be accessed directly.
    This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.
    For more information as to why this behaviour exists, see the manual page for CGI security.
    For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page."

    i'm sure that i didnt miss any instruction in the installation manual..

    i've been figuring out bout this stuff whole week..seems that i couldnt find da solution..i'm reaaallly sick of this

    my questions are:
    1- what does da statement(which appeared in the browser) really mean?..somebody please explain in a simpler way..u see..im a newbie to php..

    2-if i use myql+php+apache..will there be any prob if i were 2 upload it to iis server? i think there might b some problems.that's da reason y i use pws instead of apache..coz da project i'm working on now going to be upload to iis server..

    SOMEBODY OUT THERE HELP ME FIND DA SOLUTION PLEAAAASE!!!!
    THANX

  7. #7
    Join Date
    Feb 2003
    Location
    Kluang, Johor
    Posts
    2,367
    Rep Power
    249
    1. no idea about PHP CGI error.

    >>For more information as to why this behaviour exists, see the manual page for CGI security.
    For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page."

    have you read the 'more information'?

    2. no problem to run the same PHP script on both IIS / Apache, except you use platform specificied PHP functions. The only problem will be the database. If the IIS is not using mysql database, then your PHP script cannot use mysql database, for sure. You may need to install the same database that used on IIS server.

  8. #8
    Join Date
    Oct 2001
    Location
    Melbourne, AU
    Posts
    456
    Rep Power
    228
    Hi,

    1) In your php.ini, edit the line:
    cgi.force_redirect = 1
    and change it to:
    cgi.force_redirect = 0

    See if that works. (However I doubt it)

    The best 'fix' to your problem is to get Apache+PHP (or one of those pre-assembled packages - easyphp).

    2) Ditto what LCF said.

  9. #9
    Join Date
    Mar 2003
    Location
    Kamunting, Perak
    Posts
    640
    Rep Power
    214
    EasyPHP - easy'ing' your PHP

  10. #10
    Join Date
    Dec 2003
    Location
    pg
    Posts
    6
    Rep Power
    0
    Originally posted by sufyan
    Hi,

    1) In your php.ini, edit the line:
    cgi.force_redirect = 1
    and change it to:
    cgi.force_redirect = 0 .
    sufyan, it doesnt work..thanx anyway...

  11. #11
    Join Date
    Nov 2001
    Location
    Johor
    Posts
    772
    Rep Power
    233
    lalala pakai server dayak je senang tak yah pening2 kepale
    I hate when:

    vBulletin Message:
    Sorry! The administrator has specified that users can only post one message every 60 seconds

  12. #12
    Join Date
    Jun 2001
    Location
    Mystic Kingdoms
    Posts
    2,749
    Rep Power
    278
    easyphp <-- sesuai untuk semua

  13. #13
    Join Date
    Jan 2003
    Location
    dreamland
    Posts
    240
    Rep Power
    208
    semua promote easyphp nampak...
    dapat komisen ker?...
    hahahahhahaha...

    ^_^ <== stay happy

  14. #14
    Join Date
    Jan 2002
    Location
    SoObHanG JhaYa
    Posts
    501
    Rep Power
    226
    Musti la... EasyPHP memang best!!!!... Jadi, disable PWS, Enable EasyPHP!!!!
    <form name="jump">
    <select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" style="border:1px #393F31 solid;color:#393F31;font:10px Verdana;font-weight:bold;" >
    <option value="0" style="background: #9CC8FE" selected>*SELECT-LINKS</option>
    <option value="http://www.gengturbo.org/" style="background: #FF0000">GENGTURBO</option>
    <option value="http://www.phixelgrafix.com/" target="new" style="background: #C6D607">PHIXELGRAFIX</option>
    <option value="http://dailydigital.phixelgrafix.com/" style="background: #FCBC45">OLD-BLOG</option>
    <option value="http://www.mesrahosting.net/" style="background: #FF99CC">WEBHOSTING</option>
    </select>
    </form>

  15. #15
    Join Date
    Jun 2001
    Location
    Mystic Kingdoms
    Posts
    2,749
    Rep Power
    278
    ntah lah diorang nih..
    ada jalan senang.. jalan susah jugak yang diorang nak..
    Last Advice. :

    Kalau nak belajar mencoding PHP.. install ajelah easyphp
    tapi.. kalau nak jadi Admin System atau nak setup webserver..
    study laaa LINUX !!! bukan study nak install bebende lain yang susah dan menyusahkan tuh!

    go go go!

Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Matrimonial Script with new feature, shaadi.com clone script
    By sahil101 in forum Website Programming
    Replies: 1
    Last Post: 14-10-2009, 01:23 PM
  2. [WTS]MLM FULL SCRIPT, FULL MLM Script, easy to configure...
    By chardoz in forum Site, Domains and Links Marketplace
    Replies: 1
    Last Post: 10-12-2008, 12:39 AM
  3. How To Convert Shell Script to Batch Script
    By nana86 in forum Website Programming
    Replies: 0
    Last Post: 20-07-2007, 10:04 AM
  4. script
    By nurulmajdi in forum Website Programming
    Replies: 12
    Last Post: 16-02-2004, 04:03 PM
  5. my script can't run..why?
    By therion in forum Website Programming
    Replies: 7
    Last Post: 23-10-2003, 05:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112