[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: http://www.php.

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 __construct($database_nam

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

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 acces

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 a

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 multip

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 195

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($f

[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 check

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; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelo

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 al

[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 fir

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);