Re: [PHP] image size?

2004-09-10 Thread Jason Wong
On Friday 10 September 2004 06:59, Ed Lazor wrote: Is there a way to get the size of an image created using the imagecreate function? Size as in ... ? You do realise that *you* specify the size when using imagecreate()? The PHP manual section on image functions mentions getimagesize, but

Re: [PHP] image size?

2004-09-10 Thread Tom Rogers
Hi, Friday, September 10, 2004, 8:59:30 AM, you wrote: EL Is there a way to get the size of an image created using the imagecreate EL function? EL The PHP manual section on image functions mentions getimagesize, but that EL only works on remote or local files. EL Thanks, EL Ed Something like

[PHP] imap and multipart

2004-09-10 Thread Maxime Thonon
hello, i work with imap and php to make a webmail. it works fine but i have a big problem with some mails, those who contains a multipart into a multipart. it happends with outlook express who puts into a mutlipart the text and html version of the text into the first part of the mail. an other

[PHP] main(): open_basedir restriction in effect., help

2004-09-10 Thread Louie Miranda
Warning: main(): open_basedir restriction in effect. File(/home/mainwww/www/sysfolder/pear/Pager/Pager.php) is not within the allowed path(s): (/home/axishift/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/axishift/public_html/pageApps/viewMessage.php on line 11 Hi, what is open_basedir? my host

Re: [PHP] main(): open_basedir restriction in effect., help

2004-09-10 Thread Marek Kilimajer
Louie Miranda wrote: Warning: main(): open_basedir restriction in effect. File(/home/mainwww/www/sysfolder/pear/Pager/Pager.php) is not within the allowed path(s): (/home/axishift/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/axishift/public_html/pageApps/viewMessage.php on line 11 Hi, what is

[PHP] help-fetching-url-contents

2004-09-10 Thread vijayaraj nagarajan
hi all i would like to fetch the content of a url. and then would like to put in my page... dynamically refreshing it once in a day... is it possible to do this in php. i have used perl get url option and then parse the file, with the date and time function...to do this. pls help. thanks in

[PHP] find quoted string within a string (more of a regex question, though ..)

2004-09-10 Thread Wouter van Vliet
Howdy, Thanks for the answers on my previous question, though it hasn't resulted in a quicker dirparsing.. Anyway, here's a next one. For my own reasons (can explain, would take long, won't till sbody asks) I want to match a quoted string within a string. That is somehow kind of easy, I know ...

Re: [PHP] Users of RDBMS

2004-09-10 Thread Wouter van Vliet
On Fri, 10 Sep 2004 03:07:35 +0530, Mulley, Nikhil [EMAIL PROTECTED] wrote: You can create user from mysql prompt by connecting it through first cmdmysql -h host -u userid -p instance password : ** then type GRANT ALL PRIVILGES ON *.* TO 'newuser'@'host' IDENTIFIED BY 'password' with

Re: [PHP] Re: foreach()

2004-09-10 Thread Wouter van Vliet
On Wed, 08 Sep 2004 16:41:38 +0200, Daniel Kullik [EMAIL PROTECTED] wrote: 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

[PHP] how to redirect ?

2004-09-10 Thread CBharadwaj
Hi I have used Header (Location:PATH) function for redirection. it is giving some errors. is there any other method other than HEADER() funtion for redirecting ? Bharadwaj

Re: [PHP] how to redirect ?

2004-09-10 Thread Heber D'Alberto
CBharadwaj wrote: Hi I have used Header (Location:PATH) function for redirection. it is giving some errors. is there any other method other than HEADER() funtion for redirecting ? Bharadwaj What type of errors have you? Heber D'Alberto -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: help-fetching-url-contents

2004-09-10 Thread Torsten Roehr
Vijayaraj Nagarajan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi all i would like to fetch the content of a url. and then would like to put in my page... dynamically refreshing it once in a day... is it possible to do this in php. i have used perl get url option and then

Re: [PHP] how to redirect ?

2004-09-10 Thread Abdul-Wahid Paterson
What errors is it giving? It should work fine. However, remember that since it is part of the HTTP header information it has to come before any of the main output of the script. Do you have a code sample and the error message? Abdul-Wahid On Fri, 13 Aug 2004 16:03:29 -0700, CBharadwaj [EMAIL

[PHP] Parsing HTML files

2004-09-10 Thread Nick Wilson
Hi all, I was wondering if any classes/functions could help me with this little challenge, (im hopeless at regex ;-) input type=hidden name=id value=593 / I want to extract the value of 'id' from a webpage. Any simple way to do this or am I down to sweating of the regex functions? Much

[PHP] Re: how to redirect ?

2004-09-10 Thread Torsten Roehr
Cbharadwaj [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I have used Header (Location:PATH) function for redirection. it is giving some errors. is there any other method other than HEADER() funtion for redirecting ? Bharadwaj It will work if you specify a *full* URI:

Re: [PHP] Parsing HTML files

2004-09-10 Thread Abdul-Wahid Paterson
No easy way of doing it, regex somthing like: $id = preg_replace(/.*input.*name=\id\ value=\[0-9]+\ \//, $1, $string); where $string is a line from your input'd HTML page Abdul-Wahid On Fri, 10 Sep 2004 12:54:37 +0200, Nick Wilson [EMAIL PROTECTED] wrote: Hi all, I was wondering if any

Re: [PHP] Parsing HTML files

2004-09-10 Thread Nick Wilson
* and then Abdul-Wahid Paterson declared No easy way of doing it, regex somthing like: $id = preg_replace(/.*input.*name=\id\ value=\[0-9]+\ \//, $1, $string); where $string is a line from your input'd HTML page OK, thanks abdul, much appreciated.. -- Nick W -- PHP General

[PHP] Re: php_printer

2004-09-10 Thread Lester Caine
Lester Caine wrote: Anybody got php_printer running? If I give printer_open an invalid printer name, error. Give it a valid (shared) printer name, not error, but using the $handle in printer_set_option gives an 'invalid printer handle error' What do I need to do next to check this out? OK

[PHP] Ouput buffer and vertual()

2004-09-10 Thread Ivik Injerd
--- blah.pl: #!/usr/bin/perl print Content-type: text/plain\r\n\r\n; print blah; exit; --- test.php: ob_start(); virtual(blah.pl); $tmp = ob_get_contents(); echo \n[ TMP: $tmp ]; ob_end_clean(); --- test.php (output): blah [ TMP: ] Looks like vertual() gets past the output buffer. How can I keep

[PHP] Getting free space of remote directory

2004-09-10 Thread Benkovich Mishail
I have some paths, for example: \\192.168.0.254\C\Windows\SomeDir\ or ftp://myhost.com/folder/ (login and password I also know) How I can check writable this dirs or no? - I can try to write temporary file or use touch() funktion. But how I can get free space of this remote catalogue?

Re: [PHP] Getting free space of remote directory

2004-09-10 Thread François Moreau
Hi Benkovich, Le 04-09-10, à 07:23, Benkovich Mishail a écrit : I have some paths, for example: \\192.168.0.254\C\Windows\SomeDir\ or ftp://myhost.com/folder/ (login and password I also know) How I can check writable this dirs or no? - I can try to write temporary file or use touch() funktion.

Re: [PHP] help-fetching-url-contents

2004-09-10 Thread John Holmes
From: vijayaraj nagarajan [EMAIL PROTECTED] i would like to fetch the content of a url. and then would like to put in my page... dynamically refreshing it once in a day... is it possible to do this in php. i have used perl get url option and then parse the file, with the date and time

Re: [PHP] Ouput buffer and vertual()

2004-09-10 Thread John Holmes
From: Ivik Injerd [EMAIL PROTECTED] --- test.php: ob_start(); virtual(blah.pl); $tmp = ob_get_contents(); echo \n[ TMP: $tmp ]; ob_end_clean(); --- test.php (output): blah [ TMP: ] Looks like vertual() gets past the output buffer. How can I keep it in the buffer? I believe a RTFM is in order

[PHP] problems setting up php5 on apache2 (WinXP Pro)

2004-09-10 Thread Mathieu Dumoulin
(Don't write to me telling me to use linux, i dont want to, this is my home machine not a production server, thank you, now if you really want to help keep on reading) I got a most recent copy of PHP 5.01 extracted into C:\php and everything seems to be working fine as long as i dont ask to load

Re: [PHP] how to redirect ?

2004-09-10 Thread John Nichel
CBharadwaj wrote: Hi I have used Header (Location:PATH) function for redirection. it is giving some errors. is there any other method other than HEADER() funtion for redirecting ? Bharadwaj What are the errors? Output already started? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675

[PHP] php|works in Toronto - anyone going?

2004-09-10 Thread Aaron Gould
Just curious if anyone on the list was headed to Toronto on Sep 22-24 for php|works. I live about two hours from Toronto, and my company is sending me. I wonder what kind of reception this conference will get... -- Aaron Gould Parts Canada - Web Developer -- PHP General Mailing List

Re: [PHP] find quoted string within a string (more of a regex question, though ..)

2004-09-10 Thread Robin Vickery
On Fri, 10 Sep 2004 11:43:54 +0200, Wouter van Vliet [EMAIL PROTECTED] wrote: For my own reasons (can explain, would take long, won't till sbody asks) I want to match a quoted string within a string. That is somehow kind of easy, I know ... if it weren't for the slashing of quotes. The

Re: [PHP] Ouput buffer and vertual()

2004-09-10 Thread Ivik Injerd
Ok, thanks! John Holmes wrote: From: Ivik Injerd [EMAIL PROTECTED] --- test.php: ob_start(); virtual(blah.pl); $tmp = ob_get_contents(); echo \n[ TMP: $tmp ]; ob_end_clean(); --- test.php (output): blah [ TMP: ] Looks like vertual() gets past the output buffer. How can I keep it in the buffer?

Re: [PHP] problems setting up php5 on apache2 (WinXP Pro)

2004-09-10 Thread Wouter van Vliet
Ok, first of all: really, do use linux. It's not THAT bad for a home machine ;) Now, the solution is quite simple as it is documented. Just copy the file 'libmysql.dll' to your %WINDIR% folder and all should work. If it doesn't, take libmysqli.dll as well. While you're at it, you might as well

Re: [PHP] php|works in Toronto - anyone going?

2004-09-10 Thread John Nichel
Aaron Gould wrote: Just curious if anyone on the list was headed to Toronto on Sep 22-24 for php|works. I live about two hours from Toronto, and my company is sending me. I wonder what kind of reception this conference will get... My company was going to send me, but backed out (money). I'm

Re: [PHP] find quoted string within a string (more of a regex question, though ..)

2004-09-10 Thread Wouter van Vliet
On Fri, 10 Sep 2004 16:41:56 +0300, Robin Vickery [EMAIL PROTECTED] wrote: On Fri, 10 Sep 2004 11:43:54 +0200, Wouter van Vliet [EMAIL PROTECTED] wrote: For my own reasons (can explain, would take long, won't till sbody asks) I want to match a quoted string within a string. That is somehow

Re: [PHP] Ouput buffer and vertual()

2004-09-10 Thread Wouter van Vliet
On Fri, 10 Sep 2004 09:24:06 -0400, John Holmes [EMAIL PROTECTED] wrote: From: Ivik Injerd [EMAIL PROTECTED] --- test.php: ob_start(); virtual(blah.pl); $tmp = ob_get_contents(); echo \n[ TMP: $tmp ]; ob_end_clean(); --- test.php (output): blah [ TMP: ] Looks like

Re: [PHP] problems setting up php5 on apache2 (WinXP Pro)

2004-09-10 Thread John Holmes
From: Wouter van Vliet [EMAIL PROTECTED] Ok, first of all: really, do use linux. It's not THAT bad for a home machine ;) Now, the solution is quite simple as it is documented. Just copy the file 'libmysql.dll' to your %WINDIR% folder and all should work. If it doesn't, take libmysqli.dll as

Re: [PHP] Ouput buffer and vertual()

2004-09-10 Thread John Holmes
From: Wouter van Vliet [EMAIL PROTECTED] I think I must add something here - besides the fact that a function like vertual() doesn't exist - I believe Ivik asked how he could get around this, still doing something like the virtual but keep buffering the output. I don't think you can... virtual()

[PHP] how to load extensions outside the extension_dir

2004-09-10 Thread Marten Lehmann
Hello, I need to load extensions with dl() within PHP running as CGI. But as this is a shared hosting environment, I don't have access to the extension_dir. Anyway, dl() prepends install-dir/lib/php/extensions/ debug-or-not-zts-or-not-ZEND_MODULE_API_NO if I'm calling dl(myext.so); even if I'm

Re: [PHP] php|works in Toronto - anyone going?

2004-09-10 Thread John Holmes
From: John Nichel [EMAIL PROTECTED] My company was going to send me, but backed out (money). I'm in Buffalo, so it's right up the road...I may still go and just pay for it out of my own pocket. Put an alias on your name tag otherwise people will be hunting you down! ;) Have fun guys... wish I

Re: [PHP] php|works in Toronto - anyone going?

2004-09-10 Thread John Nichel
John Holmes wrote: From: John Nichel [EMAIL PROTECTED] My company was going to send me, but backed out (money). I'm in Buffalo, so it's right up the road...I may still go and just pay for it out of my own pocket. Put an alias on your name tag otherwise people will be hunting you down! ;) Yeah,

[PHP] Re: problems setting up php5 on apache2 (WinXP Pro)

2004-09-10 Thread Catalin Trifu
Hi, I 2 use winxp pro at home, actually linux + windowoze and i have encountered the same problem with mysql extension. Some extensions, such as iconv, openssl depend on external libraries. btw! it's not a good idea to mess with windows\system32 folder. If you want you can

Re: [PHP] problems setting up php5 on apache2 (WinXP Pro)

2004-09-10 Thread Wouter van Vliet
On Fri, 10 Sep 2004 10:16:28 -0400, John Holmes [EMAIL PROTECTED] wrote: From: Wouter van Vliet [EMAIL PROTECTED] Ok, first of all: really, do use linux. It's not THAT bad for a home machine ;) Now, the solution is quite simple as it is documented. Just copy the file 'libmysql.dll' to

Re: [PHP] imap and multipart

2004-09-10 Thread raditha dissanayake
Maxime Thonon wrote: hello, i work with imap and php to make a webmail. it works fine but i have a big problem with some mails, those who contains a multipart into a multipart. it happends with outlook express who puts into a mutlipart the text and html version of the text into the first part of

Re: [PHP] php|works in Toronto - anyone going?

2004-09-10 Thread Aaron Gould
John Holmes wrote: From: John Nichel [EMAIL PROTECTED] My company was going to send me, but backed out (money). I'm in Buffalo, so it's right up the road...I may still go and just pay for it out of my own pocket. Put an alias on your name tag otherwise people will be hunting you down! ;) Have

[PHP] Shared Memories in PHP

2004-09-10 Thread Chidanand
I have a requirement where in i have to access shared memory allocated by some C process. Can i do this in PHP? I am trying out some thing like this. I want to access the existing shared memory. $shm_id = ftok(/tmp/, 'm'); echo $shm_id. br; $shmid = shmop_open($shm_id, c, 0644, 164); $shm_data

[PHP] Barcodes ?

2004-09-10 Thread Dave Carrera
Hi List, Anyone have any pointers to examples of Code 39 barcode generation using php please. Thanks for any help Dave Carrera -- UK Web Hosting @ http://www.ephgroup.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.754

RE: [PHP] Barcodes ?

2004-09-10 Thread Justin Palmer
Hi, Google Search: Code 39 Barcode Generation PHP Found this here: http://www.hotscripts.com/Detailed/9608.html Justin -Original Message- From: Dave Carrera [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 9:48 AM To: [EMAIL PROTECTED] Subject: [PHP] Barcodes ? Hi List,

RE: [PHP] Barcodes ?

2004-09-10 Thread Jesse Castro
[snip] Hi List, Anyone have any pointers to examples of Code 39 barcode generation using php please. Thanks for any help Dave Carrera [/snip] STFW http://www.aditus.nu/jpgraph/jpg_barcodes.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] image size?

2004-09-10 Thread Ed Lazor
-Original Message- On Friday 10 September 2004 06:59, Ed Lazor wrote: Is there a way to get the size of an image created using the imagecreate function? Size as in ... ? I was looking for the size of the image in bytes. -Ed -- PHP General Mailing List (http://www.php.net/) To

[PHP] Use of date(), and therefore time(), in the PEAR Date class

2004-09-10 Thread Andrew Hill
Hi all, I've run into a bit of a doozy that I can't seem to figure out. I'm using the PEAR Date class to deal with some time/date requirements for some code, and everything has been working (to the best of my knowledge) really well, up until now. I decided to extend my code test suite (using

Re: [PHP] Getting free space of remote directory

2004-09-10 Thread Jason Wong
On Friday 10 September 2004 19:23, Benkovich Mishail wrote: I have some paths, for example: \\192.168.0.254\C\Windows\SomeDir\ or ftp://myhost.com/folder/ (login and password I also know) How I can check writable this dirs or no? - I can try to write temporary file or use touch() funktion.

RE: [PHP] [PHP-GEN] Check Boxes

2004-09-10 Thread Gryffyn, Trevor
You got it right, except you're going to have it blow up on you if someone doesn't select something Try these changes: $a1 = $_POST['ch1']; $a2 = $_POST['ch2']; $a3 = $_POST['ch3']; # Add this bit If (isset($_POST['ch1')) { $collist .= ,$a1; } If (isset($_POST['ch2')) { if ($collist == ) {

[PHP] Array inside Class

2004-09-10 Thread dirk
Hello everybody, can anyone explain to me, why I can't resize an array inside a class? Sample Code: ?php class Liste { var $input = array (1,2,3); var $input2 = array_pad ($input,10, 1); } ? Output: Parse error: parse error, unexpected '(', expecting ',' or ';' in

Re: [PHP] [PHP-GEN] Check Boxes

2004-09-10 Thread Chris Dowell
Try something along these lines: ... Date: input type=checkbox name=columns[] value=date / Time: input type=checkbox name=columns[] value=time / Cost: input type=checkbox name=columns[] value=cost / Colour: input type=checkbox name=columns[] value=colour / ... ?php ... mysql_query(SELECT .

Re: [PHP] Array inside Class

2004-09-10 Thread Greg Donald
On Fri, 10 Sep 2004 20:09:55 +0200, dirk [EMAIL PROTECTED] wrote: can anyone explain to me, why I can't resize an array inside a class? Sample Code: ?php class Liste { var $input = array (1,2,3); var $input2 = array_pad ($input,10, 1); } ? Output: Parse error: parse error,

Re: [PHP] Array inside Class

2004-09-10 Thread Chris Dowell
From the manual: In PHP 4, only constant initializers for var variables are allowed. To initialize variables with non-constant values, you need an initialization function which is called automatically when an object is being constructed from the class. Such a function is called a constructor

Re: [PHP] Array inside Class

2004-09-10 Thread John Holmes
From: dirk [EMAIL PROTECTED] can anyone explain to me, why I can't resize an array inside a class? Sample Code: ?php class Liste { var $input = array (1,2,3); var $input2 = array_pad ($input,10, 1); } ? Output: Parse error: parse error, unexpected '(', expecting ',' or ';' in

RE: [PHP] A follow up on my question about good coding practice [isset]

2004-09-10 Thread Gryffyn, Trevor
For reference: http://www.blueshoes.org/en/developer/php_cheat_sheet/ -Original Message- From: Al [mailto:[EMAIL PROTECTED] Sent: Sunday, June 06, 2004 7:47 PM To: [EMAIL PROTECTED] Subject: [PHP] A follow up on my question about good coding practice [isset] I could use one

Re: [PHP] Array inside Class

2004-09-10 Thread dirk
Well, doesn't work either: Parse error: parse error, unexpected T_VARIABLE, expecting T_FUNCTION in /srv/www/htdocs/stundenplan/stpoo.php on line 5 I forgot to mention that I'm using php-5.0.1 before Dirk On Fri, 10 Sep 2004 14:26:22 -0400, John Holmes [EMAIL PROTECTED] wrote: From: dirk

Re: [PHP] Array inside Class

2004-09-10 Thread John Holmes
From: dirk [EMAIL PROTECTED] Try this: var $input = array(1,2,3); var $input2 = array(); $this-input2 = array_pad($this-input,10,1); Well, doesn't work either: Parse error: parse error, unexpected T_VARIABLE, expecting T_FUNCTION in /srv/www/htdocs/stundenplan/stpoo.php on line 5 The array_pad

Re: [PHP] Array inside Class

2004-09-10 Thread dirk
Works fine within the constructor, thanks. Dirk On Fri, 10 Sep 2004 14:38:45 -0400, John Holmes [EMAIL PROTECTED] wrote: From: dirk [EMAIL PROTECTED] Try this: var $input = array(1,2,3); var $input2 = array(); $this-input2 = array_pad($this-input,10,1); Well, doesn't work either:

Re: [PHP] Array inside Class

2004-09-10 Thread Wouter van Vliet
On Fri, 10 Sep 2004 14:26:22 -0400, John Holmes [EMAIL PROTECTED] wrote: From: dirk [EMAIL PROTECTED] can anyone explain to me, why I can't resize an array inside a class? Sample Code: ?php class Liste { var $input = array (1,2,3); var $input2 = array_pad ($input,10, 1); } ?

Re: [PHP] image size?

2004-09-10 Thread Wouter van Vliet
You probably need this to set the Content-length: header, don't you? I'd go into: ob_start() imagegif($imageResource); // or whatever type of image you're writing $blob = ob_get_clean(); unset($imageResource); // free the memory once you're not using the image // size in bytes = strlen()+1, due

RE: [PHP] Active windows

2004-09-10 Thread Gryffyn, Trevor
Check into the Javascript events onfocus and onblur (forgive my syntax). Focus is when a window becomes 'active' and Blur is when it becomes 'non active'. -TG -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 15, 2004 10:07 PM To: PHP

RE: [PHP] adding *** on email address upon view

2004-09-10 Thread Gryffyn, Trevor
One simple way to do it would be: List($username,$domain) = explode(@,$emailaddress); $newemailaddress = [EMAIL PROTECTED]; Maybe I just use list/explode too much. :) -TG -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Thursday, July 22, 2004 6:09 AM To:

[PHP] PHP modules

2004-09-10 Thread Benjamin Bostow
I have heard of php modules and to the sound of it it allows me to create php functions that I don't have to have include files to have access to those functions. I have been searching for any information on this and have not had any success. I am basically trying to write an API that others

RE: [PHP] Adding +7 more days on date() value problem

2004-09-10 Thread Gryffyn, Trevor
I disagree on the strtotime recommendations that everyone else gave. The mktime() function itself will compensate for leap years, day = 36 type stuff and all of that. ?php $curdate = date(Y-m-d); $plus7 = date(Y-m-d,mktime(0,0,0,date(m),date(d)+7,date(Y))); Echo Current Date: $curdatebr; Echo +7

[PHP] Advanced Query Wizard

2004-09-10 Thread Robb Kerr
This is not a sales post. I also posted this on the MySQL board. I have been struggling with JOINed SELECT statements in MySQL for a while now. The syntax just seems to elude me. However, I just found a Win Dreamweaver extension that rocks. The Advanced Query Wizard allows me to very quickly

[PHP] OO Docs for SQLite extension

2004-09-10 Thread Ricardo Cezar
Where can I find the docs for Constructor, Properties and Methods for the SQLite extension? I search PHP.NET website but I can´t found it. I found this information for mysqli only... Thanks, Rics -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP modules

2004-09-10 Thread Greg Donald
On Fri, 10 Sep 2004 11:57:03 -0700, Benjamin Bostow [EMAIL PROTECTED] wrote: I have heard of php modules and to the sound of it it allows me to create php functions that I don't have to have include files to have access to those functions. I have been searching for any information on this and

Re: [PHP] Advanced Query Wizard

2004-09-10 Thread Greg Donald
On Fri, 10 Sep 2004 14:00:47 -0500, Robb Kerr [EMAIL PROTECTED] wrote: This is not a sales post. It sure sounds like one, not that I care or anything. Curious.. did they have a non-windows version? Something for the vim crowd perhaps? What about for Postgres? I'm using MySQL less and less

Re: [PHP] Array inside Class

2004-09-10 Thread M. Sokolewicz
Wouter Van Vliet wrote: On Fri, 10 Sep 2004 14:26:22 -0400, John Holmes [EMAIL PROTECTED] wrote: From: dirk [EMAIL PROTECTED] can anyone explain to me, why I can't resize an array inside a class? Sample Code: ?php class Liste { var $input = array (1,2,3); var $input2 = array_pad ($input,10, 1);

[PHP] Re: PHP modules

2004-09-10 Thread Catalin Trifu
http://ro.php.net/manual/en/zend.php This might be a good start. Cheers, Catalin Benjamin Bostow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have heard of php modules and to the sound of it it allows me to create php functions that I don't have to have include files to have

Re: [PHP] Adding +7 more days on date() value problem

2004-09-10 Thread M. Sokolewicz
Why would you do such strange things? It's a lot more simple :P $now = time(); $plus7 = $now+(7*24*60*60); // 7 days, containing 24 hours each, containing 60 minutes each, containing 60 seconds each. echo 'Current Date: '.date('Y-m-d', $now); echo 'Date in 7 days: '.date('Y-m-d', $plus7); now

Re: [PHP] Advanced Query Wizard

2004-09-10 Thread Robb Kerr
On Fri, 10 Sep 2004 14:57:29 -0500, Greg Donald wrote: On Fri, 10 Sep 2004 14:00:47 -0500, Robb Kerr [EMAIL PROTECTED] wrote: This is not a sales post. It sure sounds like one, not that I care or anything. Curious.. did they have a non-windows version? Something for the vim crowd

Re: [PHP] OO Docs for SQLite extension

2004-09-10 Thread Greg Donald
On Fri, 10 Sep 2004 16:20:21 -0300, Ricardo Cezar [EMAIL PROTECTED] wrote: Where can I find the docs for Constructor, Properties and Methods for the SQLite extension? I search PHP.NET website but I can´t found it. I found this information for mysqli only... http://www.php.net/sqlite --

Re: [PHP] OO Docs for SQLite extension

2004-09-10 Thread Ricardo Cezar
I told: I search php.net website This page don´t have the docs for constructor, methods and properties. It doesn´t have docs for OO programing with SQLite. Only procedural programing. I´m looking for the OO docs... Greg Donald [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] On

[PHP] How to access one class from another

2004-09-10 Thread Brent Baisley
What is the best way to access one class from another? What I have is a couple of core classes that are loaded into instances at the start of each page. I then load instances of page specific classes. How would I access the already loaded instances of the core classes from inside one of the

Re: [PHP] Array inside Class

2004-09-10 Thread Greg Beaver
M. Sokolewicz wrote: To summarize: ?php class Liste { var $input2; var $input; function Liste() { /* or, if you're using php5: public function __construct() { */ $this-input = array(1,2,3); $this-input2 = array_pad($this-input,10,1); } } The reason being, for this, that

[PHP] multi dimension array

2004-09-10 Thread Dan McCullough
I believe that would be the correct term for what I need. Here is what I have been trying to do. I have orders and customers. Customers are required to do a few things before we can process the order. Some times they are very slow in doing so. So I wanted to write a little reminder script

[PHP] Re: How to access one class from another

2004-09-10 Thread Matthew Weier O'Phinney
* Brent Baisley [EMAIL PROTECTED]: What is the best way to access one class from another? What I have is a couple of core classes that are loaded into instances at the start of each page. I then load instances of page specific classes. How would I access the already loaded instances of the

[PHP] Re: How to access one class from another

2004-09-10 Thread Torsten Roehr
Brent Baisley [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What is the best way to access one class from another? What I have is a couple of core classes that are loaded into instances at the start of each page. I then load instances of page specific classes. How would I access

RE: [PHP] Adding +7 more days on date() value problem

2004-09-10 Thread Vail, Warren
I believe this one will be off by an hour on leap day. Warren Vail -Original Message- From: M. Sokolewicz [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 1:08 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Adding +7 more days on date() value problem Why would you do such

RE: [PHP] Adding +7 more days on date() value problem

2004-09-10 Thread Vail, Warren
So if this is run on the 30th of the month, you are saying this handles a month with day 37 correctly? Warren Vail -Original Message- From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 11:58 AM To: [EMAIL PROTECTED] Cc: Louie Miranda Subject: RE: [PHP]

Re: [PHP] problem with Header(Location: home.php);

2004-09-10 Thread Chris Shiflett
--- CBharadwaj [EMAIL PROTECTED] wrote: In conection.php I have written. SESSION_ START(); on successful login I am registering a session variable. SESSION_REGISTER(userId); Do this instead: session_start(); $_SESSION['userid'] = 'myuser'; Header(Location: home.php); Use

RE: [PHP] Adding +7 more days on date() value problem

2004-09-10 Thread Vail, Warren
Actually, I stand corrected on this one, it will be off by an hour on daylight savings change date (either one). Warren Vail -Original Message- From: M. Sokolewicz [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 1:08 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Adding +7 more

Re: [PHP] php|works in Toronto - anyone going?

2004-09-10 Thread Chris Shiflett
--- Aaron Gould [EMAIL PROTECTED] wrote: Just curious if anyone on the list was headed to Toronto on Sep 22-24 for php|works. I live about two hours from Toronto, and my company is sending me. I wonder what kind of reception this conference will get... I'm giving a talk on PHP session

RE: [PHP] Adding +7 more days on date() value problem

2004-09-10 Thread Gryffyn, Trevor
Because $now+(7*24*60*60) isn't very intuitive to a human. Why would you do it that way instead of: $days = 24*60*60; $now = time(); $plus7 = $now+(7*$days); echo 'Current Date: '.date('Y-m-d', $now); echo 'Date in 7 days: '.date('Y-m-d', $plus7); Maybe you think like a machine, but the way I

[PHP] Re: multi dimension array

2004-09-10 Thread Torsten Roehr
Dan McCullough [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I believe that would be the correct term for what I need. Here is what I have been trying to do. I have orders and customers. Customers are required to do a few things before we can process the order. Some times they

RE: [PHP] Adding +7 more days on date() value problem

2004-09-10 Thread Gryffyn, Trevor
Yes, it does! That's why I find it so useful. :) http://www.php.he.net/manual/en/function.mktime.php Quoted: mktime() is useful for doing date arithmetic and validation, as it will automatically calculate the correct value for out-of-range

Re: [PHP] Shared Memories in PHP

2004-09-10 Thread Curt Zirzow
* Thus wrote Chidanand: I have a requirement where in i have to access shared memory allocated by some C process. Can i do this in PHP? I am trying out some thing like this. I want to access the existing shared memory. $shm_id = ftok(/tmp/, 'm'); echo $shm_id. br; $shmid =

Re: [PHP] multi dimension array

2004-09-10 Thread Greg Donald
On Fri, 10 Sep 2004 13:33:37 -0700 (PDT), Dan McCullough [EMAIL PROTECTED] wrote: So I have orders and customers. I need to go through and list out the orders and then I need to use the customer to grab all the order associated with them, then list out their contact information. Anythough

Re: [PHP] php|works in Toronto - anyone going?

2004-09-10 Thread Torsten Roehr
Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Aaron Gould [EMAIL PROTECTED] wrote: Just curious if anyone on the list was headed to Toronto on Sep 22-24 for php|works. I live about two hours from Toronto, and my company is sending me. I wonder what kind

[PHP] Can I name a session variable using another variable?

2004-09-10 Thread John Gostick
Hi, I've encountered a problem I can't seem to find much reference to on the web, so I was wondering if anyone here could help me... Fisrt a brief background: I am building a fairly simple PHP/MySQL chat system with multiple rooms. Each room is loaded from the main chat page by clicking

[PHP] Totaling sales by month

2004-09-10 Thread Brian Dunning
I have a MySQL db with a datetime field containing the date and time of the sale. I want to query for a simple report that shows total sales by month. I thought this would be quick easy but it's NOT! I can't figure out how to query for it. If this question would be better posed to a SQL

[PHP] PHP5 OOP

2004-09-10 Thread Ed Lazor
Any recommendations on the best PHP5 OOP book to get? I have Advanced PHP Programming by George Schlossnagle. It's turning out to be a great book, but I'd like to read more on PHP5 OOP. The first chapter recommends two books, but both deal with OOP from the perspective of C++, C#, and Perl.

[PHP] Re: Can I name a session variable using another variable?

2004-09-10 Thread Greg Beaver
Hi John, I would recommend making $_SESSION['prevtime'] an array $roomname = 'sampleroom'; if (!isset($_SESSION['prevtime'])) { $_SESSION['prevtime'] = array(); } $_SESSION['prevtime'][$roomname] = time(); Then, you can if (isset($_SESSION['prevtime'][$roomname])) { // update the session

[PHP] creating multiple sessions

2004-09-10 Thread John Gostick
Hi, I've encountered a situation where I need to have two or more SEPARATE sessions running in separate windows. The reasons are complicated, so I'll keep things simple by just explaining the problem! Unfortunately my understanding of sessions is a little sketchy at best so please stick with

Re: [PHP] Parsing HTML files

2004-09-10 Thread Peter Brodersen
On Fri, 10 Sep 2004 11:58:58 +0100, in php.general [EMAIL PROTECTED] (Abdul-Wahid Paterson) wrote: I was wondering if any classes/functions could help me with this little challenge, (im hopeless at regex ;-) input type=hidden name=id value=593 / No easy way of doing it, regex somthing like:

Re: [PHP] Totaling sales by month

2004-09-10 Thread Brian Dunning
Thanks Pablo - but it's more complicated than that. I'm trying to return totals for all calendar months, not all records within the past month. I'll word my question better and post it to one of your suggested lists. :) On Sep 10, 2004, at 4:27 PM, Pablo Gosse wrote: Brian Dunning wrote: I

[PHP] Perplexing problem, suggestions or answer needed

2004-09-10 Thread Mag
Hi, I will be getting input from a textarea and then I am using explode to break the text into an array when it encounters a space. eg: one two three four ninty would be broken into 5 parts of an array. ** The array would then be put into a session ** now I need to display the last part (which

Re: [PHP] PHP5 OOP

2004-09-10 Thread Greg Donald
On Fri, 10 Sep 2004 15:09:57 -0700, Ed Lazor [EMAIL PROTECTED] wrote: Any recommendations on the best PHP5 OOP book to get? I have Advanced PHP Programming by George Schlossnagle. It's turning out to be a great book, but I'd like to read more on PHP5 OOP. The first chapter recommends two

[PHP] Re: problems setting up php5 on apache2 (WinXP Pro)

2004-09-10 Thread Richard Harb
I have no experience with PHP5 so far but this subject was asked before often enough with PHP4 - so the advice should still be valid... I generally didn't put any files in the %SYSTEMROOT% folder (which usually translates to C:\WINDOWS on a default installed WinXP machine) but instead I put the

  1   2   >