[PHP] error not understood

2002-03-09 Thread Kancha .

what does this error mean. What should i do to make it
portable to future version of php. I'm using version
4.1.0

Warning: Call-time pass-by-reference has been
deprecated - argument passed by value; If you would
like to pass it by reference, modify the declaration
of [runtime function name](). If you would like to
enable call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI
file. However, future versions may not support this
any longer. in /var/www/html/accounts.php on line 123


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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




[PHP] need help converting code to more efficient loop

2002-03-09 Thread Timothy J. Luoma


Hello!  I am trying to reduce the size of the code below, which I believe
can be simplified.

I checked the 'for' entry in the manual as well as googling for some
similar code, but did not have any luck.

Here is what I have:


$ICON_COUNT=0;

if ($SHOW_WAI_ICON != no)
{
$ICON_COUNT++ ;
}

if ($SHOW_BOBBY508_ICON != no)
{
$ICON_COUNT++ ;
}

if ($SHOW_W3_ICON != no)
{
$ICON_COUNT++ ;
}

if ($SHOW_CSS_ICON != no)
{
$ICON_COUNT++ ;
}


Now I would like to make that a 'for' loop, but I'm not sure how to do it
in PHP.

In case it is not clear what I am trying to do, this is what I would do if
PHP syntax were like bash:

variables=SHOW_CSS_ICON SHOW_W3_ICON SHOW_BOBBY508_ICON SHOW_WAI_ICON

for i in $variables
do

if [ $i != no ]
then
#increment icon_count here
fi

done


I'm just not sure about the nested syntax in PHP.

Thanks for any help

TjL


-- 
Site: www.tntluoma.com   mailto:[EMAIL PROTECTED]
Info: Apache/1.3.19 (Unix) with PHP/4.0.6


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




Re: [PHP] Database abstraction layer oci

2002-03-09 Thread Thies C. Arntzen

hi,

the fastest and most powerful is always to use the native
api.

i would use the PHP oci driver.

tc

On Fri, Mar 08, 2002 at 09:00:17AM -0500, Andrew Hill wrote:
 I suggest simply using ODBC.
 
 Best regards,
 Andrew Hill
 Director of Technology Evangelism
 http://www.openlinksw.com/virtuoso/whatis.htm
 OpenLink Virtuoso Internet Data Integration Server 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 08, 2002 5:39 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Database abstraction layer oci
  
  
  
  Hi everybody.
  
  I would like your opinion on the Database Abstraction Layer you prefer (I
  will use it with Oracle 8i)
  I know that there is Metabase end Pear DB
  
  What's  your opinion on both or others ?
  
  Laurent Drouet
  
  
  
  -- 
  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




[PHP] Re: uploading images

2002-03-09 Thread Filippo Veneri

George Whiffen wrote:

 Wierd, sounds like it could be a bug.  What's the actual code you use
 for the upload?
 
 I presume you are running vim from the command line of the box to which
 the image is
 uploaded.  Content-Type: image/jpeg is, of course, what Apache would add
 if you requested a .jpg file over
 the web.
 
 Good Luck,
 
 George

The code i use is a trivial variant of that presented in PHP
documentation. The exact same code works fine on the debian
i386 machine, which runs apache 1.3.9 + PHP 4.0.3pl1.

The powerpc linux box is my developement machine, not the
deployment one, so this is not a terrible problem. I still have
the debian to develop on. Besides that, the upcoming update from
yellowdog linux should solve my problem on the ppc box as well.

Thanks,

fbv

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




Re: [PHP] error not understood

2002-03-09 Thread Jason Wong

On Saturday 09 March 2002 17:25, Kancha . wrote:
 what does this error mean. What should i do to make it
 portable to future version of php. I'm using version
 4.1.0

 Warning: Call-time pass-by-reference has been
 deprecated - argument passed by value; If you would
 like to pass it by reference, modify the declaration
 of [runtime function name](). If you would like to
 enable call-time pass-by-reference, you can set
 allow_call_time_pass_reference to true in your INI
 file. However, future versions may not support this
 any longer. in /var/www/html/accounts.php on line 123

Do you get this error on code written by yourself or on someone else's code?

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
If you think the problem is bad now, just wait until we've solved it.
-- Arthur Kasspe
*/

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




[PHP] HTML Writer library functions

2002-03-09 Thread S.Murali Krishna


Hi All,
Lets have a look at the following link to library functions
to write HTML tags in easy way. Its very easy to use interface including
documentation and Algorithm.

http://phpBuilder.com/snippet/download.php?type=snippetid=948


[EMAIL PROTECTED] APU (A Php User)
---
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] gd-library ...

2002-03-09 Thread Marcel Besancon

Hi,

i'm trying to use the gd-library under windows, but it doesn't work. How
can I include the gd.dll? Where do I put this file? I tried some different
directories which are written in the php.ini as include-directories. What am
I doing wrong? Is there a way to use this library under windows???

Any hint can be useful.

Sincerely

Marcel

--
registered Fli4l-User #0388



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




Re: [PHP] HTML Buffer

2002-03-09 Thread Nick Wilson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


* and then Mario Montoya Martínez declared
 I'm used to a function in ASP which is HTMLBuffer.

Never mind :-)

 This allows the script to send HTML code to the browser while
 the script is running.
 I've seen that PHP scripts don't send any HTML until the
 script finishes. I'd really like to see what's happening in my script
 while it is being executed.
 
 Any ideas?

PHP has a whole bunch of stuff for this, try this 
http://www.php.net/manual/en/ref.outcontrol.php

Good luck!
- -- 
- ---
 www.explodingnet.com   |Projects, Forums and
+Articles for website owners 
- -- Nick Wilson -- |and designers.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8ifMRHpvrrTa6L5oRAh5MAJ9Eto680D3JGxcd4nztA4eVi9VprgCePfqB
qpcQYrWUtMDDfYRa3zmJ2ek=
=p3GA
-END PGP SIGNATURE-

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




[PHP] check for bigger link

2002-03-09 Thread Martin Kampherbeek

I made a script that looks in a URL for jpg's and their links.
So the result is:
s1.jpg links to b1.jpg
s2.jpg links to b2.jpg
etc etc

But now I would like to check if b1.jpg is bigger then s1.jpg, if not the script must 
stop. But I can't figure out to do this.

My script so far:
? 
$fp=fopen('http://www.mydomain.com/test.htm','r'); 
$text=fread($fp,10); 
fclose($fp); 
$preg='/ 
a
[^]*
href=
?\'?
([^\']*\.jpg)
[^]* 

([^]|(?!a))*
img 
[^]*
src=
?\'?
([^\']*\.jpg)
[^]* 

([^]|(?!a))*
\/a
/siUx'; 
preg_match_all($preg,$text,$matches); 
for ($k=0;$kcount($matches[0]);$k++){ 
echo $matches[3][$k].' linkt naar '.$matches[1][$k].'br'; 
} 
? 





php-general Digest 9 Mar 2002 12:40:13 -0000 Issue 1216

2002-03-09 Thread php-general-digest-help


php-general Digest 9 Mar 2002 12:40:13 - Issue 1216

Topics (messages 87835 through 87870):

Re: Graphing Question
87835 by: Michael Kimsal

Re: Query bug, what is wrong?
87836 by: hugh danaher

Re: session_id database
87837 by: Andy

Finding variable names in strings, and replacing with values?
87838 by: Nick Richardson
87859 by: Jan Grafström

mysql_connect() help
87839 by: Ellis M. Mendez-Hidaka
87840 by: ruler

Re: patch installation
87841 by: abw
87850 by: Jason Wong

Checking to see what value error_reporting is set at?
87842 by: eric.coleman.zaireweb.com

problem with mysql persistent connections; already read the FAQ!
87843 by: Dustin Puryear
87848 by: Michael Kimsal

Dynamically creating PHP before it is executed
87844 by: Jonathan Duncan
87846 by: Bogdan Stancescu
87849 by: Jonathan Duncan
87852 by: Jonathan Duncan

Can someone tell me about database
87845 by: GENESiS DESiGNS
87853 by: Tyler Longren
87854 by: hugh danaher

two different MySQL connections without always select_db?
87847 by: PHP freak
87856 by: Nick Richardson

Re: cal_days_in_month()
87851 by: Jason Wong
87855 by: David Robley

CSS
87857 by: jtjohnston
87858 by: Ashley M. Kirchner

Execute bash shell script in php
87860 by: Your  Amit

Re: just a link in php email
87861 by: Jan Grafström

error not understood
87862 by: Kancha .
87866 by: Jason Wong

need help converting code to more efficient loop
87863 by: Timothy J. Luoma

Re: Database abstraction layer oci
87864 by: Thies C. Arntzen

Re: uploading images
87865 by: Filippo Veneri

HTML Writer library functions
87867 by: S.Murali Krishna

gd-library ...
87868 by: Marcel Besancon

Re: HTML Buffer
87869 by: Nick Wilson

check for bigger link
87870 by: Martin Kampherbeek

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]


--

---BeginMessage---

Chris Seymour wrote:
 Hi All,
 Does anyone know of a graphing package that will allow a line graph with 
 labels on the data points?
 
 Thanks in advance.
 
 Chris
 

Try JPGRAPH at:

http://www.aditus.nu/jpgraph/




Michael Kimsal
http://www.phphelpdesk.com
Taking the ? out of ?php
734-480-9961


---End Message---
---BeginMessage---

I think it should be single quote marks around the variables like you've
used around the ok:

$query = INSERT INTO projeto (nome,setor,arquivo,status) VALUES
  ('$qname','$qdes','$qFILE','ok');

Hope this helps,
Hugh

- Original Message -
From: Robert V. Zwink [EMAIL PROTECTED]
To: Daniel F. Castro [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, March 08, 2002 6:22 AM
Subject: RE: [PHP] Query bug, what is wrong?


 You probably need to wrap the strings you are trying to input with
quotation
 marks.

 Try modifying this line  (add \) :
$query = INSERT INTO projeto (nome,setor,arquivo,status) VALUES
  (\$qname\,\$qdes\,\$qFILE\,'ok');

 Robert Zwink
 http://www.zwink.net/daid.php


 -Original Message-
 From: Daniel F. Castro [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 08, 2002 8:29 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Query bug, what is wrong?


 ?php
$qname  = $HTTP_POST_VARS['ct_nome'];
$qkey   = $HTTP_POST_VARS['ct_kw'];
$qdia   = $HTTP_POST_VARS['ct_dia'];
$qmes   = $HTTP_POST_VARS['ct_mes'];
$qano   = $HTTP_POST_VARS['ct_ano'];
$qautor = $HTTP_POST_VARS['ct_autor'];
$qeng   = $HTTP_POST_VARS['cS_eng'];
$qdes   = $HTTP_POST_VARS['cS_des'];
$qFILE  = FILES;
$host   = localhost;
//Database Conection
$link = mysql_connect($host,root,root)
  or die(Not possible to connect);
print(Connection OK);
//Database Selection
mysql_select_db(test)
  or die(mysql_error());
print(Selection OK);
$query = INSERT INTO projeto (nome,setor,arquivo,status) VALUES
  ($qname,$qdes,$qFILE,'ok');
print $qname;
print $qkey;
print $qautor;
print $qdia/$qmes/$qano;
//My Query
mysql_query ($query)
  or Die (mysql_error());
echo Projecto registered;

// Closing connection
mysql_close($link);
  ?

  Thanks you

  Daniel Castro




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



---End Message---
---BeginMessage---

Hi Adrian,

there is an excellent article on that by:

 * 
 * PHP4 DBM Session Handler
 * 

Re: [PHP] Dynamically creating PHP before it is executed

2002-03-09 Thread Bogdan Stancescu

Why don't you try it? It works! Simply echo(TD 
CLASS=\$itemclass\.$$col./TD) and see what you get...

I'm probably very late with this reply, but just in case...

Bogdan

Jonathan Duncan wrote:

Sam,

The questions you write are good.  I am not sure why they can't.  I just
assumed that if I make lines of code like:

TD CLASS=\\$itemclass\\$$col/TD

and populate them like:

TD CLASS=$itemclass$column1/TD
TD CLASS=$itemclass$column2/TD
TD CLASS=$itemclass$column3/TD

that I would have to then evaluate them on a different page.  Am I
incorrect?

Thanks,
Jonathan Duncan


- Original Message -
From: Samuel Ottenhoff [EMAIL PROTECTED]
To: Jonathan Duncan [EMAIL PROTECTED]
Sent: Friday, March 08, 2002 10:23 PM
Subject: Re: [PHP] Dynamically creating PHP before it is executed


You make sense until the last paragraph.

It sounds like you are making this way more complicated than it need be.
Why write these out to files and then include them?  Why not just echo

your

results out to the browser?  Why can't all of this code be contained

within

one PHP page?

Sam



Jonathan Duncan [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Bogdan,

Thank you for your comment, it actually made me think of a possible

solution

for something else I am working on.  However, it is just as I thought, I

am

being too vague.  I am most likely making my whole situation more
complicated than I need.  Another idea is just to do a select * and run
the whole shebang through an IF/ELSE series to determine which headers are
being used.  However, to remain on my current train of thought, here is a
snippet of my code:

  include(inc/dbconnect.inc);
  $sql = select columns from tablename where id=$someid;
  $sqlresult = mysql_query($sql, $connection) or die(Couldn't execute
query. (7));
  $columns_array = explode(,, $sqlresults['columns']);
  while (list($col) = each($columns_array)) {
 $sql = select coltitle from FreudColumns where colid='$col';
$result = mysql_query($sql, $connection) or die(Couldn't execute

query.

(12));
 $ch = mysql_fetch_array($result);
 // Set the column headers
 $headers .= TH CLASS=\hlink\$ch['coltitle']/TH;
// Set the item variables
 $setitemvar .= \$$col = \$isr['$col'];;
// Set the measurement columns
 $setitem .= TD CLASS=\\$itemclass\\$$col/TD;
  }
Afterwhich I write $headers to a file, $setitemvar to a file, $setitem to

a

file and call the page that is supposed to include these files I have just
writed so that the PHP code that I have just dynamically written will then
execute and the variables will be replaced.

Does this make any more sense?

Thank you,
Jonathan Duncan


Bogdan Stancescu [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

I don't quite understand why you chose such a complicated solution - I
may be missing something, in which case sorry for wasting your time. But
why don't you just dynamically build the select statement and then use
the whatever_fetch_array() -- and walk that array instead?

Just my 2c

Bogdan

Jonathan Duncan wrote:

I am trying to figure out a way to dynamically create some lines of PHP

code

and then have it executed.  This is because I want a page to display
different columns in a table depending on whatever link is clicked.

There

are hundreds of different combinations of column headings so I don't

want

to

make a different PHP page that is formated for each different

combination.

The column headings are stored in a database.

So far what I have come up with is to have a starting page, that takes

the

value of the link that is clicked, it queries the database for that

value

and then does a while statement to make all the TD's for the

different

columns.  Each TD is populated with a different variable, one for

each

column header.  Each iteration I append to a variable to hold all of

these

TD's.  Then I write the contents of that variable to a temporary

include

file and call the page that will display the table.  That table then
includes those TD's from the include file I wrote them to and

executes

the

PHP that runs another query on the database and fills in the variables

in

those TD's.

This seems like a lot of work.  Does what I am trying to do make sense

to

anyone?  Does anyone have any idea how to do this an easier way?

Thanks
Jonathan Duncan













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




[PHP] Error Handler Problem

2002-03-09 Thread S.Murali Krishna


Hi All,
I tell my requierment first. Just in short I want to capture a
error of Undefined Function .so and so... .
I set Error Handler to

E_ALL  ~E_ERROR and I set my own Error Handler to capture errors
then I called a Non-Existent Function intentionally.

in this case its not at all capturing the error and silently executing
the program. 

Can anyone tell me what is the workaround this.
For clarification here is the code.

?php

function ErrorHandler($Errcode, $Errmsg )
{
print ErrorCode:  . $Errcode  . \n ;
print ErrorMsg :  . $Errmsg   . \n ;

return false ;
}


error_reporting(E_ALL  ~E_ERROR);

$prev_hand = set_error_handler(ErrorHandler);

// It's always executing if section instead of else.

if(!$prev_hand) {
print Unable to set error handler\n ;
} else {
print Previous Handler . $prev_hand ;
}


?




[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




Re: [PHP] mysql_connect() help

2002-03-09 Thread Ellis M. Mendez-Hidaka

Thank you ruler. That did it. I was wondering which socket was supposed to be
doing this.
I was using a book with an old version of MySQL and I guess the names are
missmatched.
Thanks again



Ruler wrote:

 What I did is made a symlink from /var/run/mysql.sock to /tmp/mysql.sock
 example: ln -s /var/run/mysql.sock /tmp/mysql.sock

 Or if /var/run/mysql.sock doesn't exist, find / -name mysql.sock
 Then symlink that to /tmp

 Hope that helps.
 - Original Message -
 From: Ellis M. Mendez-Hidaka [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, March 08, 2002 8:43 PM
 Subject: [PHP] mysql_connect() help

  Greetings,
  I'm a newbie with apache and PHP.
  I was able to setup apache, php and mysql in RH Linux and have my
  website running.
  I was trying to test the BD connectivity capabilities of PHP but I keep
  receiving this error message:
  {
  Warning: Can't connect to local MySQL server through socket
  '/tmp/mysql.sock' (2) in /var/www/html/testdb.php on line 20
 
  Warning: MySQL Connection Failed: Can't connect to local MySQL server
  through socket '/tmp/mysql.sock' (2) in /var/www/html/testdb.php on line
  20
  Could not connect to DB
  }
 
  I tried looking at the documentation in php.net, but I don't see what
  could be the problem.
  Here is the code (line 20 is the mysql_connect() command):
 
  ?php
 
 
 
   //build SELECT query
   $query = SELECT * FROM divers;
 
   //Connect to MySQL
   // *This line is the problem! :^(   **
   if( !($database1 = mysql_connect( localhost,test1,psswd ) ) )
die( Could not connect to DB );
 
   //Open database
   if( !mysql_select_db( divers, $database1 ) )
die( Could not open divers DB );
 
   //Query DB
   if( !($result = mysql_query( $query, $databse1 ) ) )
   {
print(Could not execute query! br / );
die( mysql_error() );
   }
 
  ?
 
  My DB is running fine, and I even tested it with that ID and it shows
  fine as well.
 
  I'm using PHP 4.0.6 and mysql is enabled.
  Am I missing any settings I might not know?
  Any help will be really appreciated.
  Thank you
 
  Ellis
 
 
  --
  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] Error Handler Problem

2002-03-09 Thread Dan Vande More

I'm not understanding completely, but could this have something to do with
it?
[quote]
error_reporting() has no effect if you have defined your own error handler
with set_error_handler()

[Editor's Note: This is not quite accurate.

E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR and
E_COMPILE_WARNING error levels will be handled as per the error_reporting
settings.

All other levels of errors will be passed to the custom error handler
defined by set_error_handler().

Zeev Suraski suggests that a simple way to use the defined levels of error
reporting with your custom error handlers is to add the following line to
the top of your error handling function:

if (!($type  error_reporting())) return;

 [EMAIL PROTECTED]]
[/quote]
Read:
http://www.php.net/manual/en/function.error-reporting.php

Dan

-Original Message-
From: S.Murali Krishna [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, March 09, 2002 6:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Error Handler Problem


Hi All,
I tell my requierment first. Just in short I want to capture a
error of Undefined Function .so and so... .
I set Error Handler to

E_ALL  ~E_ERROR and I set my own Error Handler to capture errors
then I called a Non-Existent Function intentionally.

in this case its not at all capturing the error and silently executing
the program. 

Can anyone tell me what is the workaround this.
For clarification here is the code.

?php

function ErrorHandler($Errcode, $Errmsg )
{
print ErrorCode:  . $Errcode  . \n ;
print ErrorMsg :  . $Errmsg   . \n ;

return false ;
}


error_reporting(E_ALL  ~E_ERROR);

$prev_hand = set_error_handler(ErrorHandler);

// It's always executing if section instead of else.

if(!$prev_hand) {
print Unable to set error handler\n ;
} else {
print Previous Handler . $prev_hand ;
}


?




[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] apache and php installation problem

2002-03-09 Thread Duncan

Hi,

i currently installed latest apache and php on my RH 7.2 system.
However, i allways get the following error now:

/usr/local/apache/bin/apachectl configtest 
Syntax error on line 216 of /usr/local/apache/conf/httpd.conf: 
Cannot load /usr/local/apache/libexec/libphp4.so into server: 
€Ø+@€Ø+((Ø+@Ø+˜Ø+@˜Ø+ Ø+ 
Ø+@¨Ø+¨Ø+@°Ø+°Ø+@¸Ø+¸Ø+@ÀØ
+@ÀØ+ÈØ+@ÈØ+ÐØ+@ÐØ+ØØ+@ØØ+àØ+@àØ+èØ+@èØ+ðØ+@ðØ+øØ+@øØ
+: shared object not open 



The error_log says:

Cannot load /usr/local/apache/libexec/libphp4.so into server: 
/usr/local/apache/libexec/libphp4.so: cannot open shared object file: No such file or 
directory

...but the file IS there! I don't understand this error.

I had to comment all php-based lines within the httpd.conf file, to get apache up and 
running again! 

My problem is, that i need to get php up and running asap, so any help is more than 
welcome. 

Thanks in advance, 

regards, 

Duncan




[PHP] Re: Changing an XML-file

2002-03-09 Thread Henrik Hansen

[EMAIL PROTECTED] (Léon Hoeneveld) wrote:

  I want to use XML-files not just for reading but also for writing. In fact I
  want to update values in an XML-file as if they were database tables. Does
  anyone have an example or link for that?

Look at the domxml functions for php.

-- 
Henrik Hansen

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




[PHP] Re: Congrats to Rasmus?

2002-03-09 Thread bill

Congratulations to all three of you!

Michael Kimsal wrote:

 It doesn't seem to have been mentioned here unless my newsfeed is very
 slow, but phpdeveloper.org has a quick mention of the new addition to
 Rasmus' family.

 http://www.phpdeveloper.org/

 Well, everyone's favorite PHP developer multiplied last night - Rasmus
 Lerdorf now has a son (9.0lbs, 19.25in. - a big boy) was born at 13:26
 PDT on Wednesday March 6, 2002. If you'd like to see some pics from the
 family, check out this page - or to send congrats, email [EMAIL PROTECTED]


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




[PHP] Homesite 5.0 and PHP

2002-03-09 Thread Chuck \PUP\ Payne

I am wanting to know is there any add-ons for Macromedia Homesite 5.0. I see
it set up for ASP and JSP and a couple others but not PHP.

Chuck


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




[PHP] what is the limit of Vars in Session ???

2002-03-09 Thread Beta

Can somebody tell does one session has limit of storing the variables, or
does it has any limit in size (eg KB);



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




[PHP] Problems with maximum execution time

2002-03-09 Thread Victor Usjanov

Hello

I got a problem with php and apache. I have installed latest
squirrelmail(1.2.5), that uses php. When i point browser to the webfolder of
squirrelmail, i get the login form just fine. This means that php works ok.
But when i try to log on, the only thing i get is:

Fatal error: Maximum execution time of 30 seconds exceeded in
/home/squirrel/functions/imap_general.php on line 117

I have tried to increase timeout value in the php.ini to 300, and to 0
(unlimited, as far as i understand), but it just took longer time to get
this error message.

System information: RH72, 2.4.9-31 kernel, apache-1.3.22-2, php-4.0.6-12,
imap-2000c-15, php-imap-4.0.6-12. System is
intalled from RH7.2 CD and updated with help of up2date.

What is strange is that i have another RH7.2 computer with the same versions
of packages, and there squirrel works just fine. I have compared php.ini and
httpd.conf between these two computes, and they are identical.

I do not get anything in apache`s error_log, but in access log i get this:

Computer wherer squirrel does not work:
pc51-119.hiof.no - - [09/Mar/2002:10:27:14 +0100] GET /mail HTTP/1.1 301
322
pc51-119.hiof.no - - [09/Mar/2002:10:27:15 +0100] GET /mail/ HTTP/1.1 302
5
pc51-119.hiof.no - - [09/Mar/2002:10:27:17 +0100] GET /mail/src/login.php
HTTP/1.1 200 1470
pc51-119.hiof.no - - [09/Mar/2002:10:27:18 +0100] GET
/mail/images/sm_logo.png HTTP/1.1 304 -
pc51-119.hiof.no - - [09/Mar/2002:10:27:54 +0100] POST
/mail/src/redirect.php HTTP/1.1 200 160

and nothing more

Computer where squirrel does work:
my_hostname - - [09/Mar/2002:10:30:22 +0100] GET /mail HTTP/1.1 301 316
my_hostname  - - [09/Mar/2002:10:30:24 +0100] GET /mail/ HTTP/1.1 302 5
my_hostname  - - [09/Mar/2002:10:30:25 +0100] GET /mail/src/login.php
HTTP/1.1 302 5
my_hostname  - - [09/Mar/2002:10:30:34 +0100] GET /mail/src/login.php
HTTP/1.1 200 1502
my_hostname  - - [09/Mar/2002:10:30:39 +0100] GET /mail/images/sm_logo.png
HTTP/1.1 304 -
my_hostname  - - [09/Mar/2002:10:30:44 +0100] POST /mail/src/redirect.php
HTTP/1.1 302 0
my_hostname  - - [09/Mar/2002:10:30:44 +0100] GET /mail/src/webmail.php
HTTP/1.1 200 204
my_hostname  - - [09/Mar/2002:10:30:46 +0100] GET /mail/src/right_main.php
HTTP/1.1 200 15956

Someone got any ideas about what can be wrong ?

Thank you in advance

--
Victor



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




RE: [PHP] Homesite 5.0 and PHP

2002-03-09 Thread Cal Evans

Chuck,

I've been a Homesite zealot for several years now. I LOVE 4.5. 5.0 (at least
the very first release of it) was a piece of crap.  I crashed more than it
ran on my Win98 box.  I would install it on my new Win2k box (same box but I
bit the bullet and bought the upgrade) but now I have to ask Macromedia's
permission to do so.

RANT(Ya Reading this Macromedia? I won't ask your permission to reload my
computer.  I'll find a hacked copy first. I paid for use on one machine, why
do you care if I unload and re-load on a weekly basis?)/RANT

Anyhow, So I'm sticking with 4.5.  If you can purchase a copy of 4.5, it too
has color coded syntax for PHP (That's about all the support that I found in
5.0 also) and it rocks...as long as you don't try to use the FTP
thingy...but that's another rant.

=C=
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*


-Original Message-
From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 09, 2002 10:21 AM
To: PHP General
Subject: [PHP] Homesite 5.0 and PHP


I am wanting to know is there any add-ons for Macromedia Homesite 5.0. I see
it set up for ASP and JSP and a couple others but not PHP.

Chuck


--
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] Re: Can someone tell me about database....

2002-03-09 Thread David Johansen

Here's a good PHP and MySQL tutorial.
http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial4.html
Dave

Genesis Designs [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello,

 Can anyone tell me about database driven web sites? I want to learn how to
do
 that. Thanks,


 -GENESiS DESiGNS
 -Sean Kennedy
 -http://www.gdesigns.vcn.com




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




[PHP] Authorize.net example

2002-03-09 Thread David Johansen

Could someone tell me where I could get a basic Authorize.net example to
work off of. I'm sure that I could do it all from scratch, but a base to
start from would be nice and make it a lot faster. Thanks,
Dave



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




[PHP] which linux?

2002-03-09 Thread Floyd Baker



This is a bit ot but 'related', and I know you guys know...  

I'm about to buy a new machine and want to install linux instead of
ms.   I've never touched the stuff before but I hear Mandrake 8.1 is
good for easy install, etc.  Would anyone have suggestions on buying a
new machine, chip compatibility, best linux, etc??  And since I don't
know much more than the linux name and reputation, can I maybe get an
idea of an average learning curve time frame?  

Right now I'm set up on win32 with apache php4.1 and mysql which is
what I'll be doing with the new one.  

Thanks.

Floyd


--


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




[PHP] 5 Records in a row displayed!

2002-03-09 Thread Thomas Edison Jr.

Hi,

I'm looking to display 5 records in one rows, from the
database. 

What i mean is, basically, let's take the emails as
an example. I have a table with 100s of email
addresses. Now i want to display these email addresses
on a page, but i want to display only 5 email adresses
in one line, then the next 5 in the next line and so
on. Also, perhaps if these emails are seperated by
space, nothing else or more. 

Can someone help me with a code.
Regards,
T. Edison jr.


=
Rahul S. Johari (Director)
**
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
***

__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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




RE: [PHP] which linux?

2002-03-09 Thread Cal Evans

www.gentoo.org

Source based.  Everything is built.
On a new machine it will take aprox 4 hours to get up and running but it is
tweaked out specifically for your HW.

Also, this is one of the easiest distro's I've ever had to manage. I've
played with Caldera, Corel, RH , Mandrake, and SGL (now defunct, at least
until the author gets his head out of his butt) and Gentoo.  Gentoo is by
far the best.

But be prepared.  There's no graphical installer. It takes time and patience
to get it running.

My $0.02,
=C=

*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*


-Original Message-
From: Floyd Baker [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 09, 2002 2:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP] which linux?




This is a bit ot but 'related', and I know you guys know...

I'm about to buy a new machine and want to install linux instead of
ms.   I've never touched the stuff before but I hear Mandrake 8.1 is
good for easy install, etc.  Would anyone have suggestions on buying a
new machine, chip compatibility, best linux, etc??  And since I don't
know much more than the linux name and reputation, can I maybe get an
idea of an average learning curve time frame?

Right now I'm set up on win32 with apache php4.1 and mysql which is
what I'll be doing with the new one.

Thanks.

Floyd


--


--
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] re-number the array index

2002-03-09 Thread Reuben D Budiardja


Hi,
Is there any easy  efficient way to re-number the array index? for example, 
if I have an array with only something like:
$arr[1] = t
$arr[4] = e
$arr[7] = s

I would like the index to be re-numbered so that I can have 
$arr[0] = t
$arr[1] = e
$arr[2] = s

This is useful sometime because a function like array_unique preserves the 
indexes of array, and sometime make them un-order. Well, sometime I don't 
care about the preservation of index, and I just want an ordered index 
number. 
I know I can walk through the array and re-assign them to different array or 
do something like that with a loop. But I'm just wondering if there is a more 
efficient / quicker way.

Thanks.
Rdb

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




[PHP] Re: Checking to see what value error_reporting is set at?

2002-03-09 Thread David Robley

In article 00b801c1c714$b4854230$0501a8c0@zaireweb, 
[EMAIL PROTECTED] says...
 Is it possible to return what error_reporting is set at currently?  If not, think 
they would be able to throw it into the newest build of php?
 
 Thanks,
 Eric
 

Have a look at the ini_get function

-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

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




[PHP] Selecting a Queried Row

2002-03-09 Thread Andre Dubuc

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




Re: [PHP] Re: Checking to see what value error_reporting is set at?

2002-03-09 Thread eric.coleman

I ment, if you re-set it, as im setting it to error_reporting(E_ALL);
depending on a value i get from a db query...

-Eric

- Original Message -
From: David Robley [EMAIL PROTECTED]
To: 
Sent: Saturday, March 09, 2002 6:52 PM
Subject: [PHP] Re: Checking to see what value error_reporting is set at?


 In article 00b801c1c714$b4854230$0501a8c0@zaireweb,
 [EMAIL PROTECTED] says...
  Is it possible to return what error_reporting is set at currently?  If
not, think they would be able to throw it into the newest build of php?
 
  Thanks,
  Eric
 

 Have a look at the ini_get function

 --
 David Robley
 Temporary Kiwi!

 Quod subigo farinam

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




php-general Digest 10 Mar 2002 01:13:08 -0000 Issue 1217

2002-03-09 Thread php-general-digest-help


php-general Digest 10 Mar 2002 01:13:08 - Issue 1217

Topics (messages 87871 through 87891):

Re: Dynamically creating PHP before it is executed
87871 by: Bogdan Stancescu

Error Handler Problem
87872 by: S.Murali Krishna
87874 by: Dan Vande More

Re: mysql_connect() help
87873 by: Ellis M. Mendez-Hidaka

apache and php installation problem
87875 by: Duncan

Re: Changing an XML-file
87876 by: Henrik Hansen

Re: Congrats to Rasmus?
87877 by: bill

Homesite 5.0 and PHP
87878 by: Chuck \PUP\ Payne
87881 by: Cal Evans

what is the limit of Vars in Session ???
87879 by: Beta

Problems with maximum execution time
87880 by: Victor Usjanov

Re: Can someone tell me about database
87882 by: David Johansen

Authorize.net example
87883 by: David Johansen

which linux?
87884 by: Floyd Baker
87886 by: Cal Evans

5 Records in a row displayed!
87885 by: Thomas Edison Jr.

re-number the array index
87887 by: Reuben D Budiardja

Re: Checking to see what value error_reporting is set at?
87888 by: David Robley
87890 by: eric.coleman.zaireweb.com

Selecting a Queried Row
87889 by: Andre Dubuc
87891 by: Stephano Mariani

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]


--

---BeginMessage---

Why don't you try it? It works! Simply echo(TD 
CLASS=\$itemclass\.$$col./TD) and see what you get...

I'm probably very late with this reply, but just in case...

Bogdan

Jonathan Duncan wrote:

Sam,

The questions you write are good.  I am not sure why they can't.  I just
assumed that if I make lines of code like:

TD CLASS=\\$itemclass\\$$col/TD

and populate them like:

TD CLASS=$itemclass$column1/TD
TD CLASS=$itemclass$column2/TD
TD CLASS=$itemclass$column3/TD

that I would have to then evaluate them on a different page.  Am I
incorrect?

Thanks,
Jonathan Duncan


- Original Message -
From: Samuel Ottenhoff [EMAIL PROTECTED]
To: Jonathan Duncan [EMAIL PROTECTED]
Sent: Friday, March 08, 2002 10:23 PM
Subject: Re: [PHP] Dynamically creating PHP before it is executed


You make sense until the last paragraph.

It sounds like you are making this way more complicated than it need be.
Why write these out to files and then include them?  Why not just echo

your

results out to the browser?  Why can't all of this code be contained

within

one PHP page?

Sam



Jonathan Duncan [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Bogdan,

Thank you for your comment, it actually made me think of a possible

solution

for something else I am working on.  However, it is just as I thought, I

am

being too vague.  I am most likely making my whole situation more
complicated than I need.  Another idea is just to do a select * and run
the whole shebang through an IF/ELSE series to determine which headers are
being used.  However, to remain on my current train of thought, here is a
snippet of my code:

  include(inc/dbconnect.inc);
  $sql = select columns from tablename where id=$someid;
  $sqlresult = mysql_query($sql, $connection) or die(Couldn't execute
query. (7));
  $columns_array = explode(,, $sqlresults['columns']);
  while (list($col) = each($columns_array)) {
 $sql = select coltitle from FreudColumns where colid='$col';
$result = mysql_query($sql, $connection) or die(Couldn't execute

query.

(12));
 $ch = mysql_fetch_array($result);
 // Set the column headers
 $headers .= TH CLASS=\hlink\$ch['coltitle']/TH;
// Set the item variables
 $setitemvar .= \$$col = \$isr['$col'];;
// Set the measurement columns
 $setitem .= TD CLASS=\\$itemclass\\$$col/TD;
  }
Afterwhich I write $headers to a file, $setitemvar to a file, $setitem to

a

file and call the page that is supposed to include these files I have just
writed so that the PHP code that I have just dynamically written will then
execute and the variables will be replaced.

Does this make any more sense?

Thank you,
Jonathan Duncan


Bogdan Stancescu [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

I don't quite understand why you chose such a complicated solution - I
may be missing something, in which case sorry for wasting your time. But
why don't you just dynamically build the select statement and then use
the whatever_fetch_array() -- and walk that array instead?

Just my 2c

Bogdan

Jonathan Duncan wrote:

I am trying to figure out a way to dynamically create some lines of PHP

code

and then have it executed.  This is because I want a page to display
different columns in a table depending on whatever link is clicked.

There

are hundreds of different combinations of column headings so I don't

want

to

make a 

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 hugh danaher

Andre,

The following code block is from a site I'm developing for a local museum.
The site is now located at www.ironorchid.com/museum/  but will move
eventually to its own site.  In it, I have a list of the landmark trees,
with links to a map showing the location of the tree, a link to
maps.yahoo.com to get a detailed map of the location and or driving
directions, and links to show all the trees in an area of the city.  In
other words, the table is link crazy--sounded enough like what you want to
do that I responded to your question.  All of the data in the html table
comes from a mysql database with three database tables (heritage, trees,
sites).
If you use the mysql_fetch_array() command in a WHILE statement, you create
an array of the row or rows resultant from your query and have the mysql
column titles as your array keys.  You can then use the a href= html tag to
put a link under the words in your table cells and generate the html code to
go to the next row of data.
As I said earlier, I have the bad habit of writing everything in php once I
need it on a page, so the code block might be a bit hard to read.  Let me
know if you need further details on what's provide.
Hope this helps,
Hugh

?php
print table align=center bgcolor=white cellspacing=0 cellpadding=4
border=1 ;
 print tr bgcolor=Cornsilktdh5bID # a href=list.php
title=\scientific name\bCommon
Name/b/a/h5/tdtdh5bAddress/b/h5/tdtdh5bDistrict/b
/h5/td/tr;

 $db=some_database;
 $pass=some_password;
 $link=mysql_connect(localhost,,$pass);
 if (! $link) die(Can't log in at this time);
 mysql_select_db($db,$link) or die (Can't log in at this time);
 $query=select * from heritage where asset_num'0' order by asset_num;
 $result=mysql_query($query);
 if (!$result) die(mysql_error());
 while ($heritage=mysql_fetch_array($result))
  {
  $query2=select * from trees where id='.$heritage['plant_num'].' ;
  $result2=mysql_query($query2);
  $trees=mysql_fetch_array($result2);
  $query3=select * from sites where plant_num='.$heritage['plant_num'].'
;
  $result3=mysql_query($query3);
  $num=0;
  while ($sites=mysql_fetch_array($result3))
   {
   $links[$num]=$sites['link'];
   $num=$num+1;
   }
  print trtd valign=top align=leftpa
href=mapmastr.php?list1=1tree=1coordinate_x=.$heritage['x'].coordinate_
y=.$heritage['y']. title=\.stripslashes($trees['scientific_name']).
native to .$trees['native_to'].\ nbsp;.$heritage['asset_num'].
nbsp;.stripslashes($trees['common_name'])./a/p/td
   td valign=top align=leftpa
href=http://maps.yahoo.com/py/maps.py?BFCat=Pyt=TmapnewFL=Use+Address+Belo
waddr=.ereg_replace ( , +,
stripslashes($heritage['address'])).csz=.$heritage['zip'].Country=usGe
t%A0Map=Get+Map title=\go to maps.yahoo.com to get a map of this address\
nbsp;.stripslashes($heritage['address'])./a/p/td
   td valign=top align=leftpa
href=mapmastr.php?district=.$heritage['town_name']. title=\see the
location of all Landmark Trees in the .$heritage['town_name']. District\
nbsp;.$heritage['town_name']./a/td/tr;
  }
 mysql_close($link);
print /table;
?

- Original Message -
From: Andre Dubuc [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 09, 2002 4:12 PM
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




[PHP] Can anyone tell me which mail server is good???(Use in WindowsME/XP, don't use IIS)

2002-03-09 Thread hei

Can anyone tell me which mail server is good???(Use in WindowsME/XP, don't
use IIS)
_ wai wing hei ICQ#:102663005
Current ICQ status: SMS: (Send an SMS message to my ICQ): +2783142102663005
More ways to contact me: http://wwp.icq.com/102663005
_



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




Re: [PHP] Can anyone tell me which mail server is good???(Use in WindowsME/XP, don't use IIS)

2002-03-09 Thread Jason Wong

On Sunday 10 March 2002 10:06, hei wrote:
 Can anyone tell me which mail server is good???(Use in WindowsME/XP, don't
 use IIS)

CommuniGatePro (www.stalker.com) is pretty good.


-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
For people who like that kind of book, that is the kind of book they will 
like.
*/

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




Re: [PHP] need help converting code to more efficient loop

2002-03-09 Thread Jason Wong

On Saturday 09 March 2002 18:08, Timothy J. Luoma wrote:
 Hello!  I am trying to reduce the size of the code below, which I believe
 can be simplified.

 I checked the 'for' entry in the manual as well as googling for some
 similar code, but did not have any luck.

 Here is what I have:


 $ICON_COUNT=0;

 if ($SHOW_WAI_ICON != no)
 {
   $ICON_COUNT++ ;
 }

 if ($SHOW_BOBBY508_ICON != no)
 {
   $ICON_COUNT++ ;
 }

 if ($SHOW_W3_ICON != no)
 {
   $ICON_COUNT++ ;
 }

 if ($SHOW_CSS_ICON != no)
 {
   $ICON_COUNT++ ;
 }


 Now I would like to make that a 'for' loop, but I'm not sure how to do it
 in PHP.

 In case it is not clear what I am trying to do, this is what I would do if
 PHP syntax were like bash:

 variables=SHOW_CSS_ICON SHOW_W3_ICON SHOW_BOBBY508_ICON SHOW_WAI_ICON

 for i in $variables
 do

   if [ $i != no ]
   then
   #increment icon_count here
   fi

 done


 I'm just not sure about the nested syntax in PHP.


$doo = array(SHOW_CSS_ICON, SHOW_W3_ICON);
foreach($doo as $dah) {
  if (${$dah} != no) {
$ICON_COUNT++;
  }
}

*** Untested, use with caution! ***



-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
Don't put off for tomorrow what you can do today because if you enjoy it 
today,
you can do it again tomorrow.
*/

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




[PHP] CSS Group

2002-03-09 Thread jtjohnston

Can anyone recommend a good CSS news group?



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