RE: [PHP] problems with 4.1.2 build

2002-03-16 Thread Stephano Mariani

Upgrade binutils?

Stephano Mariani

 -Original Message-
 From: Phil Glatz [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, 16 March 2002 10:30 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] problems with 4.1.2 build
 
 I'm trying to build PHP 4.1.2 with an existing static Apache 1.3.23
 installation, and am having some resolution problems I haven't seen
 before.
 
 This is on a dusty old Free BSD 2.2.2 system, but I was able to build
 4.1.1
 with no problems with the same configuration.  It uses gcc version
2.7.2.1
 --- yes, I know I should upgrade the OS, but since it was able to make
 4.1.1 ok a few weeks ago, I'm guessing that isn't the problem.  I'm
 compiling in postgres and gd support, but have the same problem with
them
 out.
 
 
 I followed the steps (minimal apache, php, fuill apache), running
 configure
 each time and doing a make clean.
 
 During the PHP make I see:
 gcc -I. -I/usr/local/src/php-4.1.2/sapi/apache -I/usr/local/src/php-
 4.1.2/main
 -I/usr/local/src/php-4.1.2 -I/usr/local/src/apache_1.3.23/src/include
 -I/usr/local/src/apache_1.3.23/src/os/unix
-I/usr/local/src/php-4.1.2/Zend
 -I/usr/local/src/php-4.1.2/ext/xml/expat
 -I/usr/local/src/apache_1.3.23/src/include
 -I/usr/local/src/apache_1.3.23/src/os/unix
-I/usr/local/src/php-4.1.2/TSRM
 -g -O2  -c mod_php4.c  touch mod_php4.lo
 In file included from
/usr/local/src/apache_1.3.23/src/include/httpd.h:72,
   from mod_php4.c:32:
 /usr/local/src/apache_1.3.23/src/include/ap_config.h:1386: warning:
 `XtOffsetOf' redefined
 /usr/local/src/php-4.1.2/main/php.h:342: warning: this is the location
of
 the previous definition
 
 I was able to fix this by editing main/php.h and removing the extra
 spaces,
 so the definition was the same as in the other files.
 
 I tried an Apache build, but it gave me:
 === src/modules/php4
 gcc -c  -I../../os/unix -I../../include   -funsigned-char
 -I/usr/local/src/php-4.1.2 -I/usr/local/src/php-4.1.2/main
 -I/usr/local/src/php-4.1.2/main
 -I/usr/local/src/php-4.1.2/Zend -I/usr/local/src/php-4.1.2/Zend
 -I/usr/local/src/php-4.1.2/TSRM -I/usr/local/src/php-4.1.2/TSRM
 -I/usr/local/src/php-4.1.2
 -DUSE_EXPAT -I../../lib/expat-lite `../../apaci` -fpic -DSHARED_MODULE
 mod_php4.c  mv mod_php4.o mod_php4.so-o
 In file included from ../../include/httpd.h:72,
   from mod_php4.c:32:
 ../../include/ap_config.h:1386: warning: `XtOffsetOf' redefined
 /usr/local/src/php-4.1.2/main/php.h:342: warning: this is the location
of
 the previous definition
 rm -f libphp4.so
 gcc -shared -o libphp4.so mod_php4.so-o
 libmodphp4.a  -L/usr/local/src/gd-1.8.4/
 -L/usr/local/postgres/lib  -L/usr/local/src/gd-1.8.4/
 -L/usr/local/postgres/lib -Lmodules/php4 -L../modules/php4
 -L../../modules/php4 -lmodphp4   -lpq -lgd -lcrypt -lbind
 -lm  -lcrypt   -lcrypt
 ld: libmodphp4.a(zend_alloc.o): RRS text relocation at 0x1cd9 for
 _zend_unblock_interruptions
 ld: libmodphp4.a(zend_alloc.o): RRS text relocation at 0x1ccd for
 _alloc_globals
 ld: libmodphp4.a(zend_alloc.o): RRS text relocation at 0x1cc0 for
 _alloc_globals
 
 followed by hundreds of similar errors...
 
 thanks
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




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




RE: [PHP] Selecting a Queried Row

2002-03-09 Thread Stephano Mariani

If you mean what I think you mean:

TDA HREF=somewhere.php?somevar=somethingSome Text (ID?)/A/TD

 -Original Message-
 From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, 10 March 2002 12:13 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Selecting a Queried Row
 
 As a newbie at PHP (and relative newcomer to HTML and web design) I've
 been
 wading through documentation trying to accomplish various tasks.
However,
 I'm
 stumped on how to proceed with the following:
 
 I would like a web vistor to be able to select a row from a table that
has
 been generated from a query. The problem is I don't know how to code a
 paricular column (using the present td . . /td syntax of the
table) so
 that each cell would have a clickable element (perhaps the 'ID'
number).
 
 Once that cell is clicked, I would like to code
'onclick=some_function()'
 
 Does this sound reasable way of approaching the problem, or is there a
 better
 way. [Btw, at present, while learning PHP, I am using
global_variables=on,
 but would like to try $PHP_SELF method to pick up session variables.]
 
 Any help would be greatly appreciated, as well as pointers of where to
 look!
 
 Tia, Andre
 
 
 --
 Please pray the Holy Rosary to end the holocaust of abortion.
 Remember in your prayers the suffering souls in Purgatory.
 
 May God bless you abundantly in His love!
 
 For a free Cenacle Scriptural Rosary Booklet --
 http://www.webhart.net/csrb/
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




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




RE: [PHP] Selecting a Queried Row

2002-03-09 Thread Stephano Mariani

If you mean what I think you mean:

TDA HREF=somewhere.php?somevar=somethingSome Text (ID?)/A/TD

 -Original Message-
 From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, 10 March 2002 12:13 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Selecting a Queried Row
 
 As a newbie at PHP (and relative newcomer to HTML and web design) I've
 been
 wading through documentation trying to accomplish various tasks.
However,
 I'm
 stumped on how to proceed with the following:
 
 I would like a web vistor to be able to select a row from a table that
has
 been generated from a query. The problem is I don't know how to code a
 paricular column (using the present td . . /td syntax of the
table) so
 that each cell would have a clickable element (perhaps the 'ID'
number).
 
 Once that cell is clicked, I would like to code
'onclick=some_function()'
 
 Does this sound reasable way of approaching the problem, or is there a
 better
 way. [Btw, at present, while learning PHP, I am using
global_variables=on,
 but would like to try $PHP_SELF method to pick up session variables.]
 
 Any help would be greatly appreciated, as well as pointers of where to
 look!
 
 Tia, Andre
 
 
 --
 Please pray the Holy Rosary to end the holocaust of abortion.
 Remember in your prayers the suffering souls in Purgatory.
 
 May God bless you abundantly in His love!
 
 For a free Cenacle Scriptural Rosary Booklet --
 http://www.webhart.net/csrb/
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




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




RE: [PHP] What is - mean in php?

2002-03-07 Thread Stephano Mariani

PHP uses - as C++ uses ., since PHP already uses . for strings.

Stephano Mariani

 -Original Message-
 From: Kearns, Terry [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 8 March 2002 12:28 AM
 To: 'S.Murali Krishna'; Jack
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] What is - mean in php?
 
 Because I'm not a hacker on the PHP engine, I don't really know but I
also
 saw this symbol when learning C++ recently. It is used in C++ as a
 shortcut
 to dereferencing and accessing an objects properties/methods on
objects
 which are on the free store (heap). Normally C++ uses the dot operator
to
 access methods/properties (eg. foo.do()), but when the object needs
to
 first be dereferenced, then foo-do() can be used as a shortcut to
 (*foo).do().
 
 Of course, this doesn't help you at all does it :) But I thought it
was an
 interesting connection to C++ and maybe hints at how PHP internally
 manages
 objects. Perhaps it's just a coincidence.
 
 [TK]
 
  -Original Message-
  From: S.Murali Krishna [mailto:[EMAIL PROTECTED]]
  Sent: Monday, 4 March 2002 9:48 PM
  To: Jack
  Cc: [EMAIL PROTECTED]
  Subject: Re: [PHP] What is - mean in php?
 
 
 
  If you have any Object Oriented Programming experience, then
  you may not had asked this. Its a operator to access methods,
  and variables inside a instance of a class , in which the
  variable before - is the instance of the  class and the
  latter is a method or variable of that class. This is what I
  know, if you have any explanatory docs, pls let me know.
 
 
 
  On Mon, 4 Mar 2002, Jack wrote:
 
   Dear all
   There is one symbol in PHP that i always see is -, could
  anyone pls
   tell me what is this, and what does that do? Here is the
  statement i
   saw could some pls explain what it means?
  
   if (!empty($row-usd_period)
  
   Thx a lot
   Jack
   [EMAIL PROTECTED]
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  
 
  [EMAIL PROTECTED]
  ---
  We must use time wisely and forever realize that the time is
  always ripe to do right.
 
  -- Nelson Mandela
  ---
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




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




RE: [PHP] exec on Windows

2002-02-17 Thread Stephano Mariani

Try exec cmd /c start winamp.exe M01.mp3 to avoid blocking...

Stephano Mariani

 -Original Message-
 From: DL Neil [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, 17 February 2002 2 3
 To: Scott; [EMAIL PROTECTED]
 Subject: Re: [PHP] exec on Windows
 
 Scott,
 
  I am trying to develop a music scheduling system on Windows using
the
  command line to fire off WinAMP.  The first exec works fine, then it
  stops
  and says that program execution time has been exceeded.
 
  An example would be:
 
  exec (winamp.exe M01.mp3);
 
  a while loop kicks off the second.  I tried to send the output to
null
  winamp.exe null or nul and no luck.  Anyone else try this on
Windows?
 
 
 Sounds interesting.
 I take it that it is the PHP script that stops (not the winamp
player)!? Looks like you are running
 into
 problems with the script execution time limit. Herewith a couple of
theories:
 
 1 what happens if you specify that the winamp is to run in its own cmd
shell - will control return
 to PHP
 'immediately'?
 2 if the problem is time-out, and you can only play one .mp3 at a
time, so looping to 'the next'
 must be
 dependent upon the preceding track finishing first, what happens if
you adjust the set_time_limit
 to 0/no limit?
 (RTFM: http://www.php.net/manual/en/function.set-time-limit.php)
 
 Regards,
 =dn
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




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




RE: [PHP] help!

2002-02-06 Thread Stephano Mariani

Offtopic! Try a linux list, or the list for the distribution you are
trying to install!

-Original Message-
From: Pat Hanna [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 6 February 2002 7 8
To: php help
Subject: [PHP] help!

This may or may not have anything to do with PHP but my goal deals with
it.
I have a box that I'm trying to turn into a linux box for php purposes.
I
have reformatted the hard drive so I could install it. The problem is
that
when I try to partition the disk during the installation, my hard drive
is
not recognized. I am new at this and I would appreciate any help I could
get. Please help me!!
--
Patrick Hanna
Database integration--E-commerce solutions
The Wentworth Company

Get paid cash every time you receive email!
Sign up FREE at: http://www.MintMail.com/?m=1080349



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




[PHP] Natively compiled classes

2002-02-03 Thread Stephano Mariani

Hi!

A few colleagues and I found our PHP scripts running very slowly due to
the very processor intensive calculations on a site for a client. By
intensive calculations, I mean encryption, random number generation, and
prime verification, for some cryptographic algorithms. The code was very
object oriented using lots of classes.

We decided to write our own extension so that some of the code could be
compiled natively, and avoid the PHP interpreter altogether.

My question, is there any way of doing this with classes? I know I can
write individual functions in C and build them into a module, but how
can I do this with classes, if at all?

TIA

Stephano Mariani



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




[PHP] [URGENT] PHP as an apache module on windows under cygwin

2002-02-02 Thread Stephano Mariani

Hi!
I am very new to both windows and PHP (coming from a solaris
environment), so please excuse me if the answer is glaringly obvious.

I have built and installed apache (1.3.23) on a windows 2000
Professional (SP2, build 2195) box with cygwin (1.3.9, I believe). The
build supports many of the modules included with apache and supports
shared objects. Some of the modules are built as shared objects.

Is there a way to use the win32 binaries with apache? I keep getting a
win32 error when apache tries to dlopen the php module.

If not, how can I build php 4.1.1 as a shared object for apache? Please
assume no knowledge on my part.

TIA

Stephano Mariani




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] A dreaded Windows executable question

2002-01-28 Thread Stephano Mariani

 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Get the PHP source code, make the modifications you need, and
get/write a small minimalist web server to use it with. Then use your
PHP site from CD (or anywhere).

I have done almost exactly the same thing but with some additional
tweaks (like building in extensions that I wanted)

I would be glad to give you my code.

Stephano Mariani


- -Original Message-
From: hugh danaher [mailto:[EMAIL PROTECTED]] 
Sent: Monday, 28 January 2002 10 47
To: Php-General
Subject: [PHP] A dreaded Windows executable question

Hi,

I would like to know if there is a program similar to php in
structure that I can use to make an executable program on a pc
running Windows 95 (and above).  Since the only language I can
currently use is php, starting with something similar will be a big
help.

What I am trying to do, is reproduce on a CD the same (or similar
enough) program now running on-line using php.  The program would
need to provide search results for text and images.  The CD would
then be used on off-line computers.  

Any suggestions would be greatly appreciated

-BEGIN PGP SIGNATURE-
Version: PGP 7.1.1
Comment: Use PGP or GNUPG

iQA/AwUBPFXX4mgk66Ms+o9zEQLOsQCg4YSXbf+gDFnNUt9y7zjYrVMgfygAn1Pt
8N0/ZSL4EmN3RTiiGH3+uqI5
=7PrP
-END PGP SIGNATURE-



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Hosting advise

2001-12-26 Thread Stephano Mariani

 http://www.aletiahosting.com/
No idea!

 http://www.cobaltconnection.com/
Likewise!

 http://www.primemaster.com/index2.html
This is one to avoidat all costs!!


Stephano Mariani

-Original Message-
From: Indera [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 25 December 2001 10:3
To: [EMAIL PROTECTED]
Subject: [PHP] Hosting advise


Hello,

I need to find a new host that is relatively in-expensive and found
these three. I was wondering if anyone here has used them or thinks that
they are a good company.

http://www.aletiahosting.com/

http://www.cobaltconnection.com/

http://www.primemaster.com/index2.html

Thanks
Indera




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Suggestions for the next php

2001-12-21 Thread Stephano Mariani

I believe fork is very expensive in terms of performance.
One should consider that in the case of server modules (ISAPI in
particular) a huge overhead is incurred when forking. I better
alternative would be the vfork call. Or better still, the __clone call.

Do you know of any ways to implement this without changes to the php
codebase itself? I doubt it is possible for an just extension to do
this, it need the php core to support this.

Stephano Mariani

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of
Rouvas Stathis
Sent: Friday, 21 December 2001 1:21
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Suggestions for the next php


Manuel Lemos wrote:
 
   For example, multi-threading. Looking at the PHP sources, I can 
   see this would be fairly easy to implement on some most server 
   modules. Before I get fried by people for suggesting this, I know 
   there are many functions that are not thread safe, such the ob_* 
   functions. But as far as I can see threading would be well suited 
   to some PHP tasks...
 
 You can use the pcntl extension if you are using any (fork capable) 
 Unix.

Can you elaborate on the pcntl extension, please?
What is it?
How do you use it?

Thank you,
-Stathis.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Suggestions for the next php

2001-12-20 Thread Stephano Mariani

Hi!

I have been a PHP user since version 3.0 came out, and have seen it
develop a lot along the way, but theres some things I find it lacks that
it really should not. If people agree, I'll glady contribute to the PHP
codebase.

For example, multi-threading. Looking at the PHP sources, I can see this
would be fairly easy to implement on some most server modules. Before I
get fried by people for suggesting this, I know there are many functions
that are not thread safe, such the ob_* functions. But as far as I can
see threading would be well suited to some PHP tasks...

I'd like to hear users thoughts on this.

TIA,

Stephano Mariani



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] GD and databases

2001-12-09 Thread Stephano Mariani

Is it somehow possible to save a GD image within a database (like the return
value from imagecreate)?
I would like to manipulate some images, but I would rather load them from a
DB than a file...

Please advise

TIA,

Stephano



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]