Re: help needed - installation, debuging and variables



Joseph S. wrote:
1)I get startup error messages:
"cannot load c:\php\php_curl.dll - the specified file cannot be found"
although the file is very much there at exactly that location
Not only for this file but for many extension files like php_mysql.dll,
php_oracle.dll, php_mssql.dll, php_exif.dll etc.

2)the extensions_dir setting is "c:\php" without an ending backslash.

3)The php.ini file is residing at c:\php

4)The php.ini file in c:\windows has all extensions disabled so it does
not look as though that php.ini file is the source of the messages

5)There is a extension entry for php_win32api.dll which also gives a
not found error.
Is it the older version of php_win32std.dll, php_win32service.dll and
php_win32scheduler.dll files which are present but
their names are not there by default in the php.ini ?

**************************************************************************************************
6)How do I debug PHP like you can debug Java in Eclipse or NetBeans and
C/C++ in MS Visual Studio?
**************************************************************************************************

7)database access through odbc works.

8)How do I install PHP as both a CGI extension under Apache 2.0.5x and
as a module (php5apache2.dll with a LoadModule in httpd.conf)

9)How do you pass variables between forms or php pages in general?

Thanks in advance,
Joseph S.

@6: Use a PHP Editor with debugging/code evaluation. Zend has one (most popular I think, for windows anyway), which is quite expensive for anyone other than a commercial programmer (approx 300 dollar). I prefer using PHPEdit (www.waterproof.fr), which is FREE for personal use. You do have to request a license file though, but I got it without a hassle.

@9: With forms you can use the following:
<FORM method="GET or POST" action="script.php">
[...]
</FORM>

Then get the submitted info from the $_GET or $_POST array.
If you have a form field called NAME and you used POST as a method (I prefer POST in most cases, allows more data to be transmitted) it's stored in $_POST["NAME"] afterwards.
Do NOT trust form data, always validate it first if you use it for serious purposes. People can easily fake input.
Validation in the PHP script of course.


Another way to parse data from script 1 to script 2 is by using sessions. Read the PHP Manual on how to properly use sessions.

The other questions I cannot answer I think.
Rgds
SH.
.



Relevant Pages

  • Re: [PHP] PHP console script vs C/C++/C#
    ... My script is taking a longer time to execute than I want. ... I prefer to write in PHP because that is what I know best. ... This is why I am thinking about rewriting my whole script in a C language. ... Perhaps there are different methods I could be using to speed up execution. ...
    (php.general)
  • Re: How to Add a Feeback Form
    ... I saw nothing in that script that indicates where the form is e-mailed to so ... Greg Maxey/Word MVP ... PHP or not. ... have the support available yet. ...
    (microsoft.public.frontpage.programming)
  • How best to show PHP source? (was: One page, multiple submit buttons)
    ... script to add to the top of a PHP script to enable showing its ... Maybe anybody submitting their own PHP code for critique here ... Anything posted to a newsgroup is a "snapshot" of what the ... there ought to be a FAQ for this ...
    (comp.lang.php)
  • Re: [PHP] PHP console script vs C/C++/C#
    ... My script is taking a longer time to execute than I want. ... I prefer to write in PHP because that is what I know best. ... thinking about rewriting my whole script in a C language. ... execution of the code. ...
    (php.general)
  • Email form script
    ... I have a web form that posts to a .php ... who cannot run .php on their server. ... Or does anyone have a .asp script that will ... Thank you for choosing FormToEmail by FormToEmail.com ...
    (microsoft.public.scripting.jscript)