Richard Kurth | 1 Jun 2004 03:11

compiling php with mysql ver3 or 4

Hello ,

  How can I compile PHP so that it does not mater what version of
  mysql is installed.
  If I compile it for mysql 3.X and then upgrade mysql to ver 4
  PHP will not install.
  I get error while loading shared libraries: libmysqlclient.so.12: cannot open shared object file

  this is how I am compiling php  It is being compiled into Apache not
  as a DSO

./configure --prefix=/usr/php --with-mysql=/usr/
--with-config-file-path=/usr/conf
 --with-exec-dir=/usr/apache/bin --disable-debug --enable-safe-mode
 --enable-magic-quotes --enable-debugger --enable-track-vars --with-ftp --enable-sockets
 --enable-ftp --with-apache=../apache
make
make install  

-- 
Best regards,
 Richard                          mailto:rdkurth <at> directphp.com

--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Rachel Rodriguez | 1 Jun 2004 03:22
Picon
Favicon

Re: compiling php with mysql ver3 or 4


--- Richard Kurth <rdkurth <at> directphp.com> wrote:
> Hello ,
> 
>   How can I compile PHP so that it does not mater
> what version of
>   mysql is installed.
>   If I compile it for mysql 3.X and then upgrade
> mysql to ver 4
>   PHP will not install.
>   I get error while loading shared libraries:
> libmysqlclient.so.12: cannot open shared object file
> 
>   this is how I am compiling php  It is being
> compiled into Apache not
>   as a DSO
> 
> ./configure --prefix=/usr/php --with-mysql=/usr/
> --with-config-file-path=/usr/conf
>  --with-exec-dir=/usr/apache/bin --disable-debug
> --enable-safe-mode
>  --enable-magic-quotes --enable-debugger
> --enable-track-vars --with-ftp --enable-sockets
>  --enable-ftp --with-apache=../apache
> make
> make install  
> 

I don't have a Linux box where I can test out my
suggestion to you, but here is what you can try:
(Continue reading)

Manuel Lemos | 1 Jun 2004 03:43
Picon
Favicon

Re: Socket w/SSL Issues

Hello,

On 05/31/2004 10:14 AM, Steve Douville wrote:
> PHP is installed without openssl here at pair. I want to make a socket call
> to port 443 on a server and I'm getting an error from fsocketopen() that no
> ssl support is built in, of course. I thought that using "ssl://" might work
> around this, but I guess not. Any ideas for me?

You can try using the support for CURL library or in the worst case try 
using a trusted HTTP proxy that forwards SSL HTTP connections.

You may want to try this class that can be used for what you and uses 
whatever support is available in your PHP environment to establish SSL 
connections:

http://www.phpclasses.org/httpclient

--

-- 

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
(Continue reading)

Manuel Lemos | 1 Jun 2004 03:45
Picon
Favicon

Re: Text Streaming in PHP

On 05/31/2004 04:28 PM, Stephen Lake wrote:
> I know I asked this before a couple of weeks ago, but I need a good swift
> kick in the right direction :D
> 
> I need to know how to do a text stream in PHP.
> I have tried the following:
> 
> while loop with flush and sleep functions
> HTTP/1.1 Connection: Stream (seems to work in the above while loop until you
> post something then its like it stalls completely)
> 
> Are there any other ways?
> I was looking at GTChat lastnight and it mentioned about sending a file
> "line by line" to achieve a server push like effect....anyone know how to do
> this?
> 
> Only way I will consider Java is if it will stream a HTML page and someone
> can point me in a direction to grab one
> 
> Any help in the above questions would be greatly appreciated.

I think you just need to use Keep Alive connections and use PHP flush 
command to stream the text.

You may also want to try this class to create chat channels:

Class: Chat
http://www.phpclasses.org/mydbchat

--

-- 
(Continue reading)

Raj Shekhar | 1 Jun 2004 03:49
Picon

Re: Secure login script

On Mon, 31 May 2004 16:11:07 -0600, René Fournier <m5 <at> renefournier.com> wrote:
> If I MUST learn these two things in order to copy the
> security of the sample script, I will, but is it really necessary in
> your opinion?

Let me see. Will you let a surgeon who does not know how to handle a
scalpel to operate upon you ? It is good to know the tools you are
going to use . You can simply copy paste the code and it might or
might not work. However when some trouble crops up and you have no
idea where to look, you will be in real trouble.

Regards
Raj Shekhar

--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

kill a script...plz help

sorry for asking such questions , ...........
If u all don't have codings for such cases , could u plz direct me with some steps ?
 
Thank u  
 
#################################################

i used this script to run that abc.pl in command prompt. It is perfectly running.
 
<?php
 

//$ExhibitA = shell_exec('/root/whole/abc.pl');
 
// Perfect.
$ExhibitB = shell_exec('env -i /root/whole/abc.pl');
 
?>
* Actually i need to stop that as well ,
i got this result by ps -e
 
1182 pts/0    00:00:00 abc.pl
so , plz help for that ,
 
thank u
 
curlys
--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dustin Krysak | 1 Jun 2004 05:05

Re: drop down menu populated from a directory

Ok - here is the relevant Quicktime code:

<!-- START QUICKTIME CONTENT -->
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" 
width="320" height="256" 
codebase="http://www.apple.com/qtactivex/qtplugin.cab">
   <param name="autoplay" value="true">
   <param name="controller" value="true">
   <param name="pluginspage" 
value="http://www.apple.com/quicktime/download/indext.html">
   <param name="target" value="myself">
   <param name="type" value="video/quicktime">
   <param name="src" value="../../../mov/THElostART.mov">
   <embed src="../../../mov/THElostART.mov" width="320" height="256" 
autoplay="true" controller="true" border="0" 
pluginspage="http://www.apple.com/quicktime/download/indext.html" 
target="myself"></embed>
</object>
<!-- END QUICKTIME CONTENT -->

Now I figure - getting the file name in there would be pretty easy (for 
the most part), but the thing is getting the dimensions of the movie in 
there... as it is possible that not all movies are the same dimensions. 
I am hoping to have just the one PHP that will change dynamically for 
the QT content - I would like to avoid having a php or html file for 
each QT movie.

d

PS - please CC me directly as I am subscribed in digest mode.. thanks 
much!

On 31-May-04, at 3:08 PM, php-general-digest-help <at> lists.php.net wrote:
>
> "Dustin Krysak" <mailinglists <at> digitalcollision.com> wrote in message
> news:8737D427-B32C-11D8-BF29-000A95902366 <at> digitalcollision.com...
>> ok, I added brackets and made my code to:
>>
>> <?php
>> if ($handle = opendir('../../../mov')) {
>>     while (false !== ($file = readdir($handle))) {
>>
>>         if ($file != '.' && $file != '..') {
>>
>>             $fileName = str_replace('.mov', '', $file);
>>             echo '<option value="../../../mov/' . $file . '">' .
>> $fileName . '</option>';
>>         }
>>     }
>>     closedir($handle);
>> }
>> ?>
>>
>> when viewing my page in a browser, it worked! Now what I am hoping to
>> do is put this menu on a PHP page, and have a qt movie placeholder and
>> when this menu is used - replace the placeholder with the selected qt
>> movie... I am just not sure how to do this.
>
> This should be easy. Please post your QT placeholder (HTML) code. Then 
> we
> can help.
>
> Regards, Torsten

--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Ryan A | 1 Jun 2004 06:39

Calender code help

Hey,
Thanks to you guys on the list I have started to tweak the simple calender
which I posted earlier...but have run into problems ;-)
(I didnt go with the PEAR one coz we don't have PEAR installed on all our
shared hosting accounts)

What I am trying to do is, have some dates be clickable (linked) while the
others be normal.
The clickable days will be passed as an array to the function, so far its
working but unfortunatly only the last part of the array is being taken and
all the ones before ignored.
eg:
$linkArray[0] = 3;
$linkArray[1] = 23;
in which case only 23 is being taken in the for loop...which is correct as
its overwring the one before...
(its a bit easier to understand when you see the code, the part enclosed
within the //Ryan and //Ryan is where I added my code...which is not working
;-D  )

You can download the file (around 3kb) from http://php-php.com/test/cal2.txt
and you can see it in action here: http://www.php-php.com/test/cal2.php

Any help appreciated.

Thanks,
-Ryan

--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Ryan Schefke | 1 Jun 2004 06:42

RE: GD Library Upgrade

Any thoughts on this?

I'm working with a host on a Linux box with PHP 4.2.2.  The version of GD
Library they have is 1.8.4.  I was uploading some pictures using a script
that leveraged GD Library 2+.  Using the php version with the newer GD
library seemed to produce a better quality image.  I have two questions:

1 - Can a newer version of GD Library (1.8.4 vs 2+) make a difference in
image quality?

2 - I'd like to upgrade the Linux box that has PHP 4.2.2 and GD Library
1.8.4 to the most recent version.  Is this easy?  Any guidance?  Do I need a
patch?

PS - I've been working off of this site: http://www.boutell.com/gd but
wanted to bounce this around with some experts first.

Jough P | 1 Jun 2004 06:58
Picon

Cannot find MySQL header files under

Greetings, when compiling PHP with the 'with-mysql' option I get an 
warning against using the built-in mysql support.  So, I tried 
'--with-mysql=/path/to/mysql.so and got the following error:
Cannot find MySQL header files under...

What are the names of the mysql header files this message is talking 
about?  If PHP warns against using the built-in support I'd rather use 
these header files.

Thanks!!

--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Gmane