RE: [PHP] PHP in corporate settings?

2001-08-09 Thread Merio, Quinn


Agreed! Kudos to the persons responsible for creating the php manual. It is
imho, the most concise and accessible documentation of any technology that i
have used on the net. The technology is astounding as well! I know i am
rapidly becoming an evangelist :)

q.



Subject: RE: [PHP] PHP in corporate settings?


a big reason i use PHP as much as i do is becuase of
the excellent documentation and ease of finding it all...



-- 
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] The need for strong typing...

2001-07-13 Thread Merio, Quinn

I was going to suggest this too.

I like doing any sort of transactions or complex business logic using
components whether they be servlets, com objects, etc.

I would take advantage of the ability to integrate different technologies.
Also, it helps using a compiled language for the bus logic, because a
designer (for example) couldnt accidentally open your page in a wysiwymg
editor and kill parts of your app.

my addt .02
q.





-Original Message-
From: Opec Kemp [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 9:17 PM
To: Dr. Evil
Cc: PHP List
Subject: RE: [PHP] The need for strong typing...


 I will look into JSP.

 Even on the same website, we could have two different languages: Maybe
 we'll use JSP for the transaction stuff, and PHP for customer support
 pages, where things are less critical.

Incidentally, PHP4 can also use some Java Serverlet or Bean. Check out this
bit from the manual:

http://www.php.net/manual/en/ref.java.php

This PHP/Java combo could be what you needed :)


-- 
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] SQL statement for clearing a table

2001-06-22 Thread Merio, Quinn


isn't it,


DELETE FROM tablename;

q.

-Original Message-
From: Wilbert Enserink [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 6:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] SQL statement for clearing a table


Hi all,

anybody knows the mysql statement for clearing the contents of a table and
lieving the table itself intact?

Wilbert

-
Pas de Deux
Van Mierisstraat 25
2526 NM Den Haag
tel 070 4450855
fax 070 4450852
http://www.pdd.nl
[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] General Coding Question

2001-06-21 Thread Merio, Quinn

I posted the exact same question a while ago, because i know that ASP does
slow down when you jump in and out of the asp dll. 

I tried benchmarking it, and asked my geekiest of geek friends. All results
thus far point to the fact that both work just as well. and imho, the
alternate syntax is a lot easier to read when switching between large blocks
of html.

q.

-Original Message-
From: James Stevens [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 10:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP] General Coding Question


Does it have any effect on performance in either case if a file is
completely done in PHP(1) or interspersed with PHP(2).

(1)
?php
echo html;
...
?

(2)
html
...
?php echo $forminput; ?
...

Also, and this is personal preference, which is easier to read/debug?

James


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

2001-06-20 Thread Merio, Quinn


This is how i did it.

1. Create a session variable after someone logs in properly (upon
verification)

// Set the session variable for clientId
$session_clientId = $row['clientId'];

2. All the other pages wont allow you to view them unless the session var is
set.
   and if you try to change the url parameter of another variable, you are
denied too.

session_register (session_clientId);

if($session_clientId == ){
die('Sorry, but you do not have permission to view this page -
please a   href=client_login.phplogin/a');}

if($clientId != $session_clientId){
die('Sorry, this is not one of your projects.br Please use the
back button of your browser to return or 
a href=client_login.phplogin/a');} 
//clientId was set from a previous query.


3. When you click on logout, you are sent back to the login page.

4. If the session was set, then session is destroyed.

// Clears the user session for logging out.
session_register (session_clientId);
if ($session_clientId  0 ){
session_destroy ();
} 

5. Voila.. when you use the back button, you are prevented from seeing the
page.

hth,
q.

-Original Message-
From: Richard Heyes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 8:02 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] logout


 Is there anyway I can do the logout that will completely get rid of
all login  detail without having user to close browser?



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




RE: [PHP] HTTP_POST_VARS not picking up checkboxes that are unche cked

2001-06-19 Thread Merio, Quinn


This is how i get around it.

On the form page:

input type=checkbox name=SUBSCRIBE value=YES checked


On the submission page:

if (empty($SUBSCRIBE)) { 
$SUBSCRIBE = NO;
}

hth,
quinn merio
www.vr2a.com




-Original Message-
From: John Monfort [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 6:20 AM
To: Jason Murray
Cc: 'Tom Beidler'; [EMAIL PROTECTED]
Subject: RE: [PHP] HTTP_POST_VARS not picking up checkboxes that are
unche cked




   I had some issues with that recently. It turns out that PHP will not
   pick up the checkboxes, unless you use the GET method.

   You can then access your vars with HTTP_GET_VARS.

   This was discovered on
WIN98+ PHP 4.03pl1 + Apache 1.3++
 
WIN ME + PHP 4.03pl1 + Apache 1.3++

   If someone had a different experience, then I would like to hear about
   it. Please share.

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
The world is waiting, are you ready?
-+___+-

On Tue, 19 Jun 2001, Jason Murray wrote:

  Subject: [PHP] HTTP_POST_VARS not picking up checkboxes that are
unchecked

 That's right - if the checkbox isn't checked the browser doesn't send it.

 Jason




[PHP] Solution to headers already sent error.

2001-06-18 Thread Merio, Quinn

So, during the time the lists were down, i was banging my head over a
seemingly impossible error message.

This was the error message: 

Warning: Cannot send session cache limiter - headers already sent

What?! I exlaimed.. the first line in my page registered the session
variable i was using, so what was the deal.  I turned out to be one measly
little space in front of my ?php tag.

If you are registering a session variable, it seems you cant have ANY
whitespace in the page before you register the session variable.

Figured i would share that nugget, cus man did it ever drive me nuts, and i
saw no reference to it at all in the manuals.

Quinn Merio
Vice President
Vir2lAlliance Inc.
www.vr2a.com



[PHP] RE: Processing time in PHP. better to use php tags inline or print(html);

2001-05-16 Thread Merio, Quinn


Sorry to nag,  i hadnt recieved any responses on this post yet.. would like
to re-request..  I wanted to know if there is drawbacks or benefits to using
the php alternate syntax?

 1.) Is it possible (and if so, how do i) get the time it took to process
 the page (seconds or milliseconds)?
 
 2.) This is where the first q arose from:  I am trying to ascertain which
 is faster, outputting a query using the print function or using the
 alternate syntax.  I know that in ASP, jumping in and out of the asp code
 slows down the page processing.
 
 Here is the two ways i am outputting my recordset:
 
 1.-  from within the php code -
 
 table cellpadding=4 cellspacing=4 border=2
 ?php 
 
  for ($i = 1; $i = $nr; $i++){
$row = mysql_fetch_assoc ($rs);
   
   print(tr);
   print(td);
   print($row['projectId']);
   print(/tdtd);
   print('a
 href=mylink.php?linkId='.$row['projectId'].''.$row['projectName'].'/a
 ');
   print(/tdtd);
 print($row['projectStatus']);
   print(/tr);
   
   } // End Loop rows
   
   ?
   
  /table
 
 
 2. inline code with the html --
 
 table cellpadding=4 cellspacing=4 border=2
 ? for ($i = 1; $i = $nr; $i++): ?
 ? $row = mysql_fetch_assoc ($rs);?
  tr
  td?print($row['projectId']);?/td
  tda
 href=myfile?blah=?=$row['projectId']??print($row['projectName']);?
 /a/td
  td?print($row['projectStatus']);?/td
  /tr
   ? endfor; ?
  /table
 
 Any thoughts from the experts? I love being able to mix html and php tags,
 but am worried about efficiency.
 
 TIA,
 
 Quinn Merio
 Vir2lAlliance Inc.
 www.vir2lalliance.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] RE: Processing time in PHP. better to use php tags inline or pri nt(html);

2001-05-16 Thread Merio, Quinn


Thank you for your help, gentlemen, sorry about the re-post.

In case you were wondering about the results on that, the pages both
processed at almost identical times:

0.0023289918899536 - 1st hit
0.0022320411682129  - refresh 2
0.0017479658126831 -refresh 3

Cheers,
q.

Quinn Merio
www.vir2lalliance.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]