[PHP] Help With PEAR::DB Connection

2004-09-10 Thread php-list
Hello everyone, I have a problem connecting to the Database. When I execute the code at the bottom, it gives me this message: "DB Error: extension not found". It sees the DB file and the parameters are correct. I checked the include path and it was correct. Did I do something wrong? Any help would

Re: [PHP] Perplexing problem, suggestions or answer needed

2004-09-10 Thread John Holmes
Mag wrote: 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 pa

Re: [PHP] Totaling sales by month

2004-09-10 Thread John Holmes
Andrew Kreps wrote: >> 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. > This one worked for me, on MySQL 3.23.xx. I hope it's closer to what you need. select sum(ordersubtotal), date_forma

Re: [PHP] create and read array

2004-09-10 Thread John Holmes
John Taylor-Johnston wrote: Can someone help me, show me how to do this please? 1. How do I write $mydata->AUS and $mydata->id into an array? $authors = array(); while ($mydata = mysql_fetch_object($news)) { # echo "$mydata->AUS, $mydata->id\n"; ??? write to array } mysql_close($myconnection); What

[PHP] create and read array

2004-09-10 Thread John Taylor-Johnston
Can someone help me, show me how to do this please? 1. How do I write $mydata->AUS and $mydata->id into an array? $authors = array(); while ($mydata = mysql_fetch_object($news)) { # echo "$mydata->AUS, $mydata->id\n"; ??? write to array } mysql_close($myconnection); 2. Then I need to create $SQL

RE: [PHP] PHP5 OOP

2004-09-10 Thread Ed Lazor
Thanks everyone for the recommendations =) > -Original Message- > 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 b

[PHP] Re: how to load extensions outside the extension_dir

2004-09-10 Thread Aidan Lister
You can't, It's a security thing. "Marten Lehmann" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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() pr

[PHP] [Newbie Guide] For the benefit of new members

2004-09-10 Thread Ma SivaKumar
=== Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first. You can download a copy and use it offline also. Please also try ht

Re: [PHP] PHP5 OOP

2004-09-10 Thread John Holmes
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 books

Re: [PHP] PHP5 OOP

2004-09-10 Thread Greg Beaver
Greg Donald wrote: 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 r

Re: [PHP] Totaling sales by month

2004-09-10 Thread Brian Dunning
Amazing - that did it, first try! THANKS. I knew it had to be simple. SQL rocks. - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] GD Library list

2004-09-10 Thread bskolb
Does anyone know if there is a mailing list for gdlib? Can't seem to find in Google.

Re: [PHP] Totaling sales by month

2004-09-10 Thread Andrew Kreps
This one worked for me, on MySQL 3.23.xx. I hope it's closer to what you need. select sum(ordersubtotal), date_format(orderdate, '%Y-%m') as odate from orders group by odate On Fri, 10 Sep 2004 15:01:34 -0700, Brian Dunning <[EMAIL PROTECTED]> wrote: > I have a MySQL db with a datetime field con

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

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

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 ;-) >> >> > >No easy way of doing it, regex somthing like: > >$id = preg_replace("/.*/

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

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

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

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

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 wo

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. Any

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". ""; > $shm

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 inp

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

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

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 sessi

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] 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.ph

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

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 stran

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

[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

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

Re: [PHP] Array inside Class

2004-09-10 Thread Greg Beaver
M. Sokolewicz wrote: To summarize: 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 inside a class

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

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]

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

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 isn

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

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: Output: Parse error: parse error, unexpected '(', expecting ',' or ';' in /srv/www/

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

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

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

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. "; Echo "+7 Dats Date: $plus7"; ?> Simple as that! -TG > -Original Message- > From: Louie Miranda [mailto:[EMAIL PROT

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

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

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] 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] 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: > > > > > class Liste { > > var $input = array (1,2,3); > > var $input2 = array_pad ($input,1

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,

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_pa

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

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: Output: Parse error: parse error, unexpected '(', expecting ',' or ';' in /srv/www/htdocs/stundenplan/stpoo.php on line 4 You can't assign values like that. Try this: var $input = a

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 (s

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: > > class Liste { >var $input = array (1,2,3); >var $input2 = array_pad ($input,10, 1); > } > ?> > > Output: > Parse error: parse err

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

2004-09-10 Thread Chris Dowell
Try something along these lines: ... Date: Time: Cost: Colour: ... ... mysql_query("SELECT " . implode(',', $_REQUEST['columns']) . " FROM tablename"); ... ?> This should product a query like SELECT date,time,colour FROM tablename; And it's a lot neater than writing a huge chunk of code to g

[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: Output: Parse error: parse error, unexpected '(', expecting ',' or ';' in /srv/www/htdocs/stundenplan/stpoo.php on line 4 Thanks, Dirk -- PHP General Mailing List (http://www.php.net/) To uns

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 == "")

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() funkt

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

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.ne

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: http://www.php.net/unsub.ph

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, A

[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

[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". ""; $shmid = shmop_open($shm_id, "c", 0644, 164); $shm

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

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 th

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 'li

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

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

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

[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 /lib/php/extensions/ --ZEND_MODULE_API_NO if I'm calling dl("myext.so"); even if I'm starting with a slash. How can

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(

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 w

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

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

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 in

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 cop

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 bu

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

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

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

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

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 function.

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.

[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? __

[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

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

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("/.*/", $1, $string); > > where $string is a line from your input'd HTML page OK, thanks abdul, much appreciated.. -- Nick W -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Parsing HTML files

2004-09-10 Thread Abdul-Wahid Paterson
No easy way of doing it, regex somthing like: $id = preg_replace("/.*/", $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 classes/functions could help

[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* U

[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 ;-) 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 thanks -- Nick W -- PHP General Maili

  1   2   >