Re: [PHP] select in PHP + Sql Server

2001-09-13 Thread Ben . Edwards
You're doing something wrong! Indexes are only for performance and possibly they may be used for helping in ensuring uniquenes. sorry cant be any more help without code. "Marcos Mathias" <[EMAIL PROTECTED]> on 13/09/2001 20:40:40 Please respond to <[EMAIL PROTECTED]> To: <[EMAIL PROTE

Re: [PHP] PHP Security

2001-09-13 Thread Ben . Edwards
This is a rehash of a post earlier today! I implement security with user hierarchies which I will describe here (and also a more flexible method, user groups, which I will outline later ). I use a procedure called ensure_logged_in ( $level ). It is wrapped around all .PHP where security is req

Re: [PHP] equivelant of ASP's #include file?

2001-09-13 Thread Ben . Edwards
include ( "file" ); However this simply includes the file ( so it would be displayed as if it was html). You can also make the include a .php ( dont forget ). Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: [PHP] URL security...? (correction ignore my last post)

2001-09-13 Thread Ben . Edwards
Sorry, finder troble. The message should read:- If the page they type on the URL is available it will be displayed. Security is the remit of the web server not (realy) PHP. However what i do is have a is_logged_in function which uses session varable. Something like if ( is_logged_in() ) {

Re: [PHP] URL security...?

2001-09-13 Thread Ben . Edwards
If the page they type on the URL is available it will be displayed. Security is the remit of the web server not (realy) PHP. However what i do is have a is_logged_in function which uses session varable. Something like if ( is_logged_in() ) { ... do stuff } esle { display_error( 's

[PHP] PHP loosing session object, possible PHP bug

2001-09-13 Thread Ben . Edwards
I am having a bit of a problem with PHP loosing a session object. $SESSIOM ["cart"] is instansiated as a cart object and is a session varable. In 'PHP 4.0.6' which is installed under windows the cart object works flawlesley. But on the production enviroment which is running 'PHP 4.0.3pl1' as a

[PHP] 2nd Pass of array empty

2001-08-30 Thread Ben . Edwards
I have some code which loops through a n array using a for loop. This works fine but if I try to loop through the array again in the same script the array seems to be empty (i,e, the loop douse not do any interations). Do I need to reset the array pointer at the begining? Is there something else

[PHP] Problem starting session

2001-06-20 Thread Ben Edwards
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+ * Ben Edwards [EMAIL PROTECTED]+44 (0)7970 269 522 * * Campaign Against proper English, Dyslexia division * * Homepagehttp://www.gifford.co.uk/~bedwards * * i-Contact Progressive Videohttp://www.videonetwork.org

[PHP] Problem starting session

2001-06-20 Thread Ben Edwards
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+ * Ben Edwards [EMAIL PROTECTED]+44 (0)7970 269 522 * * Campaign Against proper English, Dyslexia division * * Homepagehttp://www.gifford.co.uk/~bedwards * * i-Contact Progressive Videohttp://www.videonetwork.org

[PHP] Problem starting session

2001-06-20 Thread Ben Edwards
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+ * Ben Edwards [EMAIL PROTECTED]+44 (0)7970 269 522 * * Campaign Against proper English, Dyslexia division * * Homepagehttp://www.gifford.co.uk/~bedwards * * i-Contact Progressive Videohttp://www.videonetwork.org

[PHP] Problem starting session

2001-06-20 Thread Ben Edwards
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+ * Ben Edwards [EMAIL PROTECTED]+44 (0)7970 269 522 * * Campaign Against proper English, Dyslexia division * * Homepagehttp://www.gifford.co.uk/~bedwards * * i-Contact Progressive Videohttp://www.videonetwork.org

<    1   2