-
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 :)
-
Re: PHP Scripts Error
Your question is too explicit. You must make it more vague.
-
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.
-
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 :)
-
Re: PHP Scripts Error
I'm running Apache and the script works fine.....
-
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.
-
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?
-
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.