Re: [PHP] Upload not working...

2004-09-08 Thread Deependra b. Tandukar
Yes, this is what is missed: enctype="multipart/form-data" Thanks ! DT At 11:20 AM 9/8/2004 +0600, raditha dissanayake wrote: Deependra b. Tandukar wrote: I tried this form to upload a file. ... This very code works in my home computer. I tried this with my local server at my office and my web se

Re: [PHP] Byte size of text?

2004-09-08 Thread Marek Kilimajer
John Smith wrote: What's the most accurate way to get the byte count of some text? Is strlen() accurate with Unicode, ASCII, etc.? John strlen() is fine even for multibyte encodings, it does not know about encoding and returns the "raw" size. If you wanted the number of characters, you would need

Re: [PHP] Byte size of text?

2004-09-08 Thread Rasmus Lerdorf
On Wed, 8 Sep 2004, Marek Kilimajer wrote: > John Smith wrote: > > What's the most accurate way to get the byte count of > > some text? Is strlen() accurate with Unicode, ASCII, > > etc.? > > > > John > > > > strlen() is fine even for multibyte encodings, it does not know about > encoding and retur

[PHP] PHP OOP Question

2004-09-08 Thread Paul Waring
> Is it bad practice for a class to have a variable and method of the same name? Well, it's a matter of opinion what is and isn't bad practice, but personally I would never give a variable and a function the same name - if only to avoid confusion (PHP shouldn't mind if you do so though). Paul --

[PHP] Rsync + ssh

2004-09-08 Thread Syed Ghouse
Hi All (B (Bi m using rsync command to transfer files from server to server. (B (Bi use the below code (B (Brsync --password-file .passfile ssh [EMAIL PROTECTED]:/remote/dir /localdir/dir/ (B (Bwhere .passfile has the password... (B (BBut eventhough i have passed the password file it asks

Re: [PHP] Byte size of text?

2004-09-08 Thread Marek Kilimajer
Rasmus Lerdorf wrote: On Wed, 8 Sep 2004, Marek Kilimajer wrote: John Smith wrote: What's the most accurate way to get the byte count of some text? Is strlen() accurate with Unicode, ASCII, etc.? John strlen() is fine even for multibyte encodings, it does not know about encoding and returns the "ra

Re: [PHP] Rsync + ssh

2004-09-08 Thread Jason Wong
On Wednesday 08 September 2004 17:10, Syed Ghouse wrote: (B (B> i m using rsync command to transfer files from server to server. (B> (B> i use the below code (B> (B> rsync --password-file .passfile ssh [EMAIL PROTECTED]:/remote/dir (B> /localdir/dir/ (B> (B> where .passfile has the passwor

[PHP] Re: referencing a class

2004-09-08 Thread Torsten Roehr
"Jed R. Brubaker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Quick question here. Has anyone run into trouble with a variable reference > to a class object? > > Here is the code: > $_SESSION['database'] = new Database; > $this->db = &$_SESSION['database']; > > Everything goes scr

[PHP] Re: referencing a class

2004-09-08 Thread Torsten Roehr
"Jed R. Brubaker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Quick question here. Has anyone run into trouble with a variable reference > to a class object? > > Here is the code: > $_SESSION['database'] = new Database; > $this->db = &$_SESSION['database']; > > Everything goes scr

Re: [PHP] Rsync + ssh

2004-09-08 Thread Paul Waring
> Tell me how t use the rsync command with ssh and without prompting for password A little bit of politeness (including the word 'please') would go a long way... Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fw: [PHP] Rsync + ssh

2004-09-08 Thread Syed Ghouse
(BHi All (B (Bi m using rsync command to transfer files from server to server. (B (Bi use the below code (B (Brsync --password-file .passfile ssh [EMAIL PROTECTED]:/remote/dir (B/localdir/dir/ (B (Bwhere .passfile has the password... (B (BBut eventhough i have passed the password file

RE: [PHP] array

2004-09-08 Thread Jay Blanchard
[snip] I'm reading data. Can I open a connection within a connection and write data to another $db.$table or do I have to write my data to an array. In an array, how do I do this? I've looked at array_push, but don't think this is what I want? $authors = array(); array_push($singleauthor,$my

Re: Fw: [PHP] Rsync + ssh

2004-09-08 Thread John Nichel
Syed Ghouse wrote: Please anybody tell me how t use the rsync command with ssh and without prompting for password I must have missed the php part of this question. Here, this is how to use rsync... Ask on the proper list! -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP

[PHP] Re: referencing a class

2004-09-08 Thread Matthew Weier O'Phinney
* Jed R. Brubaker <[EMAIL PROTECTED]>: > Quick question here. Has anyone run into trouble with a variable reference > to a class object? > > Here is the code: > $_SESSION['database'] = new Database; > $this->db = &$_SESSION['database']; > > Everything goes screwy after a call like this. You don't

Re: [PHP] Re: Problem compiling PHP5 [solved]

2004-09-08 Thread Jim Grill
> WHOHOO! > > up2date -i XFree86-devel > > ./configure --with-mysql=/usr/local/mysql > --with-apxs=/etc/httpd/bin/apxs --with-gd --with-png > --with-zlib-dir=/root/zlib-1.2.1 --enable-gd-native-ttf --with-ttf > --with-jpeg-dir=/usr/local/lib/jpeg-6b/ > --with-freetype-dir=/usr/local/lib/freetype-2.

[PHP] imap_open() on windows extremely slow?

2004-09-08 Thread Michael Wallner
Hi, I wonder if anyone experienced the same as I did the last few days. If I call imap_open() on linux it takes less than 0.2s to return, but if I try that on windows it needs about 5s! to successfully connect to the imap server. Is this behaviour naturally? My connection string looks like the f

Re: [PHP] imap_open() on windows extremely slow?

2004-09-08 Thread raditha dissanayake
Michael Wallner wrote: Hi, I wonder if anyone experienced the same as I did the last few days. If I call imap_open() on linux it takes less than 0.2s to return, but if I try that on windows it needs about 5s! to successfully connect to the imap server. Is this behaviour naturally? My connection st

[PHP] foreach()

2004-09-08 Thread Anthony Ritter
Greetings, The following code is from "Learning PHP5 [O'Reilly] on page 90. Example - 6.5: I get a: Warning: Invalid argument supplied for foreach() in c:\apache\htdocs\or_6.4.php on line 15 after submitting the form. I'm not sure why since the example uses the call to foreach() in which the a

Re: [PHP] foreach()

2004-09-08 Thread Matt M.
> Warning: Invalid argument supplied for foreach() in > c:\apache\htdocs\or_6.4.php on line 15 do a print_r on $_POST to see what is in the array. > > > BBQ Pork Bun > Chicken Bun > Lotus Seed Bun > Bean Paste Bun > Bird-Nest Bun > > > > > Selected buns: > > foreach ($_POST['lunch'] as $c

[PHP] Re: Cardservice lphp won't create array

2004-09-08 Thread Brian Dunning
But I get: Warning: Variable passed to each() is not an array or object I assume you have instantiated the $mylphp object with "new"? Yes, in fact I'm using their demo files just to eliminate all the possible variables. It seems to only be a problem on my development server. Works fine in prod

[PHP] Re: foreach()

2004-09-08 Thread Daniel Kullik
Anthony Ritter wrote: I get a: Warning: Invalid argument supplied for foreach() in c:\apache\htdocs\or_6.4.php on line 15 after submitting the form. Hello Anthony! As long as you don't submit the form with a single option selected there will be no $_POST['lunch'], therefore foreach() won't be able

[PHP] class packages

2004-09-08 Thread Jed R. Brubaker
As far as I can tell there is not an easy way yet to create packages in PHP5. It seems the following is the best option: include('classes/help/Search.inc'); // Inside Search.inc and in the same "package" include('OtherClass.inc'); include('AnotherClass.inc'); Is there a better way? Thanks! -

Re: [PHP] class packages

2004-09-08 Thread Jason Davidson
Out of curiosity, how would you prefer it? the way you mentioend is basically how i do though. Jason "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote: > > As far as I can tell there is not an easy way yet to create packages in > PHP5. > > It seems the following is the best option: > include('clas

[PHP] Re: class packages

2004-09-08 Thread Jed R. Brubaker
Oh - and naming conventions. Do you define the class?: class help.Search { } "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > As far as I can tell there is not an easy way yet to create packages in > PHP5. > > It seems the following is the best option: > include(

Re: [PHP] class packages

2004-09-08 Thread Alex Hogan
> > It seems the following is the best option: > > include('classes/help/Search.inc'); > > > > // Inside Search.inc and in the same "package" > > include('OtherClass.inc'); > > include('AnotherClass.inc'); > > > > Is there a better way? I do pretty much the same thing but with a config.php file.

Re: [PHP] class packages

2004-09-08 Thread Jed R. Brubaker
Well, my OO experience comes from Java and ActionScript2.0, so there is compilation going on and classes get refered to as named that assume files (as you probably know). As I just added to my original post, I am also wondering about naming conventions: Quote: -

Re: [PHP] class packages

2004-09-08 Thread Jim Grill
> As far as I can tell there is not an easy way yet to create packages in > PHP5. > > It seems the following is the best option: > include('classes/help/Search.inc'); > > // Inside Search.inc and in the same "package" > include('OtherClass.inc'); > include('AnotherClass.inc'); > > Is there a better

[PHP] Re: imap_open() on windows extremely slow?

2004-09-08 Thread Michael Wallner
Hi Raditha Dissanayake, you wrote: > let me guess ip.ip.ip.ip=127.0.0.1 ? (when in linux) Yes, that's true. > if yes this behaviour isn't really worth worrying about. So you say it'd take equally long to call imap_open() from a remote linux machine? 5 seconds seem far too long for me, though..

Re: [PHP] Re: imap_open() on windows extremely slow?

2004-09-08 Thread raditha dissanayake
Michael Wallner wrote: Hi Raditha Dissanayake, you wrote: let me guess ip.ip.ip.ip=127.0.0.1 ? (when in linux) Yes, that's true. if yes this behaviour isn't really worth worrying about. So you say it'd take equally long to call imap_open() from a remote linux machine? 5 seconds see

Re: [PHP] class packages

2004-09-08 Thread Alex Hogan
> Do you define the class?: > > class help.Search { > } No.., In your example you are defining the search class in the Help namespace, just like you would in ActionScript. I don't think you can do that in php. You would just use; class Search{ // do stuff here } You can extend the class us

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-08 Thread Steve Brown
> OK. Sounds like a genuine segfault to me. The CLI version will simply print > "Segmentation fault" to the screen or "Segmentation fault (core dumped)" > when configured with debugging enabled. Thanks for the help Jim. I had to install gdb and recompile php, but I was able to get consistant back

[PHP] What's faster? MySQL Queries or PHP Loops?

2004-09-08 Thread Robb Kerr
Here's the scenario... First, my HTTP Server (Apache), PHP Server and MySQL Server are on the same machine - an Apple Xserve. Second, I've got a page with a long repeat region reflecting a recordset queried out of a MySQL table. The region also displays information obtained from fields in a re

Re: [PHP] class packages

2004-09-08 Thread Jed R. Brubaker
Alex, You suggestion about the config file is interesting, but while I go and re-read your post, I am wondering how you would avoid class name conflicts. Point and case, the only reason I am going after packages is because I have a search class that is used for something else, and I want to not

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-08 Thread Jim Grill
> Thanks for the help Jim. I had to install gdb and recompile php, but > I was able to get consistant backtraces from both systems. When the > fault occured, the backtrace was identical every time. It appears to > be an issue with memchr() in ftp_get(): > > = > Program received s

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-08 Thread Steve Brown
> ...and just for clarification... after re-reading my response to you it came > to my attention that one might assume I'm somehow involved with PHP > development. You mean you won't be the person fixing this bug?? Man, I'm screwed now! j/k ;-) No worries! -- PHP General Mailing List (http://

Re: [PHP] What's faster? MySQL Queries or PHP Loops?

2004-09-08 Thread Jim Grill
> Here's the question... > > I can either A) in the header or my page, generate a recordset of all of > the records in the related table and then loop through the recordset > creating an array of the fields I need and then later pull from it in the > repeat region... or B) take the six lines of cod

RE: [PHP] What's faster? MySQL Queries or PHP Loops?

2004-09-08 Thread Dan Joseph
> I can either A) in the header or my page, generate a recordset of all of > the records in the related table and then loop through the recordset > creating an array of the fields I need and then later pull from it in the > repeat region... or B) take the six lines of code Dreamweaver generates to

Re: [PHP] Re: imap_open() on windows extremely slow?

2004-09-08 Thread Michael Wallner
Hi Raditha Dissanayake, you wrote: > What I am saying is that opening a socket connection has plenty of > over heads whether it's imap or not. It's for this reason that most > clients (mail or otherwise) keep the connection open for short > durations even if no data is exchanged. Don't lose hair o

Re: [PHP] What's faster? MySQL Queries or PHP Loops?

2004-09-08 Thread Chris Shiflett
--- Robb Kerr <[EMAIL PROTECTED]> wrote: > Here's the question... > > I can either A) in the header or my page, generate a recordset > of all of the records in the related table and then loop through > the recordset creating an array of the fields I need and then > later pull from it in the repeat

Re: [PHP] class packages

2004-09-08 Thread Alex Hogan
> You suggestion about the config file is interesting, but while I go and > re-read your post, I am wondering how you would avoid class name conflicts. I try to avoid using the same name for different classes. > Point and case, the only reason I am going after packages is because I have > a searc

Re: [PHP] Re: Cardservice lphp won't create array

2004-09-08 Thread Brian Dunning
It seems the problem is that port 1129 is blocked somewhere, which lphp needs to communicate with Cardservice. Sorry for the noise, hope this is helpful to someone else. :) - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's faster? MySQL Queries or PHP Loops?

2004-09-08 Thread Galen
Almost all the time (unless the data being worked with is extremely, extremely large) PHP is much faster at manipulating data than MySQL. So if you already have the record set pulled out of MySQL, you probably want to go with PHP to manipulate it. Especially for repeating like this, there is ze

Re: [PHP] remote script execution

2004-09-08 Thread Sean Smith
I had SSH setup to require passwords when logging in, so that is why I was having trouble trying to figure out how to get it to work. I now have the two servers in question setup to auto login based on their keys. I have successfully run the remote script from the CLI on server 1. Now I just ne

[PHP] data grids...

2004-09-08 Thread blackwater dev
Does anyone have a nice clean way to provide data grids with php short of simply creating a bunch of input boxes or using flash? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's faster? MySQL Queries or PHP Loops?

2004-09-08 Thread Robb Kerr
On Wed, 8 Sep 2004 10:30:59 -0500, Jim Grill wrote: >> Here's the question... >> >> I can either A) in the header or my page, generate a recordset of all of >> the records in the related table and then loop through the recordset >> creating an array of the fields I need and then later pull from it

RE: [PHP] What's faster? MySQL Queries or PHP Loops?

2004-09-08 Thread Jay Blanchard
[snip] I don't completely understand your terminology, but it's always faster to get all of your data with a single query rather than a query per loop. Of course, the difference is that it also requires more memory. In general, if you have the memory, use it. It will always be faster. [/snip] +1

Re: [PHP] data grids...

2004-09-08 Thread John Holmes
From: "blackwater dev" <[EMAIL PROTECTED]> Does anyone have a nice clean way to provide data grids with php short of simply creating a bunch of input boxes or using flash? You mean using HTML/DHTML/CSS, etc. instead of PHP. PHP just creates the code to send to the browser. To answer your question

[PHP] Users of RDBMS

2004-09-08 Thread Pahlevanzadeh Mohsen
Dears, I need to create user for MySQL. Please guide me.. = -DIGITAL SIGNATURE--- ///Mohsen Pahlevanzadeh Network administrator & programmer My home phone is: +98213810146 My email address is

Re: [PHP] data grids...

2004-09-08 Thread Greg Donald
On Wed, 2004-09-08 at 13:15, blackwater dev wrote: > Does anyone have a nice clean way to provide data grids with php short > of simply creating a bunch of input boxes or using flash? What is a 'data grid' ? -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

RE: [PHP] data grids...

2004-09-08 Thread Jay Blanchard
[snip] Does anyone have a nice clean way to provide data grids with php short of simply creating a bunch of input boxes or using flash? [/snip] Have you looked at GTK? http://gtk.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] What's faster? MySQL Queries or PHP Loops?

2004-09-08 Thread Jay Blanchard
[snip] That brings up another question which I know actually belongs over on the MySQL board, but since the question arose here I thought I'd post here. I understood that MyISAM tables could not be relational. Do you mean that I can create JOINs between MyISAM tables? Maybe I need to do some more r

Re: [PHP] What's faster? MySQL Queries or PHP Loops?

2004-09-08 Thread John Holmes
From: "Robb Kerr" <[EMAIL PROTECTED]> That brings up another question which I know actually belongs over on the MySQL board, but since the question arose here I thought I'd post here. I understood that MyISAM tables could not be relational. Do you mean that I can create JOINs between MyISAM tables?

Re: [PHP] Re: imap_open() on windows extremely slow?

2004-09-08 Thread Michael Sims
Michael Wallner wrote: > Well, so here comes /the oddity/ > > connecting from debian to windows/exchange ~0.5 seconds > connecting from debian to debian/courier ~0.2 (assumed to be somewhere at 0.x > seconds) > connecting from windows to debian/courier ~5 seconds > connecting from windows to win

Re: [PHP] What's faster? MySQL Queries or PHP Loops?

2004-09-08 Thread Greg Donald
On Wed, 2004-09-08 at 13:31, Robb Kerr wrote: > That brings up another question which I know actually belongs over on the > MySQL board, but since the question arose here I thought I'd post here. I > understood that MyISAM tables could not be relational. Do you mean that I > can create JOINs betwee

[PHP] Re: Auth class----MySQL user

2004-09-08 Thread Philipp Wendisch
Pahlevanzadeh Mohsen wrote: Dears,My code is : echo "xxx"; echo ""; echo " "; echo " "; echo ""; echo ""; } $username=$_POST['u']; $password=$_POST['p']; echo md5('mohsen'); $parameterforauth=array("dsn"=>"mysql://$username:[EMAIL PROTECTED]/mem", "table"=>

[PHP] Re: imap_open() on windows extremely slow?

2004-09-08 Thread Michael Wallner
Hi Michael Sims, you wrote: > Anytime I see something like this, I suspect that the server (in this > case, Courier IMAP) is attempting an ident lookup on the client, or > is attempting a reverse DNS lookup. Well, Courier did already run with -nodnslookup -noidentlookup. It seems that it is waiti

Re: [PHP] Users of RDBMS

2004-09-08 Thread Victor Saldaña D.
On Wed, 8 Sep 2004 12:01:55 -0700 (PDT), Pahlevanzadeh Mohsen <[EMAIL PROTECTED]> wrote: > Dears, > I need to create user for MySQL. > Please guide me.. Please RTFM http://dev.mysql.com/doc/mysql/en/Adding_users.html -- Victor Saldaña D. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Users of RDBMS

2004-09-08 Thread John Holmes
From: "Pahlevanzadeh Mohsen" <[EMAIL PROTECTED]> I need to create user for MySQL. Please guide me.. PHP != MySQL http://dev.mysql.com/doc/mysql/en/index.html ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] data grids...

2004-09-08 Thread blackwater dev
yeah, it needs to be on a front end site where the users can enter their data easily...I will play with the new flash data grid component some more. Thanks! On Wed, 8 Sep 2004 15:06:55 -0400, John Holmes <[EMAIL PROTECTED]> wrote: > From: "blackwater dev" <[EMAIL PROTECTED]> > > > > > Does an

RE: [PHP] Users of RDBMS

2004-09-08 Thread Jay Blanchard
[snip] I need to create user for MySQL. Please guide me.. [/snip] I will guide you to the MySQL lists at http://lists.mysql.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] data grids...

2004-09-08 Thread Jay Blanchard
[snip] What is a 'data grid' ? [/snip] Like a spreadsheet where you can manuever from cell to cell. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Users of RDBMS

2004-09-08 Thread Greg Donald
On Wed, 2004-09-08 at 14:01, Pahlevanzadeh Mohsen wrote: > Dears, > I need to create user for MySQL. > Please guide me.. http://dev.mysql.com/doc/mysql/en/Adding_users.html -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] What's faster? MySQL Queries or PHP Loops? OT

2004-09-08 Thread Jim Grill
> That brings up another question which I know actually belongs over on the > MySQL board, but since the question arose here I thought I'd post here. I > understood that MyISAM tables could not be relational. Do you mean that I > can create JOINs between MyISAM tables? Maybe I need to do some more

Re: [PHP] Users of RDBMS

2004-09-08 Thread Jim Grill
> Dears, > I need to create user for MySQL. > Please guide me.. > > = > -DIGITAL SIGNATURE--- > ///Mohsen Pahlevanzadeh > Network administrator & programmer > My home phone is: +98213810146 > My email address is

Re: [PHP] Users of RDBMS

2004-09-08 Thread Joshua D. Drake
> PHP != MySQL MySQL != RDBMS http://www.postgresql.org > > http://dev.mysql.com/doc/mysql/en/index.html > > ---John Holmes... > > -- Co-Founder Command Prompt, Inc. The wheel's spinning but the hamster's dead -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Users of RDBMS

2004-09-08 Thread John Nichel
Pahlevanzadeh Mohsen wrote: Dears, I need to create user for MySQL. Please guide me.. I keep forgetting that this it the MySQL list. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] Users of RDBMS

2004-09-08 Thread Dan Joseph
> -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 3:37 PM > To: Pahlevanzadeh Mohsen; [EMAIL PROTECTED] > Subject: RE: [PHP] Users of RDBMS > > [snip] > I need to create user for MySQL. > Please guide me.. > [/snip] > > I will

RE: [PHP] Users of RDBMS

2004-09-08 Thread Dan Joseph
Hi, > PHP != MySQL > > http://dev.mysql.com/doc/mysql/en/index.html Shouldn't that be: if ( PHP != MySQL ) { Header( "Location: http://dev.mysql.com/doc/mysql/en/index.html"; ); } -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To

[PHP] Timing on an internal email

2004-09-08 Thread Alex Hogan
Hi all, I want to set up a delivery date and time for emails to be sent. (I'm using phpmailer) I'm coming up blank on how to do this. I thought that I could put a timing condition on a page that I know will be accessed daily that would look for the date then call the function that will do the ma

[PHP] Lambert's Projection and PHP

2004-09-08 Thread Ville Mattila
Hello, I'm working with a system that draws a map from certain information. Lambert's projection seems to suit well to our needs. Now I should generate a function that converts the lat/lon coordinates to the x,y coordinates using the Lambert's projection. As I couldn't find any ready-to-use scr

Re: [PHP] Users of RDBMS

2004-09-08 Thread John Nichel
Joshua D. Drake wrote: PHP != MySQL MySQL != RDBMS Please tell me you're kidding. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Users of RDBMS

2004-09-08 Thread M. Sokolewicz
John Nichel wrote: Joshua D. Drake wrote: PHP != MySQL MySQL != RDBMS Please tell me you're kidding. that's a funny one... could've sworn it actually was one... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Timing on an internal email

2004-09-08 Thread Sean Smith
You can have the php script written so that it performs the functions you want then setup a cron job to run that script at a given time or interval. I do this with daily and weekly operations now. It works great. Alex Hogan wrote: Hi all, I want to set up a delivery date and time for emails to b

Re: [PHP] Timing on an internal email

2004-09-08 Thread Marek Kilimajer
Alex Hogan wrote: Hi all, I want to set up a delivery date and time for emails to be sent. (I'm using phpmailer) I'm coming up blank on how to do this. I thought that I could put a timing condition on a page that I know will be accessed daily that would look for the date then call the function tha

Re: [PHP] Timing on an internal email

2004-09-08 Thread Alex Hogan
> Not necessarily outside of php, but outside of webserver. You need to > setup a cron job that will execute the phpmailer script. Gotcha.., My webserver is a windows box, so I can just run a task schedule and give it; php.exe myfile.php and that should do it? Would it be more efficient as a com

[PHP] htmlentities()

2004-09-08 Thread Anthony Ritter
Copied and pasted the following sample script from the php manual and this outputs: ... bold"; echo htmlentities($str); ?> .. // outputs: A 'quote' is bold Not sure why the I am still getting the tags and spaces after the call to htmlentities(). Thank you for any help. TR

[PHP] Tidy installation problem in php 4.3.8

2004-09-08 Thread Lizet Peña de Sola
Hi all, I need to use tidy for cleaning up html in my project, our hosting company has php 4.3.8, so we need to install tidy and make the installation again. After several times, the configure and make commands replied no error, however, the phpinfo() doesn't show the package as installed and when

Re: [PHP] Lambert's Projection and PHP

2004-09-08 Thread Michal Migurski
> I'm working with a system that draws a map from certain information. > Lambert's projection seems to suit well to our needs. ... > I found a formula explaining the projection at > http://mathworld.wolfram.com/LambertConformalConicProjection.html . > Unfortunately there is no explanation that wh

Re: [PHP] htmlentities()

2004-09-08 Thread Chris Shiflett
--- Anthony Ritter <[EMAIL PROTECTED]> wrote: > Copied and pasted the following sample script from the php manual > and this outputs: > > ... > $str = "A 'quote' is bold"; > echo htmlentities($str); > > ?> > .. > > // outputs: A 'quote' is bold > > Not sure why the I am sti

Re: [PHP] htmlentities()

2004-09-08 Thread Jim Grill
> Copied and pasted the following sample script from the php manual and this > outputs: > > ... > $str = "A 'quote' is bold"; > echo htmlentities($str); > > ?> > .. > > // outputs: A 'quote' is bold > > Not sure why the I am still getting the tags and spaces after the call to >

Re: [PHP] htmlentities()

2004-09-08 Thread Jim Grill
> Copied and pasted the following sample script from the php manual and this > outputs: > > ... > $str = "A 'quote' is bold"; > echo htmlentities($str); > > ?> > .. > > // outputs: A 'quote' is bold > > Not sure why the I am still getting the tags and spaces after the call to >

[PHP] Re: htmlentities()

2004-09-08 Thread Paul Birnstihl
Anthony Ritter wrote: bold"; echo htmlentities($str); ?> .. // outputs: A 'quote' is bold Not sure why the I am still getting the tags and spaces after the call to htmlentities(). Check out the source code of the output. Maybe you want the strip_tags() function ? -- PHP General Mailin

Re: [PHP] htmlentities()

2004-09-08 Thread Anthony Ritter
Chris Shiflett wrote: > View source, and I think you'll understand. Or, remove the call to > htmlentities(). > > Chris .. Thank you all for your assistance. Best... TR ... "...when a browser sees <, it prints out a < character instead of thinking "OK here comes an HTML tag.

Re: [PHP] Re: Convert Smart Quotes to Sraight Quotes - Need Help!

2004-09-08 Thread Tom Rogers
Hi, Wednesday, September 8, 2004, 9:14:53 AM, you wrote: M> Anyone! I'm out of online resources and answers. I guess this isn't possible M> to do... Here is a function/hack I use to clean up text for my php-gtk editor, I still haven't found a clean solution yet but it may help. function convert

Re: [PHP] Users of RDBMS

2004-09-08 Thread John Nichel
M. Sokolewicz wrote: John Nichel wrote: Joshua D. Drake wrote: PHP != MySQL MySQL != RDBMS Please tell me you're kidding. that's a funny one... could've sworn it actually was one... All this time the MySQL AB people have been lying to us. It's actually an Excel spreadsheet. ;) -- By-Tor.com I

Re: [PHP] Users of RDBMS

2004-09-08 Thread Greg Donald
On Wed, 8 Sep 2004 13:14:57 -0700 (PDT), Joshua D. Drake <[EMAIL PROTECTED]> wrote: > MySQL != RDBMS > > http://www.postgresql.org Yup. I recently became a Postgres user after 5+ years using MySQL. I am very impressed with it so far. The price is right and the license is very friendly for all.

[PHP] Re: data grids...

2004-09-08 Thread Aidan Lister
http://pear.php.net/package/Structures_DataGrid "Blackwater Dev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone have a nice clean way to provide data grids with php short > of simply creating a bunch of input boxes or using flash? > > Thanks! -- PHP General Mailing

Re: [PHP] data grids...

2004-09-08 Thread Brent Clements
This is what I've used in the past, it's pretty much compatible with all of the major browsers that users will use. http://www.activewidgets.com/ -Brent - Original Message - From: "blackwater dev" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 08, 2004 1:15 PM Su

[PHP] Explode, Arrays and Checkboxes

2004-09-08 Thread Matt Winslow
I'm not new to PHP, but I have very little experience with arrays. I have comma separated values in a database, that I need to pull out, explode into an array, then check certain checkboxes if they exist. I have two variables: $x = "2,10,34" $y = "28,15,16" I need to explode them both, so tha

Re: [PHP] Explode, Arrays and Checkboxes

2004-09-08 Thread zareef ahmed
HI, --- Matt Winslow <[EMAIL PROTECTED]> wrote: > I'm not new to PHP, but I have very little > experience with arrays. I have comma separated > values in a database, that I need to pull out, > explode into an array, then check certain checkboxes > if they exist. > > I have two variables: > > $

Re: [PHP] Explode, Arrays and Checkboxes

2004-09-08 Thread Curt Zirzow
* Thus wrote Matt Winslow: > I'm not new to PHP, but I have very little experience with arrays. I have comma > separated values in a database, that I need to pull out, explode into an array, then > check certain checkboxes if they exist. > > I have two variables: > > $x = "2,10,34" > $y = "28,

Re: [PHP] Explode, Arrays and Checkboxes

2004-09-08 Thread Curt Zirzow
* Thus wrote zareef ahmed: > HI, > > > > > I have two variables: > > > > $x = "2,10,34" > > $y = "28,15,16" > > > > I need to explode them both, so that the values of > > $x are they keys, and the values of $y are the > > values. Is that possible? > > yes see array_combine function > > http:

[PHP] why should $_SESSION be slower than other arrays?

2004-09-08 Thread Aaron Voisine
I read in the docs several comments that $_SESSION is slower that other arrays. One comment even had benchmarking info indicating it was about half as fast. I don't understand why this should be. Isn't $_SESSION just a normal super global array like any other, except that it get serialized and wri

[PHP] Re: data grids...

2004-09-08 Thread Nadim Attari
BlueShoes: PHP Framework and CMS http://www.blueshoes.org/en/javascript/ Regards, Nadim Attari Alienworkers.com "Blackwater Dev" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > Does anyone have a nice clean way to provide data grids with php short > of simply creating a b