[no subject]
Your file is attached.
[PHP-INSTALL] Re: Mail Authentification
For further details see the attachment. Norton AntiVirus Deleted1.txt Description: plain/text
[PHP-INSTALL] Re: Re: Message
This is a multi-part message in MIME format. Your file is attached. Norton AntiVirus gelöscht1.txt Description: plain/text
[PHP-INSTALL] Newbie working with PHP 5.0, IIS, Win2000
Hello everyone. Hopefully someone can help me with this. I was able to install PHP successfully. I tried a sample script and it worked fine through IE. I then tried to create a script that would pass a value on to another script using the post method. These are called Pass.php and Pass1.php. Pass.php contains the following. Name: Email: Pass1.php contains the following. This is the output I received from this. CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: PHP Notice: Undefined index: username in C:\Web\Pass1.php on line 4 PHP Notice: Undefined index: username in C:\Web\Pass1.php on line 5 PHP Notice: Undefined variable: p_username in C:\Web\Pass1.php on line 8 PHP Notice: Undefined variable: HTTP_POST_VARS in C:\Web\Pass1.php on line 13 PHP Notice: Undefined variable: username in C:\Web\Pass1.php on line 19 I then replaced Pass1.php with the following code to check for any data that was being posted.// This will check for posted values $varvalue) { if (empty($varvalue)) { $empty[$varname] = $varvalue; } else { $post[$varname] = $varvalue; } } print ""; if (empty($empty)) { print "None of the POSTed values are empty, posted:\n"; var_dump($post); } else { print "We have " . count($empty) . " empty values\n"; print "Posted:\n"; var_dump($post); print "Empty:\n"; var_dump($empty); exit; } ?> This supplied the following output. CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: // This will check for posted values None of the POSTed values are empty, posted: array(0) { } I would really appreciate if someone could help me figure out what is going on.
Re: [PHP-INSTALL] Newbie working with PHP 5.0, IIS, Win2000
Thanks for the quick reply. I wasn't sure which room I should post to, so I posted to this one and php.windows. I will only try one in the future. I went through all the documents I could and found what these warnings were, but nothing helped. The variables are not passed to my second script. I went ahead and changed my form and my script. So, pass.php now looks like this... Name: Only username is being passed to pass1.php. I then incorporated the code you sent me into pass1.php. It is now like this. I do not receive any output now. Besides the CGI error. I can find out about this later, but it should be outputting the username. "Chris Hewitt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 2004-08-17 at 16:46, Chuck wrote: > > Hello everyone. Hopefully someone can help me with this. > > > > I was able to install PHP successfully. I tried a sample script and it > > worked fine through IE. I then tried to create a script that would pass a > > value on to another script using the post method. These are called Pass.php > > and Pass1.php. > > > > Pass.php contains the following. > > > > Name: > > Email: > > > > > > > > Pass1.php contains the following. > > > // Available since PHP 4.1.0 > >echo $_POST['username']; > >echo $_REQUEST['username']; > >import_request_variables('p', 'p_'); > >echo $p_username; > > // Available since PHP 3. As of PHP 5.0.0, these long predefined > > // variables can be disabled with the register_long_arrays directive. > >echo $HTTP_POST_VARS['username']; > > // Available if the PHP directive register_globals = on. As of > > // PHP 4.2.0 the default value of register_globals = off. > > // Using/relying on this method is not preferred. > >echo $username; > > ?> > > You only have "username" and "email" in your form, so I would remove the > others. Your form uses the method POST so that is all you need in the > page your form submits to. > > If you look up the warning messages you get (they are warnings) they > will tell you that they are warning you that you have used the variable, > e.g. in > echo $_POST['username']; > before assigning a value. Either assign a value or test for it first, > then you do not receive the warning. You could change the error level in > php.ini alternatively if you wanted to. So changing the above line to: > if (isset($_POST['username'])) > { > echo $_POST['username']; > } > should avoid the warning. > > As to your CGI error issue, it sounds as though you are using PHP as a > CGI with IIS. I do not use this combination so I cannot help on that > one. I know this is a known error message but I have not been able to > find out about it, now I want to. > > Regards > > Chris > PS Please do not cross-post to more than one list.
[PHP-INSTALL] Install problem on Sun Solaris
Hi group, I need some help with the installation of PHP 4.3.8 On a Sun Solaris 8 machine. I am running Apache 1.3.29 with several virtual hosts. I will try to keep this short but still provide as much info as I can. I have compiled PHP with the following command: './configure' '--prefix=/usr/local/php' '--with-config-file-path=/usr/local/php/lib' '--with-apxs=/usr/apache/bin/apxs' '--enable-pcntl' ' --enable-ftp' '--with-oci8=/hosting/u01/app/oracle/product' '--with-oracle=/hosting/u01/app/oracle/product' '--with-mcrypt=/usr/local/libmcrypt/lib' '--with-openssl=/usr/local/openssl' '--enable-discard-path' '--enable-fastcgi' '--enable-bcmath' '--enable-calendar' '--with-curl=/usr/local/curl' '--with-curlwrappers' '--enable-ctype' '--enable-exif' '--with-ncurses=/usr/local/include/ncurses' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-shmop' '--enable-sockets' '--enable-sigchild' '--with-jpeg-dir=/opt/sfw/lib/gimp/1.0/plug-ins/jpeg' '--with-zlib-dir=/usr/local/zlib' '--with-gd' '--enable-gd-native-ttf' '--enable-gd-jis-conv' '--with-png-dir=/opt/sfw/lib/gimp/1.0/plug-ins/png' ***END CONFIGURE *** I have tried compiling many ways based on a ton of README's that I have read. I need this to work with Oracle 8i and SSL some of the configure commands I will admit I don't know how necessary they are. Anyway I can run php -i from the command line and it will give me the output some of which is below: *** Start some lines of phpinfo() * Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => /usr/local/php/lib/php.ini PHP API => 20020918 PHP Extension => 20020429 Zend Extension => 20021010 Debug Build => no Thread Safety => disabled Registered PHP Streams => php, http, ftp, https, ftps, compress.zlib This program makes use of the Zend Scripting Language Engine: Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies Configuration PHP Core Directive => Local Value => Master Value ** End phpinfo() * I only printed out beyond the "config" command since I already placed it.. One thing I noticed in the above output is that it says; Server API => Command Line Interface The issue I have is it seems to work from the command line but not the browser I get a 403 Forbidden You don't have permission to access /hello.php on this server. Apache/1.3.29 Server at wncghost.wncg.net Port 80 I have checked and re-checked my httpd.conf file to be sure it has the "AddHandler" "AddModule" etc lines in it. I have tried to compile with the "-with-apache=" command it too would compile but with the same result. Any help would be greatly appreciated. Regards, Charles Ouellette Email: [EMAIL PROTECTED]
[PHP-INSTALL] which configure
Hi again group, In my previous post I sent how I had configured PHP with apache I am getting a forbidden error in my browser when I test php but it works fine from the command line. All my HTML stuff is just fine. So instead of fixing what I have it may just behoove me to recompile the two programs again. Enclosed is the configure lines I used for both Apache and PHP. Perhaps you all could tell me what is critical and what is not. My Needs: Customer wants to put their shopping cart up written in PHP, I need Oracle 8i support, I need encryption capability and I need SSL. Perhaps someone can tell me if I am compiling a bunch of unnecessary features in, for instance since I am compiling SSL into Apache do I really need to compile it into PHP? Below are my two configure scripts that I used with the exception of the last compile of PHP I changed "--with_apache=" to "-with-apxs" as a loadable module. I'm not sure which will be better but in both cases I have been unsuccessful at getting PHP to work through a browser. Some of you replied to my last post and advised me to change the .php extension to .htm when I did that instead of getting a "Forbidden" error I just got a blank page. Any assistance would be greatly appreciated. If I can have the full function ability of PHP without all the stuff I have configured in it let me know that as well. Thanks in advance. System Info: Sun Sparc running Solaris 8 Oracle 8i Libmcrypt-2.5.7 Apache 1.3.29 Openssl 0.9.7c Php 4.3.8 Libpng 1.2.5 Libtool-1.5.2 Mod_perl 1.29 Perl v5.8.0 Ncurses 5.4 Curl 7.11.0 Mod-ssl 2.8.16-1.3.29 Plus I have Bison, make, automake, flex, gcc, m4, autoconf, gzip, tar, sed installed. *** Begin Configure PHP ./configure --prefix=/usr/local/php \ --with-config-file-path=/usr/local/php/lib \ --with-apache=../apache_1.3.29 \ --enable-pcntl \ --enable-ftp \ --with-oci8=/hosting/u01/app/oracle/product \ --with-oracle=/hosting/u01/app/oracle/product \ --with-mcrypt=/usr/local/libmcrypt/lib \ --with-openssl=/usr/local/openssl \ --enable-discard-path \ --enable-fastcgi \ --enable-bcmath \ --enable-calendar \ --with-curl=/usr/local/curl \ --with-curlwrappers \ --enable-ctype \ --enable-exif \ --with-ncurses=/usr/local/include/ncurses \ --enable-sysvsem \ --enable-sysvshm \ --enable-sysvmsg \ --enable-shmop \ --enable-sockets \ --enable-sigchild \ --with-jpeg-dir=/opt/sfw/lib/gimp/1.0/plug-ins/jpeg \ --with-zlib-dir=/usr/local/zlib \ --with-gd \ --enable-gd-native-ttf \ --enable-gd-jis-conv \ --with-png-dir=/opt/sfw/lib/gimp/1.0/plug-ins/png *** End Configure PHP *** ** Begin Configure Apache * SSL_BASE=SYSTEM CFLAGS1='-DEAPI' \ ./configure --prefix=/usr/apache \ --with-layout=Solaris \ --enable-module=ssl \ --enable-shared=ssl \ --disable-rule=SSL_COMPAT \ --enable-rule=SSL_SDBM \ --enable-rule=SSL_EXPERIMENTAL \ --enable-rule=SSL_VENDOR \ --enable-rule=SHARED_CORE \ --enable-suexec \ --suexec-caller=nobody \ --enable-module=so \ --enable-module=rewrite \ --enable-shared=rewrite \ --enable-module=most \ --enable-shared=max \ --with-perl=/usr/bin/perl \ --activate-module=src/modules/perl/libperl.a \ --enable-module=perl \ --add-module=../php-4.3.8 --activate-module=src/modules/php4/libphp4.a \ --enable-module=php4 End Configure Apache *** Charles Ouellette PH: (407) 297-5898 FX: (407) 299-7514 Email: [EMAIL PROTECTED]
RE: [PHP-INSTALL] Fwd: HELP PLEASE...
If you run just phpinfo(); do you get anything? -Original Message- From: Fazal Miah [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 23, 2005 6:25 AM To: php-install@lists.php.net Subject: [PHP-INSTALL] Fwd: HELP PLEASE... Hi, Im quite new to PHP, so not sure if this is just a PHP problem or a mysql problem. I had managed to set everything up fine, and have tested most of the general setups to see if it works e.g. writing PHP scripts to access data from MySQL. But I was having problems with a particular script (AddContent.php - enclosed above) the problem was that nothing happened after the form was submitted and all that happened was the form was just redisplayed again. In the process of debugging this I somehow managed to make things worse, now no oupput is displayed at all when I load the script, not even the form which is really strange. I think I might have accidentally changed somthing in php.ini files but i cant be sure. Now most of my other scripts display no output at all even though they previously worked(some are attached). Im using PHP5, MySQL server 4.1 Apache 2.0 on WindowXP and im running apache as a module. Please help, I have my project due in two weeks. Faze.
RE: [PHP-INSTALL] Connection to mySQL
What errors are you getting? If you're having a problem connecting with an error like: Warning: mysql_connect(): Client does not support authentication protocol requested by server This is a problem with PHP 4.X.X and MySQL 4.1+ you have to login to MySQL and use the "OLD_PASSWORD" feature. IE: SET PASSWORD FOR 'user@'host' = OLD_PASSWORD('user_password'); Cheers Chuck -Original Message- From: Calvin Jien [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 3:28 PM To: php-install@lists.php.net Subject: [PHP-INSTALL] Connection to mySQL I read all the help files for php and mysql but I just don't get it. What do I need to do to get my php to talk to the mysql server? Right now I have the mysql server installed and running. The build-in option for mysql for php, what does it do? if php have this builded in do I even need the mysql server then? I keep hearing you have to edit two files to make mysql work in php but I don't find them, can you give me the full dir of where they are located and what do I put in the files. This is the only thing I'm missing for my server. please HELP!!! -- Calvin Jien ___ International Ring of Spies, Agape Fellowship, VBS (Site) is powered by Calvin INC. An International Company. A leader in site development.
[PHP-INST] undefined function
Fatal error: Call to undefined function: ora_logon() in /var/www/html/St I did the standard install from RH - what did I miss? Chuck [EMAIL PROTECTED] -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-INST] php installation problem "ld: fatal: Symbol referencing errors."
Hi, I am having a problem installing php/mysql/apache on a solaris 8 box. I get the following error during the configure stage of php that i expect this might have an obvious reason to someone with more gcc configuration knowledge. I have looked at the mysql and php sites for similar problems and followed all the ./configure recommended options and still see this problem. Any help would be appreciated. the mysql install appears to run fine. i'm using gcc 2.95.3 thanks, -chuck debug.log -- CONFIGURE: './configure' '--prefix=/opt/php-4.0.6' '--with-apache=/tmp/apache_1.3.22' '--with-config-file-path=/opt/php-4.0.6' '--with -mysql=/opt/mysql-3.23.43' '--enable-trans-sid' '--enable-inline-optimization' CC: gcc CFLAGS: -O3 -mcpu=v8 -Wa,-xarch=v8plusa CPPFLAGS:-D_POSIX_PTHREAD_SEMANTICS -DSUPPORT_UTF8 CXX:gcc CXXFLAGS: -O3 -felide-constructors -fno-exceptions -fno-rtti -mcpu=v8 -Wa,-xarch=v8plusa INCLUDES:-I/tmp/apache_1.3.22/src/include -I/tmp/apache_1.3.22/src/os/unix -I$(top_builddir)/Zend -I/opt/mysql-3.23.43/include/mysq l LDFLAGS: -R/usr/ucblib -L/usr/ucblib -R/opt/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 -L/opt/gcc-2.95.3/lib/gcc-lib/sparc-s un-solaris2.8/2.95.3 -R/opt/mysql-3.23.43/lib/mysql -L/opt/mysql-3.23.43/lib/mysql LIBS: -lmysqlclient -lcrypt -lresolv -lresolv -lresolv -lm -ldl -lnsl -lsocket -lsocket -lgcc DLIBS: SAPI: apache PHP_RPATHS: /usr/ucblib /opt/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 /opt/mysql-3.23.43/lib/mysql uname -a: SunOS rock 5.8 Generic_108528-07 sun4u sparc SUNW,Ultra-2 gcc -o conftest -O3 -mcpu=v8 -Wa,-xarch=v8plusa -D_POSIX_PTHREAD_SEMANTICS -DSUPPORT_UTF8 -R/usr/ucblib -L/usr/ucblib -R/opt/gcc-2.95. 3/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 -L/opt/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 -R/opt/mysql-3.23.43/lib/mysql -L/op t/mysql-3.23.43/lib/mysql conftest.c -lmysqlclient -lcrypt -lresolv -lresolv -lresolv -lm -ldl -lnsl -lsocket -lsocket -lgcc 1>&5 Undefined first referenced symbol in file uncompress /opt/mysql-3.23.43/lib/mysql/libmysqlclient.so compress /opt/mysql-3.23.43/lib/mysql/libmysqlclient.so ld: fatal: Symbol referencing errors. No output written to conftest collect2: ld returned 1 exit status __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-INST] php installation problem "ld: fatal: Symbol referencing errors."
Hi, I am having a problem installing php/mysql/apache on a solaris 8 box. I get the following error during the configure stage of php that i expect this might have an obvious reason to someone with more gcc configuration knowledge. I have looked at the mysql and php sites for similar problems and followed all the ./configure recommended options and still see this problem. Any help would be appreciated. the mysql install appears to run fine. i'm using gcc 2.95.3 thanks, -chuck __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com debug.log -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-INST] undefined func for ora_logon
Ok, I'm missing a step somewhere. I've created a very simple php file that contains: $n = ora_logon ("bill@snoppy", "secret"); and I get undefined functio: ora_logon .. what have I missed? Thanks Chuck [EMAIL PROTECTED] -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]