[PHP] array output as a variable?

2001-04-12 Thread midget2000x

another newbie programmer question...
is it possible to output the results of an array loop into a variable, or
directly into an SQL call?

Obviously the code below is impossible, but illustrates what I want to do:

//declare the array
$info_request = array (1 = 
"firstname","lastname","email","howfound","optin","comments","request_type","request_bucket","date");
 

//output the array loop results to a variable
$array_results = foreach ($info_request As $value) { print "$value,"; }

//place the output variable into an SQL call (therefore making it
dynamic):

INSERT INTO $tablename ($array_results)
...

thanks!
---
providing the finest in midget technology

-- 
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] array output as a variable?

2001-04-12 Thread Brian Clark

Hi midget2000x,

@ 2:13:10 AM on 4/12/01, midget2000x wrote:

...
 Obviously the code below is impossible, but illustrates what I want to do:

 //declare the array
 $info_request = array (1 = 
"firstname","lastname","email","howfound","optin","comments","request_type","request_bucket","date");
 

 //output the array loop results to a variable
 $array_results = foreach ($info_request As $value) { print "$value,"; }

 //place the output variable into an SQL call (therefore making it
 dynamic):

 INSERT INTO $tablename ($array_results)

How about:

?php

$info = array (
   "firstname","lastname","email","howfound","optin",
   "comments","request_type","request_bucket","date"
   );

while(list($idx,$value) = each($info))
{
   $results .= ($idx == (sizeof($info) - 1) ? "'$value'" : "'$value',");
}

/* INSERT INTO foo ($results) */

?


-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please do not carbon copy me on list replies.



-- 
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] array output as a variable?

2001-04-12 Thread elias

 $info_request = array (1 =
"firstname","lastname","email","howfound","optin","comments","request_type",
"request_bucket","date");

$flds = implode(",", $info_request);
$sql = "INSERT INTO mytable($flds)"

mysql_query($sql)

hope it helps at least a little.

-elias
http://www.kameelah.org/eassoft

"midget2000x" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 another newbie programmer question...
 is it possible to output the results of an array loop into a variable, or
 directly into an SQL call?

 Obviously the code below is impossible, but illustrates what I want to do:

 //declare the array
 $info_request = array (1 =
"firstname","lastname","email","howfound","optin","comments","request_type",
"request_bucket","date");

 //output the array loop results to a variable
 $array_results = foreach ($info_request As $value) { print "$value,"; }

 //place the output variable into an SQL call (therefore making it
 dynamic):

 INSERT INTO $tablename ($array_results)
 ...

 thanks!
 ---
 providing the finest in midget technology

 --
 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] array output as a variable?

2001-04-12 Thread Brian Clark


@ 2:39:12 AM on 4/12/01, Brian Clark wrote:

...
 @ 2:13:10 AM on 4/12/01, midget2000x wrote:

...
 //declare the array
 $info_request = array (1 = 
"firstname","lastname","email","howfound","optin","comments","request_type","request_bucket","date");
 

Sorry, I guess this would be more complete:

?php

$tablename = 'foo';

$info = array(0 = array('billy bob','joe','email','yahoo','sort 
of','foo','firm','large','date'),
  1 = array('james 
j','frank','email','google','no','bar','soft','small','date'));

while(list(,$array) = each($info))
{
   $results = 'INSERT INTO $tablename VALUES(';
   while(list($idx,$value) = each($array))
   {
  $results .= ($idx == (sizeof($array) - 1) ? "'$value'" : "'$value',");
   }
   $results .= ')';
   print "$results\n"; /* INSERT here. */
}

?

I guess it could be made into a function($info,$table) -- whatever,
but you'd need error checking a returns on the inserts.


-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please do not carbon copy me on list replies.



-- 
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] HELP with (Fatal Error: Call to a member function on a non-object)

2001-04-12 Thread Taylor, Stewart

This error suggests the $tpl is undefined i.e. you forget to create it using
new.

-Stewart

-Original Message-
From: g0thic [mailto:[EMAIL PROTECTED]]
Sent: 12 April 2001 01:17
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [PHP] HELP with (Fatal Error: Call to a member function on a
non-object)


Hi guys,

Below is the error message that I am receiving, and 3 or 4 lines around
the code that seems to be causing the issue.  Lines are numbered so it gives
you a good idea of line 183.  What I need to know, is in my context, what is
the error saying, and if there is a variable (or function or class) to
define, how can I tell which one it is?

Fatal error: Call to a member function on a non-object in
/home/httpd/www/g0thic/cawood_a4/edit_f.php on line 183

178-  if($seditFileErr == "")
179-  {
180-// Load primary key and form parameters
181-$fldf_id = get_param("f_id");
182-$fldu_id = get_param("u_id");
183-$tpl-set_var("Trn_u_id", get_param("u_id"));
184-$pf_id = get_param("f_id");
185-$tpl-set_var("editFileError", "");
186-  }

Get_param is a function to get the variable "u_id" that would have been sent
back with the page url (e.g.: page.php?u_id=3993)

Any ideas?

Cheers,

Sean


-- 
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] VERY URGENT -- MIRROR FOR PHP.NET ??

2001-04-12 Thread Brian Clark

Hi Reuben,

@ 3:33:21 AM on 4/12/2001, Reuben D Budiardja wrote:

 I'm in the middle of crisis. I need to meet the deadline tomorrow,
 and tonight the www.php.net seems to be down. Anyone know any mirror
 site of www.php.net?

I can get there using http://us.php.net/

If that doesn't fly, try the au mirror:

http://au.php.net/

Or the Canadian mirror:

http://ca.php.net/


-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please do not carbon copy me on list replies.



-- 
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] foreach vs. while(list() = each())

2001-04-12 Thread Maxim Derkachev

Hello Joe,

Wednesday, April 11, 2001, 10:49:31 PM, you wrote:

JS What are the differences in these? I know with while() you have to reset() the
JS array afterwards, but foreach() you don't. Also foreach() appears to be quite
JS a bit faster. 

You don't need to reset() the array, You also don't need list() and
each(), which impose additional overhead. You put the array loop to the foreach()
implementation, which is in C, instead of implementing it with PHP with while(),
list() and each().
That must be a lot faster.

JS My main question is there ANY difference in how these two loop through the 
JS array.

The main difference is that foreach() works with the array's copy. It
works with the same data (using reference counts) while the initial array hasn't
changed . But if you change the array, the real copy will be created,
and you won't see the changes within the foreach() loop - it will
operate with the copy of the initial array (unchanged).
So, foreach() should be used if you don't change the array in the
loop. If you do, use while().

E.g:

?php
$a = array (1, 2, 3);

print "foreach:\n";
foreach ($a as $k = $v) {
  if (!$k) unset($a[1]);
  print "$v\n";
}

print "while:\n";
while (list ($k, $v) = each ($a)) {
  print "$v\n";
}
?

will output:
foreach:
1
2  --- it should not, the value has already been unset!
3
while:
1
3

--
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
http://www.Books.Ru -- All Books of Russia
 



-- 
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] VERY URGENT -- MIRROR FOR PHP.NET ??

2001-04-12 Thread Rasmus Lerdorf

Pick just about any country code.  ie.  ca.php.net, uk.php.net,
de.php.net, us2.php.net (second US mirror)

On Thu, 12 Apr 2001, Reuben D Budiardja wrote:

 Hi All,
 I'm in the middle of crisis. I need to meet the deadline tomorrow, and
 tonight the www.php.net seems to be down.
 Anyone know any mirror site of www.php.net?
 I need function reference and manual only, and I have been always totally
 dependence on www.php.net. So, if anyone can tell me any mirror site of
 www.php.net so that I can continue my work, that would be really-really great.


 Thanks a lot
 Reuben D. Budiardja


 --
 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] foreach vs. while(list() = each())

2001-04-12 Thread Brian Clark

Hi Maxim,

@ 3:39:55 AM on 4/12/2001, Maxim Derkachev wrote:

 Hello Joe,

 Wednesday, April 11, 2001, 10:49:31 PM, you wrote:

JS What are the differences in these? I know with while() you have to reset() the
JS array afterwards, but foreach() you don't. Also foreach() appears to be quite
JS a bit faster. 

 You don't need to reset() the array, You also don't need list() and
 each(), which impose additional overhead. You put the array loop to the foreach()
 implementation, which is in C, instead of implementing it with PHP with while(),
 list() and each().
 That must be a lot faster.



-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please do not carbon copy me on list replies.



-- 
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] THANKS (was: VERY URGENT -- MIRROR FOR PHP.NET ??)

2001-04-12 Thread Reuben D Budiardja

I see.  Wonderful !!

Thanks again to anyone who responded within minutes. This is a great list :).

Reuben D. B


At 12:37 AM 4/12/01 -0700, Rasmus Lerdorf wrote:
Pick just about any country code.  ie.  ca.php.net, uk.php.net,
de.php.net, us2.php.net (second US mirror)

On Thu, 12 Apr 2001, Reuben D Budiardja wrote:

  Hi All,
  I'm in the middle of crisis. I need to meet the deadline tomorrow, and
  tonight the www.php.net seems to be down.
  Anyone know any mirror site of www.php.net?
  I need function reference and manual only, and I have been always totally
  dependence on www.php.net. So, if anyone can tell me any mirror site of
  www.php.net so that I can continue my work, that would be really-really 
 great.
 
 
  Thanks a lot
  Reuben D. Budiardja
 
 
  --
  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 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] foreach vs. while(list() = each())

2001-04-12 Thread Brian Clark


@ 3:45:39 AM on 4/12/2001, Brian Clark wrote:

...
 You don't need to reset() the array, You also don't need list() and
 each(), which impose additional overhead. You put the array loop to
 the foreach() implementation, which is in C, instead of
 implementing it with PHP with while(), list() and each(). That must
 be a lot faster.

D'oh, I need to be asleep. Sorry for shooting blanks. :)

Anyway, I was just going to say that I wanted this in PHP3 for a long
time (foreach()), then it arrived, and we're still using PHP3 for
various reasons (don't ask) and PHP3 doesn't have foreach(). :(

violin
  It's quite a sad story.
/violin

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please do not carbon copy me on list replies.



-- 
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] Any limits while using FILE()

2001-04-12 Thread elias

mydb.txt
username:password:email:fullname:phone

what are the appropriate ways to read the mydb.txt for authentication
purposes?

use the FILE() or FREAD? any ideas about what functions should i use to
manipulate this file?

if i use file() and mydb.txt was 9mb will the array be able to hold the
result?

-elias
http://www.kameelah.org/eassoft





-- 
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] VERY URGENT -- MIRROR FOR PHP.NET ??

2001-04-12 Thread Chris Fry

We have a copy of the manual on our site http://www.quillsoft.com.au

The click on PHP Manual

The search facility searches the manual.

Regards

Chris Fry

Reuben D Budiardja wrote:

 Hi All,
 I'm in the middle of crisis. I need to meet the deadline tomorrow, and
 tonight the www.php.net seems to be down.
 Anyone know any mirror site of www.php.net?
 I need function reference and manual only, and I have been always totally
 dependence on www.php.net. So, if anyone can tell me any mirror site of
 www.php.net so that I can continue my work, that would be really-really great.

 Thanks a lot
 Reuben D. Budiardja

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

--
Chris Fry
Quillsoft Pty Ltd
Specialists in Secure Internet Services and E-Commerce Solutions
10 Gray Street
Kogarah
NSW  2217
Australia

Phone: +61 2 9553 1691
Fax: +61 2 9553 1692
Mobile: 0419 414 323
eMail: [EMAIL PROTECTED]
http://www.quillsoft.com.au

You can download our Public CA Certificate from:-
https://ca.secureanywhere.com/htdocs/cacert.crt

**

This information contains confidential information intended only for
the use of the authorised recipient.  If you are not an authorised
recipient of this e-mail, please contact Quillsoft Pty Ltd by return
e-mail.
In this case, you should not read, print, re-transmit, store or act
in reliance on this e-mail or any attachments, and should destroy all
copies of them.
This e-mail and any attachments may also contain copyright material
belonging to Quillsoft Pty Ltd.
The views expressed in this e-mail or attachments are the views of
the author and not the views of Quillsoft Pty Ltd.
You should only deal with the material contained in this e-mail if
you are authorised to do so.

This notice should not be removed.



-- 
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] mail function????

2001-04-12 Thread Terence Truong

Hi,
I have PHP 4.0 with IIS on Win2K and I think compiled everything right.
I'm not sure how this works on Win32, but on unix it's fine. It's the mail()
function.
ex. mail("[EMAIL PROTECTED]","My Subject","My Test");
and it returns: Warning: Server Error in C:\PHP/index.php on line 4


ANY HELP IS APPRECIATED...

-Terence



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

2001-04-12 Thread elias

You can use the same code as you typed but use double-quotes instead of
single-quotes:
$fp=fopen("echo $agentcode' .'CyberTrac.ctr", "w");

-elias
http://www.kameelah.org/eassoft


""Wade Halsey"" [EMAIL PROTECTED] wrote in message
007401c0c318$1d488fe0$256410ac@wadeh">news:007401c0c318$1d488fe0$256410ac@wadeh...
Hi

I need to name a file like this
$fp=fopen('echo $agentcode' .'CyberTrac.ctr', "w");

the file gets named echo $agentcodeCyberTrac.ctr, now I want a real value in
$agentcode, there is a value in there so it must be my syntax, anyone help?

TIA
Wade







-- 
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] mail function????

2001-04-12 Thread elias

in PHP.ini
you have to specify the outgoing mail server:

[mail function]
SMTP= smtp.blah.com ; for Win32 only
sendmail_from= [EMAIL PROTECTED] ; for Win32 only
;sendmail_path=;for unix only, may supply arguments as well (default is
'sendmail -t -i')

-elias
http://www.kameelah.org/eassoft

""Terence Truong"" [EMAIL PROTECTED] wrote in message
9b3o6n$6fn$[EMAIL PROTECTED]">news:9b3o6n$6fn$[EMAIL PROTECTED]...
 Hi,
 I have PHP 4.0 with IIS on Win2K and I think compiled everything
right.
 I'm not sure how this works on Win32, but on unix it's fine. It's the
mail()
 function.
 ex. mail("[EMAIL PROTECTED]","My Subject","My Test");
 and it returns: Warning: Server Error in C:\PHP/index.php on line 4


 ANY HELP IS APPRECIATED...

 -Terence



 --
 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] mail function????

2001-04-12 Thread Matt Williams



 Hi,
 I have PHP 4.0 with IIS on Win2K and I think compiled
 everything right.
 I'm not sure how this works on Win32, but on unix it's fine. It's
 the mail()
 function.
 ex. mail("[EMAIL PROTECTED]","My Subject","My Test");
 and it returns: Warning: Server Error in C:\PHP/index.php on line 4

Hi

Firstly, you need to add your smtp server in php.ini under the [mail
function] heading
ie.

SMTP= smtp.mydomain.com

and secondly your connection to this needs to be open.

I've had php report errors before depending on whether the mail server likes
\r or \n or neither.

But if you're just sending the one liner like above this obviously rules
that out.

HTH

M@


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




FW: [PHP] $8 PHP hosting from Jeffrey Greer

2001-04-12 Thread Greig, Euan


Isn't it time to give this poor guy a rest?!?

-Original Message-
From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 15:21
To: [EMAIL PROTECTED]
Subject: Re: [PHP] $8 PHP hosting from Jeffrey Greer


Jeffrey Greer wrote:

 Is 1/2 per
 year too much down time?

sarcasm
Half a year downtime?  Yes, I would have a BIG problem with that.
/sarcasm

AMK4

--
W |
  |  I haven't lost my mind; it's backed up on tape somewhere.
  |
  ~
  Ashley M. Kirchner mailto:[EMAIL PROTECTED]   .   303.442.6410 x130
  SysAdmin / Websmith   . 800.441.3873 x130
  Photo Craft Laboratories, Inc. .eFax 248.671.0909
  http://www.pcraft.com  . 3550 Arapahoe Ave #6
  .. .  .  . .   Boulder, CO 80303, USA




**
Any opinions expressed in this email are those of the individual and 
not necessarily the Company. This email and any files transmitted with 
it, including replies and forwarded copies (which may contain alterations) 
subsequently transmitted from the Company, are confidential and solely for 
the use of the intended recipient. If you are not the intended recipient 
or the person responsible for delivering to the intended recipient, be 
advised that you have received this email in error and that any use is 
strictly prohibited.

**

-- 
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] attachments in mail

2001-04-12 Thread Dan Cleveland

How can i include a file as an attachment in an email?  I'm looking for
something like this...

mail($to_email,%subject,$content,$attached_file);

Thanks in advance!

Dan

+---+
|   |
|  If Yoda so strong in force is,   |
| why words in proper order he cannot put?  |
|   |
+---+
|   |
+---+
| Daniel J. Cleveland   |
|   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] __ $8/mo php hosting on 24/7, OC3+ web server ___

2001-04-12 Thread Dominick Vansevenant

I think 8 USD a month is good value, I pay 10 USD now on phpwebhosting.com
Their admin service is down a lot, speed is acceptable. However, they
had their server crashed once, all email accounts were deleted. They
apparently
had problems with backup. I recreated the email addresses since my business
depends on it. After I recreated the email accounts they managed to delete
the
accounts _again_ by apparently trying to restore some ancient backup or
something.
My business was closed then for a week, I was out of the country so all
emails
sent to my addresses kept bouncing for a week. I guess it cost me revenue, I
am
still with that same hosting provider, didn't take the effort in moving my 2
domains

 sigh 

D.

-Original Message-
From: Jeffrey Greer [mailto:[EMAIL PROTECTED]]
Sent: woensdag 11 april 2001 3:07
To: [EMAIL PROTECTED]
Subject: Re: [PHP] __ $8/mo php hosting on 24/7, OC3+ web server ___


I'm not trying to provide the level of service of a large isp or even
get 100 customers.  I would just like to pay for my half of the web
portal.  I thought $8/mo for my service would be a good value for php
programmers who do not need a high level of security.

Would you say $8/mo is not a good value for the level of service I
will provide?

Web hosting is not my main business.  I'm a software developer.


Earlier I wrote:
 I'm no security expert, but I can apply the most important patches.
 Yesterday I added mod_ssl to apache.

I didn't mean adding ssl is a patch.  I know how to apply patches to
source code and make other updates.


On 10 Apr 2001 15:12:59 -0700, [EMAIL PROTECTED] ("Phillip Bow") wrote:

Hi,
I don't mean to bash, but these sort of answers don't give me a lot of
faith in the service you are starting.  At the very least I expect my
service provider to provide competent answers to questions,  and to know
the
basics of security.

snipped
--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- I do web hosting and development.  Details
  at http://www.singlesconnection.org/services/

--
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] windows 2000 install

2001-04-12 Thread Paul Grant

The php4win site (http://www.php4win.de/) is a good source of information on
PHP running on Windows.
Ok I know you said that you can't use  Apache but if the specter of Notes
changes your mind, PHP Triad (http://www.phpgeek.com/) is a great way to get
PHP, MySQL and Apache up and running quickly.
Paul

 -Original Message-
 From: Deborah Dennison [SMTP:[EMAIL PROTECTED]]
 Sent: 11 April 2001 21:55
 To:   [EMAIL PROTECTED]
 Subject:  [PHP] windows 2000 install
 
 Desperate and frustrated new php peep here. Trying to install php4 on
 windows 2000 using IIS5. I have tried EVERYTHING. Last thing I tried was
 the easyinstaller from the phpeverywhere people. No luck. Everytime I try
 a
 test, I get a blank page???
 
 Take pity on me please!!! If I cannot get this to work I have to use
 Lotus Domino (yuck) and I am signed up to take a class but have to have
 php
 installed first. I already bought the book. I want to use this. I like
 this. But cannot get past the installation. Am I a lost cause already???
 
 Is there anyone out there who has been in my shoes and worked this all
 out?
 Can someone give me a list of what to check etc.. Everytime I try to
 install. I follow the directions and nothing seems to work. I have been to
 the php.net site and no luck with those instructions either. And no, I
 cannot use Apache so please don't even mention it.
 
 The sad thing is I had installed Apache and php4 on Windows NT in about a
 1/2 hour. Ran my phpinfo test and it worked. Then, my system config
 changed
 and now under 2000/IIs I cannot get it to work. Help me please...
 
 Thanks So much
 Deb
 
 P.S. I have tried sending this to the windows php list and it keeps
 getting
 returned so I thought I would try here
 
 
 -- 
 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]


The information contained in this e-mail is confidential, 
may be privileged and is intended only for the use of the 
recipient named above. If you are not the intended 
recipient or a representative of the intended recipient, 
you have received this e-mail in error and must not copy, 
use or disclose the contents of this email to anybody 
else. If you have received this e-mail in error, please 
notify the sender immediately by return e-mail and 
permanently delete the copy you received. This email has 
been swept for computer viruses. However, you should 
carry out your own virus checks. 


Registered in Ireland, No. 205721. http://www.FINEOS.com 

-- 
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] php.ini

2001-04-12 Thread Michael Hall


I did, but got Internal Server Errors for several different
command formats using = and " ".
In the end, this format appears to work (no error message anyway, and the 
files upload) ...

php_value max_execution_time 60

Mick

  Is it possible to override the maximum script execution time as set in
  php.ini using an Apache directive like this in an .htaccess file?:
 
  php_value max_execution_time = 60
 
 What about simply trying it? :)



-- 
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] RE: Javascript issue

2001-04-12 Thread Tim Ward

all the javascript cares about is the page after it is sent by php. browse
the page and view source will show you what the problem is.

Tim Ward
Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


 -Original Message-
 From: Jack Sasportas [mailto:[EMAIL PROTECTED]]
 Sent: 11 April 2001 20:37
 To: php
 Subject: Javascript issue
 
 
 I am doing a basic mouseiver on a page where some php code 
 also resides.
 
 I basically dump the top of the web page through a function page_top()
 which is just passing all the html  java through a string, then pull
 some db stuff out, and finally call the page_bottom() which 
 pulls in the
 rest of the html.
 
 The problem is that the mouseover doesn't work within the php 
 page which
 puts the whole thing together.
 
 Any ideas on how to work around this ?
 
 Thanks
 
 --
 ___
 Jack Sasportas
 Innovative Internet Solutions
 Phone 305.665.2500
 Fax 305.665.2551
 www.innovativeinternet.com
 www.web56.net
 
 
 

-- 
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] Php-extensies

2001-04-12 Thread Sebastian Van Dingenen

Is there a manual or book on how to write php
extensions, with nice and full explications??
Sebastian

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

-- 
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] Loop issue

2001-04-12 Thread Fates

I am trying to make a simple HTML menu system. I am having problems
displaying
menu links under the correct submenu from a loop.  I want to be able to
change web menus on the fly.

I have a database with two tables. One table holds menu and sub menu
headings and the other table holds the contents of each submenu (the
actual menu links and
names).  I need to display the menu title and then the sub menu title
from table 1 and
then display the submenu contents or links from table 2 and then display
the next set
of links under the correct submenu

Example output would look like this:

Say person clicks on Admin menu which is already displayed then the
networking
submenu heading will display along with the submenu links:

   Example:   Admin(main menu title from db
table 1)
Networking(submenu title , from
db table 1
ping(Link to ping
from db table 2)
traceroute   (Link to ping from
db table 2)
nsloopup etc


I don't know how to go about outputing the links under the correct
submenu.  The
main menu is no problem. I am thinking I would need a loop within a
loop.

The query I use: $query = "SELECT * FROM menutable, elementstable WHERE
menutable.menutable_id = elementstable.menuid AND menutable.mainmenu =
'Admin' ";

$result = mysql_db_query("menus", $query);

This loop simply assigns variables and prints out all output under the
main menu
called Admin.  The problem is how do I display

  while ($r = mysql_fetch_array($result)) {

// start menu table (table holds main menu/sub menu headings
$menutable_id = $r["menutable_id"];
$menunumber = $r["menunumber"];
$mainmenu = $r["mainmenu"];
$submenu = $r["submenu"];
// start elements table (table that holds the links and names of each
link)
// element_id references menu table
$element_id  = $r["element_id"];
$element = $r["element"];
$url = $r["url"];
$menuid = $r["menuid"];

// next display data this is wrong cause it displays 1 submenu and 1
link looping
?
TD?  echo "$submenu"; ?/TD
TDa href="? echo "$url"; ? " ? echo "$element"; ?/a /TD
?

// this doesn't work
if ($menutable_id == $menuid) {
 ?
 TD?  echo "equal $submenu"; ?/TD
 ?
   // print "both equal";
   //
   // $b = $a;
  }

?

Notes:
// outer loop   display submenus (when submenu changes display next set
of elements
or links from inner loop)   if submenu changes then display next set of
menu links for
that submenu
// inner loop display elements or links for that submenu until sub menu
changes


MySQL and PHP4 latest using Linux OS


-- 
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] Are calling COM applications a trojan?

2001-04-12 Thread Matt Williams


 Honestly, I still don't get you.

 How can the client's Word not open if the script didn't make it open with
 COM.
?

Anyway,

The only way PHP can make Word open on a clients machine is if a word
document is sent to the client, or the clients browser believes that is
receiving a word document.

You may be able to open word and insert text client side by using activex or
vbscript but PHP is server side and cannot spawn Word on a clients machine
using COM.

You would have to use COM server side to create the document the send it to
the browser
NB. This requires word to be installed server side.

M@


-- 
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] HELP with (Fatal Error: Call to a member function on a non-object)

2001-04-12 Thread g0thic

Thanks!

That solved that one.. Now just a few more.. But with a different subject.

On 4/12/01 12:34 AM, "Taylor, Stewart" [EMAIL PROTECTED]
wrote:

 This error suggests the $tpl is undefined i.e. you forget to create it using
 new.
 
 -Stewart
 
 -Original Message-
 From: g0thic [mailto:[EMAIL PROTECTED]]
 Sent: 12 April 2001 01:17
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: [PHP] HELP with (Fatal Error: Call to a member function on a
 non-object)
 
 
 Hi guys,
 
   Below is the error message that I am receiving, and 3 or 4 lines around
 the code that seems to be causing the issue.  Lines are numbered so it gives
 you a good idea of line 183.  What I need to know, is in my context, what is
 the error saying, and if there is a variable (or function or class) to
 define, how can I tell which one it is?
 
 Fatal error: Call to a member function on a non-object in
 /home/httpd/www/g0thic/cawood_a4/edit_f.php on line 183
 
 178-  if($seditFileErr == "")
 179-  {
 180-// Load primary key and form parameters
 181-$fldf_id = get_param("f_id");
 182-$fldu_id = get_param("u_id");
 183-$tpl-set_var("Trn_u_id", get_param("u_id"));
 184-$pf_id = get_param("f_id");
 185-$tpl-set_var("editFileError", "");
 186-  }
 
 Get_param is a function to get the variable "u_id" that would have been sent
 back with the page url (e.g.: page.php?u_id=3993)
 
 Any ideas?
 
 Cheers,
 
 Sean
 
 
 --
 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 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] HELP! URGENT Upload file issue

2001-04-12 Thread g0thic

Hey there guys;

I have been going hard at this problem for a while now, but at the end of
the day, I always get the same error. Unfortunately I have a deadline that I
have to meet :( 

k, here is the error (I am sure you have all seen this one before):

Warning: Unable to create '/home/httpd/www/g0thic/cawood_files/email.html':
No such file or directory in /home/httpd/www/g0thic/cawood/edit_f.php on
line 31 

now, I have done some extensive checking, and this is the same script /html
file used to upload the file, the interesting part is that the file is in
the /tmp/ directory before and after upload. I am running the script to list
the contents of the /tmp directory BEFORE AND AFTER attempting the copy
routine: 

copy($f_loc,$destination.''.$f_loc_name);

Contents of $destination = /home/httpd/www/g0thic/cawood_files/

the entire copy string looks like this (of course this is after the
variables have been populated):

/tmp/phpE85ySu,/home/httpd/www/g0thic/cawood_files/email.html

Ok, you will probably ask what the perms of ./cawood_files/ is, I have
chmod'd them to 777, the perms of /tmp are also @ 777.

I know the destination is created correctly, because this is the string I am
using: 

$destination = "$DOCUMENT_ROOT/cawood_files/";

and ./cawood_files/ is a valid directory, I used the Apache $DOCUMENT_ROOT
variable to provide consistency if I ever changed the location of the
/cawood_files directory.


Below are just a few extras:

   //BEGIN UPLOAD FILE SEQUENCE
   global $fldf_loc;
   global $destination;
   
   //LISTING DIR BEFORE COPY
   $handle=opendir('/tmp/');
   while ($file = readdir($handle)) {
   if ($file != "."  $file != ".."  $file != "xml-edifact"  $file !=
".qmail-qread"  $file != ".font-unix"  $file != ".esd"  $file !=
".qmail-qstat") { 
  echo "$fileBR";
  } 
   }
   closedir($handle);
   
   //COPY FILE
   copy($f_loc,$destination.''.$f_loc_name);
   
   //LISTING DIR AFTER COPY (using different variables just to make sure)
   $extra_handle=opendir('/tmp/');
   while ($extra_file = readdir($handle)) {
   if ($extra_file != "."  $extra_file != ".."  $extra_file !=
"xml-edifact"  $extra_file != ".qmail-qread"  $extra_file !=
".font-unix"  $extra_file != ".esd"  $extra_file != ".qmail-qstat") {
  echo "$extra_fileBR";
  } 
   }
   closedir($handle);
   
   //ECHO COPY PARAMETERS
   echo "BR$f_loc,$destination$f_loc_nameBR";


Any ideas? 

Cheers, 



-- 
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] search highlighting

2001-04-12 Thread Matt Williams

Hi

I'm implementing a simple keyword search.
I want the results to be displayed with the keywords highlighted.
I am currently using this to highlight the keywords

str_replace($string,"b$string/b",$field);

If I search for php, it will find PHP, PhP etc... but using the above only
php will will be highlighted, not PHP.
I've tried eregi_replace but I could only get that to change the case and
highlight that ie. PHP would become php.

Can anyone point me in the direction of how to highlight the string
regardless of case but keep the case for the match.

TIA

M@


-- 
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] Updating a value in a session

2001-04-12 Thread Plutarck

What happens is when you use session_start(), all variables in the session
become initialized to the values they have previously been given.

So when you call session_start the second time, a variable named $value is
created with the value it was given earlier.

The problem is, it over-writes the variable $value which was submitted in
the form.

The way to get around this is to rename your form to "form_value". Then
right after you register value in your session, insert this:

$value = $form_value;

It should work without error.


--
Plutarck
Should be working on something...
...but forgot what it was.



""Tobias Talltorp"" [EMAIL PROTECTED] wrote in message
9b431b$fau$[EMAIL PROTECTED]">news:9b431b$fau$[EMAIL PROTECTED]...
 On my first page I have a form that posts a value to page2 where it gets
 registered in a session. Works like a charm...
 When I try to do this again, but send another value, the session doesn´t
 update the new value.
 Why?

 PAGE 1 ---
 form action="page2.php" method="post"

 input type="text" name="value" size="30"
 input type="submit" name="submit"

 /form


 PAGE 2 ---
 ?
 session_start();
 session_register("value");
 ?

 Thanks,
 // Tobias





 --
 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] $8 PHP hosting from Jeffrey Greer

2001-04-12 Thread Plutarck

Anyone wonder if he was kidding?

The part about adding mod_ssl to apache just reaks of concept comedy to me.

Then again, I see a joke in every phrase...


--
Plutarck
Should be working on something...
...but forgot what it was.


""Greig, Euan"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 Isn't it time to give this poor guy a rest?!?

 -Original Message-
 From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]]
 Sent: 11 April 2001 15:21
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] $8 PHP hosting from Jeffrey Greer


 Jeffrey Greer wrote:

  Is 1/2 per
  year too much down time?

 sarcasm
 Half a year downtime?  Yes, I would have a BIG problem with that.
 /sarcasm

 AMK4

 --
 W |
   |  I haven't lost my mind; it's backed up on tape somewhere.
   |
   ~
   Ashley M. Kirchner mailto:[EMAIL PROTECTED]   .   303.442.6410 x130
   SysAdmin / Websmith   . 800.441.3873 x130
   Photo Craft Laboratories, Inc. .eFax 248.671.0909
   http://www.pcraft.com  . 3550 Arapahoe Ave #6
   .. .  .  . .   Boulder, CO 80303, USA




 **
 Any opinions expressed in this email are those of the individual and
 not necessarily the Company. This email and any files transmitted with
 it, including replies and forwarded copies (which may contain alterations)
 subsequently transmitted from the Company, are confidential and solely for
 the use of the intended recipient. If you are not the intended recipient
 or the person responsible for delivering to the intended recipient, be
 advised that you have received this email in error and that any use is
 strictly prohibited.

 **

 --
 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] search highlighting

2001-04-12 Thread Plutarck

You'll probably want to use preg_replace.

For instance:

$string = "/(PHP)/i";

$target = "Please highlight PhP for me.";

echo $target, 'br';

$target = preg_replace($string, "b\\1/b", $target);

echo $target, 'br';


\\1 is whatever was found in the first parentheses(sp).


--
Plutarck
Should be working on something...
...but forgot what it was.


""Matt Williams"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi

 I'm implementing a simple keyword search.
 I want the results to be displayed with the keywords highlighted.
 I am currently using this to highlight the keywords

 str_replace($string,"b$string/b",$field);

 If I search for php, it will find PHP, PhP etc... but using the above only
 php will will be highlighted, not PHP.
 I've tried eregi_replace but I could only get that to change the case and
 highlight that ie. PHP would become php.

 Can anyone point me in the direction of how to highlight the string
 regardless of case but keep the case for the match.

 TIA

 M@


 --
 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] Editors ... calling them, or PHP-based one?

2001-04-12 Thread The Hermit Hacker


Sorry for vague subject, only so many things you can put in there ...

I'm looking for someone way, in PHP4, to take a "form/template" for a
letter on the server side, pass it to the client, let them edit it
(including markup tags like bold and underline) and then pass it back to
the server ...

It has to be relatively transparent to the end user ... I don't want to
have to teach them to put B/B tags around where they want bold ...

I'm not particular on editor ... right now, if I have to force the client
to install StarOffice for commonality across platforms, I'll do that and
expand from that ... but some way of 'click here, download doc to
computer, open up file with insert editor of choice, save back to server
(if possible)' ...

Ideas?

thanks ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org


-- 
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] Editors ... calling them, or PHP-based one?

2001-04-12 Thread Dominick Vansevenant

You can let the users edit online a form which returns html code, it is
called
dhtmled, you can find it on msdn.microsoft.com

http://msdn.microsoft.com/workshop/author/dhtml/edit/default.asp

If you play with it a bit, you will find a way to upload a html doc to the
client, let him edit and send it back.

Regards,

D.

-Original Message-
From: The Hermit Hacker [mailto:[EMAIL PROTECTED]]
Sent: donderdag 12 april 2001 14:55
To: [EMAIL PROTECTED]
Subject: [PHP] Editors ... calling them, or PHP-based one?



Sorry for vague subject, only so many things you can put in there ...

I'm looking for someone way, in PHP4, to take a "form/template" for a
letter on the server side, pass it to the client, let them edit it
(including markup tags like bold and underline) and then pass it back to
the server ...

It has to be relatively transparent to the end user ... I don't want to
have to teach them to put B/B tags around where they want bold ...

I'm not particular on editor ... right now, if I have to force the client
to install StarOffice for commonality across platforms, I'll do that and
expand from that ... but some way of 'click here, download doc to
computer, open up file with insert editor of choice, save back to server
(if possible)' ...

Ideas?

thanks ...

Marc G. Fournier   ICQ#7615664   IRC Nick:
Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary:
scrappy@{freebsd|postgresql}.org


--
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] Editors ... calling them, or PHP-based one?

2001-04-12 Thread Plutarck

Ick...I'd say it's a good idea, but it's going to be a bi...tter fight with
technology.

First, you have to have some application do the loading/unloading. PHP can't
do that, of course.

But, you could use some form of java...but you'd have to get fancy. Or you
could just use file upload in a form, which is easier.

If you do that, you need only parse out the file.

The best way to do that is pick a text format that does what you want it to
do, and is universal across platforms. You don't even need to worry about
the editor they use, as long as it's saved in the proper format.

I reccomend you use either a word document, or perhaps Rich Text Format is
best (rtf).

Then you just have to figure out how text is saved in that format, and
viola. You just use PHP to go from there...

...I'm sure it's easier said than done, and I have absolutely no clue how
the content of rtf files is different from txt (but I'd love to know!), but
I can see it being very possible if you pick only a few standard file
formats, and use the file upload features.


It's actually a very good idea. I'm surprised no one has done it...which
should probably worry you ;)


--
Plutarck
Should be working on something...
...but forgot what it was.



"The Hermit Hacker" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 Sorry for vague subject, only so many things you can put in there ...

 I'm looking for someone way, in PHP4, to take a "form/template" for a
 letter on the server side, pass it to the client, let them edit it
 (including markup tags like bold and underline) and then pass it back to
 the server ...

 It has to be relatively transparent to the end user ... I don't want to
 have to teach them to put B/B tags around where they want bold ...

 I'm not particular on editor ... right now, if I have to force the client
 to install StarOffice for commonality across platforms, I'll do that and
 expand from that ... but some way of 'click here, download doc to
 computer, open up file with insert editor of choice, save back to server
 (if possible)' ...

 Ideas?

 thanks ...

 Marc G. Fournier   ICQ#7615664   IRC Nick:
Scrappy
 Systems Administrator @ hub.org
 primary: [EMAIL PROTECTED]   secondary:
scrappy@{freebsd|postgresql}.org


 --
 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] www.php.net - gateway timeout?

2001-04-12 Thread maatt

Anyone else having probs getting through? Or is it just me? Been trying
since the wee hours (GMT).

--
Matt Kynaston
remove the green eggs before replying



-- 
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 Digest 12 Apr 2001 13:41:59 -0000 Issue 623

2001-04-12 Thread php-general-digest-help


php-general Digest 12 Apr 2001 13:41:59 - Issue 623

Topics (messages 48226 through 48298):

Re: checkdnsrr() in PHP 4.0.5rc1
48226 by: Yasuo Ohgaki

Re: install LONG_MAX
48227 by: Yasuo Ohgaki

array() stuff
48228 by: Duke
48229 by: Gfunk
48230 by: CC Zona

Re: foreach vs. while(list() = each())
48231 by: Lewis Bergman
48233 by: Plutarck
48258 by: Maxim Derkachev
48260 by: Brian Clark
48262 by: Brian Clark
48275 by: Tim Ward

popup window
48232 by: Dan Harrington
48236 by: Plutarck

Re: timer in PHP
48234 by: Plutarck

Re: No new topic using reply please.
48235 by: Plutarck

Re: Making ALL your scripts work with register.globals turned off
48237 by: Plutarck

Case-Sensitivity with PHP and MySQL
48238 by: midget2000x
48240 by: Plutarck

Newsgroups like this one?
48239 by: Plutarck
48243 by: Alvin Tan

Re: Database result set question
48241 by: Yasuo Ohgaki

Re: System V Semaphores
48242 by: Yasuo Ohgaki

slashes added to template files
48244 by: Franklin Hays

uploading with ftp
48245 by: David Minor

Passing Parameter
48246 by: Jack Sasportas

Re: passthru
48247 by: Dean Hall

syntax
48248 by: Wade Halsey
48249 by: Jason Murray
48266 by: elias
48283 by: Renze Munnik
48291 by: elias

array output as a variable?
48250 by: midget2000x
48251 by: Brian Clark
48252 by: elias
48254 by: Brian Clark

Re: PHP and IE5.5 download problem
48253 by: trogers

VERY URGENT -- MIRROR FOR PHP.NET ??
48255 by: Reuben D Budiardja
48257 by: Brian Clark
48259 by: Rasmus Lerdorf
48264 by: Chris Fry

Re: HELP with (Fatal Error: Call to a member function on a non-object)
48256 by: Taylor, Stewart
48286 by: g0thic

Re: THANKS (was: VERY URGENT -- MIRROR FOR PHP.NET ??)
48261 by: Reuben D Budiardja

Any limits while using FILE()
48263 by: elias

mail function
48265 by: Terence Truong
48267 by: elias
48268 by: Matt Williams

Re: $8 PHP hosting from Jeffrey Greer
48269 by: Greig, Euan
48290 by: Plutarck

attachments in mail
48270 by: Dan Cleveland
48274 by: KPortsmout.aol.com

Re: radio groups in looped form
48271 by: Rudolf Visagie

Re: __ $8/mo php hosting on 24/7, OC3+ web server ___
48272 by: Harshdeep S Jawanda
48273 by: Dominick Vansevenant

Re: windows 2000 install
48276 by: Paul Grant

Re: Can't redeclare already declared function
48277 by: Christian Reiniger

Re: php.ini
48278 by: Michael Hall

Re: Javascript issue
48279 by: Tim Ward

Php-extensies
48280 by: Sebastian Van Dingenen

Loop issue
48281 by: Fates

Re: Are calling COM applications a trojan?
48282 by: Zeus
48284 by: Matt Williams

Updating a value in a session
48285 by: Tobias Talltorp
48289 by: Plutarck

HELP! URGENT Upload file issue
48287 by: g0thic

search highlighting
48288 by: Matt Williams
48292 by: Plutarck

Editors ... calling them, or PHP-based one?
48293 by: The Hermit Hacker
48294 by: Dominick Vansevenant
48295 by: Plutarck

www.php.net - gateway timeout?
48296 by: maatt

php-lib questions
48297 by: Mark
48298 by: Plutarck

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]


--



If you are using Windows, no. (resolver does not work under windows)

Regards,
--
Yasuo Ohgaki


"Jochen Kaechelin" [EMAIL PROTECTED] wrote in message
NFBBLHGFAKNLFNPOHMPHCEENCGAA.jk@intern">news:NFBBLHGFAKNLFNPOHMPHCEENCGAA.jk@intern...
 What about this error:

 checkdnsrr() is not supported in this PHP build

 Any answers?

 --
 Jochen Kaechelin - Ihr WEBberater
 Stuttgarter Str.3, D-73033 Goeppingen
 Tel. 07161-92 95 94, Fax 07161-92 95 98
 http://www.wa-p.de, mailto:[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]






Do you install Linux kernel source? and have correct symlink for kernel headers?
Sounds like it's the cause to me.

Regards,
--
Yasuo Ohgaki


""Plamen Slavov"" [EMAIL PROTECTED] wrote in message
002a01c0c276$32b005e0$98d209c0@plamensl2">news:002a01c0c276$32b005e0$98d209c0@plamensl2...
 Hi all,
 i try to install e php-4.0.4pl1 on a redhat 6.0 with apache_1.3.19,
 but when i try to make php i get the following error message:

  make[1]: Entering directory 

Re: [PHP] Creating Arrays

2001-04-12 Thread Rodney J. Woodruff

Do you understand the options that the other people have explained?

-- Rodney

"Ashley M. Kirchner" wrote:

 "Rodney J. Woodruff" wrote:

  http://www.php.net/manual/en/function.msql-fetch-array.php

 Okay, call me dense.  I can't figure this out.  This is what I'm trying to
 do:

 $sql = "select p_id, project from proj where uid=$uid";
 $result = mysql_db_query($database,$sql);

 (the resulting table in mysql is as follows:
   +--+---+
   | p_id | project   |
   +--+---+
   |0 | Undefined |
   |1 | Work  |
   |2 | Personal  |
   +--+---+
   3 rows in set (0.00 sec)

 ...yes, that 'Undefined' IS a valid project, and the p_id's don't
 necessarily start at 0 either.)

 I need that result into the following:
 $items = array(0 = "Undefined", 1 = "Work", 2 = "Personal");

 Reason is, I pass that $items variable to the following function:

   function MakeSelect($items, $selected) {
 $str = "";
 while(list($value, $name) = each($items)) {
   $str .= "option value=\"$value\"" . ($value != $selected ? \
   "" : " selected") . "$name\n";
 }
 return $str;
   }

 ...which then creates (assuming the person had 'Work' previously
 selected):

 select name=whatever_i_specify
 option value="0"Undefined
 option value="1" selectedWork
 option value="2"Personal
 /select

 How do I create that $items array?

 AMK4

 --
 W |
   |  I haven't lost my mind; it's backed up on tape somewhere.
   |
   ~
   Ashley M. Kirchner mailto:[EMAIL PROTECTED]   .   303.442.6410 x130
   SysAdmin / Websmith   . 800.441.3873 x130
   Photo Craft Laboratories, Inc. .eFax 248.671.0909
   http://www.pcraft.com  . 3550 Arapahoe Ave #6
   .. .  .  . .   Boulder, CO 80303, USA

 --
 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] www.php.net - gateway timeout?

2001-04-12 Thread Plutarck

I ran a few tracers and it seems that the server php.net is on is the
problem.

My packets are fine all the way along till final hop 13, which seems to be
located in Rochester NY, on the network of Choice One Communications, IP
208.247.106.187, running Apache/1.3.12 (Unix) DAV/0.9.18-dev PHP/4.0.5-dev.

The site loads fine now, but last time I did it it was all being rejected on
that hop. The server was refusing packets.


Maybe they are having problems with their server lately? It's been really
sporatic, so I switched my links to use us.php.net...annoying ;(


--
Plutarck
Should be working on something...
...but forgot what it was.



""maatt"" [EMAIL PROTECTED] wrote in message
9b4ahg$q9v$[EMAIL PROTECTED]">news:9b4ahg$q9v$[EMAIL PROTECTED]...
 Anyone else having probs getting through? Or is it just me? Been trying
 since the wee hours (GMT).

 --
 Matt Kynaston
 remove the green eggs before replying



 --
 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] Editors ... calling them, or PHP-based one?

2001-04-12 Thread maatt

What you're trying to do sounds a lot like content management. I'm no
expert, but you should be able to do all this through the browser serverside
(no need to download/upload). Have you checked out www.midgard-project.org,
www.dotvoid.com/firesite.php, or http://phpwebsite.appstate.edu/?

Matt

"The Hermit Hacker" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 Sorry for vague subject, only so many things you can put in there ...

 I'm looking for someone way, in PHP4, to take a "form/template" for a
 letter on the server side, pass it to the client, let them edit it
 (including markup tags like bold and underline) and then pass it back to
 the server ...

 It has to be relatively transparent to the end user ... I don't want to
 have to teach them to put B/B tags around where they want bold ...

 I'm not particular on editor ... right now, if I have to force the client
 to install StarOffice for commonality across platforms, I'll do that and
 expand from that ... but some way of 'click here, download doc to
 computer, open up file with insert editor of choice, save back to server
 (if possible)' ...

 Ideas?

 thanks ...

 Marc G. Fournier   ICQ#7615664   IRC Nick:
Scrappy
 Systems Administrator @ hub.org
 primary: [EMAIL PROTECTED]   secondary:
scrappy@{freebsd|postgresql}.org


 --
 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] www.php.net - gateway timeout?

2001-04-12 Thread maatt

 208.247.106.187, running Apache/1.3.12 (Unix) DAV/0.9.18-dev
PHP/4.0.5-dev.

Dearly hope it's not 4.0.5-dev that's the prob! Been wanting to try it,
which is why I can't use uk.php.net!

 The site loads fine now, but last time I did it it was all being rejected
on
 that hop. The server was refusing packets.

Yup, fine for me too.

Matt



-- 
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] Geeklog or phpSlash?

2001-04-12 Thread Charlie Llewellin

I'm setting up a slashdot style site using PHP, and am looking for
recommendations for ready-to-use packages, such as geeklog and PhpSlash. Has
anybody used either of these, got any comments, or suggestions for other
software.

TIA,
Charlie


-- 
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] sending mail.. PLEASE HELP!

2001-04-12 Thread Jude Sanglitan


If I was to send mail could I possibly send it using mail() function or I
need to setup some things to make it work properly? Everytime I run my PHP
script, it always gives me an Error: Failed to Connect to
c:\inetpub\wwwroot\ and it was pointing to my mail() function.

I just followed what the book says and I guess there is a part of it that I
missed or whatever. Could someone help me? Thanks!!!


Jithy


-- 
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] www.php.net - gateway timeout?

2001-04-12 Thread Plutarck

 Dearly hope it's not 4.0.5-dev that's the prob! Been wanting to try it,
 which is why I can't use uk.php.net!

LOL! That's exactly what I was thinking...hehe.

Maybe the people in charge just got back from apachecon, and figured out
what was wrong? Or maybe just getting back from apachecon was what was
wrong? ;)


--
Plutarck
Should be working on something...
...but forgot what it was.




""maatt"" [EMAIL PROTECTED] wrote in message
9b4cbu$hdt$[EMAIL PROTECTED]">news:9b4cbu$hdt$[EMAIL PROTECTED]...
  208.247.106.187, running Apache/1.3.12 (Unix) DAV/0.9.18-dev
 PHP/4.0.5-dev.

 Dearly hope it's not 4.0.5-dev that's the prob! Been wanting to try it,
 which is why I can't use uk.php.net!

  The site loads fine now, but last time I did it it was all being
rejected
 on
  that hop. The server was refusing packets.

 Yup, fine for me too.

 Matt



 --
 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] Easy News Script

2001-04-12 Thread Zeus

I'm sure many of you heard of newsphp ? (the newspro-clone).

Somehow I felt attached to it except that it doesn't use databases for its file 
storing.

Does anyone know a good similar script (easy to setup) that uses mySQL?




Re: [PHP] Editors ... calling them, or PHP-based one?

2001-04-12 Thread Dezider Góra

Thinking about this, about a week ago, there was a discussion about parsing word
document. Just to dig the text from doc. It sounds interesting, and since I have
in my crazy mind an idea, that I'd create a database of all documents that were
ever created in our company and put them in to the database, I'd also need to
know what's in those docs. So I followed the given link and it seems to be
pretty easy. Just install a program and pass it a document and it will parse the
text. The link is:
http://wvware.sourceforge.net/
Check out the site, may be you could find something similiar for rtf documents,
'cause I think its format is much easier to "crack".

hth
Dezider.

Plutarck wrote:

 Ick...I'd say it's a good idea, but it's going to be a bi...tter fight with
 technology.

 First, you have to have some application do the loading/unloading. PHP can't
 do that, of course.

 But, you could use some form of java...but you'd have to get fancy. Or you
 could just use file upload in a form, which is easier.

 If you do that, you need only parse out the file.

 The best way to do that is pick a text format that does what you want it to
 do, and is universal across platforms. You don't even need to worry about
 the editor they use, as long as it's saved in the proper format.

 I reccomend you use either a word document, or perhaps Rich Text Format is
 best (rtf).

 Then you just have to figure out how text is saved in that format, and
 viola. You just use PHP to go from there...

 I'm sure it's easier said than done, and I have absolutely no clue how
 the content of rtf files is different from txt (but I'd love to know!), but
 I can see it being very possible if you pick only a few standard file
 formats, and use the file upload features.

 It's actually a very good idea. I'm surprised no one has done it...which
 should probably worry you ;)

 --
 Plutarck
 Should be working on something...
 but forgot what it was.


-- 
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] sending mail.. PLEASE HELP!

2001-04-12 Thread Plutarck

You need to alter your php.ini file in the mail section to point the proper
path to sendmail, and you need some form of sendmail there for PHP to point
to in the first place!

So there's no just calling mail() without setting stuff up.


--
Plutarck
Should be working on something...
...but forgot what it was.


""Jude Sanglitan"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 If I was to send mail could I possibly send it using mail() function or I
 need to setup some things to make it work properly? Everytime I run my PHP
 script, it always gives me an Error: Failed to Connect to
 c:\inetpub\wwwroot\ and it was pointing to my mail() function.

 I just followed what the book says and I guess there is a part of it that
I
 missed or whatever. Could someone help me? Thanks!!!


 Jithy


 --
 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] sending mail.. PLEASE HELP!

2001-04-12 Thread Data Driven Design

I couldn't get it to work by changing php.ini either, I guess my isp mail
server wouldn't relay. I downloaded a mailserver from www.tnsoft.com , its
not free but it is an option if you get too frustrated trying to make it
work.

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: Jude Sanglitan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 10:16 AM
Subject: [PHP] sending mail.. PLEASE HELP!



 If I was to send mail could I possibly send it using mail() function or I
 need to setup some things to make it work properly? Everytime I run my PHP
 script, it always gives me an Error: Failed to Connect to
 c:\inetpub\wwwroot\ and it was pointing to my mail() function.

 I just followed what the book says and I guess there is a part of it that
I
 missed or whatever. Could someone help me? Thanks!!!


 Jithy


 --
 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] sending mail.. PLEASE HELP!

2001-04-12 Thread Jude Sanglitan


Hi thanks!!!

I should've change my SMTP first.. geezz!! That makes me 10 times smarter
than before.
It is working now.! Thanks a lot!






-Original Message-
From: Plutarck [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 10:12 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] sending mail.. PLEASE HELP!


You need to alter your php.ini file in the mail section to point the proper
path to sendmail, and you need some form of sendmail there for PHP to point
to in the first place!

So there's no just calling mail() without setting stuff up.


--
Plutarck
Should be working on something...
...but forgot what it was.


""Jude Sanglitan"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 If I was to send mail could I possibly send it using mail() function or I
 need to setup some things to make it work properly? Everytime I run my PHP
 script, it always gives me an Error: Failed to Connect to
 c:\inetpub\wwwroot\ and it was pointing to my mail() function.

 I just followed what the book says and I guess there is a part of it that
I
 missed or whatever. Could someone help me? Thanks!!!


 Jithy


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

2001-04-12 Thread Renze Munnik

elias wrote:
 
 Hey, i didn't write 'echo' in the origin but i just double-quoted what he
 wrote in the first place w/o even noticing the 'echo' ;)


Ehhh... this wasn't specifically addressed to you Elias. It was more
like a general wondering...

-- 

* RzE:

***
**  Renze Munnik
**
**  E: [EMAIL PROTECTED]
**  M: +31 6 218 111 43
***

-- 
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] Editors ... calling them, or PHP-based one?

2001-04-12 Thread Plutarck

Jackpot! Cha-ching!

That site triggered my memory!

I remember downloading a program from some obscure site which was suppose to
be able to view a huge amount of files which are most often used in games. I
wanted to see the art :)

Anyhoo, it reminded me of another site which is linked on that website,
which is:

http://www.wotsit.org/

*dances*

For the RTF:

http://www.wotsit.org/search.asp?page=3s=text

Oooo I'm soo happy...toys toys toys! So many wonderful bits and bytes to
play with now...


--
Plutarck
Should be working on something...
...but forgot what it was.




"Dezider Góra" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Thinking about this, about a week ago, there was a discussion about
parsing word
 document. Just to dig the text from doc. It sounds interesting, and since
I have
 in my crazy mind an idea, that I'd create a database of all documents that
were
 ever created in our company and put them in to the database, I'd also need
to
 know what's in those docs. So I followed the given link and it seems to be
 pretty easy. Just install a program and pass it a document and it will
parse the
 text. The link is:
 http://wvware.sourceforge.net/
 Check out the site, may be you could find something similiar for rtf
documents,
 'cause I think its format is much easier to "crack".

 hth
 Dezider.

 Plutarck wrote:

  Ick...I'd say it's a good idea, but it's going to be a bi...tter fight
with
  technology.
 
  First, you have to have some application do the loading/unloading. PHP
can't
  do that, of course.
 
  But, you could use some form of java...but you'd have to get fancy. Or
you
  could just use file upload in a form, which is easier.
 
  If you do that, you need only parse out the file.
 
  The best way to do that is pick a text format that does what you want it
to
  do, and is universal across platforms. You don't even need to worry
about
  the editor they use, as long as it's saved in the proper format.
 
  I reccomend you use either a word document, or perhaps Rich Text Format
is
  best (rtf).
 
  Then you just have to figure out how text is saved in that format, and
  viola. You just use PHP to go from there...
 
  I'm sure it's easier said than done, and I have absolutely no clue
how
  the content of rtf files is different from txt (but I'd love to know!),
but
  I can see it being very possible if you pick only a few standard file
  formats, and use the file upload features.
 
  It's actually a very good idea. I'm surprised no one has done it...which
  should probably worry you ;)
 
  --
  Plutarck
  Should be working on something...
  but forgot what it was.


 --
 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] sending mail.. PLEASE HELP!

2001-04-12 Thread Jude Sanglitan

Oops! How can I prevent this?

Fatal error: Maximum execution time of 30 seconds exceeded in
C:\Inetpub\wwwroot\TFC Survey Form\mailform.php on line 17


-JS


-- 
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] Editors ... calling them, or PHP-based one? (doh!)

2001-04-12 Thread Plutarck

Well after looking at the file I just downloaded...the specification of RTF
is 164 pages long.

Good lord...*chokes an all the information*


Ever considered just forcing the people to learn HTML instead? *smile*


--
Plutarck
Should be working on something...
...but forgot what it was.


""Plutarck"" [EMAIL PROTECTED] wrote in message
9b4e3u$eoj$[EMAIL PROTECTED]">news:9b4e3u$eoj$[EMAIL PROTECTED]...
 Jackpot! Cha-ching!

 That site triggered my memory!

 I remember downloading a program from some obscure site which was suppose
to
 be able to view a huge amount of files which are most often used in games.
I
 wanted to see the art :)

 Anyhoo, it reminded me of another site which is linked on that website,
 which is:

 http://www.wotsit.org/

 *dances*

 For the RTF:

 http://www.wotsit.org/search.asp?page=3s=text

 Oooo I'm soo happy...toys toys toys! So many wonderful bits and bytes to
 play with now...


 --
 Plutarck
 Should be working on something...
 ...but forgot what it was.




 "Dezider Góra" [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Thinking about this, about a week ago, there was a discussion about
 parsing word
  document. Just to dig the text from doc. It sounds interesting, and
since
 I have
  in my crazy mind an idea, that I'd create a database of all documents
that
 were
  ever created in our company and put them in to the database, I'd also
need
 to
  know what's in those docs. So I followed the given link and it seems to
be
  pretty easy. Just install a program and pass it a document and it will
 parse the
  text. The link is:
  http://wvware.sourceforge.net/
  Check out the site, may be you could find something similiar for rtf
 documents,
  'cause I think its format is much easier to "crack".
 
  hth
  Dezider.
 
  Plutarck wrote:
 
   Ick...I'd say it's a good idea, but it's going to be a bi...tter fight
 with
   technology.
  
   First, you have to have some application do the loading/unloading. PHP
 can't
   do that, of course.
  
   But, you could use some form of java...but you'd have to get fancy. Or
 you
   could just use file upload in a form, which is easier.
  
   If you do that, you need only parse out the file.
  
   The best way to do that is pick a text format that does what you want
it
 to
   do, and is universal across platforms. You don't even need to worry
 about
   the editor they use, as long as it's saved in the proper format.
  
   I reccomend you use either a word document, or perhaps Rich Text
Format
 is
   best (rtf).
  
   Then you just have to figure out how text is saved in that format, and
   viola. You just use PHP to go from there...
  
   I'm sure it's easier said than done, and I have absolutely no clue
 how
   the content of rtf files is different from txt (but I'd love to
know!),
 but
   I can see it being very possible if you pick only a few standard file
   formats, and use the file upload features.
  
   It's actually a very good idea. I'm surprised no one has done
it...which
   should probably worry you ;)
  
   --
   Plutarck
   Should be working on something...
   but forgot what it was.
 
 
  --
  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 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] sending mail.. PLEASE HELP!

2001-04-12 Thread Michael Hall


Are you doing a bulk mail out or something like that?
Your script is timing out. The max_execution_time can be changed in
php.ini

Mick

On Thu, 12 Apr 2001, Jude Sanglitan wrote:

 Oops! How can I prevent this?
 
 Fatal error: Maximum execution time of 30 seconds exceeded in
 C:\Inetpub\wwwroot\TFC Survey Form\mailform.php on line 17
 
 
 -JS
 
 
 -- 
 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] sending mail.. PLEASE HELP!

2001-04-12 Thread Jude Sanglitan



It might be a time-out but can I avoid this message by writing an Error
handler to my PHP script? f it is possible, how? Thanks



-Original Message-
From: Michael Hall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 9:05 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] sending mail.. PLEASE HELP!



Are you doing a bulk mail out or something like that?
Your script is timing out. The max_execution_time can be changed in
php.ini

Mick

On Thu, 12 Apr 2001, Jude Sanglitan wrote:

 Oops! How can I prevent this?

 Fatal error: Maximum execution time of 30 seconds exceeded in
 C:\Inetpub\wwwroot\TFC Survey Form\mailform.php on line 17


 -JS


 --
 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] sending mail.. PLEASE HELP!

2001-04-12 Thread Tobias Talltorp

Or just adding this to the top of the page that is taking forever to
process:

set_time_limit(60); // 60 seconds before timeout, change to more if you want
to

This way you don´t have to change the time limit for all of the pages.

// Tobias Talltorp

 Are you doing a bulk mail out or something like that?
 Your script is timing out. The max_execution_time can be changed in
 php.ini

 Mick

 On Thu, 12 Apr 2001, Jude Sanglitan wrote:

  Oops! How can I prevent this?
 
  Fatal error: Maximum execution time of 30 seconds exceeded in
  C:\Inetpub\wwwroot\TFC Survey Form\mailform.php on line 17




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

2001-04-12 Thread Mat Marlow

Hi all,
I'm having trouble retrieving data from $HTTP_POST_VARS. Whenever I try to
print something from it using print($HTTP_POST_VARS[0]); it just prints
"Array". And I know it works because I've done it once and can't do it
again!
Am I missing something glaringly obvious?

Thanks for the help,

Mat
PS. track_vars is ON!



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

2001-04-12 Thread Dominick Vansevenant

Mat,

did you put in a reset?

reset($HTTP_POST_VARS);

D.

-Original Message-
From: Mat Marlow [mailto:[EMAIL PROTECTED]]
Sent: donderdag 12 april 2001 16:49
To: [EMAIL PROTECTED]
Subject: [PHP] HTTP_POST_VARS


Hi all,
I'm having trouble retrieving data from $HTTP_POST_VARS. Whenever I try to
print something from it using print($HTTP_POST_VARS[0]); it just prints
"Array". And I know it works because I've done it once and can't do it
again!
Am I missing something glaringly obvious?

Thanks for the help,

Mat
PS. track_vars is ON!



--
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] Re:Passing Parameter

2001-04-12 Thread Miguel Loureiro

By my understanding what Jack said,the problem can be solved with something like this:
echo "a href="namefrom.ext?part_no=".$partvalue."""
and in nameform.ext you can use the partvalue...
Hope that help, if its not what you want, well, sorry, and good luck, and code
Best Regards
Miguel Loureiro [EMAIL PROTECTED]



[PHP] Re:Passing Parameter

2001-04-12 Thread Miguel Loureiro

By my understanding what Jack said,the problem can be solved with something like this:
echo "a href="namefrom.ext?part_no=".$partvalue."""
and in nameform.ext you can use the partvalue...
Hope that help, if its not what you want, well, sorry, and good luck, and code.

Best Regards
Miguel Loureiro [EMAIL PROTECTED]



[PHP] What is Dynamic Library support

2001-04-12 Thread Jennifer

When I do phpinfo() on my server one of the things it says is

PHP_DL
Dynamic Library support enabled.

What does that mean?

Jennifer

-- 
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] Error Handling class

2001-04-12 Thread Boget, Chris

I've looked around but haven't really found one...
Does anyone know where I can find a class (or a
set of functions) that handles errors gracefully?
I'm about to write something to do this but would
rather not reinvent the wheel.

thnx,
Chris



Re[2]: [PHP] foreach vs. while(list() = each())

2001-04-12 Thread Maxim Derkachev

Hello Tim,

Thursday, April 12, 2001, 1:43:53 PM, you wrote:

TW you can't nest foreach as you should be able to. Ecah foreach is supposed to
TW have it's own pointer in the array, but it doesn't ... this is a known bug.

What do you mean? Foreach() can be nested, and it works perfect.

?php
$a = array (array (1, 2, 3), array(4,5,6), array(7,8,9));
foreach ($a as $k = $first) {
  print "$k:\n";
  foreach ($first as $second) {
print "\t$second\n";
  }
}
?

output:
0:
1
2
3
1:
4
5
6
2:
7
8
9




-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
http://www.Books.Ru -- All Books of Russia
 



-- 
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-CVS] cvs: pear /Science Chemistry.php /Science/Chemistry Atom.php Atom_PDB.php Coordinates.php Element.php Macromolecule.php Macromolecule_PDB.php Molecule.php Molecule_XYZ.php PDBFile.php PDBPa

2001-04-12 Thread Andi Gutmans

Oh is all of pear out of the PHP CVS now?

Andi


At 01:42 AM 4/12/2001 -0400, Stig Sther Bakken wrote:
[Andrei Zmievski [EMAIL PROTECTED]]
  On Tue, 10 Apr 2001, Derick Rethans wrote:
   hrm,
  
   is it really needed to add 3.6MB of stuff to the PHP cvs?
 
  Grr, I agree. Maybe it can wait until PEAR is out of PHP's CVS.

Hey hey, take a closer look before reacting.  This stuff _is_ out of
PHP's CVS.  "Subject: cvs: pear "

  - Stig

--
   Stig Sther Bakken [EMAIL PROTECTED]
   Fast Search  Transfer ASA, Trondheim, Norway

--
PHP CVS 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 CVS 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] Updating a value in a session

2001-04-12 Thread Tim Ward

another good way is to use an associative array $session[] as your only
session variable, that way you don't need to worry abopout session variables
overwriting local or vice versa, so $value as a session variable becomes
$session["value"]

Tim Ward
Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


 -Original Message-
 From: Plutarck [mailto:[EMAIL PROTECTED]]
 Sent: 12 April 2001 13:24
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Updating a value in a session
 
 
 What happens is when you use session_start(), all variables 
 in the session
 become initialized to the values they have previously been given.
 
 So when you call session_start the second time, a variable 
 named $value is
 created with the value it was given earlier.
 
 The problem is, it over-writes the variable $value which was 
 submitted in
 the form.
 
 The way to get around this is to rename your form to 
 "form_value". Then
 right after you register value in your session, insert this:
 
 $value = $form_value;
 
 It should work without error.
 
 
 --
 Plutarck
 Should be working on something...
 ...but forgot what it was.
 
 
 
 ""Tobias Talltorp"" [EMAIL PROTECTED] wrote in message
 9b431b$fau$[EMAIL PROTECTED]">news:9b431b$fau$[EMAIL PROTECTED]...
  On my first page I have a form that posts a value to page2 
 where it gets
  registered in a session. Works like a charm...
  When I try to do this again, but send another value, the 
 session doesn´t
  update the new value.
  Why?
 
  PAGE 1 ---
  form action="page2.php" method="post"
 
  input type="text" name="value" size="30"
  input type="submit" name="submit"
 
  /form
 
 
  PAGE 2 ---
  ?
  session_start();
  session_register("value");
  ?
 
  Thanks,
  // Tobias
 
 
 
 
 
  --
  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: Re[2]: [PHP] foreach vs. while(list() = each())

2001-04-12 Thread Tim Ward

not for the same array it can't, the pointer in the first foreach is moved
by the second one

try:

$array = array("a", "b", "c");
foreach($array as $val1)
{   foreach($array as $val2) echo "$val1:$val2br";
}

it gives
a:a
a:b
a:c
then stops, the manual says that the foreach creates it's own pointer which
it obviously doesn't.

I can't remember what I was trying to do when I found this, it might have
been writing a recursive function

Tim Ward
Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


 -Original Message-
 From: Maxim Derkachev [mailto:[EMAIL PROTECTED]]
 Sent: 12 April 2001 16:23
 To: Tim Ward
 Cc: [EMAIL PROTECTED]
 Subject: Re[2]: [PHP] foreach vs. while(list() = each())
 
 
 Hello Tim,
 
 Thursday, April 12, 2001, 1:43:53 PM, you wrote:
 
 TW you can't nest foreach as you should be able to. Ecah 
 foreach is supposed to
 TW have it's own pointer in the array, but it doesn't ... 
 this is a known bug.
 
 What do you mean? Foreach() can be nested, and it works perfect.
 
 ?php
 $a = array (array (1, 2, 3), array(4,5,6), array(7,8,9));
 foreach ($a as $k = $first) {
   print "$k:\n";
   foreach ($first as $second) {
 print "\t$second\n";
   }
 }
 ?
 
 output:
 0:
 1
 2
 3
 1:
 4
 5
 6
 2:
 7
 8
 9
 
 
 
 
 -- 
 Best regards,
 Maxim Derkachev mailto:[EMAIL PROTECTED]
 Symbol-Plus Publishing Ltd.
 phone: +7 (812) 324-53-53
 http://www.Books.Ru -- All Books of Russia
  
 
 

--
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] Error Handling class

2001-04-12 Thread Taylor, Stewart

the PEAR library has an error class

-Stewart.

-Original Message-
From: Boget, Chris [mailto:[EMAIL PROTECTED]]
Sent: 12 April 2001 16:19
To: Php (E-mail)
Subject: [PHP] Error Handling class


I've looked around but haven't really found one...
Does anyone know where I can find a class (or a
set of functions) that handles errors gracefully?
I'm about to write something to do this but would
rather not reinvent the wheel.

thnx,
Chris

-- 
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] Loop issue

2001-04-12 Thread Chris Lee

ok, if Im understanding this right, you want to have categories, with multiple sub 
categories, you want to have links inside any category (inc sub-categories) right? 
well I use three tables.

link
- link_id
- link_name
- link_url
link_cat
- link_id
- link_cat
cat
- cat_id
- cat_name
- cat_parent

I use two tables for links for a reason, I wanted to be able to have a link in 
multiple categories, this is the simplest method. I'll put some values in the tables 
so you can get an idea how it works.

link
001mediawavewww.mediawaveonline.com
002slashdotwww.slashdot.org
003googlewww.google.com
004yahoowww.yahoo.com

link_cat
001001
002002
003003
004003

cat
001category1000
002category2001
003category3001
004category4002
005category5003

there we go, we some data to play with.

now to make a pretty category tree we use recursion. everyone say 'oi' together now.

class cat
{

 function make_tree($cat_id = 0)
 {
  static $padding = 0;
  
  $padding++;
  foreach($database-select_array('', 'cat', "WHERE cat_id = $cat_id") as $pos = 
$result)
  {
   $cat_id = $result['cat_id'];
   
   $this-cat_id[$cat_id]   = $result['cat_id'];
   $this-cat_name[$cat_id]  = $result['cat_name'];
   $this-cat_parent[$cat_id] = $result['cat_parent'];
   $this-cat_space[$cat_id]  = $padding;
   
   make_tree($cat_id);
  }
  $padding--;
 }
}

(I havent checked this code, its just an example)

to get the links, not a problem either.

class link
{

 function get_links($cat = '')
 {
  if ($cat)
   $query = "WHERE l.link_id = lc.link_id AND lc.link_cat = $cat":
  else
   $query = "WHERE l.link_id = lc.link_id":
   
  foreach($database-select_array('', 'link as l, link_cat as lc', $query) as $pos = 
$result)
  {
   $id  = $result['link_id'];
   $cat = $result['link_cat'];

   $this-link_id[$id] = $result['link_id'];
   $this-link_cat[$id][$cat] = $result['link_cat'];
   $this-link_url[$id]= $result['link_url'];
   $this-link_name[$id]= $result['link_name'];
  }
 }
}

ok this is a supper basic example, but try it, modify it, play around. it'll give you 
a basic idea.


-- 

 Chris Lee
 [EMAIL PROTECTED]




"Fates" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am trying to make a simple HTML menu system. I am having problems
displaying
menu links under the correct submenu from a loop.  I want to be able to
change web menus on the fly.

I have a database with two tables. One table holds menu and sub menu
headings and the other table holds the contents of each submenu (the
actual menu links and
names).  I need to display the menu title and then the sub menu title
from table 1 and
then display the submenu contents or links from table 2 and then display
the next set
of links under the correct submenu

Example output would look like this:

Say person clicks on Admin menu which is already displayed then the
networking
submenu heading will display along with the submenu links:

   Example:   Admin(main menu title from db
table 1)
Networking(submenu title , from
db table 1
ping(Link to ping
from db table 2)
traceroute   (Link to ping from
db table 2)
nsloopup etc


I don't know how to go about outputing the links under the correct
submenu.  The
main menu is no problem. I am thinking I would need a loop within a
loop.

The query I use: $query = "SELECT * FROM menutable, elementstable WHERE
menutable.menutable_id = elementstable.menuid AND menutable.mainmenu =
'Admin' ";

$result = mysql_db_query("menus", $query);

This loop simply assigns variables and prints out all output under the
main menu
called Admin.  The problem is how do I display

  while ($r = mysql_fetch_array($result)) {

// start menu table (table holds main menu/sub menu headings
$menutable_id = $r["menutable_id"];
$menunumber = $r["menunumber"];
$mainmenu = $r["mainmenu"];
$submenu = $r["submenu"];
// start elements table (table that holds the links and names of each
link)
// element_id references menu table
$element_id  = $r["element_id"];
$element = $r["element"];
$url = $r["url"];
$menuid = $r["menuid"];

// next display data this is wrong cause it displays 1 submenu and 1
link looping
?
TD?  echo "$submenu"; ?/TD
TDa href="? echo "$url"; ? " ? echo "$element"; ?/a /TD
?

// this doesn't work
if ($menutable_id == $menuid) {
 ?
 TD?  echo "equal $submenu"; ?/TD
 ?
   // print "both equal";
   //
   // $b = $a;
  }

?

Notes:
// outer loop   display submenus (when submenu changes display next set
of elements
or links from inner loop)   if submenu 

Re: [PHP] Geeklog or phpSlash?

2001-04-12 Thread Charlie Llewellin

Yes, this looks very good, thanks for the recommendation
- Original Message - 

 phpnuke would be my recommendation
 
 www.phpnuke.org
 



-- 
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: FW: [PHP] $8 PHP hosting from Jeffrey Greer

2001-04-12 Thread Kurth Bemis

Thats what i was thinking...we have flamed him enough...and i hope that he
gets the message that we don't need to know about 8 dollar hosting...:-)

~kurth

On Thu, 12 Apr 2001, Greig, Euan wrote:

 Date: Thu, 12 Apr 2001 09:39:31 +0100
 From: "Greig, Euan" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: FW: [PHP] $8 PHP hosting from Jeffrey Greer


 Isn't it time to give this poor guy a rest?!?

 -Original Message-
 From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]]
 Sent: 11 April 2001 15:21
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] $8 PHP hosting from Jeffrey Greer


 Jeffrey Greer wrote:

  Is 1/2 per
  year too much down time?

 sarcasm
 Half a year downtime?  Yes, I would have a BIG problem with that.
 /sarcasm

 AMK4

 --
 W |
   |  I haven't lost my mind; it's backed up on tape somewhere.
   |
   ~
   Ashley M. Kirchner mailto:[EMAIL PROTECTED]   .   303.442.6410 x130
   SysAdmin / Websmith   . 800.441.3873 x130
   Photo Craft Laboratories, Inc. .eFax 248.671.0909
   http://www.pcraft.com  . 3550 Arapahoe Ave #6
   .. .  .  . .   Boulder, CO 80303, USA




 **
 Any opinions expressed in this email are those of the individual and
 not necessarily the Company. This email and any files transmitted with
 it, including replies and forwarded copies (which may contain alterations)
 subsequently transmitted from the Company, are confidential and solely for
 the use of the intended recipient. If you are not the intended recipient
 or the person responsible for delivering to the intended recipient, be
 advised that you have received this email in error and that any use is
 strictly prohibited.

 **

 --
 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: Re[2]: [PHP] foreach vs. while(list() = each())

2001-04-12 Thread Philip Olson

From Changelog :

  http://php.net/ChangeLog-4.php

  Version 4.0.2   29-Aug-2000 

  Fixed problem with nested foreach()'s. (Andi, Zend Engine) 

Just tested the below example code with 4.0.1 and 4.0.3 and above changed
fixed it.

regards,
philip


On Thu, 12 Apr 2001, Tim Ward wrote:

 not for the same array it can't, the pointer in the first foreach is moved
 by the second one
 
 try:
 
 $array = array("a", "b", "c");
 foreach($array as $val1)
 { foreach($array as $val2) echo "$val1:$val2br";
 }
 
 it gives
 a:a
 a:b
 a:c
 then stops, the manual says that the foreach creates it's own pointer which
 it obviously doesn't.
 
 I can't remember what I was trying to do when I found this, it might have
 been writing a recursive function
 
   Tim Ward
   Senior Systems Engineer
 
 Please refer to the following disclaimer in respect of this message:
 http://www.stivesdirect.com/e-mail-disclaimer.html
 
 
  -Original Message-
  From: Maxim Derkachev [mailto:[EMAIL PROTECTED]]
  Sent: 12 April 2001 16:23
  To: Tim Ward
  Cc: [EMAIL PROTECTED]
  Subject: Re[2]: [PHP] foreach vs. while(list() = each())
  
  
  Hello Tim,
  
  Thursday, April 12, 2001, 1:43:53 PM, you wrote:
  
  TW you can't nest foreach as you should be able to. Ecah 
  foreach is supposed to
  TW have it's own pointer in the array, but it doesn't ... 
  this is a known bug.
  
  What do you mean? Foreach() can be nested, and it works perfect.
  
  ?php
  $a = array (array (1, 2, 3), array(4,5,6), array(7,8,9));
  foreach ($a as $k = $first) {
print "$k:\n";
foreach ($first as $second) {
  print "\t$second\n";
}
  }
  ?
  
  output:
  0:
  1
  2
  3
  1:
  4
  5
  6
  2:
  7
  8
  9
  
  
  
  
  -- 
  Best regards,
  Maxim Derkachev mailto:[EMAIL PROTECTED]
  Symbol-Plus Publishing Ltd.
  phone: +7 (812) 324-53-53
  http://www.Books.Ru -- All Books of Russia
   
  
  
 
 -- 
 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] passthru Problems

2001-04-12 Thread Jason Mowat

Greetings,

I am having a small problem displaying PDF files to my users via passthru.
This is the situation: I have a bunch of PDF files on my server directory.
I show the user a listing of the PDF files they can view, and allow them to
hyperlink click on the PDF they wish to browse.  When the user clicks the
link, I execute a header() and then my passthru on my PDF file.  The code is
essentially:
header("Content-type: application/pdf");
passthru($pdf_file);

Now, my problem is that the title of the HTML window that pops up is of the
URL path.  I want to set the title to something meaningful (like the name of
the PDF file the user is looking at).  But, if I try to print a "TITLEPDF
File/TITLE" after the header, my PDF document does not show up (it shows
the raw encoding of the PDF document).

Does anyone have any suggestions to allow me to show a title on a
header/passthru page?  Is there a better way to do this?

Cheers,
Jason



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

2001-04-12 Thread Plutarck

Try doing a print_r in the place where you are trying to print data.

So you can see if a second dimension slipped in there, or if there is some
other problem.

I know that the post/get vars are always associative arrays, but I assume
refering to them by their numeric keys should work...don't see why it
wouldn't.


--
Plutarck
Should be working on something...
...but forgot what it was.


""Mat Marlow"" [EMAIL PROTECTED] wrote in message
9b4f3s$3uo$[EMAIL PROTECTED]">news:9b4f3s$3uo$[EMAIL PROTECTED]...
 Hi all,
 I'm having trouble retrieving data from $HTTP_POST_VARS. Whenever I try to
 print something from it using print($HTTP_POST_VARS[0]); it just prints
 "Array". And I know it works because I've done it once and can't do it
 again!
 Am I missing something glaringly obvious?

 Thanks for the help,

 Mat
 PS. track_vars is ON!



 --
 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] Do any of you provide hosting?

2001-04-12 Thread Chris Anderson

I currently am using Thehostpros.com for my hosting, but I can't say its been a 
pleasant experience. I had to have them install PHP because they are more ASP 
oriented. So that cost me more. Then I wanted MySQL and they have spent 3 months 
saying they'll install that. Basicly here's what I need:
Someone who can host my domain (I own the domain already)
Can provide MySQL and PHP. Both up-to-date.
Can give around 60 meg of space (ballpark, less should be fine)
Also a way to set up subdomains without needing to go through the admin (some hosts 
can do his). But this isn't necessary.
Can anyone help with that?




[PHP] Newbie MySQL Table Work

2001-04-12 Thread Chris Anderson

Alright I finally got around to installing MySQL on my cpu, and I sucessfully created 
a database. Now I have a ryyy dumb question. In the manual I see no 
functions for creating tables in a database through code. Maybe I'm just missing the 
function. Can someone help me?



Re: [PHP] Newbie MySQL Table Work

2001-04-12 Thread Phillip Bow

Check out mysql_query.   It will allow you to execute any query that you
would normally do via the command line interface to MySQL.
--
phill

""Chris Anderson"" [EMAIL PROTECTED] wrote in message
000301c0c373$a3522960$b01012d1@null">news:000301c0c373$a3522960$b01012d1@null...
Alright I finally got around to installing MySQL on my cpu, and I
sucessfully created a database. Now I have a ryyy dumb question.
In the manual I see no functions for creating tables in a database through
code. Maybe I'm just missing the function. Can someone help me?



-- 
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] passthru Problems

2001-04-12 Thread Krznaric Michael

I believe there is header called "Content-disposition: filename.pdf" which
is defined in the proper RFC.  And as far as I know some browsers don't
respect it.  Search the list for it, you should find allot of info.

Mike

-Original Message-
From: Jason Mowat [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 12:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP] passthru Problems


Greetings,

I am having a small problem displaying PDF files to my users via passthru.
This is the situation: I have a bunch of PDF files on my server directory.
I show the user a listing of the PDF files they can view, and allow them to
hyperlink click on the PDF they wish to browse.  When the user clicks the
link, I execute a header() and then my passthru on my PDF file.  The code is
essentially:
header("Content-type: application/pdf");
passthru($pdf_file);

Now, my problem is that the title of the HTML window that pops up is of the
URL path.  I want to set the title to something meaningful (like the name of
the PDF file the user is looking at).  But, if I try to print a "TITLEPDF
File/TITLE" after the header, my PDF document does not show up (it shows
the raw encoding of the PDF document).

Does anyone have any suggestions to allow me to show a title on a
header/passthru page?  Is there a better way to do this?

Cheers,
Jason



-- 
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] Easy News Script

2001-04-12 Thread Chris Anderson

I prefer to write my own
- Original Message -
From: "Zeus" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 10:11 AM
Subject: [PHP] Easy News Script


I'm sure many of you heard of newsphp ? (the newspro-clone).

Somehow I felt attached to it except that it doesn't use databases for its
file storing.

Does anyone know a good similar script (easy to setup) that uses mySQL?




-- 
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] Geeklog or phpSlash?

2001-04-12 Thread Altunergil, Oktay


Do you still need to create a seperate database for phpnuke or did they add
functionality to customize the table names.?

oktay
-Original Message-
From: Charlie Llewellin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 2:27 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Geeklog or phpSlash?


Yes, this looks very good, thanks for the recommendation
- Original Message - 

 phpnuke would be my recommendation
 
 www.phpnuke.org
 



-- 
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] Do any of you provide hosting?

2001-04-12 Thread Matt McClanahan

On Thu, Apr 12, 2001 at 10:34:26AM -0400, Chris Anderson wrote:

 Someone who can host my domain (I own the domain already)
 Can provide MySQL and PHP. Both up-to-date.
 Can give around 60 meg of space (ballpark, less should be fine)
 Also a way to set up subdomains without needing to go through the admin (some hosts 
can do his). But this isn't necessary.
 Can anyone help with that?

Handy PHP hosting directory:

http://hosts.php.net

Matt

-- 
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-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-04-12 Thread Andrei Zmievski

andrei  Thu Apr 12 09:35:41 2001 EDT

  Modified files:  
/CVSROOTavail cvsusers gen_acl_file.m4 
  Log:
  Removing accounts for inactive people.
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.143 CVSROOT/avail:1.144
--- CVSROOT/avail:1.143 Tue Apr 10 09:00:18 2001
+++ CVSROOT/avail   Thu Apr 12 09:35:40 2001
@@ -9,7 +9,7 @@
 
avail|jalal,zak,andre,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin,cnewbill|qaweb
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,martin,lurcher,wsanchez,dreid,dbenson,bmcadams,swm,zhang,kevin,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely,andreroq,eduardh,cnewbill,fuzzy74,inki,bjoern,fams,smasiello,dim,lucasr,cpereira,lagflores,kjh90,ernani,theseer,cevm,noribsd,eskaly,mctrash,berto,leobopp,tcr,subjective,mboeren,ufux,virtual,fireclaw,hadar_p|phpdoc
 avail|andrei,fmk,zimt,jan,changelog,miester|php-gtk
-avail|jmoore,adrianz,protoman,sfox,miester|php-gtk/docs
+avail|jmoore,sfox,miester|php-gtk/docs
 avail|andrei,fmk,jmoore,jskinner,miester|php-gtk-web
 avail|emile,davidg,alan_k,ab|php4/ext/midgard
 avail|rasmus|php4/ext/aspell
Index: CVSROOT/cvsusers
diff -u CVSROOT/cvsusers:1.254 CVSROOT/cvsusers:1.255
--- CVSROOT/cvsusers:1.254  Tue Apr 10 09:16:16 2001
+++ CVSROOT/cvsusersThu Apr 12 09:35:40 2001
@@ -278,8 +278,6 @@
 chreguChristian Stocker   [EMAIL PROTECTED] PEAR
 spagesSylvain PAGES   [EMAIL PROTECTED]  CyberMut
 bkellyBob Kelly   [EMAIL PROTECTED]   PEAR
-adrianz   Adrian Zandberg [EMAIL PROTECTED]PHP-GTK 
docs Polish translation
-protoman  Iuri Fiedoruk   [EMAIL PROTECTED]  PHP-GTK 
docs Brazilian Portuguese translation
 sfox  Steph Fox   [EMAIL PROTECTED]PHP-GTK 
docs
 jskinner  Jared Skinner   [EMAIL PROTECTED]  PHP-GTK 
website maintenance
 ohrn  Fredrik Öhrn[EMAIL PROTECTED]YP and 
ClibPDF
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.146 CVSROOT/gen_acl_file.m4:1.147
--- CVSROOT/gen_acl_file.m4:1.146   Tue Apr 10 09:00:18 2001
+++ CVSROOT/gen_acl_file.m4 Thu Apr 12 09:35:40 2001
@@ -15,7 +15,7 @@
 dnl
 define(`php_midgard', `emile,davidg,alan_k,ab')dnl
 dnl PHP-GTK Documentation Group
-define(`php_gtk_doc', `jmoore,adrianz,protoman,sfox,miester')dnl
+define(`php_gtk_doc', `jmoore,sfox,miester')dnl
 dnl
 unavail
 avail|php_group|CVSROOT



-- 
PHP CVS 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] Do any of you provide hosting?

2001-04-12 Thread Chris Anderson

i'll have to try that. But can they use my current domain. Also do setting
up sub-domains in an hour cost me anything?
- Original Message -
From: "Lindsay Adams" [EMAIL PROTECTED]
To: "PHP" [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 1:36 PM
Subject: Re: [PHP] Do any of you provide hosting?


 Check out aitcom.net

 get a resellers account, and go hog wild. you can even edit the httpd.conf
 page for custom liasing of directories, and anything else.

 I wasn't able to get them to compile PHP with some of the extras, at least
 not as an apache module, BUT I was able to compile PHP as a cgi for a few
 custom features.(libpdf.so)

 and setting up new domains is a breeze. Just order it, and wait an hour.

 So, if you are wanting to host other sites (and charge for them) a
 reseller's account with AIT is a great way to go. A couple of paid sites
can
 quickly cover the costs for your own site.

 I am up to 27 virtual hosts on my account

 On 4/12/01 10:28 AM, "Matt McClanahan" [EMAIL PROTECTED] wrote:

  On Thu, Apr 12, 2001 at 10:34:26AM -0400, Chris Anderson wrote:
 
  Someone who can host my domain (I own the domain already)
  Can provide MySQL and PHP. Both up-to-date.
  Can give around 60 meg of space (ballpark, less should be fine)
  Also a way to set up subdomains without needing to go through the admin
(some
  hosts can do his). But this isn't necessary.
  Can anyone help with that?
 
  Handy PHP hosting directory:
 
  http://hosts.php.net
 
  Matt


 --
 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] Problem?

2001-04-12 Thread Wee Chua

Hi all,
I have a question that can I do my dynamic web application in one page
without any other hyperlink page if I have all the classes needed to run the
dynamic web application? Are there any Pros and Cons for running application
on one page? The application is mainly used for ERP. Thank you.

Calvin Chua
Systems Analyst
InterClean Equipment, Inc.
734-975-2967
www.InterClean.com


-- 
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] Geeklog or phpSlash?

2001-04-12 Thread Charlie Llewellin

By the way, I am having problems with the javascripts that are enabled by
default with PHPNuke..
I'm going to disable them for now until I can figure out what is wrong.

Charlie


-- 
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] show tables in oracle 8-i

2001-04-12 Thread Dennis Gearon

I've been looking through the book, and so far, I can't find the command
for 'show tables' in Oracle 8i. Anyone know it? It should be
programmatically available, I would think, as an SQL command.

-- 
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] Need HOWTO on field-update code.

2001-04-12 Thread Erin Quick-Laughlin

Can PHP update a second field on the form, based on the contents chosen
from the first field (I'm thinking of JavaScript's function) ?

I'm pulling a list of id,name,email from MySQL and displaying name for
the first field. After the user picks it, I want the appropriate email
address to show up
in the second field.

1. I want to do this without sending a second select request to the
server.
2. What PHP functions should I be looking at to build this?
3. If not PHP, where can I find the appropriate JavaScript examples?

Thanks,
Eman




-- 
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] show tables in oracle 8-i

2001-04-12 Thread Brian S. Dunworth

At 11:09 AM 4/12/01 -0700, Dennis Gearon wrote:
I've been looking through the book, and so far, I can't find the command 
for 'show tables' in Oracle 8i. Anyone know it? It should be
programmatically available, I would think, as an SQL command.


   SELECT TABLE_NAME FROM ALL_TABLES;

  - Brian

  -
Brian S. Dunworth
Sr. Software Development Engineer
Oracle Database Administrator
The Printing House, Ltd.

(850) 875-1500  x225
[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] Do any of you provide hosting?

2001-04-12 Thread Lindsay Adams

yes, the subdomains cost you $20/setup, and $2/month extra.

the reason for the setup? they won't let you mess with the dns (which makes
a lot of sense)

overall, it is worth it. you will of course pass the setup fee on to your
clients, and charge more than $2/month, but you can see, that the return
comes pretty quickly.


On 4/12/01 11:01 AM, "Chris Anderson" [EMAIL PROTECTED] wrote:

 i'll have to try that. But can they use my current domain. Also do setting
 up sub-domains in an hour cost me anything?
 - Original Message -
 From: "Lindsay Adams" [EMAIL PROTECTED]
 To: "PHP" [EMAIL PROTECTED]
 Sent: Thursday, April 12, 2001 1:36 PM
 Subject: Re: [PHP] Do any of you provide hosting?
 
 
 Check out aitcom.net
 
 get a resellers account, and go hog wild. you can even edit the httpd.conf
 page for custom liasing of directories, and anything else.
 
 I wasn't able to get them to compile PHP with some of the extras, at least
 not as an apache module, BUT I was able to compile PHP as a cgi for a few
 custom features.(libpdf.so)
 
 and setting up new domains is a breeze. Just order it, and wait an hour.
 
 So, if you are wanting to host other sites (and charge for them) a
 reseller's account with AIT is a great way to go. A couple of paid sites
 can
 quickly cover the costs for your own site.
 
 I am up to 27 virtual hosts on my account
 
 On 4/12/01 10:28 AM, "Matt McClanahan" [EMAIL PROTECTED] wrote:
 
 On Thu, Apr 12, 2001 at 10:34:26AM -0400, Chris Anderson wrote:
 
 Someone who can host my domain (I own the domain already)
 Can provide MySQL and PHP. Both up-to-date.
 Can give around 60 meg of space (ballpark, less should be fine)
 Also a way to set up subdomains without needing to go through the admin
 (some
 hosts can do his). But this isn't necessary.
 Can anyone help with that?
 
 Handy PHP hosting directory:
 
 http://hosts.php.net
 
 Matt
 
 
 --
 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] Need HOWTO on field-update code.

2001-04-12 Thread Philip Olson

Check out these two tutorials, might help:


  chainedSelectors: A Better Way to Drop-down a PHP List :
  
  http://zend.com/zend/tut/drop-down.php
  
  Loading JavaScript Arrays with MySQL Data  :
  
  http://devshed.com/Server_Side/MySQL/JS_Arrays/


regards,
philip


On Thu, 12 Apr 2001, Erin Quick-Laughlin wrote:

 Can PHP update a second field on the form, based on the contents chosen
 from the first field (I'm thinking of JavaScript's function) ?
 
 I'm pulling a list of id,name,email from MySQL and displaying name for
 the first field. After the user picks it, I want the appropriate email
 address to show up
 in the second field.
 
 1. I want to do this without sending a second select request to the
 server.
 2. What PHP functions should I be looking at to build this?
 3. If not PHP, where can I find the appropriate JavaScript examples?
 
 Thanks,
 Eman
 
 
 
 
 -- 
 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-CVS] cvs: pear /Science Chemistry.php /Science/Chemistry Atom.php Atom_PDB.php Coordinates.php Element.php Macromolecule.php Macromolecule_PDB.php Molecule.php Molecule_XYZ.php PDBFile.php PDBPa

2001-04-12 Thread Jesus M. Castagnetto


--- Andrei Zmievski [EMAIL PROTECTED] wrote:
 On Tue, 10 Apr 2001, Derick Rethans wrote:
  hrm,
  
  is it really needed to add 3.6MB of stuff to the
 PHP cvs?
 
 Grr, I agree. Maybe it can wait until PEAR is out of
 PHP's CVS.

Ehem, I did *not* commited to the code PHP code dir
(php4, please *do* check the contents of php4/pear if
you need confirmation), but to the stand-alone PEAR
(pear, not under php4) repository, the one is going to
be the separated one. Did you see it in cvs.php.net?
(HINT: http://cvs.php.net/viewcvs.cgi/pear/ )

I have received several emails on this so far. I would
appreaciate if people check to see where things are
being commited before having kee-jerk reactions.

BTW, yes, it is needed. The commit contained the whole
Science_Chemistry package including classes, examples
and documentation. And yes, the news should go to
pear-cvs instead, but I do no have the karma to do the
changes needed for this.

 
 -Andrei
 * Ethernet n.: something used to catch the
 etherbunny. *


=
--- Jesus M. Castagnetto [EMAIL PROTECTED]

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

-- 
PHP CVS 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] passthru Problems

2001-04-12 Thread Jason Mowat

Greets,

Just to elaborate: I want my user to be able to click on a hyperlink that
points to my PDF file, and have a new window pop up, displaying the contents
of the PDF file in the browser window (without prompting if they should save
the file) as well as set the HTML TITLE tag to the name of the report.

My passthru() function works fine, when I send a header() of PDF first, and
then dump the raw PDF out.  But, I cannot set any HTML properties with tags
(like TITLE); it doesn't show the PDF in PDF format then, it shows it all
raw encoded.

Hope that helps clarifying my wants and needs :-)

Cheers,
Jason


""Jason Mowat"" [EMAIL PROTECTED] wrote in message
9b4lso$2gb$[EMAIL PROTECTED]">news:9b4lso$2gb$[EMAIL PROTECTED]...
 Greetings,

 I am having a small problem displaying PDF files to my users via passthru.
 This is the situation: I have a bunch of PDF files on my server directory.
 I show the user a listing of the PDF files they can view, and allow them
to
 hyperlink click on the PDF they wish to browse.  When the user clicks the
 link, I execute a header() and then my passthru on my PDF file.  The code
is
 essentially:
 header("Content-type: application/pdf");
 passthru($pdf_file);

 Now, my problem is that the title of the HTML window that pops up is of
the
 URL path.  I want to set the title to something meaningful (like the name
of
 the PDF file the user is looking at).  But, if I try to print a
"TITLEPDF
 File/TITLE" after the header, my PDF document does not show up (it shows
 the raw encoding of the PDF document).

 Does anyone have any suggestions to allow me to show a title on a
 header/passthru page?  Is there a better way to do this?

 Cheers,
 Jason



 --
 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-CVS] cvs: pear /Science Chemistry.php /Science/Chemistry Atom.php Atom_PDB.php Coordinates.php Element.php Macromolecule.php Macromolecule_PDB.php Molecule.php Molecule_XYZ.php PDBFile.php PDBPa

2001-04-12 Thread Andrei Zmievski

On Thu, 12 Apr 2001, Jesus M. Castagnetto wrote:
 
 --- Andrei Zmievski [EMAIL PROTECTED] wrote:
  On Tue, 10 Apr 2001, Derick Rethans wrote:
   hrm,
   
   is it really needed to add 3.6MB of stuff to the
  PHP cvs?
  
  Grr, I agree. Maybe it can wait until PEAR is out of
  PHP's CVS.
 
 Ehem, I did *not* commited to the code PHP code dir
 (php4, please *do* check the contents of php4/pear if
 you need confirmation), but to the stand-alone PEAR
 (pear, not under php4) repository, the one is going to
 be the separated one. Did you see it in cvs.php.net?
 (HINT: http://cvs.php.net/viewcvs.cgi/pear/ )
 
 I have received several emails on this so far. I would
 appreaciate if people check to see where things are
 being commited before having kee-jerk reactions.

Sorry about my hasty reply. I just haven't seen anyone commit any PEAR
code to /pear so I assumed that it was in php4/pear.

-Andrei

"Everything is a matter of a little programming" -- Rasmus Lerdorf

-- 
PHP CVS 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-CVS] cvs: pear /Science Chemistry.php /Science/Chemistry Atom.php Atom_PDB.php Coordinates.php Element.php Macromolecule.php Macromolecule_PDB.php Molecule.php Molecule_XYZ.php PDBFile.php PDBPa

2001-04-12 Thread Stig Sæther Bakken

[Andi Gutmans [EMAIL PROTECTED]]
 Oh is all of pear out of the PHP CVS now?

No, Jesus is the first one besides me to commit anything to the "pear"
module.  We'll do it bit by bit.

 - Stig

-- 
  Stig Sther Bakken [EMAIL PROTECTED]
  Fast Search  Transfer ASA, Trondheim, Norway

-- 
PHP CVS 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] resultset array

2001-04-12 Thread Mike

I would like to put a mysql resultset into an array of type
row(rownunber)(data).Any Ideas?
Mike P
[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] resultset array

2001-04-12 Thread Mark Maggelet

On Thu, 12 Apr 2001 15:42:54 -0400, Mike ([EMAIL PROTECTED])
wrote:
I would like to put a mysql resultset into an array of type
row(rownunber)(data).Any Ideas?
Mike P
[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: php-list-
[EMAIL PROTECTED]

while($row[]=mysql_fetch_array($result));


--
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] passthru Problems

2001-04-12 Thread Morgan Curley

You need to use a frameset to do what you want.
the problem is the browser will only launch the Acrobat control if it 
receives the content type app/pdf, an html page uses the content type 
text/html.

your links should point to another page that outputs something like the 
following based on input of the pdf file path and name
( HTML shamelessly stolen from http://www.php4.net/ :-)
HTML
HEAD
TITLE?php echo $your_title ?/TITLE
FRAMESET rows="100%,*" frameborder="0"framespacing="0" border="0" 
align=CENTER
FRAME SRC="?php echo $your_pdf_file_path ?" Name="pdf" scrolling="auto"
FRAME SRC="empty.htm" Name="invisible" scrolling="no"
/FRAMESET
/HTML

if you are using track_vars and don't have the auto globalizing of form 
elements, use
$HTTP_GET_VARS[ 'your_title']
$HTTP_GET_VARS[ 'your_pdf_file_path ']
or
$HTTP_POST_VARS[ 'your_title']
$HTTP_POST_VARS[ 'your_pdf_file_path ']

depending on your form method


morgan



At 03:20 PM 4/12/2001, you wrote:
Greets,

Just to elaborate: I want my user to be able to click on a hyperlink that
points to my PDF file, and have a new window pop up, displaying the contents
of the PDF file in the browser window (without prompting if they should save
the file) as well as set the HTML TITLE tag to the name of the report.

My passthru() function works fine, when I send a header() of PDF first, and
then dump the raw PDF out.  But, I cannot set any HTML properties with tags
(like TITLE); it doesn't show the PDF in PDF format then, it shows it all
raw encoded.

Hope that helps clarifying my wants and needs :-)

Cheers,
Jason


""Jason Mowat"" [EMAIL PROTECTED] wrote in message
9b4lso$2gb$[EMAIL PROTECTED]">news:9b4lso$2gb$[EMAIL PROTECTED]...
  Greetings,
 
  I am having a small problem displaying PDF files to my users via passthru.
  This is the situation: I have a bunch of PDF files on my server directory.
  I show the user a listing of the PDF files they can view, and allow them
to
  hyperlink click on the PDF they wish to browse.  When the user clicks the
  link, I execute a header() and then my passthru on my PDF file.  The code
is
  essentially:
  header("Content-type: application/pdf");
  passthru($pdf_file);
 
  Now, my problem is that the title of the HTML window that pops up is of
the
  URL path.  I want to set the title to something meaningful (like the name
of
  the PDF file the user is looking at).  But, if I try to print a
"TITLEPDF
  File/TITLE" after the header, my PDF document does not show up (it shows
  the raw encoding of the PDF document).
 
  Does anyone have any suggestions to allow me to show a title on a
  header/passthru page?  Is there a better way to do this?
 
  Cheers,
  Jason
 
 
 
  --
  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] Creating Arrays

2001-04-12 Thread Jeffrey Greer

[posted and emailed]

If you're looking for a simple way to work with databases I would use
phplib.  Phplib is a db abstraction layer which supports over a dozen
databases including mysql.  You can get the libraries at
http://phplib.netuse.de/download/phplib-7.2c.tar.gz   You will need to
use "db_mysql.inc"

I think using mysql specific functions is bad programming.  Database
specific calls should be abstracted out whenever possible.

To do something like you would want to do you would use code like
this:

// create the db object

$db = new DB_Sql;

// initialize db parameters

$this-Host = your host;
$this-Database = db;
$this-User = user name;
$this-Password = password;

// E.g. make a simple query

$db-query("select username, uid, security_level from access where
username='$f_username' and password='$f_password';");

$db-next_record();
$db_username = $db-f("username");
$si_userid = (int)($db-f("uid"));
$si_security_level = (int)($db-f("security_level"));

// putting the values in an array is trivial, but you should do it
like this
//  or you will confuse your numeric ids with the ids that php
puts in an array automatically

$my_array["username"] = $db_username;
$my_array["userid"] = $si_userid;


On 11 Apr 2001 09:09:09 -0700, [EMAIL PROTECTED] ("Ashley M.
Kirchner") wrote:


I need to convert an MySQL result into an Array...somehow.  The
query returns the following:

++---+
| ID |  Project  |
++---+
|  1 | Home  |
|  2 | Work  |
|  3 |   Family  |
|  4 |Misc.  |
|  . |  ...  |
|  . |  ...  |
++---+

...which I want to convert into:

Array(1 = "Home", 2 = "Work", 3 = "Family", 4 = Misc.", etc);

What's the best way to do this.

AMK4

--
W |
  |  I haven't lost my mind; it's backed up on tape somewhere.
  |
  ~
  Ashley M. Kirchner mailto:[EMAIL PROTECTED]   .   303.442.6410 x130
  SysAdmin / Websmith   . 800.441.3873 x130
  Photo Craft Laboratories, Inc. .eFax 248.671.0909
  http://www.pcraft.com  . 3550 Arapahoe Ave #6
  .. .  .  . .   Boulder, CO 80303, USA

--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- I do web hosting and development.  Details
  at http://www.singlesconnection.org/services/

-- 
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] Creating Arrays

2001-04-12 Thread Jeffrey Greer

[posted and emailed]

On 12 Apr 2001 12:48:52 -0700, [EMAIL PROTECTED] (Jeffrey
Greer) wrote:


// putting the values in an array is trivial, but you should do it
like this
// or you will confuse your numeric ids with the ids that php
puts in an array automatically

Whoops.  I was wrong about array.  Keys are only filled in
automatically if you do this:
$my_array[] = 'some value';
now $my_array[0] = 'some value';

--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- I do web hosting and development.  Details
  at http://www.singlesconnection.org/services/

--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- I do web hosting and development.  Details
  at http://www.singlesconnection.org/services/

-- 
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] Newsgroups like this one?

2001-04-12 Thread John R . Marshall

On 11 Apr 2001 21:07:01 -0700 Alvin Tan said...

 Hi Plutarck,
 
 The 'mailing list' at MySQL _is_ very much like this one and is also very
 active. Send mail to [EMAIL PROTECTED] to subscribe.

Except that it is a *mailing* list not a *newsgroups* format (like 
news.php.net) which was what the Plutark was asking about. ;-)

Personally I don't know how anyone can stand getting this many posts 
cluttering up their mail reader. I'll stick with Gravity thank you very 
much. :-)

And sorry I don't know about any mySQL newsgroups..

-- 
John R. Marshall
JRM Studios.com - http://www.jrmstudios.com
The Hotrodding Network - http://www.hotrodding.net

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

2001-04-12 Thread Steve Edberg

At 4:50 PM +0200 4/12/01, Dominick Vansevenant [EMAIL PROTECTED] wrote:
Mat,

did you put in a reset?

reset($HTTP_POST_VARS);

D.


Yes, you'll need the reset() there if you're looping through the 
$HTTP_POST_VARS array more than once. However:

I take it that you were trying something like

echo $HTTP_POST_VARS[0];

? If so, you will indeed get the output 'array' if element 0 is an 
array. As someone suggested, you can use the print_r() or var_dump() 
functions (print_r, I think, is PHP4 only) to display it. You can 
also do something like

...

if (is_array($HTTP_POST_VARS[0])) {

   while (list($k,$v)=each($HTTP_POST_VARS[0])) {
  echo '$HTTP_POST_VARS[0]', "[$k] = $vbr";
   }

} else {

   echo '$HTTP_POST_VARS[0] = ', $HTTP_POST_VARS[0];

}

...

In PHP3, POST/GET elements could only be one dimensional arrays, at 
most. In PHP4, though, these can have 2+ dimensions, so for maximum 
generality you'd have to have somewhat more complex code than this.

-steve


-Original Message-
From: Mat Marlow [mailto:[EMAIL PROTECTED]]
Sent: donderdag 12 april 2001 16:49
To: [EMAIL PROTECTED]
Subject: [PHP] HTTP_POST_VARS


Hi all,
I'm having trouble retrieving data from $HTTP_POST_VARS. Whenever I try to
print something from it using print($HTTP_POST_VARS[0]); it just prints
"Array". And I know it works because I've done it once and can't do it
again!
Am I missing something glaringly obvious?

Thanks for the help,

Mat
PS. track_vars is ON!


-- 
+--- 12 April 2001: Forty years of manned spaceflight ---+
| Steve Edberg   University of California, Davis |
| [EMAIL PROTECTED]   Computer Consultant |
| http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
+-- www.yurisnight.net --+

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




  1   2   >