[PHP] how to change from php Apache module to php CGI?

2001-03-18 Thread Chris Chan


I need the suexec feature. so i recompile the php4 to cgi. but i have
hundreds of php scripts under the existing web site. it's not a easy task to
add the line
#!/usr/local/bin/php
to each php file.

Anyone know is there any easy way to configure the httpd.conf without modify
hundreds of php files? Thanks in advance


  Chris Chan



-- 
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] how to change from php Apache module to php CGI?

2001-03-18 Thread Jack Dempsey

If you can't modify apache to do what you need, you could always write a
perl script to open up every file named *.php and add the line to the
topit wouldn't be that hard, especially if you have any experience with
perl...

-Original Message-
From: Chris Chan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 18, 2001 4:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP] how to change from php Apache module to php CGI?



I need the suexec feature. so i recompile the php4 to cgi. but i have
hundreds of php scripts under the existing web site. it's not a easy task to
add the line
#!/usr/local/bin/php
to each php file.

Anyone know is there any easy way to configure the httpd.conf without modify
hundreds of php files? Thanks in advance


  Chris Chan



--
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-CVS] cvs: php4 /ext/fdf fdf.c

2001-03-18 Thread Jani Taskinen

sniper  Sun Mar 18 01:25:40 2001 EDT

  Modified files:  
/php4/ext/fdf   fdf.c 
  Log:
  Prevent mem leak
  
  
Index: php4/ext/fdf/fdf.c
diff -u php4/ext/fdf/fdf.c:1.41 php4/ext/fdf/fdf.c:1.42
--- php4/ext/fdf/fdf.c:1.41 Sat Mar 17 21:52:40 2001
+++ php4/ext/fdf/fdf.c  Sun Mar 18 01:25:40 2001
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: fdf.c,v 1.41 2001/03/18 05:52:40 sniper Exp $ */
+/* $Id: fdf.c,v 1.42 2001/03/18 09:25:40 sniper Exp $ */
 
 /* FdfTk lib 2.0 is a Complete C/C++ FDF Toolkit available from
http://beta1.adobe.com/ada/acrosdk/forms.html. */
@@ -812,6 +812,7 @@
err = 
FDFGetValue(theFDF,name,value,value_len-1,nBytes);
if(err == FDFErcOK  nBytes != 0) {
for(p=value;*p;p++) if(*p=='\r') *p='\n';
+   if(lastfieldname) efree(lastfieldname);
lastfieldname = estrdup(name);  
php_register_variable(name, value, array_ptr 
ELS_CC PLS_CC);
} 



-- 
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] command that gives current location of script

2001-03-18 Thread Aviv Revach

Hey!

You could use 'phpinfo()' to find what you seek. $PHP_SELF does give you the
current location of the php script, but with 'phpinfo()' you could read 
about other
values that supply miscellanies related information.

 ?php
   phpinfo();
 ?

Best Regards -

   Aviv Revach


At 22:27 17/03/01 -0700, Andrew V. Romero wrote:
I though in flipping through the manual that I had come across a command
that gives the location of where the script is being run from, but I
have been searching for half an hour and can't find it now.  Isn't it
something like $php_self?  Anyone kow what I am talking about?
Thanks,
 Andrew V. Romero
 to reply personally, remove all numbers from address.


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


XOR-Coders Mega Programming Resource Site! -
 http://members.xoom.com/xorcoders/


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

2001-03-18 Thread Zeev Suraski

It's much more than that.  Perl doesn't cache compiled scripts either, or 
rather, its caching is extremely limited, and IMHO pretty much unusable 
(e.g., you have to restart the server every time a script changes).  PHP 
alone is as fast as Perl (and slightly faster, as the benchmarks 
show).  PHP coupled with Zend Cache is probably several times quicker than 
Perl for most Web purposes.

Zeev

At 17:37 16/3/2001, Chris Adams wrote:
On 16 Mar 2001 04:39:06 -0800, Phil Driscoll [EMAIL PROTECTED] wrote:
 http://www.perlmonth.com/features/benchmarks/benchmarks.html?issue=4id=9351
 4159
 
 A performance comparison of various web scripting languages. PHP does rather
 well!

It's also important to note that their comment that PHP doesn't cache compiled
scripts and thus may not scale as well isn't completely true. The default
install doesn't, but you can use one of several products (Zend Cache,
Afterburner and a third whose name escapes me) to ensure that your scripts are
cached.

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

--
Zeev Suraski [EMAIL PROTECTED]
CTO   co-founder, Zend Technologies Ltd. http://www.zend.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] Expire data from form

2001-03-18 Thread Data Driven Design

You can use javascript and set the history length to 0

script language="javascript"
!--
history.length=0;
// --
/script

- Original Message -
From: Sheni R. Meledath [EMAIL PROTECTED]
To: PHP Masters [EMAIL PROTECTED]
Sent: Saturday, March 17, 2001 11:47 PM
Subject: [PHP] Expire data from form


 Hi,

 I have set up a form to register the users to the site. The users are
 allowed to register only once. When the user submits the form the same
 script will check the validity of the form and displays error messages and
 if okay, updates the database.
 I want to set up an option in the form in which when the user once submits
 and after that if they click on the back button (browser back) it should
 say the 'page expired' as I have seen with some Perl scripts. The users
 should not be allowed to go back to the page and resubmit. Can any body
 suggest a way to accomplish this.

 thanks
 Sheni R Meledath
 [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] Zend?

2001-03-18 Thread Sharon Rozenbaum

Hi Chris,

The Zend Encoder does what you've described (compiles your php script so if you look 
at the source, you see just "garbage").

To encode files with the Zend Encoder, you don't need anything but the Encoder itself.
To run the encoded files you need to have the Zend Optimizer. The people you program 
the components for will need to install it on their server (it is freely available for 
download at http://www.zend.com/store/products/zend-optimizer.php).

Sharon.

Chris Anderson wrote:

 I've heard alot about the Zend Encoder. Using it can I encode I file so that php 
still executes it, but a person cannot read my source by looking at the file? I'm 
programming components for people and would prefer if they could use it, but not see 
my source. Does it require any extra server settings etc?


-- 
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] form post without pathinfo

2001-03-18 Thread Clayton Dukes

Yeah,
I just can't figure out how to do it.
Anyone care to enlighten me?
Clayton Dukes

- Original Message - 

From: Chris Anderson 
To: Clayton Dukes 
Sent: Wednesday, March 14, 2001 1:04 PM
Subject: Re: [PHP] form post without pathinfo


Sounds like you just need to use $PHP_Self with your other variables after it, 
that way it gets the right settings
ex:
echo $PHP_SELF$color$etc
  - Original Message - 
  From: Clayton Dukes 
  To: [EMAIL PROTECTED] 
  Sent: Saturday, March 17, 2001 4:57 PM
  Subject: [PHP] form post without pathinfo


  Hi :-)

  How can I convert from this:
  form method=POST action="? echo $PHP_SELF; ?/approve"
  /form
  ...snip
  } elseif ($pathinfo == "/approve") {
  do something...


  to something that posts to itself without altering the path?
  My problem is, I'm using themes which are dependent on the path, so if I post 
using the method above, the path changes and screws up the images, colors, etc after 
the user submits.

  TIA!

  Clayton Dukes



--


  -- 
  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 18 Mar 2001 15:07:16 -0000 Issue 574

2001-03-18 Thread php-general-digest-help


php-general Digest 18 Mar 2001 15:07:16 - Issue 574

Topics (messages 44422 through 44436):

Re: Anyone good with Java??
44422 by: Dennis Gearon
44423 by: Ryan Grove

Editing Variables from another script.
44424 by: techzeus.pacific.net.sg

Re: urlencode
44425 by: John Lim

command that gives current location of script
44426 by: Andrew V. Romero
44432 by: Aviv Revach

Expire data from form
44427 by: Sheni R. Meledath
44434 by: Data Driven Design

TraceRoute
44428 by: Mick

phpMyAdmin edit function not working
44429 by: Robert Campbell

how to change from php Apache module to php CGI?
44430 by: Chris Chan
44431 by: Jack Dempsey

Re: Benchmarks
44433 by: Zeev Suraski

Re: Zend?
44435 by: Sharon Rozenbaum

Re: form post without pathinfo
44436 by: Clayton Dukes

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]


--



I know php can't do this but I hoped somehere would know how. I have a page
with many select boxes(drop downs). I want it so that if someone selects a
value, it is removed from all the others. And if they change it, the old
value is returned to the other boxes. Any help would be appreciatedI think you need 
Javascript?

And I'd love s similar thing, select one and it changes other to appropriate sub 
menus. 

So,
so selecting pets would get you dogscatsetc in the next pull down
over.
selelecting dogs would get you bysizebyfunction in the next pull
down over.
and selecting one of those would get the categories below that, etc, in
the next pull down over.

Pets
   Dogs
bysize
  Poodles
  Pekinese
  Minatures
  small
  medium
  large
  huge
byfunction
  indoor pet
  rodent catching
  hunting small animals
  hunting birds
  hunting big animals
  shepharding
  guard dogs
   Cats
   etc  
-- 

Sites by friends of mine: http://www.myhiddentreasures.com/

WARNING personal propaganda signature
TAKE WHAT YOU LIKE AND LEAVE THE REST

SINCE OUR GOVERNMENT WON'T PRESERVE OUR CLIMATE, IT'S UP TO US!
Imagine ** yourself ** and your kids now an endangered species
1Inflate automobile tires to near maximum in summer, -2psi in winter
2add insulation to house and hot water heater, and refrigerator,
3combine trips in cars, make less of them 4buy cars, sports
vehicles and recreational vehicles with good if not best mileage
4put awnings over windows is summer, remove in winter. 5 add
solar hot water heating. 6Push for energy recycling clothes
dryers 7 walk more, play outside with your kids! 8 let your
grass grow to 3-4 inches, chokes weeds, saves water and energy,
keeps house cooler 9 Put WHITE or REFLECTIVE materials on
roofs to send energy back into space. 10 Vote for burial of
logging slash onsite in logging areas for better watersheds
and less burned vegetation. 11 compost your leaves and grass,
bury in flower beds, lawns, gardens, or give away. 12 VOTE
for energy and CO2 ratings on ALL products and foods. KNOW how
much damage your purchases do to the climate. 13 Give your kids 
less stuff and more of you. 14 recycle everything you can 15
limit your children to an average 1 per adult between all your 
marriages. (Only REPLACE yourself, not expand the population)




[Chris]
 I know php can't do this but I hoped somehere would know how. I have a page with 
many select boxes(drop downs). I want it so that if someone selects a value, it is 
removed from all the others. And
 if they change it, the old value is returned to the other boxes. Any help would be 
appreciated




-- 
Ryan Grove
[EMAIL PROTECTED]
http://wonko.com/






I'm trying to create a form whereby I can edit the variables with just the form.

It will be something like a form for me to change the database 
details(username,server,password) in a .inc I'm using.

Is there anyway for me to pass information into another file's variable and have it 
saved in there?

If anyone have seen Newspro (CGI) before, when you edit some parts in a form, the 
information will be saved. How can it be done in PHP?

--
David Chua
-




Sorry, its magic_quotes_gpc -- i got confused. The magic_quotes_runtime one
is for databases.

Regards, John

"Richard Kirk" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 No, its set to "off".


 -Original Message-
 From: John Lim [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, March 17, 2001 5:14 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] urlencode


 You 

Re: [PHP] how do i get a variable type?

2001-03-18 Thread rm

PHP, at least php 3.x, has a series of fuctions like
is_string, is_integer, is_array etc.  I know they're
there...I don't us them so I don't know exactly
where...this might be what you're looking for...

rm

--- phpman [EMAIL PROTECTED] wrote:
 hello all,
 
  let's say i have this:
 $a="varone=hello world|vartwo=2.44|varthree=100|";
 
 now i do this:
 
 $b=explode('|',$a);
 $z=count($b);
 for ($x=0;$x$z;$x++) {
 $tmp=explode('=',$b[$x]);
 
 
 and i want to find out if  $tmp[1] is a string or an
 integer (that's really
 all I need to determine so i can put
 together an SQL statement that puts single quotes
 around strings and none
 around integers). Obviously
 i won't know at design time all of the variables and
 their values. Thank
 you.
 
 -dave
 
 
 
 -- 
 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 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]




Re: [PHP] phpMyAdmin edit function not working

2001-03-18 Thread Oktay Altunergil

if you're using Windows. Check out phpfront at the address below. I must
accept that I don't completely understand your problem, but I found this
software to be more usable than the phpMyAdmin. (if your code has to know
when a field's value in the database is 'NULL' you may have problems with
phpMyAdmin, because it inserts NULLs as blank space)..

Anyway.. the limitation of this application is
1) it runs on windows only.. no web interface.
2) for some reason it doesn't let you do stuff on a table that doesn't have
a primary key defined.
http://www.anse.de/mysqlfront/

oktay
- Original Message -
From: "Robert Campbell" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 18, 2001 3:11 AM
Subject: [PHP] phpMyAdmin edit function not working


 I've got mysql  php running in a windows millenium
 system (yes, sad, I know), and I'm running phpmyadmin 2.1.0

 Anyway, I have a database with three cells of information:

 item_name
 item_list
 item_description

 Each cell contains numerous pieces of data seperated
 by a  symbol (for exploding into an array).  There is alot
 of data in each cell, and when I go to choose "edit" or
 "delete" the browser does nothing.

 I thought it was just an IE error, but the same happens
 in Netscape 6.0 and Netscape 4.8.  So I skimmed through
 the source, copied the URL and pasted it into a new window.

 Only about half of the URL pasted.  The only thing I can figure
 is that the address is too long.  If this is the case, I'm trying to
 find out if anyone has tried converting phpmyadmin to use form
 buttons as opposed to parsing the data directly through the URL
 as a way to bypass this.

 Or if no one has tried that (and god I hope you have) does anyone
 know of another database management program like this that DOES
 use form buttons?


 --
 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] how to change from php Apache module to php CGI?

2001-03-18 Thread Oktay Altunergil

#from httpd.conf

#For PHP/FI (PHP2) as a cgi binary
Addtype application/x-httpd-php2 .php .php2
Action application/x-httpd-php2 /cgi-bin/php.cgi


This works for the php2 cgi installation. It might work for php3,4 as well.

oktay


- Original Message -
From: "Chris Chan" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 18, 2001 4:33 AM
Subject: [PHP] how to change from php Apache module to php CGI?



 I need the suexec feature. so i recompile the php4 to cgi. but i have
 hundreds of php scripts under the existing web site. it's not a easy task
to
 add the line
 #!/usr/local/bin/php
 to each php file.

 Anyone know is there any easy way to configure the httpd.conf without
modify
 hundreds of php files? Thanks in advance

 
   Chris Chan



 --
 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] multiple post what the hey

2001-03-18 Thread PHPretard

Is it just me or are they like double and triple post from everyone?

whats going on? its iritating having to delete alot of message


_
Do You Yahoo!?
Get your free @yahoo.com address at http://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] Re: confirm unsubscribe from php-general@lists.php.net

2001-03-18 Thread Bob DeBolt



 Original Message 

On 3/18/01, 9:56:16 AM, [EMAIL PROTECTED] wrote regarding 
confirm unsubscribe from [EMAIL PROTECTED]:


 Hi! This is the ezmlm program. I'm managing the
 [EMAIL PROTECTED] mailing list.

 To confirm that you would like

[EMAIL PROTECTED]

 removed from the php-general mailing list, please send an empty reply
 to this address:


[EMAIL PROTECTED]

 Usually, this happens when you just hit the "reply" button.
 If this does not work, simply copy the address and paste it into
 the "To:" field of a new message.

 or click here:
   
mailto:php-general-uc.984934576.kgjfeofjnmmekfgklfoi-bob.debolt=3web.net@l
ists.php.net

 PLEASE NOTE: I haven't checked whether your address is currently
 on the mailing list.  To see what address you used to subscribe,
 look at the messages you are receiving from the mailing list. Each
 message has your address hidden inside its return path; for
 example, [EMAIL PROTECTED] receives messages with return path:
 php-general-return-number[EMAIL PROTECTED]

 Some mail programs are broken and cannot handle long addresses. If you
 cannot reply to this request, instead send a message to
 [EMAIL PROTECTED] and put the entire address listed above
 into the "Subject:" line.


 --- Administrative commands for the php-general list ---

 I can handle administrative requests automatically. Please
 do not send them to the list address! Instead, send
 your message to the correct command address:

 To subscribe to the list, send a message to:
[EMAIL PROTECTED]

 To remove your address from the list, send a message to:
[EMAIL PROTECTED]

 Send mail to the following for info and FAQ for this list:
[EMAIL PROTECTED]
[EMAIL PROTECTED]

 Similar addresses exist for the digest list:
[EMAIL PROTECTED]
[EMAIL PROTECTED]

 To get messages 123 through 145 (a maximum of 100 per request), mail:
[EMAIL PROTECTED]

 To get an index with subject and author for messages 123-456 , mail:
[EMAIL PROTECTED]

 They are always returned as sets of 100, max 2000 per request,
 so you'll actually get 100-499.

 To receive all messages with the same subject as message 12345,
 send an empty message to:
[EMAIL PROTECTED]

 The messages do not really need to be empty, but I will ignore
 their content. Only the ADDRESS you send to is important.

 You can start a subscription for an alternate address,
 for example "[EMAIL PROTECTED]", just add a hyphen and your
 address (with '=' instead of '@') after the command word:
 [EMAIL PROTECTED]

 To stop subscription for this address, mail:
 [EMAIL PROTECTED]

 In both cases, I'll send a confirmation message to that address. When
 you receive it, simply reply to it to complete your subscription.

 If despite following these instructions, you do not get the
 desired results, please contact my owner at
 [EMAIL PROTECTED] Please be patient, my owner is a
 lot slower than I am ;-)

 --- Enclosed is a copy of the request I received.

 Return-Path: [EMAIL PROTECTED]
 Received: (qmail 12770 invoked from network); 18 Mar 2001 16:56:16 -
 Received: from unknown (HELO smtp2.cybersurf.net) (209.197.145.112)
   by va.php.net with SMTP; 18 Mar 2001 16:56:16 -
 Received: from thetoy ([209.197.155.223]) by smtp2.cybersurf.net
   (Netscape Messaging Server 4.15) with SMTP id GAEKLD00.F2A for
   [EMAIL PROTECTED]; Sun, 18 Mar 2001 
10:00:49 -0700
 From: Bob DeBolt [EMAIL PROTECTED]
 Date: Sun, 18 Mar 2001 17:06:35 GMT
 Message-ID: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 X-Mailer: Mozilla/3.0 (compatible; StarOffice/5.2;Win32)
 X-Priority: 3 (Normal)
 MIME-Version: 1.0
 Content-Type: multipart/alternative; boundary=
  "=_4D4800998E76041A9EE4"
 Content-Transfer-Encoding: 7bit

 --=_4D4800998E76041A9EE4
 Content-Description: filename="text1.txt"
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable


 --=_4D4800998E76041A9EE4
 Content-Description: filename="text1.html"
 Content-Type: text/html
 Content-Transfer-Encoding: quoted-printable

 !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"
 HTML
 HEAD
   META HTTP-EQUIV=3D"CONTENT-TYPE" CONTENT=3D"text/html; 
charset=3Diso-8=
 859-1"
   TITLE/TITLE
   META NAME=3D"GENERATOR" CONTENT=3D"StarOffice/5.2 (Win32)"
   META NAME=3D"CREATED" CONTENT=3D"20010318;10062824"
   META NAME=3D"CHANGEDBY" CONTENT=3D"Bob DeBolt"
   META NAME=3D"CHANGED" CONTENT=3D"20010318;10063489"
 /HEAD
 BODY
 PBRBR
 /P
 /BODY
 /HTML
 --=_4D4800998E76041A9EE4--

--
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] Q - php-apache _ php-cgi

2001-03-18 Thread Bart A. Verbeek

Hello,
I'm kind of new to serverside management and got a little question.
PHP can run on a server in different ways; as an Apache-module and as a
cgi-module.
- What is the biggest diffence between these two ways of running?
- When I write scripts for both do I have to pay attention to something or
keep an important aspect in mind..?

I hope you people can clear this out for me
Thanks in advance,
Bart


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

2001-03-18 Thread Paul O'Neil

Dumb question here but where does one typically keep there PHP form scripts,
like

web/index.htm
images/image.jpg
phpscripts/login.php
cgi-bin/perlscript.pl
secure/secureforms.here

Is there a problem keeping everything in the WEB directory, is it a security
issue or management of files issue? Both?



-- 
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: Anyone good with Java??

2001-03-18 Thread Chris Anderson

Close, But I meant this:
drop downs have Dogcatfish
if I select Dog from the first box the rest contain
catfish
but if I chnage it to fish the others would have
dogcat
- Original Message -
From: "Dennis Gearon" [EMAIL PROTECTED]
To: "Chris Anderson" [EMAIL PROTECTED]; "PHP"
[EMAIL PROTECTED]
Sent: Saturday, March 17, 2001 10:41 PM
Subject: RE: Anyone good with Java??


 I know php can't do this but I hoped somehere would know how. I have a
page
 with many select boxes(drop downs). I want it so that if someone selects
a
 value, it is removed from all the others. And if they change it, the old
 value is returned to the other boxes. Any help would be appreciatedI
think you need Javascript?
 
 And I'd love s similar thing, select one and it changes other to
appropriate sub menus.

 So,
 so selecting pets would get you dogscatsetc in the next pull down
 over.
 selelecting dogs would get you bysizebyfunction in the next pull
 down over.
 and selecting one of those would get the categories below that, etc, in
 the next pull down over.

 Pets
Dogs
 bysize
   Poodles
   Pekinese
   Minatures
   small
   medium
   large
   huge
 byfunction
   indoor pet
   rodent catching
   hunting small animals
   hunting birds
   hunting big animals
   shepharding
   guard dogs
Cats
etc
 --
 
 Sites by friends of mine: http://www.myhiddentreasures.com/
 
 WARNING personal propaganda signature
 TAKE WHAT YOU LIKE AND LEAVE THE REST

 SINCE OUR GOVERNMENT WON'T PRESERVE OUR CLIMATE, IT'S UP TO US!
 Imagine ** yourself ** and your kids now an endangered species
 1Inflate automobile tires to near maximum in summer, -2psi in winter
 2add insulation to house and hot water heater, and refrigerator,
 3combine trips in cars, make less of them 4buy cars, sports
 vehicles and recreational vehicles with good if not best mileage
 4put awnings over windows is summer, remove in winter. 5 add
 solar hot water heating. 6Push for energy recycling clothes
 dryers 7 walk more, play outside with your kids! 8 let your
 grass grow to 3-4 inches, chokes weeds, saves water and energy,
 keeps house cooler 9 Put WHITE or REFLECTIVE materials on
 roofs to send energy back into space. 10 Vote for burial of
 logging slash onsite in logging areas for better watersheds
 and less burned vegetation. 11 compost your leaves and grass,
 bury in flower beds, lawns, gardens, or give away. 12 VOTE
 for energy and CO2 ratings on ALL products and foods. KNOW how
 much damage your purchases do to the climate. 13 Give your kids
 less stuff and more of you. 14 recycle everything you can 15
 limit your children to an average 1 per adult between all your
 marriages. (Only REPLACE yourself, not expand the population)



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

2001-03-18 Thread Chris Anderson

After realizing that The Zend Encoder is 2000$ I've decided that wont work for a 
college student(me). Is there any other way to protect source in my components?



[PHP-CVS] cvs: php4 /ext/midgard php_midgard.h

2001-03-18 Thread Alexander Bokovoy

ab  Sun Mar 18 10:29:55 2001 EDT

  Modified files:  
/php4/ext/midgard   php_midgard.h 
  Log:
  Update includes to the way CVS now works
  
  
Index: php4/ext/midgard/php_midgard.h
diff -u php4/ext/midgard/php_midgard.h:1.8 php4/ext/midgard/php_midgard.h:1.9
--- php4/ext/midgard/php_midgard.h:1.8  Sat Mar 10 14:43:10 2001
+++ php4/ext/midgard/php_midgard.h  Sun Mar 18 10:29:55 2001
@@ -1,4 +1,4 @@
-/* $Id: php_midgard.h,v 1.8 2001/03/10 22:43:10 emile Exp $
+/* $Id: php_midgard.h,v 1.9 2001/03/18 18:29:55 ab Exp $
 Copyright (C) 1999 Jukka Zitting [EMAIL PROTECTED]
 Copyright (C) 2000 The Midgard Project ry
 Copyright (C) 2000 Emile Heyns, Aurora SA [EMAIL PROTECTED]
@@ -24,11 +24,11 @@
 /* You should tweak config.m4 so this symbol (or some else suitable)
gets defined.
 */
-#include php_config.h
+#include "php.h"
+#include "config.h"
 
 #if HAVE_MIDGARD
 
-#include php.h
 #include midgard/midgard.h
 #include midgard/apache.h
 /* #include Zend/zend_modules.h */



-- 
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] cvs: php4 /ext/cpdf php_cpdf.h

2001-03-18 Thread Fredrik Öhrn

ohrnSun Mar 18 10:32:58 2001 EDT

  Modified files:  
/php4/ext/cpdf  php_cpdf.h 
  Log:
  Solved compile failure due to clash bewteen IMAP and ClibPDF headers.
  
  
Index: php4/ext/cpdf/php_cpdf.h
diff -u php4/ext/cpdf/php_cpdf.h:1.6 php4/ext/cpdf/php_cpdf.h:1.7
--- php4/ext/cpdf/php_cpdf.h:1.6Sun Jul  2 16:46:38 2000
+++ php4/ext/cpdf/php_cpdf.hSun Mar 18 10:32:58 2001
@@ -26,12 +26,19 @@
| Authors: Uwe Steinmann   |
+--+
  */
-/* $Id: php_cpdf.h,v 1.6 2000/07/02 23:46:38 sas Exp $ */
+/* $Id: php_cpdf.h,v 1.7 2001/03/18 18:32:58 ohrn Exp $ */
 
 #ifndef PHP_CPDF_H
 #define PHP_CPDF_H
 
 #if HAVE_CPDFLIB
+
+/* The macro T is defined in the IMAP headers and clashes with a function
+   declaration here. Get rid of it. */
+
+#ifdef T
+#undef T
+#endif
 
 #include cpdflib.h
 



-- 
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] how do i get a variable type? - not that simple

2001-03-18 Thread phpman

No guys. that doesn't work. Take this code for example...

$a="3";
echo(gettype($a));

this returns  string
i need to find it as an integer or real or float for the sql. which by the
way is MySQL.

thank you for responding, but I already know that gettype and all the other
is_*  don't work for this.



""phpman"" [EMAIL PROTECTED] wrote in message
99132e$ol8$[EMAIL PROTECTED]">news:99132e$ol8$[EMAIL PROTECTED]...
 hello all,

  let's say i have this:
 $a="varone=hello world|vartwo=2.44|varthree=100|";

 now i do this:

 $b=explode('|',$a);
 $z=count($b);
 for ($x=0;$x$z;$x++) {
 $tmp=explode('=',$b[$x]);
 

 and i want to find out if  $tmp[1] is a string or an integer (that's
really
 all I need to determine so i can put
 together an SQL statement that puts single quotes around strings and none
 around integers). Obviously
 i won't know at design time all of the variables and their values. Thank
 you.

 -dave



 --
 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: php4 /ext/cpdf php_cpdf.h

2001-03-18 Thread James Moore


   Modified files:
 /php4/ext/cpdfphp_cpdf.h
   Log:
   Solved compile failure due to clash bewteen IMAP and ClibPDF headers.

Does this need to be in 4.0.5 release?? if so please merge it into the
release branch (PHP_4_0_5).

James


-- 
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] Problems with multiple query

2001-03-18 Thread Luca Lazzeroni

Hi,
I've recently migrated a system with PHP 4.0.3pl1 and PostgreSQL 7.0.2 -
RedHat Linux 5.1 (yes 5) to a new one with PHP 4.0.4pl1 - PostgreSQL 7.0.2 -
RedHat Linux 7.0.

All my database applications work fine except one which does strange things:
this is a piece of code:

8--- CUT 

   $conn = pg_connect("dbname= user=y password=xx");

   $sql = "select * from table_a where condition_a";
   $qry1 = pg_exec ($conn,$sql);

   $obj1 = pg_fetchobject($qry1,0);

  // Until here everything works fine

   $sql2 = "select * from table_b where condition_b=".$obj1-value_a;
   $qry2 = pg_exec ($conn,$sql2);

8--- CUT 

The second query is nested in a for-loop running for every object in the
first query; for performance reason I need to maintain the two queries
independent.

After executing (correctly) the first one, the system starts doing strange
things with the second one:

Warning: Unable to jump to row 0 on PostgreSQL result index 23 in cerca.php3
on line 467

and it fails to read data.
The strange thing is that the system does the same things for EVERY database
where I must use two consecutive queries !

Is there anyone who can help me ?

Thanks in advance

Luca Lazzeroni



-- 
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: php4 /ext/cpdf php_cpdf.h

2001-03-18 Thread Fredrik Ohrn

On Sun, 18 Mar 2001, James Moore wrote:


Modified files:
  /php4/ext/cpdf  php_cpdf.h
Log:
Solved compile failure due to clash bewteen IMAP and ClibPDF headers.

 Does this need to be in 4.0.5 release?? if so please merge it into the
 release branch (PHP_4_0_5).

 James


Yes, it's a compilation showstopper that has been around since the very
beginning. I'll add it to 4.0.5.


Regards,
Fredrik

-- 
Do fish get thirsty?

Fredrik hrn   Chalmers University of Technology
[EMAIL PROTECTED]  Sweden


-- 
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] how do i get a variable type? - not that simple

2001-03-18 Thread Johnson, Kirk

How about a regex check for numeric characters with and without a decimal
point (and no leading zeros), versus alphanumerics? Just an "off the top of
my head suggestion", back to work...

Kirk

 -Original Message-
 
 ""phpman"" [EMAIL PROTECTED] wrote in message
 99132e$ol8$[EMAIL PROTECTED]">news:99132e$ol8$[EMAIL PROTECTED]...
  hello all,
 
   let's say i have this:
  $a="varone=hello world|vartwo=2.44|varthree=100|";
 
  now i do this:
 
  $b=explode('|',$a);
  $z=count($b);
  for ($x=0;$x$z;$x++) {
  $tmp=explode('=',$b[$x]);
  
 
  and i want to find out if  $tmp[1] is a string or an integer (that's
 really
  all I need to determine so i can put
  together an SQL statement that puts single quotes around 
 strings and none
  around integers).

-- 
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] how do i get a variable type? - not that simple

2001-03-18 Thread Rick St Jean

I would right a function that would return a result and try an match within 
the different types.

if (isdate($a))
{
Dtype = date;
}
if (isdigit($a))
{
Dtype = int;
}

return (Dtype);

etc..


At 01:44 PM 3/18/01 -0500, phpman wrote:
No guys. that doesn't work. Take this code for example...

$a="3";
echo(gettype($a));

this returns  string
i need to find it as an integer or real or float for the sql. which by the
way is MySQL.

thank you for responding, but I already know that gettype and all the other
is_*  don't work for this.



""phpman"" [EMAIL PROTECTED] wrote in message
99132e$ol8$[EMAIL PROTECTED]">news:99132e$ol8$[EMAIL PROTECTED]...
  hello all,
 
   let's say i have this:
  $a="varone=hello world|vartwo=2.44|varthree=100|";
 
  now i do this:
 
  $b=explode('|',$a);
  $z=count($b);
  for ($x=0;$x$z;$x++) {
  $tmp=explode('=',$b[$x]);
  
 
  and i want to find out if  $tmp[1] is a string or an integer (that's
really
  all I need to determine so i can put
  together an SQL statement that puts single quotes around strings and none
  around integers). Obviously
  i won't know at design time all of the variables and their values. Thank
  you.
 
  -dave
 
 
 
  --
  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]

##
#  Rick St Jean,
#  [EMAIL PROTECTED]
#  President of Design Shark,
#  http://www.designshark.com/
#  Quick Contact:  http://www.designshark.com/messaging.ihtml
#  Tel: 905-684-2952
##


-- 
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: php4(PHP_4_0_5) /ext/cpdf php_cpdf.h

2001-03-18 Thread Fredrik Öhrn

ohrnSun Mar 18 10:45:25 2001 EDT

  Modified files:  (Branch: PHP_4_0_5)
/php4/ext/cpdf  php_cpdf.h 
  Log:
  Solved compile failure due to clash between IMAP and ClibPDF headers.
  
  
Index: php4/ext/cpdf/php_cpdf.h
diff -u php4/ext/cpdf/php_cpdf.h:1.6 php4/ext/cpdf/php_cpdf.h:1.6.4.1
--- php4/ext/cpdf/php_cpdf.h:1.6Sun Jul  2 16:46:38 2000
+++ php4/ext/cpdf/php_cpdf.hSun Mar 18 10:45:21 2001
@@ -26,12 +26,19 @@
| Authors: Uwe Steinmann   |
+--+
  */
-/* $Id: php_cpdf.h,v 1.6 2000/07/02 23:46:38 sas Exp $ */
+/* $Id: php_cpdf.h,v 1.6.4.1 2001/03/18 18:45:21 ohrn Exp $ */
 
 #ifndef PHP_CPDF_H
 #define PHP_CPDF_H
 
 #if HAVE_CPDFLIB
+
+/* The macro T is defined in the IMAP headers and clashes with a function
+   declaration here. Get rid of it. */
+
+#ifdef T
+#undef T
+#endif
 
 #include cpdflib.h
 



-- 
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] how do i get a variable type? - not that simple

2001-03-18 Thread Mark Charette

Personally I'd perform a query into MySQL and get what _it_ thinks the
values should be ... before doing anything else. It allows generality in
your error checking code.

Look at mysql_list_fields() et al.

mark C.

- Original Message -
From: "phpman" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 18, 2001 12:44 PM
Subject: [PHP] how do i get a variable type? - not that simple


 No guys. that doesn't work. Take this code for example...

 $a="3";
 echo(gettype($a));

 this returns  string
 i need to find it as an integer or real or float for the sql. which by the
 way is MySQL.

 thank you for responding, but I already know that gettype and all the
other
 is_*  don't work for this.



 ""phpman"" [EMAIL PROTECTED] wrote in message
 99132e$ol8$[EMAIL PROTECTED]">news:99132e$ol8$[EMAIL PROTECTED]...
  hello all,
 
   let's say i have this:
  $a="varone=hello world|vartwo=2.44|varthree=100|";
 
  now i do this:
 
  $b=explode('|',$a);
  $z=count($b);
  for ($x=0;$x$z;$x++) {
  $tmp=explode('=',$b[$x]);
  
 
  and i want to find out if  $tmp[1] is a string or an integer (that's
 really
  all I need to determine so i can put
  together an SQL statement that puts single quotes around strings and
none
  around integers). Obviously
  i won't know at design time all of the variables and their values. Thank
  you.
 
  -dave
 
 
 
  --
  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] Good Free PHP Editor - And it's not Edit Plus!

2001-03-18 Thread James Crowley

Dear All,

Given the recent discussion regarding a PHP editor, I thought you would
like to know that VB Web Development have finally released Developers Pad
BETA 2. This program is open source, and free. It's features include syntax
highlighting (fully customizable), powerful project view, auto-indent, quick
HTML tag insert, open linked file and more.

It is available for download at
http://developerspad.vbdiamond.com/download/
and you can talk to me (and everyone else) about it at
http://developerspad.vbdiamond.com/forum/

If you have any problems with the new release, don't have any hestitation in
contacting me.

New Features for BETA 2:
- Enhanced Project View
   * Virtual folders
   * Saved in XML Format
   * Can open VB, VC++ and .NET Project Files
- Enhanced Editor Window
   * Open Linked File Shortcut
   * Jump-To Procedure List
   * Quick HTML Tag Insert
- Extended Language Support
   * Now includes support for SQL, VB.NET and C#
- Less Bugs!
- Improved Add-In Support
   * New Add-In Object Model

We are currently looking for sponsors! If there is a company out there
interested in sponsoring Developers Pad and its site, please e-mail me.

Regards,

- James

Editor, VB Web
==
Web   - http://www.vbweb.co.uk
Email - [EMAIL PROTECTED]
ICQ#  - 60612011
==


-- 
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] Problems with multiple query

2001-03-18 Thread Nuno Silva

Hello,

if the second query loops inside a _for_ statement and needs values from 
the first query you have two options:

1. save all the results from query one to some array and then loop 
inside the array within the _for_ statement executing new sql;
2. open two separate connections to the database and work with the two. 
like this:
$conn1 = pg_connect(...);
$conn2 = pg_connect(...);
...
qry1 = pg_exec($conn1, $sql1);
...
for ($i=.) {
...
$qry2 = pg_exec($conn2, $sql2);
...
}

Hope this helps,
Nuno Silva


Luca Lazzeroni wrote:

 Hi,
 I've recently migrated a system with PHP 4.0.3pl1 and PostgreSQL 7.0.2 -
 RedHat Linux 5.1 (yes 5) to a new one with PHP 4.0.4pl1 - PostgreSQL 7.0.2 -
 RedHat Linux 7.0.
 
 All my database applications work fine except one which does strange things:
 this is a piece of code:
 
 8--- CUT 
 
$conn = pg_connect("dbname= user=y password=xx");
 
$sql = "select * from table_a where condition_a";
$qry1 = pg_exec ($conn,$sql);
 
$obj1 = pg_fetchobject($qry1,0);
 
   // Until here everything works fine
 
$sql2 = "select * from table_b where condition_b=".$obj1-value_a;
$qry2 = pg_exec ($conn,$sql2);
 
 8--- CUT 
 
 The second query is nested in a for-loop running for every object in the
 first query; for performance reason I need to maintain the two queries
 independent.
 
 After executing (correctly) the first one, the system starts doing strange
 things with the second one:
 
 Warning: Unable to jump to row 0 on PostgreSQL result index 23 in cerca.php3
 on line 467
 
 and it fails to read data.
 The strange thing is that the system does the same things for EVERY database
 where I must use two consecutive queries !
 
 Is there anyone who can help me ?
 
 Thanks in advance
 
 Luca Lazzeroni


-- 
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] update two frames at once?

2001-03-18 Thread Maron Kristófersson

I don't know if this is possible in PHP don't think so but you can do
some very nifty things using JavaScript.

Let's say you got two frames named links and main.  Then you can for
example do something like this in a page called contacts.php in the main
frame

body class="main"
onLoad="Javascript:top.frames[0].location='links.php?page=contacts'"

Then in your links.php page you could have this php code.

if(isset($page))
{
include("./links/$page.inc");
}

As you can see, the value of $page can be whatever you want.  So when
you then browse to another page, lets say companies.php then you could
include the special functions for that page in the links page.

This can be very usable for webbased applications when you wan't to keep
the functions on the right for each page, but want to change them
whenever you change pages.

There is a con to this all though.  When you use this method and hit the
back button you will only be taken one step back, so the links page will
only be taken back but not the main screen.  Best way to fix this is to
set up a pretty obvious back button that is in the path of the user
going to the left corner to the screen.  The link on that one would then
be: a href="Javascript:history.back(-2)" instead of the usual -1.

Hope this helps,

Maron Kristofersson
Reykjavik
Iceland
http://www.discovericeland.is/

-Original Message-
From: Michael George [mailto:[EMAIL PROTECTED]]
Sent: 12. mars 2001 21:06
To: [EMAIL PROTECTED]
Subject: [PHP] update two frames at once?


Hello al!

Is it possible to have two frames updated when cliking on one link?  I
have a
page that is broken into 4 parts:
master title
section title
d   section screen
i
r
.

what I want is that when a link is clicked on in the directory (the left
column), I'd like to update the section title *and* the section
screen...

It seemed a cool layout at the time, but I'm thinking this isn't easily
possible and I might just have to incorporate a section title on the
section
screen...  But before I rewrite it, I thought I'd ask here.

Thanks!

-Michael

P.S. I'd like to commend the regular posters to this list on being SOOO
 informative and patient!  Every small question to this list always
 gets several useful answers, even when I've seen questions asked
over
 and again.

-- 
No, my friend, the way to have good and safe government, is not to trust
it
all to one, but to divide it among the many, distributing to every one
exactly
the functions he is competent to.  It is by dividing and subdividing
these
republics from the national one down through all its subordinations,
until it
ends in the administration of every man's farm by himself; by placing
under
every one what his own eye may superintend, that all will be done for
the
best.
-- Thomas Jefferson, to Joseph Cabell, 1816

-- 
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] Combining Perl and PHP

2001-03-18 Thread Henrik Hansen

"Matthew Hanna" [EMAIL PROTECTED] wrote:

  Has anyone heard of calling Perl libraries from PHP?  I have seen it done with Java 
 classes
  but it would be great if there was a way to do it with Perl.

The only thing i can think of is virtual() and exec(), take a look at those.

-- 
Henrik Hansen


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

2001-03-18 Thread Henrik Hansen

"Mick" [EMAIL PROTECTED] wrote:

  Hi,
  
  Anyone able to tell me where i can get a traceroute php script from?

http://www.google.com/search?q=php+traceroute+scripthl=dalr=

-- 
Henrik Hansen


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

2001-03-18 Thread Kath

I tried emailing him 5 times with this, but I could never get through :|

I even found the script for him and tried to send it to him :|

- Kath

- Original Message - 
From: "Henrik Hansen" [EMAIL PROTECTED]
To: "Mick" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, March 18, 2001 4:58 PM
Subject: Re: [PHP] TraceRoute


 "Mick" [EMAIL PROTECTED] wrote:
 
   Hi,
   
   Anyone able to tell me where i can get a traceroute php script from?
 
 http://www.google.com/search?q=php+traceroute+scripthl=dalr=
 
 -- 
 Henrik Hansen
 
 
 -- 
 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] TraceRoute

2001-03-18 Thread Henrik Hansen

"Kath" [EMAIL PROTECTED] wrote:

  I tried emailing him 5 times with this, but I could never get through :|
  
  I even found the script for him and tried to send it to him :|
  
  - Kath

heh i got an error too, lets just hope he read the group :)

-- 
Henrik Hansen


-- 
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: php4 /ext/yp CREDITS php_yp.h yp.c

2001-03-18 Thread Fredrik Öhrn

ohrnSun Mar 18 14:16:46 2001 EDT

  Modified files:  
/php4/ext/ypCREDITS php_yp.h yp.c 
  Log:
  Much needed cleanup and new functions added
  ---
  
  Cleaned up stringhandling for binary safeness.
  
  All functions now maintain a global 'errno' variable.
  
  All functions now print warning messages on failure.
  
  Added error code constants.
  
  Fixed bug #8041 while maintaining backward compatibility.
  
  New functions:
yp_all traverse a map
yp_cat retrive an entire map in one go
yp_errno   get last error code
yp_err_string  get a human readable error message
  
  
  

Index: php4/ext/yp/CREDITS
diff -u php4/ext/yp/CREDITS:1.1 php4/ext/yp/CREDITS:1.2
--- php4/ext/yp/CREDITS:1.1 Mon Nov 20 02:31:40 2000
+++ php4/ext/yp/CREDITS Sun Mar 18 14:16:46 2001
@@ -1,2 +1,2 @@
 Yellow Pages
-Stephanie Wehner
+Stephanie Wehner, Fredrik Ohrn
Index: php4/ext/yp/php_yp.h
diff -u php4/ext/yp/php_yp.h:1.8 php4/ext/yp/php_yp.h:1.9
--- php4/ext/yp/php_yp.h:1.8Sun Feb 25 22:07:30 2001
+++ php4/ext/yp/php_yp.hSun Mar 18 14:16:46 2001
@@ -13,16 +13,23 @@
| [EMAIL PROTECTED] so we can mail you a copy immediately.   |
+--+
| Authors: Stephanie Wehner [EMAIL PROTECTED]|
+   |  Fredrik Ohrn|
+--+
 */
 
-/* $Id: php_yp.h,v 1.8 2001/02/26 06:07:30 andi Exp $ */ 
+/* $Id: php_yp.h,v 1.9 2001/03/18 22:16:46 ohrn Exp $ */ 
 
 #ifndef PHP_YP_H
 #define PHP_YP_H
 
 #if HAVE_YP
 
+#ifdef PHP_WIN32
+#define PHP_YP_API __declspec(dllexport)
+#else
+#define PHP_YP_API
+#endif
+
 extern zend_module_entry yp_module_entry;
 #define yp_module_ptr yp_module_entry
 
@@ -33,7 +40,33 @@
 PHP_FUNCTION(yp_match);
 PHP_FUNCTION(yp_first);
 PHP_FUNCTION(yp_next);
+PHP_FUNCTION(yp_all);
+PHP_FUNCTION(yp_cat);
+PHP_FUNCTION(yp_errno);
+PHP_FUNCTION(yp_err_string);
+PHP_MINIT_FUNCTION(yp);
+PHP_RINIT_FUNCTION(yp);
 PHP_MINFO_FUNCTION(yp);
+
+typedef struct {
+   int error;
+} php_yp_globals;
+
+#ifdef ZTS
+#define YPLS_D php_yp_globals *yp_globals
+#define YPLS_DC , YPLS_D
+#define YPLS_C yp_globals
+#define YPLS_CC , YPLS_C
+#define YP(v) (yp_globals-v)
+#define YPLS_FETCH() php_yp_globals *yp_globals = ts_resource(yp_globals_id)
+#else
+#define YPLS_D
+#define YPLS_DC
+#define YPLS_C
+#define YPLS_CC
+#define YP(v) (yp_globals.v)
+#define YPLS_FETCH()
+#endif
 
 #else
 
Index: php4/ext/yp/yp.c
diff -u php4/ext/yp/yp.c:1.15 php4/ext/yp/yp.c:1.16
--- php4/ext/yp/yp.c:1.15   Sun Feb 25 22:07:30 2001
+++ php4/ext/yp/yp.cSun Mar 18 14:16:46 2001
@@ -13,9 +13,10 @@
| [EMAIL PROTECTED] so we can mail you a copy immediately.   |
+--+
| Authors: Stephanie Wehner [EMAIL PROTECTED]|
+   |  Fredrik Ohrn|
+--+
  */
-/* $Id: yp.c,v 1.15 2001/02/26 06:07:30 andi Exp $ */
+/* $Id: yp.c,v 1.16 2001/03/18 22:16:46 ohrn Exp $ */
 
 #include "php.h"
 #include "ext/standard/info.h"
@@ -26,6 +27,16 @@
 
 #include rpcsvc/ypclnt.h
 
+/* {{{ thread safety stuff */
+
+#ifdef ZTS
+int yp_globals_id;
+#else
+PHP_YP_API php_yp_globals yp_globals;
+#endif
+
+/* }}} */
+
 function_entry yp_functions[] = {
PHP_FE(yp_get_default_domain, NULL)
PHP_FE(yp_order, NULL)
@@ -33,16 +44,20 @@
PHP_FE(yp_match, NULL)
PHP_FE(yp_first, NULL)
PHP_FE(yp_next, NULL)
+   PHP_FE(yp_all, NULL)
+   PHP_FE(yp_cat, NULL)
+   PHP_FE(yp_errno, NULL)
+   PHP_FE(yp_err_string, NULL)
{NULL, NULL, NULL}
 };
 
 zend_module_entry yp_module_entry = {
"yp",
yp_functions,
+   PHP_MINIT(yp),
NULL,
+   PHP_RINIT(yp),
NULL,
-   NULL,
-   NULL,
PHP_MINFO(yp),
STANDARD_MODULE_PROPERTIES
 };
@@ -55,8 +70,10 @@
Returns the domain or false */
 PHP_FUNCTION(yp_get_default_domain) {
char *outdomain;
+   YPLS_FETCH();
 
-   if(yp_get_default_domain(outdomain)) {
+   if(YP(error) = yp_get_default_domain(outdomain)) {
+   php_error(E_WARNING, yperr_string (YP(error)));
RETURN_FALSE;
}
RETVAL_STRING(outdomain,1);
@@ -71,9 +88,11 @@
 #if SOLARIS_YP
unsigned long outval;
 #else
-  int outval;
+   int outval;
 #endif
 
+   YPLS_FETCH();
+
if((ZEND_NUM_ARGS() != 2) || zend_get_parameters_ex(2,domain,map) == 
FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -81,7 +100,8 @@
convert_to_string_ex(domain);
convert_to_string_ex(map);
 
-   

[PHP] newline in preg_split

2001-03-18 Thread Jesper Blomström

Hi!

I have text file looking something like this:

core 010105
business 070344
core 020202
...


The textfile is a result from a database question and I am trying to parse
the file in order to retrieve each line. I have tried using the
explode()-method but I can´t get it to work with the delimiter \n (or \r or
\\n...).
I have also tried to use the preg_split()-method which takes a RE-argument
but that doesn´t seem to work either (have tried in a lot of ways).

Can anyone give me a clue how to solve this problem?

Many thanks from Stockholm, Sweden!

Jesper Blomstroem



--

Jesper Blomström
08-370 317 (Hem)
08-566 280 08 (Arbete)
070-3024911

Ångermannagatan 113
162 64 Vällingby





-- 
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] newline in preg_split

2001-03-18 Thread Ville Mattila

Hello,

If you read the file with file()-function, you can get as a result an array which 
includes each row of the file.

For example:
$rows = file("c:\thisfile.txt");

echo $rows[0];
echo $rows[1];
echo $rows[2];

The result should be now like following:
core 010105
business 070344
core 020202

Note that also \n and \r -characters are included to the array.

Cheers,
- Ville


- Original Message - 
From: Jesper Blomstrm [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 19, 2001 12:31 AM
Subject: [PHP] newline in preg_split


 Hi!
 
 I have text file looking something like this:
 
 core 010105
 business 070344
 core 020202
 ...
 
 
 The textfile is a result from a database question and I am trying to parse
 the file in order to retrieve each line. I have tried using the
 explode()-method but I cant get it to work with the delimiter \n (or \r or
 \\n...).
 I have also tried to use the preg_split()-method which takes a RE-argument
 but that doesnt seem to work either (have tried in a lot of ways).
 
 Can anyone give me a clue how to solve this problem?
 
 Many thanks from Stockholm, Sweden!
 
 Jesper Blomstroem
 
 
 
 --
 
 Jesper Blomstrm
 08-370 317 (Hem)
 08-566 280 08 (Arbete)
 070-3024911
 
 ngermannagatan 113
 162 64 Vllingby
 
 
 
 
 
 -- 
 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] MIME and headers

2001-03-18 Thread Manuel Lemos

Hello Peter,

On 06-Mar-01 21:11:00, you wrote:

Can some one please tell me what the relationship between mime and email
headers is I have not been able to find a straight answer off the net
..so if any one knows of a good site can you please give me the url so i can
look at it .. thanks Peter Houchin Sun Rentals [EMAIL PROTECTED]

If your message headers contain non-ASCII characters they need to be
encoded according to MIME q-encoding algorithm.

You may want to try this MIME message composing and sending PHP Class that
can encode headers using q-encoding:

http://phpclasses.UpperDesign.com/browse.html/package/9

Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


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

2001-03-18 Thread Manuel Lemos

Hello george,

On 06-Mar-01 09:16:39, you wrote:

I am trying to build a form which can be geberated dynamically
by the user selecting the number of fields up to a max of 10.

Maybe you would like to try this PHP class that lets you generate forms
programmatically.

http://phpclasses.UpperDesign.com/browse.html/package/1


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


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

2001-03-18 Thread YoBro

Hello,

Does anybody know any good books  websites to recommend for PHP  MySql
together. I am looking to advance my knowledge and would really appreciate a
helpful tip.

Really looking for a book that explains all the advanced features of PHP4
and MySql as a compliment.

Regards,


YoBro
-
DO NOT REPLY TO THIS VIA EMAIL
PLEASE USE THE NEWSGROUP
All emails sent to this address are automatically deleted.
This is to avoid SPAM!
-



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

2001-03-18 Thread Jason Lotito



 -Original Message-
 From: YoBro [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, March 18, 2001 3:13 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] PHP  MYSQL BOOKS


 Hello,

 Does anybody know any good books  websites to recommend for PHP  MySql
 together. I am looking to advance my knowledge and would really
 appreciate a
 helpful tip.

 Really looking for a book that explains all the advanced features of PHP4
 and MySql as a compliment.

 Regards,


 YoBro


I have found the following books very userful:
PHP Developer's Cookbook
WROX's Beginning PHP 4
Core PHP Programming
SQL In A Nutshell

The following websites as well:
www.phpbuilder.com (which, if I may say, I had an article accepted there,
and it will soon be released.=))
www.phpdeveloper.org
www.phpbeginner.com
www.hotscripts.com  (Check out the PHP Tutorials section)
www.newbienetwork.net (My site...=P)
www.webmonkey.com
www.devshed.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 MYSQL BOOKS

2001-03-18 Thread eschmid+sic

On Sun, Mar 18, 2001 at 06:43:27PM -0800, Jason Lotito wrote:
  From: YoBro [mailto:[EMAIL PROTECTED]]

  Does anybody know any good books  websites to recommend for PHP  MySql
  together. I am looking to advance my knowledge and would really
  appreciate a
  helpful tip.
 
  Really looking for a book that explains all the advanced features of PHP4
  and MySql as a compliment.

 I have found the following books very userful:
 PHP Developer's Cookbook
 WROX's Beginning PHP 4
 Core PHP Programming
 SQL In A Nutshell
 
 The following websites as well:
 www.phpbuilder.com (which, if I may say, I had an article accepted there,
 and it will soon be released.=))
 www.phpdeveloper.org
 www.phpbeginner.com
 www.hotscripts.com  (Check out the PHP Tutorials section)
 www.newbienetwork.net (My site...=P)
 www.webmonkey.com
 www.devshed.com

The most useful book about MySQL and PHP is the New Riders book from Paul
DuBois. This book is more readable than the PHP or MySQL online docus. You
can buy a copy at php.net/books.php - related reading.

-Egon

-- 
LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
All known books about PHP and related books: http://php.net/books.php 
Concert Band of the University of Hohenheim: http://www.concert-band.de/
First and second bestselling book in German: http://www.php-buch.de/

-- 
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] Arrays in Classes

2001-03-18 Thread Richard S. Crawford



I'm quite new at object-oriented programming in PHP.  Here's what I want to do.

I want to create a class of objects called "lists".  The properties I want 
to have for list objects include:

 owner of the list
 number of items in the list
 the list itself

Each item in the list, of course, has several properties of their own: the 
date the item was added, the name of the item, and a link to the item.  I 
figured that the list would be contained in an array of associative 
arrays... such as,

 item[0]["item"]="Palm Pilot"
 item[0]["dateAdded"]="2001-03-18"
 item[0]["link"]="http://www.palm.com"

The lists will be built from a database which contains information about 
users and the lists that they maintain.  The database part I have down pat.

Properties of the list objects can be retrieved like this, of course...

 $myList=new List($userID);
 $num=$myList-numItems;
 $name=$myList-listOwner;

What I'm wondering is, can I do something like this:

 for($i=0;$i$num;$i++)
 $itemList[$i]["item"]=$myList-item[$i]["item"];

If so, how???


-- 
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] submission of 1..N variables

2001-03-18 Thread Ekkard Gerlach

Hi, 

n  variables reach  
my php-programm by submission: 

A0 
A1 
...
An 

Depending on Ai is set I want to run some 
actions. 

How can I evaluate Ai ??


if (isset (A1) then   # entrance
{ 
  i=0;
  while( isset($Ai)) {   /* Of course $Ai is not working !!! */
  { 
   $B= $Ai
  ... action ...
  }
}

I tried a lot with eval , with backticks, ...
but no suceess. 

Anybody an Idea? 

tia
Ekkard


-- 
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] Good Free PHP Editor - And it's not Edit Plus!

2001-03-18 Thread news.php.net

just a note:

afaik editplus is no freeware.

--

(::sebas::)
___
www.nijmegen.de  sebas.tweakers.net  www.weblab-online.de
""James Crowley"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Dear All,

 Given the recent discussion regarding a PHP editor, I thought you would
 like to know that VB Web Development have finally released Developers Pad
 BETA 2. This program is open source, and free. It's features include
syntax
 highlighting (fully customizable), powerful project view, auto-indent,
quick
 HTML tag insert, open linked file and more.

 It is available for download at
 http://developerspad.vbdiamond.com/download/
 and you can talk to me (and everyone else) about it at
 http://developerspad.vbdiamond.com/forum/

 If you have any problems with the new release, don't have any hestitation
in
 contacting me.

 New Features for BETA 2:
 - Enhanced Project View
* Virtual folders
* Saved in XML Format
* Can open VB, VC++ and .NET Project Files
 - Enhanced Editor Window
* Open Linked File Shortcut
* Jump-To Procedure List
* Quick HTML Tag Insert
 - Extended Language Support
* Now includes support for SQL, VB.NET and C#
 - Less Bugs!
 - Improved Add-In Support
* New Add-In Object Model

 We are currently looking for sponsors! If there is a company out there
 interested in sponsoring Developers Pad and its site, please e-mail me.

 Regards,

 - James

 Editor, VB Web
 ==
 Web   - http://www.vbweb.co.uk
 Email - [EMAIL PROTECTED]
 ICQ#  - 60612011
 ==


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

2001-03-18 Thread David Robley

On Sun, 18 Mar 2001 00:13, Jorge Alvarez wrote:
 Hi there,

 I get this error every time I try to use a variable that has not been
 declared. Is this new to PHP4? I do not recall this error in the past,
 echo $MYVAR echoed nothing if $MYVAR was not set but no error was
 raised.

 How can I revert PHP behavior to 'no-error' with undeclared variables?

 Many thanks in advance,

 Jorge Alvarez
 PHP4 new user

You may need to play around with the value of error_reporting in your 
php.ini file.

-- 
David Robley| WEBMASTER  Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA

-- 
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] dynamically change a variable name

2001-03-18 Thread Gary

Is there a way to dynamically change a variable name? For example:
I want to change the variable name $DWG to
$DWG1
$DWG2
$DWG3
with a for loop. Is there a way to do this?

Thanks, Gary



-- 
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] pulldown population not getting the last value

2001-03-18 Thread Tom Beidler

I'm trying to create a pulldown menu with distinct names from the found set.
For some reason I never get the last name. Here's my code;

$contact_query = "SELECT DISTINCT name FROM request"
. " WHERE id = '5' OR demo_id = '$demo_id'"
. " ORDER BY name";
$contact_result = mysql_query ($contact_query)
or die ("Cannot build contact");

while ($contact_row = mysql_fetch_array ($contact_result))
{
$name = $contact_row["name"];
$option_contact .= "OPTION value=\"$name\"$name/OPTION\n";
}

What gives?

Any help would be appreciated.

Thanks,
Tom

.
Tom Beidler
Orbit Tech Services
805.682.8972 (phone)
805.682.5833 (fax)
[EMAIL PROTECTED]
http://www.orbittechservices.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] Expire data from form

2001-03-18 Thread Paul R. Jackson

Sheni,

I needed to do a similar thing as this. When creating the form have a hidden
value which is the current time. The when procesing the form check the time.
If its to old just say page expired.

I found this worked fine. Hope this helps.

Paul

""Sheni R. Meledath"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

 I have set up a form to register the users to the site. The users are
 allowed to register only once. When the user submits the form the same
 script will check the validity of the form and displays error messages and
 if okay, updates the database.
 I want to set up an option in the form in which when the user once submits
 and after that if they click on the back button (browser back) it should
 say the 'page expired' as I have seen with some Perl scripts. The users
 should not be allowed to go back to the page and resubmit. Can any body
 suggest a way to accomplish this.

 thanks
 Sheni R Meledath
 [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] multiple post what the hey

2001-03-18 Thread Paul R. Jackson

I think its just you

I think its just you

:)

""PHPretard"" [EMAIL PROTECTED] wrote in message
000b01c0afca$8934b000$1983bc18@pixeldesire">news:000b01c0afca$8934b000$1983bc18@pixeldesire...
 Is it just me or are they like double and triple post from everyone?

 whats going on? its iritating having to delete alot of message


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://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 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] just wondering ....

2001-03-18 Thread Peter Houchin

If I have a email script and use the mail() function ... am i able to do
this ..

mail(values);
if ($mail=1){
do this
}
else {
error
}

is that possible? if not could some one suggest a way i could get the same
effect?

Thanks

Peter Houchin
[EMAIL PROTECTED]
=
 _  __   /\
/_/_/_\/  |_/  \
   /_/_/___  __  __   __  / \
   \_/_/_\  /_/ /_/ /_/  /_/  \   _ /
 ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/
 \_//_/_/ /_/_/_/ /_/ \/_/v
    
/_/_/_/_/  /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
   /_/_ _/_/ __  __   __  /_/   __ __
  /_/_/_/_/ /_/_/_/ /_/  /_/ /_/ /_/\_\/_//_/_/_/
 /_/  \_\  /_/ _/  /_//\/_/ /_/ /_/__\_\  /_/___ _\_\_\
/_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/
=
Telephone : (03) 9329 1455  Facsimile : (03) 9329 6755
* We rent the dot in .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] Can PHP for Oracle randomly access rows in a result set?

2001-03-18 Thread Andrew Halliday

Can PHP for Oracle randomly access rows in a result set?

I have read documentation for both Oracle functions (ora_*) and Oracle 8
functions (OCI_*) but cant seem to find a way to randomly access rows in a
result set like you can with PostgreSQL or MySQL ... whats the story here?!
Are we FORCED to access the result set sequentially with an Oracle database?
Is that a restriction of the DB or PHP?



All help appreciated,

AndrewH



-- 
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] just wondering ....

2001-03-18 Thread CC Zona

In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] ("Peter Houchin") wrote:

 If I have a email script and use the mail() function ... am i able to do
 this ..
 
 mail(values);
 if ($mail=1){
 do this
 }
 else {
 error
 }

Are you trying to test whether mail() returned true?

if (mail(values)){
do this
}
else {
error
}

(Keeping in mind that when mail() returns true, it's not saying whether the 
mail really reached the destination server, only that it the function 
executed successfully.)

-- 
CC

-- 
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] Tables with scroll in HTML?

2001-03-18 Thread Jose Antonio

Is any way to make a dinamic table with its own scroll?

I'm trying make a table/form with a checkbox in every row and a submit
button, but, when the table becomes long, I have to scroll down ALL the page
to find the SUBMIT button. When you have make this operaton 3 times, it
becomes bored.

I have tryed to make several frames, but, if a put the submit button in a
diferent frame, how can i know wich are the selected rows of the form in the
other frame?

If I could make a table with a fixed size and its own scroll bar, the
interface would became more efficient.

Can anyone help me to make this? Any JAVA solution?



-- 
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] just wondering ....

2001-03-18 Thread Peter Houchin

What am going to try  do is get it so mail() returns true then run this
script else do this

Peter

-Original Message-
From: CC Zona [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 2:02 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] just wondering 


In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] ("Peter Houchin") wrote:

 If I have a email script and use the mail() function ... am i able to do
 this ..

 mail(values);
 if ($mail=1){
 do this
 }
 else {
 error
 }

Are you trying to test whether mail() returned true?

if (mail(values)){
do this
}
else {
error
}

(Keeping in mind that when mail() returns true, it's not saying whether the
mail really reached the destination server, only that it the function
executed successfully.)

--
CC

--
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] just wondering ....

2001-03-18 Thread David Robley

Followups moved to bottom of message for legibility!

 -Original Message-


 In article [EMAIL PROTECTED],

  [EMAIL PROTECTED] ("Peter Houchin") wrote:
  If I have a email script and use the mail() function ... am i able to
  do this ..
 
  mail(values);
  if ($mail=1){
  do this
  }
  else {
  error
  }

 From: CC Zona [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 19, 2001 2:02 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] just wondering 

 Are you trying to test whether mail() returned true?

 if (mail(values)){
 do this
 }
 else {
 error
 }

 (Keeping in mind that when mail() returns true, it's not saying whether
 the mail really reached the destination server, only that it the
 function executed successfully.)

 --
 CC

On Mon, 19 Mar 2001 01:34, Peter Houchin wrote:
 What am going to try  do is get it so mail() returns true then run
 this script else do this

 Peter

Like most functions in PHP, mail() returns a value - boolean according to 
the manual. So you could do something like

$mail = mail(values);
if ($mail){
 do this
}
else {
 error
}

But as has been pointed out above, a return of TRUE only means that 
mail() has handed the data off to something else, which something else 
may or may not succeed in sending the message.

-- 
David Robley| WEBMASTER  Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA

-- 
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 19 Mar 2001 03:17:37 -0000 Issue 575

2001-03-18 Thread php-general-digest-help


php-general Digest 19 Mar 2001 03:17:37 - Issue 575

Topics (messages 44437 through 44478):

Re: how do i get a variable type?
44437 by: rm

Re: phpMyAdmin edit function not working
44438 by: Oktay Altunergil

Re: how to change from php Apache module to php CGI?
44439 by: Oktay Altunergil

multiple post what the hey
0 by: PHPretard
44472 by: Paul R. Jackson

Re: confirm unsubscribe from [EMAIL PROTECTED]
1 by: Bob DeBolt

Q - php-apache _ php-cgi
2 by: Bart A. Verbeek

PHP script locations
3 by: Paul O'Neil

Re: Anyone good with Java??
4 by: Chris Anderson

Source Protection
5 by: Chris Anderson

how do i get a variable type? - not that simple
6 by: phpman
8 by: Johnson, Kirk
9 by: Rick St Jean
44450 by: Mark Charette

Problems with multiple query
7 by: Luca Lazzeroni
44452 by: Nuno Silva

Good Free PHP Editor - And it's not Edit Plus!
44451 by: James Crowley
44467 by: news.php.net

Re: update two frames at once?
44453 by: Maron Kristófersson

Re: Combining Perl and PHP
44454 by: Henrik Hansen

Re: TraceRoute
44455 by: Henrik Hansen
44456 by: Kath
44457 by: Henrik Hansen

newline in preg_split
44458 by: Jesper Blomström
44459 by: Ville Mattila

Re: MIME and headers
44460 by: Manuel Lemos

Re: dymanic forms
44461 by: Manuel Lemos

PHP  MYSQL BOOKS
44462 by: YoBro
44463 by: Jason Lotito
44464 by: eschmid+sic.s.netic.de

Arrays in Classes
44465 by: Richard S. Crawford

submission of 1..N variables
44466 by: Ekkard Gerlach

Re: Undefined Variable
44468 by: David Robley

dynamically change a variable name
44469 by: Gary

pulldown population not getting the last value
44470 by: Tom Beidler

Re: Expire data from form
44471 by: Paul R. Jackson

just wondering 
44473 by: Peter Houchin
44475 by: CC Zona
44477 by: Peter Houchin
44478 by: David Robley

Can PHP for Oracle randomly access rows in a result set?
44474 by: Andrew Halliday

Tables with scroll in HTML?
44476 by: Jose Antonio

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]


--



PHP, at least php 3.x, has a series of fuctions like
is_string, is_integer, is_array etc.  I know they're
there...I don't us them so I don't know exactly
where...this might be what you're looking for...

rm

--- phpman [EMAIL PROTECTED] wrote:
 hello all,
 
  let's say i have this:
 $a="varone=hello world|vartwo=2.44|varthree=100|";
 
 now i do this:
 
 $b=explode('|',$a);
 $z=count($b);
 for ($x=0;$x$z;$x++) {
 $tmp=explode('=',$b[$x]);
 
 
 and i want to find out if  $tmp[1] is a string or an
 integer (that's really
 all I need to determine so i can put
 together an SQL statement that puts single quotes
 around strings and none
 around integers). Obviously
 i won't know at design time all of the variables and
 their values. Thank
 you.
 
 -dave
 
 
 
 -- 
 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 Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




if you're using Windows. Check out phpfront at the address below. I must
accept that I don't completely understand your problem, but I found this
software to be more usable than the phpMyAdmin. (if your code has to know
when a field's value in the database is 'NULL' you may have problems with
phpMyAdmin, because it inserts NULLs as blank space)..

Anyway.. the limitation of this application is
1) it runs on windows only.. no web interface.
2) for some reason it doesn't let you do stuff on a table that doesn't have
a primary key defined.
http://www.anse.de/mysqlfront/

oktay
- Original Message -
From: "Robert Campbell" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 18, 2001 3:11 AM
Subject: [PHP] phpMyAdmin edit function not working


 I've got mysql  php running in a windows millenium
 system (yes, sad, I know), and I'm running phpmyadmin 2.1.0

 Anyway, I have a database with three cells of information:

 item_name
 item_list
 item_description

 Each cell contains numerous pieces of data seperated
 by a  symbol (for exploding into an array).  There is alot
 of data in each cell, and when I go to choose "edit" or
 "delete" the browser does nothing.

 I thought it was just an IE error, but the same happens
 in Netscape 6.0 and Netscape 4.8.  So I 

RE: [PHP] just wondering ....

2001-03-18 Thread Peter Houchin



snip

On Mon, 19 Mar 2001 01:34, Peter Houchin wrote:
 What am going to try  do is get it so mail() returns true then run
 this script else do this

 Peter

Like most functions in PHP, mail() returns a value - boolean according to 
the manual. So you could do something like

$mail = mail(values);
if ($mail){
 do this
}
else {
 error
}

But as has been pointed out above, a return of TRUE only means that 
mail() has handed the data off to something else, which something else 
may or may not succeed in sending the message.

-- 
David Robley| WEBMASTER  Mail List Admin

Thanks every one for your help :)
 

Peter

-- 
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] Tables with scroll in HTML?

2001-03-18 Thread Adi Wibowo


On Mon, 19 Mar 2001, Jose Antonio wrote:
 I have tryed to make several frames, but, if a put the submit button in a
 diferent frame, how can i know wich are the selected rows of the form in the
 other frame?

I use IFRAME (for more flexibility than FRAME) and session's variables to
store variables between frames.
Of course, table's frame must have some routine to store/update
session variable when it clicked or changed.

Adi Wibowo ---
* Work matter: [EMAIL PROTECTED]
* Private matter : [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] TraceRoute

2001-03-18 Thread David Smith


This would be because his email shows [EMAIL PROTECTED] Hint
the -nospam at the end. I don't know why people do this and then ask for
help because when someone offers the help the email bounces...

David Smith

-Original Message-
From: Henrik Hansen [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 18, 2001 5:18 PM
To: Kath
Cc: Mick; Henrik Hansen; [EMAIL PROTECTED]
Subject: Re: [PHP] TraceRoute


"Kath" [EMAIL PROTECTED] wrote:

  I tried emailing him 5 times with this, but I could never get through :|
 
  I even found the script for him and tried to send it to him :|
 
  - Kath

heh i got an error too, lets just hope he read the group :)

--
Henrik Hansen


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

2001-03-18 Thread Clayton Dukes



What's the proper syntax for 
headers_sent?

I tried:
if(!isset(headers_sent)) { include("header.php"); 
}

But I get:
Parse error: parse error, expecting `T_VARIABLE' or `'$'' 
in /home/www/websites/pw/cisco/config/index.htm on line 
3



Clayton DukesCCNA, CCDA, CCDP, 
CCNPInternetwork Solutions EngineerInternetwork Management 
EngineerThrupoint, Inc.Tampa, FL(c) 904.477.7825(h) 
904.292.1881

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

2001-03-18 Thread Jack Dempsey

don't you need the () after headers_sent?
if(!isset(headers_sent()){include("header.php");}
haven't tried it but i'd think that would work

jack
  -Original Message-
  From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
  Sent: Sunday, March 18, 2001 11:38 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] headers_sent


  What's the proper syntax for headers_sent?

  I tried:
  if(!isset(headers_sent)) { include("header.php"); }

  But I get:
  Parse error: parse error, expecting `T_VARIABLE' or `'$'' in
/home/www/websites/pw/cisco/config/index.htm on line 3




  Clayton Dukes
  CCNA, CCDA, CCDP, CCNP
  Internetwork Solutions Engineer
  Internetwork Management Engineer
  Thrupoint, Inc.
  Tampa, FL
  (c) 904.477.7825
  (h) 904.292.1881



Re: [PHP] headers_sent

2001-03-18 Thread Clayton Dukes

Thanks :-)

- Original Message - 
From: "Jack Dempsey" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; "Clayton Dukes" [EMAIL PROTECTED]
Sent: Monday, March 19, 2001 12:08 AM
Subject: RE: [PHP] headers_sent


 don't you need the () after headers_sent?
 if(!isset(headers_sent()){include("header.php");}
 haven't tried it but i'd think that would work
 
 jack
   -Original Message-
   From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
   Sent: Sunday, March 18, 2001 11:38 PM
   To: [EMAIL PROTECTED]
   Subject: [PHP] headers_sent
 
 
   What's the proper syntax for headers_sent?
 
   I tried:
   if(!isset(headers_sent)) { include("header.php"); }
 
   But I get:
   Parse error: parse error, expecting `T_VARIABLE' or `'$'' in
 /home/www/websites/pw/cisco/config/index.htm on line 3
 
 
 
 
   Clayton Dukes
   CCNA, CCDA, CCDP, CCNP
   Internetwork Solutions Engineer
   Internetwork Management Engineer
   Thrupoint, Inc.
   Tampa, FL
   (c) 904.477.7825
   (h) 904.292.1881
 


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

2001-03-18 Thread Jack Dempsey

[this is his reply]

-Original Message-
From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 12:08 AM
To: Jack Dempsey; [EMAIL PROTECTED]
Subject: Re: [PHP] headers_sent


Thanks :-)

- Original Message - 
From: "Jack Dempsey" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; "Clayton Dukes" [EMAIL PROTECTED]
Sent: Monday, March 19, 2001 12:08 AM
Subject: RE: [PHP] headers_sent


 don't you need the () after headers_sent?
 if(!isset(headers_sent()){include("header.php");}
 haven't tried it but i'd think that would work
 
 jack
   -Original Message-
   From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
   Sent: Sunday, March 18, 2001 11:38 PM
   To: [EMAIL PROTECTED]
   Subject: [PHP] headers_sent
 
 
   What's the proper syntax for headers_sent?
 
   I tried:
   if(!isset(headers_sent)) { include("header.php"); }
 
   But I get:
   Parse error: parse error, expecting `T_VARIABLE' or `'$'' in
 /home/www/websites/pw/cisco/config/index.htm on line 3
 
 
 
 
   Clayton Dukes
   CCNA, CCDA, CCDP, CCNP
   Internetwork Solutions Engineer
   Internetwork Management Engineer
   Thrupoint, Inc.
   Tampa, FL
   (c) 904.477.7825
   (h) 904.292.1881
 



-- 
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: php4 /ext/yp CREDITS php_yp.h yp.c

2001-03-18 Thread Andi Gutmans

Seems to me that you can nuke the following as it will always be done in RINIT:
+static void php_yp_init_globals(YPLS_D)
+{
+   YP(error) = 0;
+}
+
+PHP_MINIT_FUNCTION(yp)
+{
+#ifdef ZTS
+   yp_globals_id = ts_allocate_id(sizeof(php_yp_globals), 
(ts_allocate_ctor) php_yp_init_globals, NULL);
+#else
+   php_yp_init_globals(YPLS_C);
+#endif

Andi

At 10:16 PM 3/18/2001 +, Fredrik hrn wrote:
ohrnSun Mar 18 14:16:46 2001 EDT

   Modified files:
 /php4/ext/ypCREDITS php_yp.h yp.c
   Log:
   Much needed cleanup and new functions added
   ---

   Cleaned up stringhandling for binary safeness.

   All functions now maintain a global 'errno' variable.

   All functions now print warning messages on failure.

   Added error code constants.

   Fixed bug #8041 while maintaining backward compatibility.

   New functions:
 yp_all traverse a map
 yp_cat retrive an entire map in one go
 yp_errno   get last error code
 yp_err_string  get a human readable error message



--
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] metabase docs and DB abstraction

2001-03-18 Thread Manuel Lemos

Hello Dean,

On 17-Mar-01 02:24:54, you wrote:

Anyone have opinions on which DB abstraction layer is best for what
situation? Is there an article somewhere that compares the various DB
abstraction layers?

I guess I am too suspicious too tell, but I can tell you a few advantages
or features of Metabase that other DB abstraction layers do not have or are
now following the design:

- Database schema definition in XML that Metabase manager installs or updates in
  any of the supported databases.  Good for migrations just in case you
  need them in the future.

- Large set of base datatypes that Metabase assures that will work portably
  across databases:  integer, text, date, time, timestamp, floating point,
  fixed point and boolean.

- Selecting just a range of rows of a SELECT query, like MySQL LIMIT, but
  works with ALL supported databases.

- Auto-incremented integer sequences. 

- Transaction support for databases that can handle them.

- etc...


(Cross-post:)

Anyone know where I can find documentation or samples for metabase?

http://phpclasses.UpperDesign.com/browse.html/package/20

Look in the documentation directory of the list of files.  There is a
metabase.html which the whole reference manual and the tutorial.html .



Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
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] first three characters

2001-03-18 Thread Rahul Bhide

Gurus,
How do I extract the first n characters out of a word . I have this-

$Word = attention

I want -

$Word_3 = att
$Word_4 = atte
$Word_5 = atten
this is only extracting first three/four/five characters .

What is the right function to use here ??

thx in advance.
~Rahul





-- 
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] dynamically change a variable name

2001-03-18 Thread Mark Maggelet

On Sun, 18 Mar 2001 20:36:15 -0500, Gary ([EMAIL PROTECTED]) wrote:
Is there a way to dynamically change a variable name? For example:
I want to change the variable name $DWG to
$DWG1
$DWG2
$DWG3
with a for loop. Is there a way to do this?

you could try:

for($i=1;$i=3;$i++){
${"DWG".$i}=$DWG;
}

or it might make more sense to use an array.


--
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] first three characters

2001-03-18 Thread Jack Dempsey

?PHP
$Word = "attention";
$Word_3 = substr("$Word",0,3);  //$Word_3 is 'att'
$Word_4 = substr("$Word",0,4);  //Word_4 is 'atte'
?

etc..you can use dynamic variables to extract the nth character from
your word..

jack





-Original Message-
From: Rahul Hari Bhide [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 1:02 AM
To: [EMAIL PROTECTED]
Subject: [PHP] first three characters


Gurus,
How do I extract the first n characters out of a word . I have this-

$Word = attention

I want -

$Word_3 = att
$Word_4 = atte
$Word_5 = atten
this is only extracting first three/four/five characters .

What is the right function to use here ??

thx in advance.
~Rahul





--
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] first three characters

2001-03-18 Thread Ankur Verma

try using the function substr()

$Word = attention

$Word_3 = substr ($Word, 0,3)
$Word_3 = substr ($Word, 0,4)

and so on

hope that helps
regards

Ankur Verma
HCL technologies
Noida
India

-Original Message-
From: Rahul Hari Bhide [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 11:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] first three characters


Gurus,
How do I extract the first n characters out of a word . I have this-

$Word = attention

I want -

$Word_3 = att
$Word_4 = atte
$Word_5 = atten
this is only extracting first three/four/five characters .

What is the right function to use here ??

thx in advance.
~Rahul





-- 
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] Sessions and CHECKBOXES :(

2001-03-18 Thread Yasuo Ohgaki
Although, you ask not to refer to PHP manual, there is a function you probably
would like to learn.
(I guess you haven't read about array functions, right?)

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

This should be what you are looking for.
(Don't over write, but merge arrays. I guess this is what you need)
Take your time to read array functions, you might find other functions that is
useful.

Regards,
--
Yasuo Ohgaki

- Original Message -
From: ""karakedi"" [EMAIL PROTECTED]
Newsgroups: php.general
Sent: Saturday, March 17, 2001 10:07 AM
Subject: [PHP] Sessions and CHECKBOXES :(


 i ve 20 film names stored at database, and i want to show them in
 alphebetical order. And i want to show 10 of them at each page. Nothing is
 wrong here. At the end of each film name there is a CHECKBOX, here is the
 code:

 $count = 0;
 while ($row = mysql_fetch_array($result)){

 echo "tr";

 echo "td valign=middle align=left"   ; // getting film names here
 echo $row['film'] ;
 echo "/td"  ;


 $sepet = $row['tur'] ;   // putting checkboxes here
 $sepet2 = $row['film'];
 $sepetsonuc = $sepet. " " .$sepet2 ;
 echo "input type=checkbox name=\"siparis[]\" value=\"$sepetsonuc\"" ;

 echo "/td/tr"  ;
 $count++;
 }


 its good till here. everything is working... now since there are two pages i
 want to register checkbox variables  which are CHECKED with
 "session_register "so that i can use them at the second page. without that
 my code simply cant remember the checked ones at the previous pages.

 Can someone help me to register these checkbox values into sessions ?
 PLS dont refer me to php.net manual/sessions  :(

 i spent my last two days working on this so really need help :(  any help is
 HIGHLY APPRECIATED!!!
 thx in adv.




 --
 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] Seg Fault with fopen

2001-03-18 Thread Matt Friedman

Here's a function I'm trying to use to execute a php and then read the html.
I've tried the actual hostname instead of localhost but that's not working
either.

It's causing a segmentation fault. I'm running linux apache php 4.0.4

Any thoughts?

function get_web_page_desc($filename)
{
 $uri = 'http://localhost'.get_web_page_uri($filename);

 $fp   = fopen($uri, 'r');
 $contents  = fread($fp, 36 );

// do stuff with contents

 return strip_tags($para);
}


-- 
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 and XSLT, anyone working with these?

2001-03-18 Thread Bryan Willett


I know that the XSLT functionality in PHP is experimental but is anyone
doing any work with these?

I've written some basic extensions to PHPLIB for XSLT and I am curious if
anyone has some more advanced research they can share.

The code that I have will return a dataset, format into XML, and then
transform it using an XSLT stylesheet (template).

Usage:

$db = new DB_Sql_Xml;
$db-query("select * from foo");
$db-get_transform("xslt_file.xslt", $db-get_xml());

I also have add XSLT parameter functionality working.  While I have this
code integrated into PHPLIB it could also function as a stand alone tranform
class.  I took some code from a phpbuilder article on this subject and
improved it.

You can see the class here:

www.merchantempirs.net/db_xsl.inc


So has anyone else done much with PHP and XSLT?



-- 
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: php4 /ext/midgard config.m4 config.m4.session php_midgard.h.in

2001-03-18 Thread Alexander Bokovoy

ab  Sun Mar 18 23:04:56 2001 EDT

  Added files: 
/php4/ext/midgard   php_midgard.h.in 

  Modified files:  
/php4/ext/midgard   config.m4 config.m4.session 
  Log:
  Automatically generate correct #include for cases when module
  build using phpize or within main PHP4 tree
  
  
Index: php4/ext/midgard/config.m4
diff -u php4/ext/midgard/config.m4:1.13 php4/ext/midgard/config.m4:1.14
--- php4/ext/midgard/config.m4:1.13 Sun Mar 11 15:45:57 2001
+++ php4/ext/midgard/config.m4  Sun Mar 18 23:04:56 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.13 2001/03/11 23:45:57 davidg Exp $
+dnl $Id: config.m4,v 1.14 2001/03/19 07:04:56 ab Exp $
 
 dnl  Copyright (C) 1999 Jukka Zitting [EMAIL PROTECTED]
 dnl  Copyright (C) 2000 The Midgard Project ry
@@ -66,4 +66,12 @@
   if test "$PHP_MIDGARD_EXPERIMENTAL" != "no"; then
 AC_DEFINE(YOU_WANT_TO_TEST, 1, [ ])
   fi
+  
+  if test "$php_always_shared" = "yes"; then
+MIDCONFIG_FILE="config.h"
+  else
+MIDCONFIG_FILE="php_config.h"
+  fi
+  PHP_SUBST(MIDCONFIG_FILE)
+  PHP_OUTPUT(php_midgard.h)
 fi
Index: php4/ext/midgard/config.m4.session
diff -u php4/ext/midgard/config.m4.session:1.3 php4/ext/midgard/config.m4.session:1.4
--- php4/ext/midgard/config.m4.session:1.3  Sun Mar 11 15:45:57 2001
+++ php4/ext/midgard/config.m4.session  Sun Mar 18 23:04:56 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4.session,v 1.3 2001/03/11 23:45:57 davidg Exp $
+dnl $Id: config.m4.session,v 1.4 2001/03/19 07:04:56 ab Exp $
 
 dnl  Copyright (C) 1999 Jukka Zitting [EMAIL PROTECTED]
 dnl  Copyright (C) 2000 The Midgard Project ry
@@ -74,4 +74,11 @@
   if test "$PHP_MIDGARD_SESSION" != "no"; then
 AC_DEFINE(HAVE_MIDGARD_SESSION, 1, [ ])
   fi
+  if test "$php_always_shared" = "yes"; then
+MIDCONFIG_FILE="config.h"
+  else
+MIDCONFIG_FILE="php_config.h"
+  fi
+  PHP_SUBST(MIDCONFIG_FILE)
+  PHP_OUTPUT(php_midgard.h)
 fi

Index: php4/ext/midgard/php_midgard.h.in
+++ php4/ext/midgard/php_midgard.h.in
/* $Id: php_midgard.h.in,v 1.1 2001/03/19 07:04:56 ab Exp $
Copyright (C) 1999 Jukka Zitting [EMAIL PROTECTED]
Copyright (C) 2000 The Midgard Project ry
Copyright (C) 2000 Emile Heyns, Aurora SA [EMAIL PROTECTED]

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#ifndef PHP_MIDGARD_H
#define PHP_MIDGARD_H

/* You should tweak config.m4 so this symbol (or some else suitable)
   gets defined.
*/
#include "php.h"
#include "@MIDCONFIG_FILE@"

#if HAVE_MIDGARD

#include midgard/midgard.h
#include midgard/apache.h
/* #include Zend/zend_modules.h */

midgard_request_config *mgd_rcfg();
midgard_directory_config *mgd_dcfg();
midgard *mgd_handle();
zval *mgd_getudf();
int mgd_get_errno();
void mgd_reset_errno();
void mgd_set_errno(int mgd_errno);
void mgd_log_debug(int flags, const char *fmt, ...);

extern zend_module_entry midgard_module_entry;
#define phpext_midgard_ptr midgard_module_entry

#ifdef PHP_WIN32
#define PHP_MIDGARD_API __declspec(dllexport)
#else
#define PHP_MIDGARD_API
#endif

PHP_MINIT_FUNCTION(midgard);
PHP_MSHUTDOWN_FUNCTION(midgard);
PHP_RINIT_FUNCTION(midgard);
PHP_RSHUTDOWN_FUNCTION(midgard);
PHP_MINFO_FUNCTION(midgard);

PHP_FUNCTION(confirm_midgard_compiled); /* For testing, remove later. */

ZEND_BEGIN_MODULE_GLOBALS(midgard)
midgard_request_config *rcfg;
midgard_directory_config *dcfg;
   midgard *mgd;
   int mgd_errno;
   zval *udf;
ZEND_END_MODULE_GLOBALS(midgard)

/* In every function that needs to use variables in php_midgard_globals,
   do call MGDLS_FETCH(); after declaring other variables used by
   that function, and always refer to them as MGDG(variable).
   You are encouraged to rename these macros something shorter, see
   examples in any other php module directory.
*/

#ifdef ZTS
#define MGDG(v) (midgard_globals-v)
#define MGDLS_FETCH() php_midgard_globals *midgard_globals = 
ts_resource(midgard_globals_id)
#else
#define MGDG(v) (midgard_globals.v)
#define MGDLS_FETCH()
#endif

#else

#define phpext_midgard_ptr NULL

#endif

#endif  /* PHP_MIDGARD_H */


/*
 * Local variables:
 * tab-width: 4
 * c-basic-offset: 4
 * End:
 */



-- 
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] PHP and XSLT, anyone working with these?

2001-03-18 Thread Bryan Willett



the correct link to see my PHP/XSLT code is:

http://www.merchantempires.net/db_xsl.inc





-- 
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] unable to fine /htdocs on my linux machine :(

2001-03-18 Thread Nilesh Parmar

Hi!
   I am trying to install php on my Redhat Linux 7.0  box and following
all instructions correctly, but i am unable to locate the directory /htdocs
in my machine I tried all tricks and trials but of no use .Can anyone tell
me what to do now!! my httpd.conf file is in  /etc/httpd/conf/ ..Apache is
working fine as it is loading the test page with http://localhost I
installed php4 rpm .
waiting eagerly for a solution
 thanking you all in advance
bye

 Nilesh Parmar



-- 
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] values from text boxes

2001-03-18 Thread Dennis Gearon

do I have to cast values from text boxes into ints?
If so, it's wierd, because I have taken the values from text inputs
before
and just put them into insert string statements for mysql. It turned
them 
into ints just fine.

I use the following code to MAKE a table of input boxes on the screen,
and the exact
same thing to READ it after submission.

the value $$vent_flow_identifier comes back with the entered value, but
as a string.

and example of the names of the INPUT boxes out and comes back is:
Vent1MinFlow
Vent1MaxFlow
Vent2FixedFlow
The '1' and the 'xxxFlow' are from columns in a set of tables.

code
//$room_vent_values are a two colomn result in an array of length2
arrays
//for the vents in a room, numbered 1..vents_in_the_room
//functions of vents are supply, return, exhaust
//A supply vent has a MaxFlow, and a MinFlow, Returns and Exhausts have
a Fixed Flow
//Those allowable flows are in $allowed_ventflowtype_values, indexed by
the
//Vent functionID



while ( list( $this_vent_num, $this_vent_functionID) = each(
$room_vent_values )){
$alt_bgcolor="";
if ( $this_vent_num % 2 ) $alt_bgcolor = "bgcolor=\"#E69B9F\""; 
  // causes alternating colors in odd/even vent numbers
echo("br\n");
reset( $allowed_ventflowtype_values );
while ( $vent_function_flow_array = each(
$allowed_ventflowtype_values )){
$flow_type_vent_functionID =  $vent_function_flow_array[1][0];
$flow_type =  $vent_function_flow_array[1][1];
  if ( $this_vent_functionID == $flow_type_vent_functionID ){
$vent_function_name =
$vent_function_values[$this_vent_functionID];
$vent_flow_identifier   = "Vent" . $this_vent_num .
$flow_type;
  //start of row for output table, only the input ... is
entered by user
  // the rest is from a database retrieval and fill in.
$flow_entry_table .= "  tr $alt_bgcolor\n";
$flow_entry_table .= "td
align=\"center\"nbsp;$this_vent_numnbsp;/td\n";
$flow_entry_table .= "td
align=\"center\"nbsp;$vent_function_namenbsp;/td\n";
$flow_entry_table .= "td
align=\"center\"nbsp;$flow_typenbsp;/td\n";
$flow_entry_table .= "td align=\"center\"nbsp;INPUT
type=\"text\" name =\"$vent_flow_identifier\" size=\"5\"nbsp;/td\n";
$flow_entry_table .= "  /tr\n";
  }
}
  }
/end_code

The form that this makes, and later tests the results of looks like:
html out
form name="Entry"
  action="FlowReadingsEntryTable.php"
  method="POST"
INPUT type="hidden" name="FlowDataSubmitted" value="1" !--name of
event submission of this table results in--
INPUT type="hidden" name="PurvineRoomID" value="1" !--relevant room
passed through from prevouos form--
INPUT type="submit" value="Send This Puppy"
table BORDER="0" CELLSPACING="0" COLS="4" width="100"
BGCOLOR="#FF5c5c"
  tr!-- THIS ROW sets column widths --
td WIDTH="85"  height="0"/td
td WIDTH="85"  height="0"/td
td WIDTH="85"  height="0"/td
td WIDTH="85"  height="0"/td
  /tr
!-- Heading Row --
  tr
td colspan="4" align="center" nowrapbbEnter Flow For Each
VentbrAnd Appropriate Flow TypebrDate will be The Current
Date/Time/bbrnbsp;/td
  /tr
  tr
td align="left" colspan="4"PurvineRoombrDesignationnbsp;/td
  /tr
  tr
td align="left" colspan="4"
b101/bbrnbsp;  /td
/tr
  tr valign"bottom"
td align="center"nbsp;VentbrNumnbsp;/td
td align="center"nbsp;VentbrFunctionnbsp;/td
td align="center"nbsp;FlowbrTypenbsp;/td
td align="center"nbsp;FlowbrValuenbsp;/td
  /tr
  tr bgcolor="#E69B9F"
td align="center"nbsp;1nbsp;/td
td align="center"nbsp;Supplynbsp;/td
td align="center"nbsp;MinFlownbsp;/td
td align="center"nbsp;INPUT type="text" name ="Vent1MinFlow"
size="5"nbsp;/td
  /tr
  tr bgcolor="#E69B9F"
td align="center"nbsp;1nbsp;/td
td align="center"nbsp;Supplynbsp;/td
td align="center"nbsp;MaxFlownbsp;/td
td align="center"nbsp;INPUT type="text" name ="Vent1MaxFlow"
size="5"nbsp;/td
  /tr
  tr 
td align="center"nbsp;2nbsp;/td
td align="center"nbsp;Supplynbsp;/td
td align="center"nbsp;MinFlownbsp;/td
td align="center"nbsp;INPUT type="text" name ="Vent2MinFlow"
size="5"nbsp;/td
  /tr
  tr 
td align="center"nbsp;2nbsp;/td
td align="center"nbsp;Supplynbsp;/td
td align="center"nbsp;MaxFlownbsp;/td
td align="center"nbsp;INPUT type="text" name ="Vent2MaxFlow"
size="5"nbsp;/td
  /tr
  tr bgcolor="#E69B9F"
td align="center"nbsp;3nbsp;/td
td align="center"nbsp;Supplynbsp;/td
td align="center"nbsp;MinFlownbsp;/td
td align="center"nbsp;INPUT type="text" name ="Vent3MinFlow"
size="5"nbsp;/td
  /tr
  tr bgcolor="#E69B9F"
td align="center"nbsp;3nbsp;/td
td align="center"nbsp;Supplynbsp;/td
td align="center"nbsp;MaxFlownbsp;/td
td align="center"nbsp;INPUT type="text" name ="Vent3MaxFlow"
size="5"nbsp;/td
  /tr
  tr 
td 

Re: [PHP] unable to fine /htdocs on my linux machine :(

2001-03-18 Thread David Robley

On Mon, 19 Mar 2001 05:53, Nilesh Parmar wrote:
 Hi!
I am trying to install php on my Redhat Linux 7.0  box and
 following all instructions correctly, but i am unable to locate the
 directory /htdocs in my machine I tried all tricks and trials but of no
 use .Can anyone tell me what to do now!! my httpd.conf file is in 
 /etc/httpd/conf/ ..Apache is working fine as it is loading the test
 page with http://localhost I installed php4 rpm .
 waiting eagerly for a solution
  thanking you all in advance
 bye

  Nilesh Parmar

This is rather an Apache question, but. It will depend on how you 
configured Apache as to where or even whether you will find the htdocs 
directory. For clues, check your httpd.conf file and look under 
ServerRoot and DocumentRoot.

-- 
David Robley| WEBMASTER  Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA

-- 
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] Problems with multiple query

2001-03-18 Thread Luca Lazzeroni

Thanks; in fact I've tryed the second solution and it works for me; but I
can't understand why the script stop working during the upgrade of system.
The most strange thing is that, after a deeper investigation on the code,
I've found the PHP engine does something like closing the connection after
the second pg_exec command.
In fact, by using persistent connections I've partially corrected the
problem and the codes doesn't complain about using an invalid (but not null)
connection descriptor;  but it stills be unable to get results from
successive queries, also if result index are valid ! This sounds very
strange for me.

Thank you for your help !

Luca Lazzeroni

"Nuno Silva" [EMAIL PROTECTED] ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello,

 if the second query loops inside a _for_ statement and needs values from
 the first query you have two options:

 1. save all the results from query one to some array and then loop
 inside the array within the _for_ statement executing new sql;
 2. open two separate connections to the database and work with the two.
 like this:
 $conn1 = pg_connect(...);
 $conn2 = pg_connect(...);
 ...
 qry1 = pg_exec($conn1, $sql1);
 ...
 for ($i=.) {
 ...
 $qry2 = pg_exec($conn2, $sql2);
 ...
 }

 Hope this helps,
 Nuno Silva


 Luca Lazzeroni wrote:

  Hi,
  I've recently migrated a system with PHP 4.0.3pl1 and PostgreSQL 7.0.2 -
  RedHat Linux 5.1 (yes 5) to a new one with PHP 4.0.4pl1 - PostgreSQL
7.0.2 -
  RedHat Linux 7.0.
 
  All my database applications work fine except one which does strange
things:
  this is a piece of code:
 
  8--- CUT 
 
 $conn = pg_connect("dbname= user=y password=xx");
 
 $sql = "select * from table_a where condition_a";
 $qry1 = pg_exec ($conn,$sql);
 
 $obj1 = pg_fetchobject($qry1,0);
 
// Until here everything works fine
 
 $sql2 = "select * from table_b where condition_b=".$obj1-value_a;
 $qry2 = pg_exec ($conn,$sql2);
 
  8--- CUT 
 
  The second query is nested in a for-loop running for every object in the
  first query; for performance reason I need to maintain the two queries
  independent.
 
  After executing (correctly) the first one, the system starts doing
strange
  things with the second one:
 
  Warning: Unable to jump to row 0 on PostgreSQL result index 23 in
cerca.php3
  on line 467
 
  and it fails to read data.
  The strange thing is that the system does the same things for EVERY
database
  where I must use two consecutive queries !
 
  Is there anyone who can help me ?
 
  Thanks in advance
 
  Luca Lazzeroni


 --
 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] cf to php

2001-03-18 Thread chris herring

is there a php equivalent for this little tidbit from a friend's cf script? here it is:

cfif NOT ISDEFINED("url.page")



[PHP-CVS] cvs: php4 /ext/midgard config.m4 config.m4.session

2001-03-18 Thread Alexander Bokovoy

ab  Sun Mar 18 23:37:01 2001 EDT

  Modified files:  
/php4/ext/midgard   config.m4 config.m4.session 
  Log:
  Oops. Substitution code fixed
  
  
Index: php4/ext/midgard/config.m4
diff -u php4/ext/midgard/config.m4:1.14 php4/ext/midgard/config.m4:1.15
--- php4/ext/midgard/config.m4:1.14 Sun Mar 18 23:04:56 2001
+++ php4/ext/midgard/config.m4  Sun Mar 18 23:37:00 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.14 2001/03/19 07:04:56 ab Exp $
+dnl $Id: config.m4,v 1.15 2001/03/19 07:37:00 ab Exp $
 
 dnl  Copyright (C) 1999 Jukka Zitting [EMAIL PROTECTED]
 dnl  Copyright (C) 2000 The Midgard Project ry
@@ -72,6 +72,6 @@
   else
 MIDCONFIG_FILE="php_config.h"
   fi
-  PHP_SUBST(MIDCONFIG_FILE)
-  PHP_OUTPUT(php_midgard.h)
+  PHP_SUBST_OLD(MIDCONFIG_FILE)
+  AC_OUTPUT(php_midgard.h, [], [])
 fi
Index: php4/ext/midgard/config.m4.session
diff -u php4/ext/midgard/config.m4.session:1.4 php4/ext/midgard/config.m4.session:1.5
--- php4/ext/midgard/config.m4.session:1.4  Sun Mar 18 23:04:56 2001
+++ php4/ext/midgard/config.m4.session  Sun Mar 18 23:37:00 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4.session,v 1.4 2001/03/19 07:04:56 ab Exp $
+dnl $Id: config.m4.session,v 1.5 2001/03/19 07:37:00 ab Exp $
 
 dnl  Copyright (C) 1999 Jukka Zitting [EMAIL PROTECTED]
 dnl  Copyright (C) 2000 The Midgard Project ry
@@ -79,6 +79,6 @@
   else
 MIDCONFIG_FILE="php_config.h"
   fi
-  PHP_SUBST(MIDCONFIG_FILE)
-  PHP_OUTPUT(php_midgard.h)
+  PHP_SUBST_OLD(MIDCONFIG_FILE)
+  AC_OUTPUT(php_midgard.h, [], [])
 fi



-- 
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] cf to php

2001-03-18 Thread Jack Dempsey

What exactly does that do chris?
If you're trying to check and see if there's a file on the server, then you
could do something with readdir, is_file, etc...if you want to post what
that actually tests for then i might be able to help more

jack

-Original Message-
From: chris herring [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 3:00 AM
To: [EMAIL PROTECTED]
Subject: [PHP] cf to php


is there a php equivalent for this little tidbit from a friend's cf script?
here it is:

cfif NOT ISDEFINED("url.page")


-- 
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: php4(PHP_4_0_5) /ext/midgard .cvsignore article.c attachment.c config.m4 config.m4.session midgard.c php_midgard.h snippet.c

2001-03-18 Thread Alexander Bokovoy

ab  Sun Mar 18 23:52:04 2001 EDT

  Modified files:  (Branch: PHP_4_0_5)
/php4/ext/midgard   .cvsignore article.c attachment.c config.m4 
config.m4.session midgard.c php_midgard.h 
snippet.c 
  Log:
  Bringing fixed code to stable branch
  
  
Index: php4/ext/midgard/.cvsignore
diff -u php4/ext/midgard/.cvsignore:1.5 php4/ext/midgard/.cvsignore:1.5.2.1
--- php4/ext/midgard/.cvsignore:1.5 Tue Feb 20 03:00:23 2001
+++ php4/ext/midgard/.cvsignore Sun Mar 18 23:52:03 2001
@@ -3,7 +3,6 @@
 *.lo
 *.slo
 *.la
-CVS
 Makefile
 acinclude.m4
 aclocal.m4
Index: php4/ext/midgard/article.c
diff -u php4/ext/midgard/article.c:1.15 php4/ext/midgard/article.c:1.15.2.1
--- php4/ext/midgard/article.c:1.15 Mon Mar 12 02:19:37 2001
+++ php4/ext/midgard/article.c  Sun Mar 18 23:52:03 2001
@@ -1,4 +1,4 @@
-/* $Id: article.c,v 1.15 2001/03/12 10:19:37 davidg Exp $
+/* $Id: article.c,v 1.15.2.1 2001/03/19 07:52:03 ab Exp $
 Copyright (C) 1999 Jukka Zitting [EMAIL PROTECTED]
 Copyright (C) 2000 The Midgard Project ry
 Copyright (C) 2000 Emile Heyns, Aurora SA [EMAIL PROTECTED]
@@ -780,6 +780,7 @@
zval **url, **calstart, **caldays, **icon, **view, **print;
zval **extra1, **extra2, **extra3;
zval **type, **score, **up, *self;
+   long upval;
 
RETVAL_FALSE;
CHECK_MGD;
@@ -852,8 +853,11 @@
if (!mgd_exists_id(mgd_handle(), "topic", "id=$d", (*topic)-value.lval))
RETURN_FALSE_BECAUSE(MGD_ERR_NOT_EXISTS);
 
-   if ((*up)-value.lval != 0  !mgd_exists_id(mgd_handle(), "article", "id=$d", 
(*up)-value.lval))
-   RETURN_FALSE_BECAUSE(MGD_ERR_NOT_EXISTS);
+   if (up) {
+  upval = atol((*up)-value.str.val);
+  if (upval != 0  !mgd_exists_id(mgd_handle(), "article", "id=$d", upval))
+ RETURN_FALSE_BECAUSE(MGD_ERR_NOT_EXISTS);
+   }
 
if (!istopicowner((*topic)-value.lval)) {
RETURN_FALSE_BECAUSE(MGD_ERR_ACCESS_DENIED);
Index: php4/ext/midgard/attachment.c
diff -u php4/ext/midgard/attachment.c:1.10 php4/ext/midgard/attachment.c:1.10.2.1
--- php4/ext/midgard/attachment.c:1.10  Sun Mar 11 15:30:36 2001
+++ php4/ext/midgard/attachment.c   Sun Mar 18 23:52:03 2001
@@ -1,4 +1,4 @@
-/* $Id: attachment.c,v 1.10 2001/03/11 23:30:36 davidg Exp $
+/* $Id: attachment.c,v 1.10.2.1 2001/03/19 07:52:03 ab Exp $
 Copyright (C) 1999 Jukka Zitting [EMAIL PROTECTED]
 Copyright (C) 2000 The Midgard Project ry
 Copyright (C) 2000 Emile Heyns, Aurora SA [EMAIL PROTECTED]
@@ -434,6 +434,7 @@
if (sapi_send_headers() != SUCCESS) {
mgd_free_pool(pool);
mgd_release(res);
+  fclose(fp);
 
RETURN_FALSE_BECAUSE(MGD_ERR_INTERNAL);
}
@@ -442,6 +443,7 @@
PHPWRITE(buf, b);
}
 
+   fclose(fp);
mgd_free_pool(pool);
mgd_release(res);
RETVAL_TRUE;
Index: php4/ext/midgard/config.m4
diff -u php4/ext/midgard/config.m4:1.13 php4/ext/midgard/config.m4:1.13.2.1
--- php4/ext/midgard/config.m4:1.13 Sun Mar 11 15:45:57 2001
+++ php4/ext/midgard/config.m4  Sun Mar 18 23:52:03 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.13 2001/03/11 23:45:57 davidg Exp $
+dnl $Id: config.m4,v 1.13.2.1 2001/03/19 07:52:03 ab Exp $
 
 dnl  Copyright (C) 1999 Jukka Zitting [EMAIL PROTECTED]
 dnl  Copyright (C) 2000 The Midgard Project ry
@@ -66,4 +66,12 @@
   if test "$PHP_MIDGARD_EXPERIMENTAL" != "no"; then
 AC_DEFINE(YOU_WANT_TO_TEST, 1, [ ])
   fi
+  
+  if test "$php_always_shared" = "yes"; then
+MIDCONFIG_FILE="config.h"
+  else
+MIDCONFIG_FILE="php_config.h"
+  fi
+  PHP_SUBST_OLD(MIDCONFIG_FILE)
+  AC_OUTPUT(php_midgard.h, [], [])
 fi
Index: php4/ext/midgard/config.m4.session
diff -u php4/ext/midgard/config.m4.session:1.3 
php4/ext/midgard/config.m4.session:1.3.2.1
--- php4/ext/midgard/config.m4.session:1.3  Sun Mar 11 15:45:57 2001
+++ php4/ext/midgard/config.m4.session  Sun Mar 18 23:52:03 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4.session,v 1.3 2001/03/11 23:45:57 davidg Exp $
+dnl $Id: config.m4.session,v 1.3.2.1 2001/03/19 07:52:03 ab Exp $
 
 dnl  Copyright (C) 1999 Jukka Zitting [EMAIL PROTECTED]
 dnl  Copyright (C) 2000 The Midgard Project ry
@@ -74,4 +74,11 @@
   if test "$PHP_MIDGARD_SESSION" != "no"; then
 AC_DEFINE(HAVE_MIDGARD_SESSION, 1, [ ])
   fi
+  if test "$php_always_shared" = "yes"; then
+MIDCONFIG_FILE="config.h"
+  else
+MIDCONFIG_FILE="php_config.h"
+  fi
+  PHP_SUBST_OLD(MIDCONFIG_FILE)
+  AC_OUTPUT(php_midgard.h, [], [])
 fi
Index: php4/ext/midgard/midgard.c
diff -u php4/ext/midgard/midgard.c:1.22 php4/ext/midgard/midgard.c:1.22.2.1
--- php4/ext/midgard/midgard.c:1.22 Sat Mar 10 14:43:10 2001
+++ php4/ext/midgard/midgard.c  Sun Mar 18 23:52:03 2001
@@ -1,4 +1,4 @@
-/* $Id: midgard.c,v 1.22 2001/03/10 22:43:10 emile Exp $
+/* $Id: midgard.c,v 1.22.2.1 2001/03/19 07:52:03 ab Exp $
 Copyright (C) 1999 Jukka Zitting [EMAIL PROTECTED]
 

Re: [PHP] unable to fine /htdocs on my linux machine :(

2001-03-18 Thread Harshdeep S Jawanda

Hi,

Nilesh Parmar wrote:

 i am unable to locate the directory /htdocs in my machine

The default location for the htdocs directory is:
apache-install-directory/htdocs.

--
Regards,
Harshdeep Singh Jawanda.



-- 
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-I18N] Encoding detection

2001-03-18 Thread Atanas Vassilev

Hello everyone,

I'm new to this list and I guess this question might already have been
asked but all my searches led me to nothing...

I need a way to detect default browser encoding so that i can set a
variable for language and present the whole site in different
languages based on encoding. I know encoding does not determine
language but I only have to switch between german and bulgarian so in
my case encoding will do the trick... of course if I knew a way to get
the encoding of the user's browser...

I'll appreciate any help.



-- 
PHP Internationalization 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-i18n Digest 19 Mar 2001 07:59:32 -0000 Issue 58

2001-03-18 Thread php-i18n-digest-help


php-i18n Digest 19 Mar 2001 07:59:32 - Issue 58

Topics (messages 139 through 139):

Encoding detection
139 by: Atanas Vassilev

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]


--



Hello everyone,

I'm new to this list and I guess this question might already have been
asked but all my searches led me to nothing...

I need a way to detect default browser encoding so that i can set a
variable for language and present the whole site in different
languages based on encoding. I know encoding does not determine
language but I only have to switch between german and bulgarian so in
my case encoding will do the trick... of course if I knew a way to get
the encoding of the user's browser...

I'll appreciate any help.