Re: [PHP] Need login suggestions

2010-05-03 Thread Karl DeSaulniers
I see, well I have a login that has multiple levels and here is how I have it. Obvious pertinent info has been changed, but you can adopt and add your own. a config file with userlevel values EG: $parent = 2; //Parent Level $student = 1; //Student Level $guest = 0;//Guest level A

RE: [PHP] Need login suggestions

2010-05-03 Thread Ashley M. Kirchner
-Original Message- From: Karl DeSaulniers [mailto:k...@designdrumm.com] Sent: Monday, May 03, 2010 12:03 AM To: PHP Subject: Re: [PHP] Need login suggestions I see, well I have a login that has multiple levels and here is how I have it. Obvious pertinent info has been changed,

Re: [PHP] Two color rows in table inside while iteration -- just say no to mod

2010-05-03 Thread Jochen Schultz
[snip] And unless we are adding a multiple seconds to the load time is anyone going to notice a difference of 1 second? yes regards Jochen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ldap add Invalid DN syntax

2010-05-03 Thread Manolis Vlachakis
and my code begins like this... $uploaddir = $_SERVER['DOCUMENT_ROOT'].'/webteam/voiko/public_html/uploads/'; $file = $uploaddir . basename($_FILES['uploadfile']['name']); $data = file_get_contents($uploaddir . $_FILES[uploadfile][name]); $data=split([;\r],$data); ; $num = count($data);

[PHP] Inserting rows with missing IDs

2010-05-03 Thread Andre Polykanine
Hello everyone, It's not a strictly PHP question, however since I use that with PHP, I'm asking it there. How can I accomplish the task of inserting rows into MySql database with missing IDs? Say, I have rows with IDs 1, 2, 3, 5, 9, 12, 17, and 195. How do I make the check that allows to insert

RE: [PHP] Inserting rows with missing IDs

2010-05-03 Thread Bob McConnell
From: Andre Polykanine It's not a strictly PHP question, however since I use that with PHP, I'm asking it there. How can I accomplish the task of inserting rows into MySql database with missing IDs? Say, I have rows with IDs 1, 2, 3, 5, 9, 12, 17, and 195. How do I make the check that allows

Re[2]: [PHP] Inserting rows with missing IDs

2010-05-03 Thread Andre Polykanine
Hello Bob, Nope; they're not. They are blog entries that were deleted along with their comments. I'm just thinking about doing this when the amount of entries exceeds a reasonable number. -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber:

[PHP] Re: [Bulk] [PHP] Inserting rows with missing IDs

2010-05-03 Thread Stephen
Andre Polykanine wrote: Hello everyone, It's not a strictly PHP question, however since I use that with PHP, I'm asking it there. How can I accomplish the task of inserting rows into MySql database with missing IDs? Say, I have rows with IDs 1, 2, 3, 5, 9, 12, 17, and 195. How do I make the

Re: [PHP] ldap add Invalid DN syntax

2010-05-03 Thread Manolis Vlachakis
the thing i just tried is with // Open a memory file for read/write... $fp = fopen('php://temp', 'r+'); // ... write the $input array to the file using fputcsv()... fputcsv($fp, $input, $delimiter, $enclosure); // ... rewind the file so we can read what we just wrote... rewind($fp);

Re: [PHP] Inserting rows with missing IDs

2010-05-03 Thread tedd
At 4:34 PM +0300 5/3/10, Andre Polykanine wrote: Hello everyone, It's not a strictly PHP question, however since I use that with PHP, I'm asking it there. How can I accomplish the task of inserting rows into MySql database with missing IDs? Say, I have rows with IDs 1, 2, 3, 5, 9, 12, 17, and

RE: [PHP] Need login suggestions

2010-05-03 Thread Ashley Sheridan
On Mon, 2010-05-03 at 00:07 -0600, Ashley M. Kirchner wrote: -Original Message- From: Karl DeSaulniers [mailto:k...@designdrumm.com] Sent: Monday, May 03, 2010 12:03 AM To: PHP Subject: Re: [PHP] Need login suggestions I see, well I have a login that has multiple levels and

Re: [PHP] Need login suggestions

2010-05-03 Thread Nilesh Govindarajan
On 05/03/2010 09:56 PM, Ashley Sheridan wrote: On Mon, 2010-05-03 at 00:07 -0600, Ashley M. Kirchner wrote: -Original Message- From: Karl DeSaulniers [mailto:k...@designdrumm.com] Sent: Monday, May 03, 2010 12:03 AM To: PHP Subject: Re: [PHP] Need login suggestions I see, well I have

Re: [PHP] Need login suggestions

2010-05-03 Thread tedd
At 8:09 PM -0600 5/2/10, Ashley M. Kirchner wrote: Slightly OT, but I can't think of a better forum to ask this in. I'm sure a lot of us here have at some point or another built a system that requires registration to gain access. What I'm trying to figure is how to set different levels of

RE: [PHP] Need login suggestions

2010-05-03 Thread Bob McConnell
From: Ashley M. Kirchner From: Paul M Foster The only reliable way to resolve this is to let the school administration to handle it. Each registration would *attempt* to register as a student, parent or whatever. Those attempted registrations would go into a wait queue. Meantime, emails

[PHP] classes and variables

2010-05-03 Thread Merlin Morgenstern
Hi there, I am new to classes in PHP and do want to change a class that has been in a package I downloaded. I do simply want to access a variable from outside. This is the code: class search_helper extends AjaxACApplication { //global $DB; var $db_database =

Re: [PHP] classes and variables

2010-05-03 Thread Israel Ekpo
You do not need to access $DB as a global variable Since $db_database is a property of search_helper, you can initialize it by passing a value via the constructor like this class search_helper extends AjaxACApplication { protected $db_database; public function

[PHP] upload directly into a resource?

2010-05-03 Thread Paul Halliday
I have some code that is currently static. It runs via Cron, generating images which can then be viewed via some other PHP. What I want to do is allow a user to upload data which I can then pipe directly into the existing program to produce on the fly images. I am looking at this: