[PHP-INST] newbie question blank page
Hi there Just manage to install RedHat 8 on a server and as soon as I load a php script to in the page is blank. I have added AddType application/x-httpd .php in the httpd.conf file but this still doesn't work Any help would be appreciated Regards Marcus == This message contains information intended for the perusal, and/or use (if so stated), by the stated addressee(s) only. The information is confidential and privileged. If you are not an intended recipient, do not peruse, use, disseminate, distribute, copy or in any manner rely upon the information contained in this message (directly or indirectly). The sender and/or the entity represented by the sender shall not be held accountable in the event that this prohibition is disregarded. If you receive this message in error, notify the sender immediately by e-mail, fax or telephone representations contained in this message, whether express or implied, are those of the sender only, unless that sender expressly states them to be the views or representations of an entity or person, who shall be named by the sender and who the sender shall state to represent. No liability shall otherwise attach to any other entity or person. ==
php-install Digest 6 Jan 2003 08:44:47 -0000 Issue 1188
php-install Digest 6 Jan 2003 08:44:47 - Issue 1188 Topics (messages 9564 through 9567): CGI and php_admin_value in virutalhost 9564 by: Perroud Benoit Problem with PHP-4.3.0 / Sablot 9565 by: dtuecks.gmx.net Xitami with PHP 9566 by: Brian Ross newbie question blank page 9567 by: Marcus Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- --- Begin Message --- Hi I feel bad... Now my php as cgi is working, but I can't use the php_admin_value and php_admin_flag in the httpd.conf... I used the http://www.localhost.nl/patches to patch apache to suexec my php... I would be very pleased if someone could help me to configure apache suexec php as cgi with virtualhosts... I'm desperate... Thanks Regards, Benoit. -- "Le possible est déjà fait, l'impossible je le fais de suite, pour les miracles, prière de prévoir un délai" --- End Message --- --- Begin Message --- Hello , Trying to setup linux/apache1.3.27/php4.3.0 with Sablot, my php exits during the make process: /usr/local/lib/libsablot.so: undefined reference to `operator new[](unsigned)' /usr/local/lib/libsablot.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info' /usr/local/lib/libsablot.so: undefined reference to `operator delete(void*)' /usr/local/lib/libsablot.so: undefined reference to `__gxx_personality_v0' /usr/local/lib/libsablot.so: undefined reference to `__cxa_pure_virtual' /usr/local/lib/libsablot.so: undefined reference to `vtable for __cxxabiv1::__class_type_info' /usr/local/lib/libsablot.so: undefined reference to `operator delete[](void*)' /usr/local/lib/libsablot.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info' /usr/local/lib/libsablot.so: undefined reference to `operator new(unsigned)' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1´ This seems to be a common problem but I cannot solve it.. I have tried Sablot 0.97, 0.96, the patch 0.96.1 and the "LDFLAGS=' -lstdc++' ./configure"-thing. I'm using expat 1.95.5 and libiconv-1.8, both in /usr/local/ . The installation of expat, Sablot and libiconv completed without any errors. (gcc-3.2.1 / glibc-2.3.1). This is my php config: ./configure --with-apxs=/usr/local/apache/1.3.27/bin/apxs --with-iconv=/usr/local --with-expat=/usr/local --with-mysql=/usr/local/mysql/3.23.53a --with-pgsql=/usr/local/pgsql/7.3.1 --enable-track-vars --with-openssl=/usr/local/ssl --with-imap=/usr/local/imap --with-gd --enable-ftp --enable-sysvsem --enable-sysvshm --enable-sockets --with-pdflib=/usr/local --with-gettext --with-mm=/usr/local/mm/1.2.2 --with-jpeg-dir=/usr/lib --with-zlib-dir=/usr/local --enable-xslt --with-xslt-sablot -- Best regards, DTuecks mailto:[EMAIL PROTECTED] --- End Message --- --- Begin Message --- I put php.ini in the c:\windows folder like it says and disable cgi.force_redirect in order to get it to work with Xitami but for some reason it still says that cgi.force_redirect is enabled and that "Security Alert! The PHP CGI cannot be accessed directly." I think this is a fairly simple question, I'm just not seeing it. Thanks. --- End Message --- --- Begin Message --- Hi there Just manage to install RedHat 8 on a server and as soon as I load a php script to in the page is blank. I have added AddType application/x-httpd .php in the httpd.conf file but this still doesn't work Any help would be appreciated Regards Marcus == This message contains information intended for the perusal, and/or use (if so stated), by the stated addressee(s) only. The information is confidential and privileged. If you are not an intended recipient, do not peruse, use, disseminate, distribute, copy or in any manner rely upon the information contained in this message (directly or indirectly). The sender and/or the entity represented by the sender shall not be held accountable in the event that this prohibition is disregarded. If you receive this message in error, notify the sender immediately by e-mail, fax or telephone representations contained in this message, whether express or implied, are those of the sender only, unless that sender expressly states them to be the views or representations of an entity or person, who shall be named by the sender and who the sender shall state to represent. No liability shall otherwise attach to any other entity or person. == --- End Message ---
Re: [PHP-INST] newbie question blank page
Check the source of hte page in the browser. do u see php code? if no, then something else is wrong. if yes, then check: 1. did u add the loadmodule line into httpd.conf? 2. did u restart apache? If you didnt do either one, or both, do them and try again. Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca - Original Message - From: "Marcus" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 06, 2003 1:36 AM Subject: [PHP-INST] newbie question blank page Hi there Just manage to install RedHat 8 on a server and as soon as I load a php script to in the page is blank. I have added AddType application/x-httpd .php in the httpd.conf file but this still doesn't work Any help would be appreciated Regards Marcus == This message contains information intended for the perusal, and/or use (if so stated), by the stated addressee(s) only. The information is confidential and privileged. If you are not an intended recipient, do not peruse, use, disseminate, distribute, copy or in any manner rely upon the information contained in this message (directly or indirectly). The sender and/or the entity represented by the sender shall not be held accountable in the event that this prohibition is disregarded. If you receive this message in error, notify the sender immediately by e-mail, fax or telephone representations contained in this message, whether express or implied, are those of the sender only, unless that sender expressly states them to be the views or representations of an entity or person, who shall be named by the sender and who the sender shall state to represent. No liability shall otherwise attach to any other entity or person. == -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INST] PHP_SELF
Hi, I am very new to php. I have installed and done some simple scripts for eg. Display 'Hello World', read entries from a database but when I try and put something into a database I get problems. I use $PHP_SELF in the script but when I open it I get the following error:- Notice: Undefined variable: PHP_SELF in c:\inetpub\wwwroot\phptest5.php on line 9 I think it might have to do something with my installation. I am running the cgi version. Thanks, Eugene
Re: [PHP-INST] PHP_SELF
if you are using a version of php later then 4.1, try $_SERVER['PHP_SELF']. hth jeff "Eugene Wolff" <[EMAIL PROTECTED] To: <[EMAIL PROTECTED]> o.za>cc: Subject: [PHP-INST] PHP_SELF 01/06/2003 07:48 AM Hi, I am very new to php. I have installed and done some simple scripts for eg. Display 'Hello World', read entries from a database but when I try and put something into a database I get problems. I use $PHP_SELF in the script but when I open it I get the following error:- Notice: Undefined variable: PHP_SELF in c:\inetpub\wwwroot\phptest5.php on line 9 I think it might have to do something with my installation. I am running the cgi version. Thanks, Eugene -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INST] New Problem
Hi, I have the following script. When I open it says: Notice: Undefined variable: submit in c:\inetpub\wwwroot\phpTest9.php on line 4 Although the input boxes all show fine. Obviously it does not do the first part of the code because ($submit) is not equal to true. First name: Last name: CellPhone: Home phone: Thanks again Eugene
[PHP-INST] help how to execute exec
hi ppl i am using apache on redhat linux. i am making a script of change password in qmail. for that reason i am using system and exec command to execute that command /home/vpopmail/bin/vadduser and vpasswd and that files has 755 permission with vpopmail user and vchkpw Group. when i use exec function ,it give me illegal user name system("/home/vpopmail/bin/vpasswd $SESSION_USER_NAME $new_pass") so how i do it if i want to use linux sudo command then i use it , any body have idea. thanks zafar -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-INST] New Problem
Hi Well... If you look at your script, you'll see that you are trying to test on $submit, the 'problem' is that you have not defined $submit, not as a local var and not as a var from eg a URL, in other words: You are trying to test on something that you have not yet defined - IMHO 'sloppy' code. You can however remove the error message by using the error_reporting() or change error_reporting in the php.ini, but the best solution is to either test if the var isset or define and assign it before using it ! eg: if(isset($submit) && $submit === true) { } Best Steen "Eugene Wolff" <[EMAIL PROTECTED]> wrote: > Hi, > > I have the following script. When I open it says: > > Notice: Undefined variable: submit in > c:\inetpub\wwwroot\phpTest9.php on > line 4 > Although the input boxes all show fine. Obviously it does > not do the > first part of the code because ($submit) is not equal to > true. > > > > if ($submit){ > //Process form > $db = mysql_connect("eugene","root"); > mysql_select_db("mydetailsonline",$db); > $sql="insert into employees > (first_name,last_name,cell_phone,home_phone) values > ('$first_name','$last_name','$address','$position')"; > $result=mysql_query($sql); > echo "Thank you! information entered.\n"; > }else{ > //display form > ?> > > First name: > Last name: > CellPhone: > Home phone: > > > } //end if > ?> > > > > Thanks again > > Eugene -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-INST] New Problem
Hello, "Eugene Wolff" <[EMAIL PROTECTED]> wrote: > Hi, > > I have the following script. When I open it says: > > Notice: Undefined variable: submit in c:\inetpub\wwwroot\phpTest9.php > on line 4 Although the input boxes all show fine. Obviously it does > not do the first part of the code because ($submit) is not equal to > true. > > > if ($submit){ Try if ($_POST['submit']){ instead. I think the problem is about "register_globals"--discussed a lot in PHP- GENERAL. Check the manual for more info: http://www.php.net/manual/en/language.variables.predefined.php# language.variables.superglobals or, just check the archives: http://marc.theaimsgroup.com/?l=php-general&w=2&r=1&s=register_ globals&q=b HTH, - E ...[snip]... __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-INST] New Problem
the real problem though, based on your previous post is that you are not using the correct varaible. It should be $_POST['submit']; and yes, you should test for it, using isset or somthing similar like check out the section of the manual on register_globals. yours is set to off. if ($_POST['submit] == 'Enter information') { some stuff } hth jeff "Steen Rabol" <[EMAIL PROTECTED] To: "Eugene Wolff" <[EMAIL PROTECTED]> ele.dk> cc: [EMAIL PROTECTED] Subject: Re: [PHP-INST] New Problem 01/06/2003 09:17 AM Hi Well... If you look at your script, you'll see that you are trying to test on $submit, the 'problem' is that you have not defined $submit, not as a local var and not as a var from eg a URL, in other words: You are trying to test on something that you have not yet defined - IMHO 'sloppy' code. You can however remove the error message by using the error_reporting() or change error_reporting in the php.ini, but the best solution is to either test if the var isset or define and assign it before using it ! eg: if(isset($submit) && $submit === true) { } Best Steen "Eugene Wolff" <[EMAIL PROTECTED]> wrote: > Hi, > > I have the following script. When I open it says: > > Notice: Undefined variable: submit in > c:\inetpub\wwwroot\phpTest9.php on > line 4 > Although the input boxes all show fine. Obviously it does > not do the > first part of the code because ($submit) is not equal to > true. > > > > if ($submit){ > //Process form > $db = mysql_connect("eugene","root"); > mysql_select_db("mydetailsonline",$db); > $sql="insert into employees > (first_name,last_name,cell_phone,home_phone) values > ('$first_name','$last_name','$address','$position')"; > $result=mysql_query($sql); > echo "Thank you! information entered.\n"; > }else{ > //display form > ?> > > First name: > Last name: > CellPhone: > Home phone: > > > } //end if > ?> > > > > Thanks again > > Eugene -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INST] Apache PHP under Linux
Hi. I've installed Apache 1.3.27 and PHP 4.3.0 on RedHat Linux 8.0. These are the steps I've done. Apache: # ./configure enable-module=so # make # make install # httpd -l to verify the presence of http_core.c e mod_so.c in /usr/local/apache/conf/httpd.conf: 1.modify DocumentRoot 2.modiffy User e Group 3.modify ServerName PHP: #./configure with-apxs #make #make install I verify in /usr/local/apache/conf/httpd.conf the presence of: LoadModule php4_module libexec/libphp4.so I add AddType application/x-httpd-php .php in httpd.conf I copy the original php.ini-dist in /usr/local/lib/php.ini I restart httpd. After that, when I open a HTML page containing a minimal PHP script, I can see any output at all. I've tried:
echo 'Hello world';
.
print('Hello world');
. Command line PHP interpreter works fine. #lsof tells me that httpd is using libphp4.so. I can't undestand where is my mistake. Thanks for any help or idea. Marco. -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-INST] newbie question blank page
Hello, "Marcus" <[EMAIL PROTECTED]> wrote: > Hi there Just manage to install RedHat 8 on a server and as soon as I > load a php script to in the page is blank. Blank? No nothing? No errors? How about the (generated) source code? (View -> Source in your browser) Use something simple for checking. Like: and see what happens... > I have added > AddType application/x-httpd .php > in the httpd.conf file but this still doesn't work I don't think you really need this. When I installed RH8, all I had to do was to start Apache and voila! I could run and see the result of phpinfo() I mentioned above. - E ...[snip]... __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INST] help needed: Call to undefined function: mssql_connect()
Hi there, Hope someone can help me with this. I need to connect to a MS SQL database but my attemps fail once and again. This is the error message I get when try to connect: Fatal error: Call to undefined function: mssql_connect() in /var/www/htdocs/DB_conn.php on line 8 The script is very simple: Now, this is the info I can provide: 1) PHP version 4.3.0-dev 2) phpinfo shows: './configure' '--prefix=/usr/local' '--enable-module=so' '--with-mod_charset' '--enable-sockets' '--enable-memory-limit' '--with-sybase=/usr/local/freetds' 3) Of course, freetds is located at /usr/local/freetds and works properly. It was tested using tsql -H -p -U and it's ok. 4) I also tried adding #!/usr/local/bin/php to try it as a shell scripting thing and it WORKS! Which is very confusing. 5) php.ini shows: [MSSQL] ; Allow or prevent persistent links. mssql.allow_persistent = On ; Maximum number of persistent links. -1 means no limit. mssql.max_persistent = -1 ; Maximum number of links (persistent+non persistent). -1 means no limit. mssql.max_links = -1 ; Minimum error severity to display. mssql.min_error_severity = 10 ; Minimum message severity to display. mssql.min_message_severity = 10 ; Compatability mode with old versions of PHP 3.0. mssql.compatability_mode = Off ; Valid range 0 - 2147483647. Default = 4096. ;mssql.textlimit = 4096 ; Valid range 0 - 2147483647. Default = 4096. ;mssql.textsize = 4096 ; Limits the number of records in each batch. 0 = all records in one batch. ;mssql.batchsize = 0 ; Use NT authentication when connecting to the server mssql.secure_connection = Off ; Specify max number of processes. Default = 25 ;mssql.max_procs = 25 I have no idea what the problem is; any help will be much appreciated. -Paula mail2web - Check your email from the web at http://mail2web.com/ . -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-INST] help needed: Call to undefined function: mssql_connect()
Hello, I don't use MSSQL so I could be wrong. Anyway, let me try ;) "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi there, > > Hope someone can help me with this. > I need to connect to a MS SQL database but my attemps fail once and > again. > This is the error message I get when try to connect: > > Fatal error: Call to undefined function: mssql_connect() in > /var/www/htdocs/DB_conn.php on line 8 > > The script is very simple: > > > $hostname = "10.0.0.206:1433"; > $username = "sa"; > $password = ""; > $dbName = "dbname_here"; > > $idLink = mssql_connect($hostname,$username,$password) or die(" > DATABASE > FAILED TO RESPOND."); > mssql_select_db($dbName) or die("Table unavailable"); > > ?> > > Now, this is the info I can provide: > > 1) PHP version 4.3.0-dev > > 2) phpinfo shows: > './configure' > '--prefix=/usr/local' > '--enable-module=so' > '--with-mod_charset' > '--enable-sockets' > '--enable-memory-limit' > '--with-sybase=/usr/local/freetds' Perhaps, because you don't have --with-mssql=/path/ here? Installation The MSSQL extension is enabled by adding extension=php_mssql.dll to php.ini. To get these functions to work, you have to compile PHP with --with- mssql=[DIR], where DIR is the FreeTDS install prefix. > 3) Of course, freetds is located at /usr/local/freetds and works properly. > It was tested using tsql -H -p -U and it's ok. > > 4) I also tried adding #!/usr/local/bin/php to try it as a shell scripting > thing and it WORKS! Which is very confusing. Well, you can actually have two *different* versions of php so it's possible that they were compiled in different ways... - E ...[snip]... __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INST] Problem - Apache & PHP
Dear All, I have a problem with running PHP in modular form as I want to store the global PHP_AUTH_USER which i can not use in the cgi version. When i run .php3 files it just displays the php files as such. And also I am unable to run the cgi files on the apache. Can any one help me. regards, RS - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Re: [PHP-INST] help needed: Call to undefined function: mssql_connect()
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Yeah, I'm sure I have two different versions compiled, the one working > as a module is the one that fails. Regarding hp_mssql.dll, isn't that > necessary only for Windows? I'm running everything on a Linux server. Yes, that one is only for Windows... > I'll try the with-mssql thing. This should be it :) - E ...[snip]... __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INST] Creating an extra library
Hi all, this question may have been asked a couple of times already, unfortunately I can't find the answer. I have a complete PHP-webserver system up and running, based on a standard redhat PHP distribution. The only thing that is missing are the XSLT funtions. I managed to build php on a different system with xslt enabled, but then again it lacks all the nice standard features that come with the redhat distribution. The thing I would like to do is to build "xslt.so" so I can add it to the existing setup. I know it should be possible since this is the way RedHat distributes additional libraries. Unfortunately it's not clear to me how to build these "so" files or how to add them to a setup. Any help on this would be greatly appreciated. -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-INST] Creating an extra library
Hello, "Tom Vandeplas" <[EMAIL PROTECTED]> wrote: > Hi all, > > this question may have been asked a couple of times already, > unfortunately I can't find the answer. > > I have a complete PHP-webserver system up and running, based on a > standard redhat PHP distribution. The only thing that is missing are > the XSLT funtions. I managed to build php on a different system with > xslt enabled, but then again it lacks all the nice standard features > that come with the redhat distribution. Well, how did you build it on the "other" system? You can just do the same on your redhat server. If you want "all the nice standard features", perhaps you can do something like this: First, check phpinfo() on both servers--esp. the part how each was configure. Then, install php using a *combined* setting for ./configure -- It could work... ...[snip]... __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-INST] Creating an extra library
Hi, the reason I believe I can't do a configure on the "real" server is because I don't have all the source files (or object files) for the options currently installed. So I did a new build with a minimum configuration (basically only xslt) of a different server. I expected to get xslt.so in the modules directory, but it's wasn't anywhere in the build tree. Is it maybe an option to build shared libs? (I thought it was the default). My next step would have been to copy over this xslt.so file the the other server and add it in php.ini. "- Edwin" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > "Tom Vandeplas" <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > this question may have been asked a couple of times already, > > unfortunately I can't find the answer. > > > > I have a complete PHP-webserver system up and running, based on a > > standard redhat PHP distribution. The only thing that is missing are > > the XSLT funtions. I managed to build php on a different system with > > xslt enabled, but then again it lacks all the nice standard features > > that come with the redhat distribution. > > Well, how did you build it on the "other" system? You can just do the > same on your redhat server. > > If you want "all the nice standard features", perhaps you can do > something like this: > > First, check phpinfo() on both servers--esp. the part how each was > configure. Then, install php using a *combined* setting for ./configure > -- > > It could work... > > ...[snip]... > > __ > Do You Yahoo!? > Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INST] 'Server API' is different than expected...
Hi Folks, I'm new on this list, (just joining today) so I need a little help with the basics. First off, is there a way that I can review the questions already asked during the past few days to see if my problem has been addressed already? Second, I've installed the Windows Binary PHP Version 4.1.0 and when I checked the info file using the script : everything came back great except that I was expecting to see the 'Server API' read ISAPI, and it is in fact 'CGI'. Can someone tell me how this affects my ability to write PHP to use html forms for inserting data into MYSQL tables, if it does? And if it does, how do I adjust it? All help gratefully accepted. Thanks Dick Griffin -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-INST] Problem - Apache & PHP
Reetu Singh wrote: I have a problem with running PHP in modular form as I want to store the global PHP_AUTH_USER which i can not use in the cgi version. When i run .php3 files it just displays the php files as such. And also I am unable to run the cgi files on the apache. Can any one help me. Look in /etc/httpd/conf/httpd.conf for the AddType line for php. It probably only has ".php" at the end. If you want files ending in ".php3" to also be sent to php you will have to add that extension onto the end of that line. Don't forget to restart Apache. HTH Chris -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-INST] Creating an extra library
"Tom Vandeplas" <[EMAIL PROTECTED]> wrote: > Hi, > > the reason I believe I can't do a configure on the "real" server is > because I don't have all the source files (or object files) for the > options currently installed. If you mean the "real server" is the Redhat server then you should have all that you need after you install Sablotron. In other words, install Sablotron and expat on the RH server if you haven't done yet. Check phpinfo() and see see how the php that came with RH was configured. Then use the same ./configure command *plus* --enable-xslt --with-xslt-sablot and whatever else the manual (under php.net/xslt) says you need... > So I did a new build with a minimum > configuration (basically only xslt) of a different server. I expected > to get xslt.so in the modules directory, but it's wasn't anywhere in > the build tree. Is it maybe an option to build shared libs? (I thought > it was the default). > > My next step would have been to copy over this xslt.so file the the > other server and add it in php.ini. Well, of course, you can try this... We also learn a lot from "trial and error" :) - E ...[snip]... __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INST] Redhat 8 > PHP
I'm trying to get PHP running on RH8- the Apache server is running and it is the newest version available from up2date, does anyone have a url of a good install helper on this? -Matt
[PHP-INST] Apache & PHP
Dear All, I want to use $PHP_AUTH_USER and $PHP_AUTH_PW as global variables so that I can do HTTP authentification. Could any one help me to set this and also let me know how I should go about it. What r the steps I should take to activate this. regards, RS - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
[PHP-INST] Compile php 4.3.0 under Mac OS X 10.2 (darwin) with libmcrypt
I did compile php 4.1.x and 4.2.x successfully with this configure line (with the libtool of 4.0.6 and a few tweeks, but it compiled well). But now, with 4.3.0, I can't even configure... Here's my configure line : ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql --with-fbsql --with-xml --enable-ftp --with-zlib --with-zlib-dir=../zlib --with-png --with-png-dir=../libpng-1.2.0 --with-jpeg --with-jpeg-dir=../jpeg-6b --with-gd --enable-track-vars --enable-trans-id I tried with the built-in gd, and it compiled and work without a hitch, even without using the libtool of 4.0.6 or any other tweeks I had done in the past. I got a couple of warnings at the end, but it compiled well. But if I add --with-mcrypt to the configure line, I get : checking for mcrypt support... yes checking for mcrypt_module_open in -lmcrypt... no checking for init_mcrypt in -lmcrypt... no configure: error: Sorry, I was not able to diagnose which libmcrypt version you have installed. config.log : (...) char init_mcrypt(); int main() { init_mcrypt() ; return 0; } libmcript-2.5.5 is installed in /usr/local and I tried with --with-mcrypt=/usr/local or --with-mcrypt=../libmcrypt-2.5.5, and nothing would do... Any hints ? Nicolas Ross -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-install Digest 7 Jan 2003 01:30:26 -0000 Issue 1189
php-install Digest 7 Jan 2003 01:30:26 - Issue 1189 Topics (messages 9568 through 9590): Re: newbie question blank page 9568 by: Jason Reid 9577 by: - Edwin PHP_SELF 9569 by: Eugene Wolff 9570 by: Jeffrey_N_Dyke.Keane.com New Problem 9571 by: Eugene Wolff 9573 by: Steen Rabol 9574 by: - Edwin 9575 by: Jeffrey_N_Dyke.Keane.com help how to execute exec 9572 by: zafar rizvi Apache PHP under Linux 9576 by: Marcp help needed: Call to undefined function: mssql_connect() 9578 by: paula.nervesane.net 9579 by: - Edwin 9581 by: - Edwin Problem - Apache & PHP 9580 by: Reetu Singh 9586 by: Chris Hewitt Creating an extra library 9582 by: Tom Vandeplas 9583 by: - Edwin 9584 by: Tom Vandeplas 9587 by: - Edwin 'Server API' is different than expected... 9585 by: Dick Griffin Redhat 8 > PHP 9588 by: Matt Babineau Apache & PHP 9589 by: Reetu Singh Compile php 4.3.0 under Mac OS X 10.2 (darwin) with libmcrypt 9590 by: Nicolas Ross Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- --- Begin Message --- Check the source of hte page in the browser. do u see php code? if no, then something else is wrong. if yes, then check: 1. did u add the loadmodule line into httpd.conf? 2. did u restart apache? If you didnt do either one, or both, do them and try again. Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca - Original Message - From: "Marcus" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 06, 2003 1:36 AM Subject: [PHP-INST] newbie question blank page Hi there Just manage to install RedHat 8 on a server and as soon as I load a php script to in the page is blank. I have added AddType application/x-httpd .php in the httpd.conf file but this still doesn't work Any help would be appreciated Regards Marcus == This message contains information intended for the perusal, and/or use (if so stated), by the stated addressee(s) only. The information is confidential and privileged. If you are not an intended recipient, do not peruse, use, disseminate, distribute, copy or in any manner rely upon the information contained in this message (directly or indirectly). The sender and/or the entity represented by the sender shall not be held accountable in the event that this prohibition is disregarded. If you receive this message in error, notify the sender immediately by e-mail, fax or telephone representations contained in this message, whether express or implied, are those of the sender only, unless that sender expressly states them to be the views or representations of an entity or person, who shall be named by the sender and who the sender shall state to represent. No liability shall otherwise attach to any other entity or person. == --- End Message --- --- Begin Message --- Hello, "Marcus" <[EMAIL PROTECTED]> wrote: > Hi there Just manage to install RedHat 8 on a server and as soon as I > load a php script to in the page is blank. Blank? No nothing? No errors? How about the (generated) source code? (View -> Source in your browser) Use something simple for checking. Like: and see what happens... > I have added > AddType application/x-httpd .php > in the httpd.conf file but this still doesn't work I don't think you really need this. When I installed RH8, all I had to do was to start Apache and voila! I could run and see the result of phpinfo() I mentioned above. - E ...[snip]... __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ --- End Message --- --- Begin Message --- Hi, I am very new to php. I have installed and done some simple scripts for eg. Display 'Hello World', read entries from a database but when I try and put something into a database I get problems. I use $PHP_SELF in the script but when I open it I get the following error:- Notice: Undefined variable: PHP_SELF in c:\inetpub\wwwroot\phptest5.php on line 9 I think it might have to do something with my installation. I am running the cgi version. Thanks, Eugene --- End Message --- --- Begin Message --- if you are using a version of php later then 4.1, try $_SERVER['PHP_SELF']. hth jeff "Eugene Wolff" <[EMAIL PROTECTED] To: <[EMAIL PROTECTE
[PHP-INST] problems in the install of php 4.3.0
i have update from php 4.2.3 to php 4.3.0 in the same page sometimes send me this error at the finish of the excecute of the program "Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0" in the old compilation never send this error thank you Rodrigo Glz -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INST] Windows install that is bugging me...
Here are the system specifics.. Windows 2000 server SP3 PHP 4.30 IIS 4 I believe, whatever comes with W2k Server I've installed PHP and set it up as per the instructions... Any file with a .php or .phtml extension works, however when I embed PHP code in to an HTML it either gives a blank page or simply prints all the text... I am using the standard "http://mailplus.yahoo.com -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INST] what is modular form of PH
i new here and i want to know some terms, wht kind of setup if u run php in modular form
[PHP-INST] better description
When I put this code in and save the file as .htm, it gives a blank screen and the php script is shown in the source... I think something isn't set up right... = __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INST] php gd
Hi there any one know of a script/s that allows one to plot 2 points in space. EG X = 4 Y= 10 X ranges from -150 to 0 to 130 increments by 2 Y ranges from -200 to 0 to 200 increments by 2 Regards Marcus Running Redhat 8 complete install --with--gd php 4 apache 2 mysql == This message contains information intended for the perusal, and/or use (if so stated), by the stated addressee(s) only. The information is confidential and privileged. If you are not an intended recipient, do not peruse, use, disseminate, distribute, copy or in any manner rely upon the information contained in this message (directly or indirectly). The sender and/or the entity represented by the sender shall not be held accountable in the event that this prohibition is disregarded. If you receive this message in error, notify the sender immediately by e-mail, fax or telephone representations contained in this message, whether express or implied, are those of the sender only, unless that sender expressly states them to be the views or representations of an entity or person, who shall be named by the sender and who the sender shall state to represent. No liability shall otherwise attach to any other entity or person. ==
[PHP-INST] IMAP and gettext support on MacOS X
Hi, I'm trying to get IMP running on MacOS X 10.2 (Darwin 6.3). IMP requires that apache's PHP module supports mysql, imap and gettext. I can get it to support mysql and gettext, but not imap! I've been going insane trying to get this working. Here are my steps: = GETTEXT = http://mirrors.kernel.org/gnu/gettext/ Downloaded gettext-0.11.5 # setenv LDFLAGS "-lcc_dynamic" # ./configure --enable-shared --disable-static # emacs config.h #define __USER_LABEL_PREFIX__ _ added "const char *program_name;" to avoid unresolved symbols: ./libuniname/test-names.c ./tests/setlocale.c ./tests/tstgettext.c # emacs intl/Makefile removed "-no-undefined" (needed to create libintl.dylib instead of libintl.a) # make # make install = IMAP library = # ftp ftp.cac.washington.edu # zcat pine4.51.tar.Z | tar -xvf - # cd pine4.51 # ./build osx # ln -s . include (otherwise php cant seem to find it) IMAP static library created at c-client/c-client.a. I manually created shared dynamic library, libc-client.dylib # cd c-client # gcc -dynamiclib -flat_namespace -undefined suppress -install_name /usr/local/lib/libc-client.dylib -o libc-client.dylib *.o (actually, i wrote out the .o files in the same order "ar" used) # cp libc-client.dylib /usr/local/lib/libc-client.dylib = PHP with gettext = http://www.php.net Downloaded php-4.2.3 (applied entropy.ch patch)... # lynx -source http://www.entropy.ch/software/macosx/php/php-4.2.3-entropy.ch.patch > patch # ln -s php-4.2.3 php-4.2.3-entropy.ch # cat patch |patch -p0 (that seems to have fixed a few things for MacOS X) # ./configure --with-apxs --with-gettext # emacs ext/gettext/php_gettext.h #define __USER_LABEL_PREFIX__ _ (to avoid unresolved symbols that apache reports when it uses libphp4.so! -it was looking for libintl_gettext instead of _libintl_gettext) # make # make install # ls -l /usr/libexec/httpd/libphp4.so (verified that file is new) # apachectl graceful = PHP with gettext and imap = # ./configure --with-apxs --with-gettext --with-imap=/private/var/root/installs/pine4.51/ --with-imap-ssl # make # make install # apachectl graceful dyld: /usr/sbin/httpd Undefined symbols: _checkpw If I copy the last "gcc" command from the "make" command, and remove "-undefined suppress", I can see that checkpw is unresolved, nm does show that it's in there: # nm libphp4.so |grep -i checkpw 000ef35c T _checkpw I looked back up in the errors, and did see this paragraph: *** Warning: This library needs some functionality provided by -lc-client. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. ...so, I figured maybe I needed to create a shared libc-client.dylib. So, I decided to use libc-client.dylib instead of libc-client.a (static) using the commands shows above (under IMAP section)... I repeated the last "gcc" command to use libc-client.dylib instead. Now, when I "apachectl graceful", it doesnt complain about the checkpw symbol, but now I get: dyld: /usr/sbin/httpd Undefined symbols: _mm_critical _mm_diskerror _mm_dlog _mm_exists _mm_expunged _mm_fatal _mm_flags _mm_list _mm_log _mm_login _mm_lsub _mm_nocritical _mm_notify _mm_searched _mm_status /usr/sbin/apachectl: line 171: 10446 Trace/BPT trap $HTTPD -t I did a search to find these symbols. I managed to recreate the libc-client.dylib to include these symbols by appending "../mailutil/mailutil.o" to: # gcc -dynamiclib -flat_namespace -undefined suppress -install_name /usr/local/lib/libc-client.dylib -o libc-client.dylib *.o Removing "-undefined suppress" and adding all the "-lssl", I confirmed that there were NO unresolved symbols. Now, the test! # apachectl graceful dyld: /usr/sbin/httpd Undefined symbols: (1,17);0;00377;,64,32;must_swap:(1,10),96,32;malloced:(1,18)=*(1,13),128,32;nstrings:(1,19)=(1,20)=r(1,20);0;00377;,160,32;orig_tab:(1,21)=*(1,22)=k(1,23)=xsstring_desc:,192,32;trans_tab:(1,21),224,32;n_sysdep_strings:(1,19),256,32;orig_sysdep_tab:(1,24)=*(1,25)=k(1,26)=xssysdep_string_desc:,288,32;trans_sysdep_tab:(1,24),320,32;hash_size:(1,19),352,32;hash_tab:(1,27)=*(1,28)=k(1,19),384,32;must_swap_hash_tab:(1,10),416,32;codeset_cntr:(1,10),448,32;conv_tab:(1,29)=*(1,30)=*(1,3),480,32;plural:(1,31)=*(1,32)=xsexpression:,512,32;nplurals:(1,17),544,32;; 000;00377;,64
Re: [PHP-INST] better description
Scott, I think you should save your file in yourweb directory and then navigate with your web browser. I have it like this: web directory: /var/www/html/index.htm web browser address: http://localhost/index.php and then start up the web server (httpd). Do you work with Windows or Linux? El Lun 06 Ene 2003 23:43, Scott De Leeuw escribió: > When I put this code in and save the file as .htm, it gives a > blank screen and the php script is shown in the source... I > think something isn't set up right... > > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-INST] readline Error lang/php4 with GD2 Lib
Hello. Thanks for your answer. I had Problems reaching you the second time now, so I write to the list instead. Mailer-Daemon message for <[EMAIL PROTECTED]>: Sorry, I wasn't able to establish an SMTP connection. (#4.4.1) I'm not going to try again; this message has been in the queue too long. As suggested, I tried the following: #make configure --with-gd=/usr/local/ and I chose NOT to install GD2 by checking the box because I have given the parameter on command-line. (If I would check the box, the readline error occurs) [ ] GD2 [x] zlib [x] MySQL [x] XML [x] XSLT [x] DOMXML #make --with-gd=/usr/local/ #make install --with-gd=/usr/local But unfortunately, there is no gd-Library then: #php X-Powered-By: PHP/4.2.3 Content-type: text/html Fatal error: Call to undefined function: imagecreate() in - on line 2 # Do you have any other suggestion I could try? Thanks, Thomas -Ursprüngliche Nachricht- Betreff: Re: [PHP-INST] readline Error lang/php4 with GD2 Lib Why don't you just use the bundled GD2 library by using --with-gd as opposed to --with-gd=whatever ? On Sun, 29 Dec 2002, Thomas Weller wrote: > Hello, > > I wanted to install PHP on a FreeBSD 4.7 system. > > In /usr/ports/lang/php4 I chose the following > options (those I need and the pre-checked ones) > > [x] GD2 > [x] zlib > [x] MySQL > [x] XML > [x] XSLT > [x] DOMXML > > Unfortunately, I got an Error > checking for readline in -lreadline... no > configure: error: readline library not found > ===> Script "configure" failed unexpectedly. > > Then, I installed readline-4.2.tar.gz from > http://cnswww.cns.cwru.edu/~chet/readline/rltop.html > with tar -zxvf readline-4.2.tar.gz, ./configure, > make and make install. No Errors occured during that > installation. > > Again, I tried the FreeBSD port with > make clean > make distclean > make > The readline error is still there. > > It does not occur if I don't want to install GD2. > It uses gd-2.0.1_3, so I think I don't need the patch > for GD version 2.0.8. (And GD 2.0.1 already works fine > as an Apache module) > > Google helped me to find a hint to use --without-readline > to get around the problem. But a make --without-readline > does not help much. Or where else should I use this option? > > Some more information: > uname -v > FreeBSD 4.7-RELEASE #0: Wed Oct 9 15:08:34 GMT 2002 > [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC > I can send the config.log or a 'ls /var/db/pkg'-dump if > needed. -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INST] php mysql
Hi there I've just installed RedHat 8 complete install with php with apache with gd etc when I try and connect to mysql Fatal error: Call to undefined function: mysql_connect() in /var/www/html/phpMyAdmin/lib.inc.php on line 255 Now when I install php-mysql will this affect the already install php that I have with apache with gd with bcmath etc Regards Marcus == This message contains information intended for the perusal, and/or use (if so stated), by the stated addressee(s) only. The information is confidential and privileged. If you are not an intended recipient, do not peruse, use, disseminate, distribute, copy or in any manner rely upon the information contained in this message (directly or indirectly). The sender and/or the entity represented by the sender shall not be held accountable in the event that this prohibition is disregarded. If you receive this message in error, notify the sender immediately by e-mail, fax or telephone representations contained in this message, whether express or implied, are those of the sender only, unless that sender expressly states them to be the views or representations of an entity or person, who shall be named by the sender and who the sender shall state to represent. No liability shall otherwise attach to any other entity or person. ==