php-install Digest 15 Jan 2003 11:35:36 -0000 Issue 1202
Topics (messages 9694 through 9701):
Re: Embed word, excel and pdf documents
9694 by: William Cheung
9695 by: Stephen Cuppett
Re: PHP 4.3 Upgrade on redhat 8
9696 by: Jeanne Case
4.2.3 and 4.3.0 - bus error w/ apache 1.3.27/mod_ssl and squirrelmail 4.0
9697 by: Brian C. Hill
Re: phpinfo() still shows 4.2.2 after 4.3 install
9698 by: Sudiarsa Imade
9699 by: Alan W. Rateliff, II
9700 by: Jason Reid
make error
9701 by: Eicke Felipe
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 ---
There are other information in the web page before the PHP code. I didn't
use ob_start(). Should I use it before the header() function? Will it allow
me to change header information then?
William
-----Original Message-----
From: Naqashzade, Sadeq [mailto:[EMAIL PROTECTED]]
Sent: January 13, 2003 9:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Re: Embed word, excel and pdf documents
Hi,
Did you send any things for output before use Header() or not? if you do
this did you used ob_start() or not?
-Sadeq
"William Cheung" <[EMAIL PROTECTED]> wrote in message
001001c2bb2b$dd7b0510$[EMAIL PROTECTED]">news:001001c2bb2b$dd7b0510$[EMAIL PROTECTED]...
I have stored Word, Excel and PDF documents in a database. Now I am trying
to retrieve the documents from the database using PHP and embed them onto an
html web page. I don't want to use hyperlink. The documents will be
displayed on the web page along with other information. When I use header()
function to specify the type of document I want to display in PHP. I got the
error saying that I can't change the header information on a web page. I
tried to set the second parameter of header() to True/False but none help.
What could I do?
William Cheung, B.Sc. MCSE MCDBA
Databyte Corp.
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
There is no way that I am aware to just stop/pause what type of document
you are printing (which if you are embedding, then you have already
started a document of type text/html) and put another document type.
However, there are two types of solutions for this one:
If what you are displaying are images from a database, then you could use
the IMG tag of html with a SRC attribute of something like
"mypage.php?ImgID=239" and then from that PHP page do your image pull from
the database, respond with a header of "image/jpeg" or whatever for that
type of image and then the binary contents.
If, from you message, you are really displaying things like Word/Excel,
PDF, etc. you will need to create an IFRAME or LAYER tag to get another
page onto a page with the page location being "mypage.php?DocID=####" and
then responding with the appropriate header and then outputting the binary
contents.
For either solution, the easiest way is to say to yourself, "How would I
get the particular document type from the filesystem into this HTML page?"
and then just do that, but replace the part where you specify the
filesystem document with your SECOND php page that returns the document
from the database.
"William Cheung" <[EMAIL PROTECTED]> wrote in message
001001c2bb2b$dd7b0510$[EMAIL PROTECTED]">news:001001c2bb2b$dd7b0510$[EMAIL PROTECTED]...
I have stored Word, Excel and PDF documents in a database. Now I am trying
to retrieve the documents from the database using PHP and embed them onto an
html web page. I don't want to use hyperlink. The documents will be
displayed on the web page along with other information. When I use header()
function to specify the type of document I want to display in PHP. I got the
error saying that I can't change the header information on a web page. I
tried to set the second parameter of header() to True/False but none help.
What could I do?
William Cheung, B.Sc. MCSE MCDBA
Databyte Corp.
--
Stephen Cuppett, CEO
WebMasters, Inc.
http://www.webmastersinc.org
[EMAIL PROTECTED]
(814) 571-4987
--- End Message ---
--- Begin Message ---
Luke,
Basically, the SRPMS are just another file format that holds the tar.gz
file. You can either download the SRPMS or just get the tar.gz file from
PHP or Apache and do the compile. So for example you are going to build
apache:
$ su -
# cd /tmp
put the packages here.
# rpm -i apache-1.3.19-5.src.rpm
Extract the tar file which are part of the SRPMS:
# tar -xzvf /usr/src/redhat/SOURCES/apache_1.3.19.tar.gz
After the files have been extracted, a directory is created under /tmp,
namely the package_name_version, for example: apache_1.3.19.
# cd /tmp/apache_1.3.19
# pwd
# ./configure --prefix=/usr/local/apache
# make
# make install
So basically, the SRPMS are just another file format that holds the
tar.gz file.
To install Apache with PHP support see the following doc:
http://www.redhat.com/support/resources/howto/howtophp.pdf
to install Apache, PHP and MySQL see Permaine Chung's article, just
subsitute MySQL for the Redhat Database:
http://www.redhat.com/support/resources/howto/database/database_php/
It really isn't hard once you have gone through it. The important thing
to remember is to have a gcc complierer in your path.
-Jeanne
Luke Woollard wrote:
Hello,
Can anybody help with an upgrade of PHP4.3 on REDHAT Linux 8 (psyche)?
The system was built via the RPM method.
I cannot find a PHp 4.3 RPM anywhere and I don't know how to compile an RPM
from
source code... Does anybody have one?
Apache Version: Apache/1.3.23
Mysql Version: 3.23.49P
Postgresql Version 7.3.1
This is my current configure command which I would like to replicate:
'./configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib'
'--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc'
'--enable-force-cgi-redirect' '--disable-debug' '--enable-pic'
'--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3'
'--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd'
'--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext'
'--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr'
'--with-mm' '--with-openssl' '--with-png' '--with-pspell'
'--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib'
'--with-layout=GNU' '--enable-bcmath' '--enable-debugger' '--enable-exif'
'--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode'
'--enable-sockets' '--enable-sysvsem' '--enable-sysvshm'
'--enable-discard-path' '--enable-track-vars' '--enable-trans-sid'
'--enable-yp' '--enable-wddx' '--without-oci8' '--with-imap=shared'
'--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared'
'--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr'
'--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared'
'--enable-memory-limit' '--enable-bcmath' '--enable-shmop'
'--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio'
'--enable-mbstring' '--enable-mbstr-enc-trans' '--with-apxs=/usr/sbin/apxs'
NOTE: apxs is not installed on the system. At least I couldn't find it using
" find / | grep 'apxs' "
I'm not sure where to start and so any help would be appreciated.
Luke Woollard
--
UNIX Systems Administrator
Academic Resources
Library
Saint Mary's College
Moraga, CA
--- End Message ---
--- Begin Message ---
SunOS 5.8/sparc (w/ latest patches)
gcc 3.2 (64-bit)
apache 1.3.27
php 4.2.3 and 4.3.0
I have scoured the web (php mailing lists, interest groups,
google, etc) and see many references to the php module generating
SIGBUS errors. The application is squirrelmail, but depending upon
which options I compiled php with, I couldn't even get apache to start,
which leads me to believe that this a php issue.
Should I try a snapshot or removing all optimization?
Brian
--- End Message ---
--- Begin Message ---
I thought i installed 4.3.0, but when running a page w/phpinfo()
>>>it still
>>>shows 4.2.2
>>>How Installed/upgraded to 4.3:
>>>./configure
>>>make
>>>make install
>>>
>>>What did I miss?
>>>
Try this...
make distclean
./configure
make
make install
_________________________________________________________________
ハイセンスな商品を気軽に購入 MSN ショッピング http://shopping.msn.co.jp/
--- End Message ---
--- Begin Message ---
----- Original Message -----
From: "Sudiarsa Imade" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 14, 2003 7:13 PM
Subject: Re: [PHP-INST] Re: phpinfo() still shows 4.2.2 after 4.3 install
> >>>I thought i installed 4.3.0, but when running a page w/phpinfo()
> >>>it still
> >>>shows 4.2.2
> >>>How Installed/upgraded to 4.3:
> >>>./configure
> >>>make
> >>>make install
> >>>
> >>>What did I miss?
> >>>
Something else to check is that you specified the same --prefix as your
current installation. Working between systems with different setups, I've
accidentally installed programs to the wrong directories plenty of times...
as recently as last night.
That's all I got :)
--
Alan W. Rateliff, II : RATELIFF.NET
Independent Technology Consultant : [EMAIL PROTECTED]
(Office) 850/350-0260 : (Mobile) 850/559-0100
-------------------------------------------------------------
[System Administration][IT Consulting][Computer Sales/Repair]
--- End Message ---
--- Begin Message ---
Another thing to check is that sometimes the .so file isnt overwriten by the
newly compiled one. I usually rename the existing file before I do a
recompile, that way there is no old file, and still a backup in case
something goes wrong. I've ran into this on several occasions, and this
usually fixes it.
Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca
----- Original Message -----
From: "Alan W. Rateliff, II" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 14, 2003 8:01 PM
Subject: Re: [PHP-INST] Re: phpinfo() still shows 4.2.2 after 4.3 install
> ----- Original Message -----
> From: "Sudiarsa Imade" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 14, 2003 7:13 PM
> Subject: Re: [PHP-INST] Re: phpinfo() still shows 4.2.2 after 4.3 install
>
>
> > >>>I thought i installed 4.3.0, but when running a page w/phpinfo()
> > >>>it still
> > >>>shows 4.2.2
> > >>>How Installed/upgraded to 4.3:
> > >>>./configure
> > >>>make
> > >>>make install
> > >>>
> > >>>What did I miss?
> > >>>
>
> Something else to check is that you specified the same --prefix as your
> current installation. Working between systems with different setups, I've
> accidentally installed programs to the wrong directories plenty of
times...
> as recently as last night.
>
> That's all I got :)
>
> --
> Alan W. Rateliff, II : RATELIFF.NET
> Independent Technology Consultant : [EMAIL PROTECTED]
> (Office) 850/350-0260 : (Mobile) 850/559-0100
> -------------------------------------------------------------
> [System Administration][IT Consulting][Computer Sales/Repair]
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi Folks
The following error appear when I try to make php:
ld: fatal: file /usr/local/db/install/Oracle.9i.rel2/lib/libclntsh.so: wrong ELF
class: ELFCLASS64
ld: fatal: file /usr/local/db/install/Oracle.9i.rel2/lib/libclntsh.so: wrong ELF
class: ELFCLASS64
ld: fatal: File processing errors. No output written to sapi/cli/php
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
My configure is:
./configure --with-apache=/usr/share/apache --with-oracle=/usr/share/oracle
--with-oci8
Could anybody help me?
--- End Message ---