Results 1 to 8 of 8

Thread: PHP Scripts Error

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    355

    Question PHP Scripts Error

    Hi,

    I try to download most of the php scripts from the internet especially from hotscripts and I use it and most of them get errors.

    This is the setup, windows xp professional sp2, iis, php, mysql and phpmyadmin.

    What thing I must configure properly to let the scripts run without errors, cos some script I download require no mysql configuration also got error.

    I think I get this error like Undefined index and Undefined index action etc on line what.

    Thanks
    Last edited by abcat; Aug 21st, 2006 at 12:07 PM.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: PHP Scripts Error

    Your question is too explicit. You must make it more vague.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: PHP Scripts Error

    Have you got an example of a script you've downloaded that produces an error? If so, post it and tell us what the script should do.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    355

    Re: PHP Scripts Error

    Hi,

    one of the script was http://www.hotscripts.com/Detailed/60974.html as the login.php got 3 errors

    Notice: Undefined index: username in c:\Inetpub\wwwroot\PHPFlogin\login.php on line 20
    Notice: Undefined index: action in c:\Inetpub\wwwroot\PHPFlogin\login.php on line 30
    Notice: Undefined index: do in c:\Inetpub\wwwroot\PHPFlogin\login.php on line 76

    I read the readme text file and they call me chmod 0777 to logindata.php but how can I do that in IIS? I try go to IIS and right click properties logindata.php and I tick all 4 in the file tab which is Script source access, Read, Write and Log visits but still can't work.

    Whats when wrong? I think maybe I miss up some settings in the IIS Web Sites properties like configure all tabs cos I leave them in default mode. Any website to teach configure IIS to works well with php as this forum only teaches Apache.

    Thanks in advanced

  5. #5
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: PHP Scripts Error

    I'm running Apache and the script works fine.....

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: PHP Scripts Error

    It's just notices, not errors. Notices are emitted when code violates what some people regard as good programming practices. There is no need to care about them unless you know PHP well enough to decide for yourself whether you want to follow those practices. (I have to point out, however, that it was notices who alerted me to a grave error in my code recently.)

    If you don't want notices to appear, you need to change the warning level in your php.ini. The file is thoroughly commented and should be no problem to edit.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    355

    Re: PHP Scripts Error

    Thanks CornedBee and it works I got another question, I would like to have the php scripts into a normal html page which is in localhost, how can I make it works in dreamweaver with layers or other methods?

  8. #8
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: PHP Scripts Error

    Dreamweaver can edit PHP files, you even get code completion and stuff. However, the parts generated by PHP will obviously not be there.

    Not that I think that's a good method of doing it. It leads to mixing business logic and presentation, which is always a very bad thing.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

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



Click Here to Expand Forum to Full Width