Re: [PHP] redirect

2003-10-30 Thread alain dhaene
it works, thx "Chris W. Parker" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] Pablo Zorzoli on Wednesday, October 29, 2003 11:20 AM said: > You cannot do any echo ""; before header("location:.."); maybe that's > the problem. The solution would be to

Re: [PHP] PHP and java

2003-10-30 Thread - Edwin -
On Wed, 29 Oct 2003 19:27:36 -0600 David Miller <[EMAIL PROTECTED]> wrote: > I have written PHP code to upload and download files to my > server through my browser. >On the local side I have generated a java applet to do a >few things that I just > can't do with a browser. There are som

Re: [PHP] Echo issue RESOLVED!

2003-10-30 Thread - Edwin -
(Just FYI) On Wed, 29 Oct 2003 23:03:55 +0100 "Ryan A" <[EMAIL PROTECTED]> wrote: > If I have said it once I have said it a thousand > times..MAC's are evil. Step away from it and leave the > darkness behind.come towards the light and thePC ...[snip]... Too bad for you... Just by re

Re: [PHP] PHP and java

2003-10-30 Thread Jacob Vennervald
Why can't you do this using PHP? Have a php script generate a directory listing the user can choose from and when the user chooses a picture load that picture. Jacob On Thu, 2003-10-30 at 02:27, David Miller wrote: > I have written PHP code to upload and download files to my server through my >

Re: [PHP] Echo issue RESOLVED!

2003-10-30 Thread Leif K-Brooks
- Edwin - wrote: Just by reading this -> http://www.apple.com/macosx/ esp. these last two sections: * Solid as a rock * Developer's dream would give people reason to consider and even "switch"... Mac OS X is fairly stable, I'll give you that. As for "developer's dream", that's a matter of op

Re: [PHP] String Array Creation and assigment

2003-10-30 Thread Eugene Lee
On Wed, Oct 29, 2003 at 12:47:58PM -0500, Dan wrote: : : please help with the following: : : I tried this first : : $b[] = 'Book Worzel, Richard (1989). From Employee to Entrepreneur: how to : turn your experience into a fortune. Toronto: Key Porter books.'; : $b[] = 'Book Ries, Al and Jack Tr

Re: [PHP] Echo issue RESOLVED!

2003-10-30 Thread - Edwin -
On Thu, 30 Oct 2003 02:47:47 -0500 Leif K-Brooks <[EMAIL PROTECTED]> wrote: > - Edwin - wrote: > > >Just by reading this -> http://www.apple.com/macosx/ esp. > >these last two sections: > > > > * Solid as a rock > > * Developer's dream > > > >would give people reason to consider and even "switc

Re: [PHP] Object Undefinded index

2003-10-30 Thread Allex
In my view, to keep the object oriented approach cleaner you should use another class for describing your item, like: class Item { var $_product_id; var $_quantity; function Item($productId, $quantity) { $this->_product_id = $productId; $this->_quantity = $quantity; } function

[PHP] Japanese entry into MySQL and into emails

2003-10-30 Thread Dave G
PHP Gurus, Hello, I'm new to this list. I'm very much new to PHP, so my questions will be very basic. I have two things I need to do in Japanese: 1. Store people's names in kanji in my MySQL database. To this end, I've set up an INSERT command without doing anything

[PHP] Endless 'while' loops?

2003-10-30 Thread Dave G
PHP Gurus, This is my other question which motivated me to join this list. I've been using the book "PHP and MySQL Web Development" to learn how to build dynamically driven sites. For the most part it's great. But I don't have anyone I know personally that I can ask when I don't und

[PHP] PHP & Apache 2

2003-10-30 Thread Fernando Melo
Hi everyone, I would like to use apache 2 in a production environment, but initially there seemed to be some issues with the PHP module. Does anybody know if it is ok use it now or is it still buggy with apache 2? Fern -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] Endless 'while' loops?

2003-10-30 Thread Leif K-Brooks
Dave G wrote: In the example they give in this book, they use a "while" loop (page 670, for anyone who has it). But it's confusing because it looks like this: while ( $subscriber = mysql_fetch_row($result)) { [write and send the email] } $subscriber

Re: [PHP] Japanese entry into MySQL and into emails

2003-10-30 Thread Marek Kilimajer
Unless you want to do string manipulation you don't need mbstring. You only need to pay atention to these details: 1. Set charset to kanji for your html pages using header('Content-type: text/html; charset=kangi'); 2. In phpMyAdmin choose Japanese with kangi encoding for the interface language. 3

Re: [PHP] Object Undefinded index

2003-10-30 Thread Allex
I'm just adding a working example to my last post; check the implementation part at the end of the script; Cheers, Allex class Item { var $_productID; var $_quantity; function Item($productID, $quantity) { $this->_productID = $productID; $this->_q

Re: [PHP] Japanese entry into MySQL and into emails

2003-10-30 Thread Eugene Lee
On Thu, Oct 30, 2003 at 10:36:37AM +0100, Marek Kilimajer wrote: : : Unless you want to do string manipulation you don't need mbstring. You : only need to pay atention to these details: : 1. Set charset to kanji for your html pages using : header('Content-type: text/html; charset=kangi'); a. it'

Re: [PHP] Japanese entry into MySQL and into emails

2003-10-30 Thread Marek Kilimajer
I'm sorry, I have never worked with Japanese. ;) Eugene Lee wrote: On Thu, Oct 30, 2003 at 10:36:37AM +0100, Marek Kilimajer wrote: : : Unless you want to do string manipulation you don't need mbstring. You : only need to pay atention to these details: : 1. Set charset to kanji for your html pag

Re: [PHP] PHP & Apache 2

2003-10-30 Thread Eugene Lee
On Thu, Oct 30, 2003 at 11:22:38AM +0200, Fernando Melo wrote: : : I would like to use apache 2 in a production environment, but initially : there seemed to be some issues with the PHP module. Does anybody know : if it is ok use it now or is it still buggy with apache 2? The combination of PHP 4.

Re: [PHP] php: file upload program limitation..

2003-10-30 Thread Marek Kilimajer
max_execution_time does not affect file uploads. Php script and thus also the timer starts after the upload is finished. max_input_time might influence it as it is the time allowed for the browser to post the data. Justin French wrote: See these three directives in php.ini: max_execution_time =

[PHP] PPTs and thumbnails

2003-10-30 Thread Vijaya_Manda
Dear Friends, Is it possible to retrieve the first slide from a presentation and display it as a thumbnail on my site. Users will upload ppt's which should be displayed in form of thumbnails on my site. On clicking a particular thumbnail the presentation (.ppt or .pps) file should be displayed. I

RE: [PHP] Endless 'while' loops?

2003-10-30 Thread Jay Blanchard
[snip] But in the rest of the script I can't find where they declare and fill this array. [/snip] The subscriber array is filled by the query. Since PHP is not a strongly typed language there is no need to declare the array. $sql = "SELECT `foo`, `bar` FROM `customers` WHERE `status` = 'active'"

Re: [PHP] Japanese entry into MySQL and into emails

2003-10-30 Thread Marek Kilimajer
Please, include the list's address in cc. You will have much higher chance to get an answer. Dave G wrote: With regards to the kanji field in the MySQL database: Only one field in one table uses kanji. There are seven other tables. Will setting the character set to charset=ISO-202

Re: [PHP] session_regenerate_id()

2003-10-30 Thread Alexander Mueller
"Cpt John W. Holmes" wrote: > > If you're using sessions in the URL, then it works just fine. > > So, if PHP is less than 4.3.3, you need to use setcookie() to reset the > value of the session id yourself. If you're using 4.3.3, then you don't have > to worry about it. I see, but then I would ra

[PHP] Reading and using GIF files

2003-10-30 Thread BENARD Jean-philippe
Hi, Now GD doesn't support GIF file format, how can I use imageXXX functions in order to resize/transform/... GIF files? Are there any tools transforming GIF to JPG/PNG/..? Thks in advance. (o_ BENARD Jean-Philippe - Consultant STERIA Infogérance (o_ (o_ //\ RENAULT

Re: [PHP] Reading and using GIF files

2003-10-30 Thread Becoming Digital
http://www.imagemagick.org/ Edward Dudlik "Those who say it cannot be done should not interrupt the person doing it." wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU - Original Message - From: "BENARD Jean-philippe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, 30 O

RE: [PHP] PHP & Apache 2

2003-10-30 Thread Fernando Melo
And when will it be considered stable? It's been a while since Apache 2 was released. PHP needs to speed up for its own good. -Original Message- From: Eugene Lee [mailto:[EMAIL PROTECTED] Sent: 30 October 2003 11:55 To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP & Apache 2 On Thu, Oct 30

Re: [PHP] Reading and using GIF files

2003-10-30 Thread Marek Kilimajer
BENARD Jean-philippe wrote: Hi, Now GD doesn't support GIF file format, how can I use imageXXX functions in order to resize/transform/... GIF files? Are there any tools transforming GIF to JPG/PNG/..? Use image functions in this order: imagecreatefromgif - read the gif file imagecreate -

Re: [PHP] Japanese entry into MySQL and into emails

2003-10-30 Thread - Edwin -
On 2003.10.30, at 18:46 Asia/Tokyo, Eugene Lee wrote: On Thu, Oct 30, 2003 at 10:36:37AM +0100, Marek Kilimajer wrote: : : Unless you want to do string manipulation you don't need mbstring. You : only need to pay atention to these details: : 1. Set charset to kanji for your html pages using : hea

RE: [PHP] PHP & Apache 2

2003-10-30 Thread Filip de Waard
On Thu, 2003-10-30 at 14:53, Fernando Melo wrote: > And when will it be considered stable? It's been a while since Apache 2 was > released. PHP needs to speed up for its own good. Maybe soon, maybe never. This question is covered in a lot of FAQ's on the web. Please search google if you are inte

RE: [PHP] Reading and using GIF files

2003-10-30 Thread BENARD Jean-philippe
>>> Fatal error: Call to undefined function: imagecreatefromgif() in ... New GD version doen't include "imagecreatefromgif" api because of gif patent ... Cordialement, Jean-Philippe BENARD Consultant STERIA Infogérance ([EMAIL PROTECTED]) -Message d'origine- De : Marek Kilimajer [mailto:

[PHP] Files question

2003-10-30 Thread Bas
How can i read all files line by line? I am running windows. I know that there is then a \r\n but i don't know how to extract them... Can you help me? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Files question

2003-10-30 Thread Jay Blanchard
[snip] How can i read all files line by line? I am running windows. I know that there is then a \r\n but i don't know how to extract them... Can you help me? [/snip] start with http://www.php.net/fopen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

RE: [PHP] Performance of dynamically generated select boxes

2003-10-30 Thread Luis Lebron
--- Luis Lebron <[EMAIL PROTECTED]> wrote: I am rebuilding a php application to handle a higher load. The previous programmer had created a series of dynamically generated select boxes using a mysql table. Would it be faster or less resource intensive to create a series of arrays to generate the

Re: [PHP] Japanese entry into MySQL and into emails

2003-10-30 Thread - Edwin -
Hi, On 2003.10.30, at 18:11 Asia/Tokyo, Dave G wrote: PHP Gurus, Hello, I'm new to this list. I'm very much new to PHP, so my questions will be very basic. I have two things I need to do in Japanese: 1. Store people's names in kanji in my MySQL database. To this en

Re: [PHP] Files question

2003-10-30 Thread Bas
Now sorry... I already know to use fopen... I want a script that parses all lines from a file... Just like a loop that with every time it is executed, it echos a line from the file... (this is just a example... else i was using file_get_contents and nl2br...) "Jay Blanchard" <[EMAIL PROTECTED]> wro

RE: [PHP] Files question

2003-10-30 Thread Jay Blanchard
[snip] Now sorry... I already know to use fopen... I want a script that parses all lines from a file... Just like a loop that with every time it is executed, it echos a line from the file... (this is just a example... else i was using file_get_contents and nl2br...) [/snip] Well, Bas, the fopen an

Re: [PHP] PHP & Apache 2

2003-10-30 Thread Becoming Digital
> PHP needs to speed up for its own good. PHP itself is not the issue. Extensions to PHP are what may cause problems. As Filip said, there are already many discussions about this on the web. Edward Dudlik "Those who say it cannot be done should not interrupt the person doing it." wishy washy

[PHP] Re: Files question

2003-10-30 Thread Manuel Vázquez Acosta
Try file() function "Bas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How can i read all files line by line? I am running windows. I know that > there is then a \r\n but i don't know how to extract them... Can you help > me? -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Files question

2003-10-30 Thread Ray Hunter
> Well, Bas, the fopen and it's associated manual pages describe just how > to do this. Basic example > > $theFile = fopen("myfile.foo", "r"); //open the file for reading > while(!feof($theFile)){ // while the file is not at the end of the file > $theLine = fgets($theFile, 1024); // get a li

[PHP] Set the background color of an image with GD

2003-10-30 Thread Cranky
Hello, I have a stranger behaviour of the function imagecolorallocate. Normally, this function is used to create a color for an image and the first call to this function set the background color of the image. So here is my code : [snip]...[/snip] $im = imagecreate(15, 15); $white = imagecolorall

[PHP] IMAP Extension

2003-10-30 Thread Atul Luthra
Hi, I have just installed APache 2 and PHP 4.3.3 on Linux. and my software that i want to run on it requires both with IMAP Extension. How can i enable IMAP Extension??? ALso would like to know if there is any sample application avl. that can help me check my PHP with mysql.or may be a way by wh

Re: [PHP] Copying an uploaded file...

2003-10-30 Thread René Fournier
Ah, man, I just found my problem, and do I ever feel stupid... Thought I'd share it to highlight the "it's right in front of one's nose" feeling: copy($_FILES['userfile']['tmp_name']... ...was a sample code snippet. I had just copied and pasted it without changing the "userfile" part—and since

Re: [PHP] Copying an uploaded file...

2003-10-30 Thread Curt Zirzow
* Thus wrote René Fournier ([EMAIL PROTECTED]): > Ah, man, I just found my problem, and do I ever feel stupid... Thought > I'd share it to highlight the "it's right in front of one's nose" > feeling: > > copy($_FILES['userfile']['tmp_name']... You should really use: http://php.net/move_upload

[PHP] removing all duplicate values from an array

2003-10-30 Thread Allowee
Hi, I'm looking for a function that does almost the same as array_unique() But it must also delete the other duplicate entry. sample to explain: array( 'a' => 'one', 'b' => 'one', 'c' => 'zero', 'd' => 'two' ); I now want the result to be: array( 'c' => 'zero', 'd' => 'two' ); This way I wil

[PHP] OOP, dynamic class extention

2003-10-30 Thread Jackson Miller
I want to be able to set a base class in a settings file, and then have other classes extend the base class, but PHP won't let me do what I have tried. I get the following error: Fatal error: Class cepweb: Cannot inherit from undefined class my_base_class in /home/me/my_child_class.php on line 1

Re: [PHP] removing all duplicate values from an array

2003-10-30 Thread Mike Migurski
>I'm looking for a function that does almost the same as array_unique() > >But it must also delete the other duplicate entry. Untested pseudo-PHP follows - $encountered_elements = array(); foreach($original_array as $key => $val) if(in_array($val, $encountered_ele

Re: [PHP] Echo issue RESOLVED!

2003-10-30 Thread Ryan A
The devil will always give you lots of reasons to convert you Do not always take the smooth path, the rough path sometimes.. is the right path. :-D Cheers, -Ryan Oh BTW - Macs are EVIL. On Thu, 30 Oct 2003 02:47:47 -0500 Leif K-Brooks <[EMAIL PROTECTED]> wrote: > - Edwin - wrote:

RE: [PHP] removing all duplicate values from an array

2003-10-30 Thread Kevin Stone
Or... you could use array_count_values() and loop through the array it produces to find out how many of each duplicate value exists in the original array. http://www.php.net/manual/en/function.array-count-values.php Kevin -Original Message- From: Allowee [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] OOP, dynamic class extention

2003-10-30 Thread Jough Jeaux
Shouldn't this line: class my_child_class extends MY_BASE_CLASSFILE { Read like this: class my_child_class extends MY_BASE_CLASS { After all "base_class.php" isn't the name of your class, "base_class" is. Jackson Miller <[EMAIL PROTECTED]> wrote: I want to be able to set a base class in a setti

Re: [PHP] OOP, dynamic class extention

2003-10-30 Thread Marek Kilimajer
php is not c, you can't use constants this way. Jackson Miller wrote: I want to be able to set a base class in a settings file, and then have other classes extend the base class, but PHP won't let me do what I have tried. I get the following error: Fatal error: Class cepweb: Cannot inherit from

[PHP] new install php not working. Please help.

2003-10-30 Thread Patrick Fowler
Folks, I did the fillowing install ./configure --prefix=/www --with-mysql --withmssql=/usr/share/freetds --with -apxs=/www/bin/apxs --enable-track-vars --with-config-file-path=/www/conf When I try access the index..php via the web the file it tries to download. I checked all of the config files

Re: [PHP] OOP, dynamic class extention

2003-10-30 Thread Jackson Miller
On Thursday 30 October 2003 12:29 pm, Marek Kilimajer wrote: > php is not c, you can't use constants this way. but why? Is there a work around? -Jackson > > Jackson Miller wrote: > > I want to be able to set a base class in a settings file, and then have > > other classes extend the base class,

Re: [PHP] OOP, dynamic class extention

2003-10-30 Thread Marek Kilimajer
Why? I guess because php is interpreted language and is parsed only once, no preprocessor. Workaround is quite easy, use variable: // settings to be set on install of the app $MY_BASE_CLASS="base_class"; define("MY_BASE_CLASSFILE","base_class.php"); // require the class file require_once(MY_BAS

Re: [PHP] new install php not working. Please help.

2003-10-30 Thread Chris Shiflett
--- Patrick Fowler <[EMAIL PROTECTED]> wrote: > When I try access the index.php via the web the file it tries to > download. Try adding this to your httpd.conf: AddType application/x-httpd-php .php Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook ht

Re: [PHP] removing all duplicate values from an array

2003-10-30 Thread Mike Migurski
>>I'm looking for a function that does almost the same as array_unique() >> >>But it must also delete the other duplicate entry. > > >Untested pseudo-PHP follows - > > $encountered_elements = array(); > foreach($original_array as $key => $val) > if(in_array($val, $encounte

Re: [PHP] OOP, dynamic class extention

2003-10-30 Thread Jackson Miller
On Thursday 30 October 2003 01:27 pm, Marek Kilimajer wrote: > Why? I guess because php is interpreted language and is parsed only > once, no preprocessor. Workaround is quite easy, use variable: I thought that too, and tried it before posting to the list (it was at the bottom of my first email).

[PHP] mime::decode and multipart

2003-10-30 Thread Geoffrey Makstutis
Hi, Can someone explain how to extract the body information from a multipart/mixed part of a mime encoded mail using Pear's mime::decode class? I can get everything else, but when part is defined as multipart/mixed it does not have a body because there are more than one part. I assume that I h

Re: [PHP] Problems with remote include

2003-10-30 Thread Pablo Zorzoli
On Wed, 2003-10-29 at 17:52, Chris Shiflett wrote: > --- Pablo Zorzoli <[EMAIL PROTECTED]> wrote: > > > > > include('http://www.google.com/'); > > > ?> > > > > > > That should basically take Google's HTML and make it your own. > > > The image will obviously not work, but it should otherwise look

[PHP] Oh, for a "sureset()" (orthogonal to isset())

2003-10-30 Thread weston
I'm sure I'm not the first person to find strict checking of whether or not variable (or array index) is set painful. I've considered just setting error_reporting() to some lax level on every script I write for the rest of my life, but have been thinking there might be a better way. What I'd like

Re: [PHP] Problems with remote include

2003-10-30 Thread Chris Shiflett
--- Pablo Zorzoli <[EMAIL PROTECTED]> wrote: > I've tried with the simlpest example: > > --- > output.php > echo "Hello World!"; > ?> > -- > test.php > tesing! > > > include ('http://***.com/output.php'); > ?> > > -- Actually, I think the simplest example was what you tries earlier: htt

Re: [PHP] OOP, dynamic class extention

2003-10-30 Thread Marek Kilimajer
Jackson Miller wrote: On Thursday 30 October 2003 01:27 pm, Marek Kilimajer wrote: Why? I guess because php is interpreted language and is parsed only once, no preprocessor. Workaround is quite easy, use variable: I thought that too, and tried it before posting to the list (it was at the bottom

Re: [PHP] Problems with remote include

2003-10-30 Thread Pablo Zorzoli
On Thu, 2003-10-30 at 17:00, Chris Shiflett wrote: > Maybe it times out? Maybe the server where your PHP script is located > cannot access the server at ***.com? Maybe the output that output.php > generates isn't what you expect? > > Basically, because you can include Google's home page successful

Re: [PHP] OOP, dynamic class extention

2003-10-30 Thread Jackson Miller
On Thursday 30 October 2003 02:15 pm, Marek Kilimajer wrote: > Can you show it once again. In your first email you use a constant, not > variable. Sure. In my first email I said that I had tried with a variable too (but didn't show the code). Ex1 gives a "cannot inherit from undefined class" err

[PHP] stat(), file_exists(), is_file() on Windows2000

2003-10-30 Thread Chris Hubbard
All, Here's a new one from me. Had to move a project from a friendly linux environment to an unfriendly windows environment. The problem: all the code I've tried to test whether a temp (from a form post) is there before doing a filesize() on it is failing. I'm doing a filesize check so absurdly l

Re: [PHP] Problems with remote include

2003-10-30 Thread Chris Shiflett
--- Pablo Zorzoli <[EMAIL PROTECTED]> wrote: > That's it i cannot wget it from the webserver i get > failed: Connection timed out. > > i tried to wgetit from another machine and i get the desired > output. So the server where you're running the PHP script can't connect to the server you specify

Re: [PHP] stat(), file_exists(), is_file() on Windows2000

2003-10-30 Thread CPT John W. Holmes
From: "Chris Hubbard" <[EMAIL PROTECTED]> > The problem: > all the code I've tried to test whether a temp (from a form post) is there > before doing a filesize() on it is failing. > I'm doing a filesize check so absurdly large files aren't copied from the > temp folder to a permanent folder. > (and

RE: [PHP] stat(), file_exists(), is_file() on Windows2000

2003-10-30 Thread Chris Hubbard
John, thanks for the quick response. If it had been a snake it would have bit me. Thanks. I was trying to do it the hard way. Chris -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2003 1:20 PM To: Chris Hubbard; [EMAIL PROTECTED] Php. Ne

[PHP] Object References Problem

2003-10-30 Thread Gareth Williams
Hi there, I'm having trouble with passing objects as references. What I want to do is something like this: class object_1 { var $my_chld; var $my_array; function object_1() { $this->my_array = array('id' => 0, 'name'=>''); $this->my_chil

Re: [PHP] removing all duplicate values from an array

2003-10-30 Thread Allowee
On Thursday 30 October 2003 20:37, Mike Migurski wrote: > >>I'm looking for a function that does almost the same as array_unique() > >> > >>But it must also delete the other duplicate entry. > > > > > > > >Untested pseudo-PHP follows - > > > > $encountered_elements = array(); > > foreach($o

RE: [PHP] removing all duplicate values from an array

2003-10-30 Thread Jeremy Russell
> -Original Message- > From: Mike Migurski [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 30, 2003 1:37 PM > To: Allowee > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] removing all duplicate values from an array > > >>I'm looking for a function that does almost the same as array_uniqu

RE: [PHP] removing all duplicate values from an array

2003-10-30 Thread Mike Migurski
>array( >'a' => 'one', >'b' => 'one', >'c' => 'zero', >'d' => 'two' >); > >through this and am having a hind time with then logic... Could you >explain how the output would be array('c' => 'zero', 'd' => 'two')?? I was being pretty sloppy with the code (should've posted pseudocode to begin with,

[PHP] Connection AS400-Windows & PHP

2003-10-30 Thread mohamad taghlobi
I would like to establish a connection between AS400 - Windows NT and PHP, to make requetes on data base AS400, from forms PHP. I do not know how to make, could you help me? - Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Testez le nouveau Ya

[PHP] Tips on books and tutorials

2003-10-30 Thread Tore E. Mackay
Hi! I have just started to look at the exciting world og PHP and MySQL. Anyone that can inform me of good books to buy or free tutorials on the net that can guide me through building a good dynamic website. Thanx!!! TEM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Echo issue RESOLVED!

2003-10-30 Thread Chris W. Parker
- Edwin - on Wednesday, October 29, 2003 11:26 PM said: [snip lots of nice things about mac osx] > Yes, I can do those and more on my Mac. And it doesn't even > crash on me even if I do many things at the same time. I > could run it for months! Yeah but... it's a M

Re: [PHP] Tips on books and tutorials

2003-10-30 Thread Filip de Waard
Hi, There are many great websites, for instance: http://www.phpdeveloper.org http://www.phpbuilder.com http://www.devshed.com http://www.phpnoise.com/ One of the most vital elements in the life of a PHP programmer is the manual (http://www.php.net/manual), that answers all the questions you will

RE: [PHP] Echo issue RESOLVED!

2003-10-30 Thread Filip de Waard
Chris, I seriously disagree with you, in my not so humble opinion OS X is really great. I currently only have Linux installed, but i've just ordered a PowerBook... However, I don't see the point in discussing this topic any longer. You won't change your opinion and Apple afficionados won't chang

Re: [PHP] Object References Problem

2003-10-30 Thread Boyan Nedkov
Since i see from your code, you are trying to create an object which maintains a list (collection) of instances of another object. Is that correct? Or you are trying to inherit a class from a parent class? Then it's a little bit different story. If this is the case, just tell me and I'll provi

Re: [PHP] Echo issue RESOLVED!

2003-10-30 Thread Chris Garaffa
Sorry to continue this, but I just have to know... On Oct 30, 2003, at 6:32 PM, Chris W. Parker wrote: But seriously folks... The reason I don't like Macs is not because they don't perform well but it's because they have a retarded UI. It looks like crap and it works like crap. They do some of the

Re: [PHP] Tips on books and tutorials

2003-10-30 Thread Rolf Brusletto
Tore E. Mackay wrote: Hi! I have just started to look at the exciting world og PHP and MySQL. Anyone that can inform me of good books to buy or free tutorials on the net that can guide me through building a good dynamic website. Thanx!!! TEM Tore - I have a few good beginner tutorials up o

Re: [PHP] Tips on books and tutorials

2003-10-30 Thread Larry E . Ullman
Anyone that can inform me of good books to buy or free tutorials on the net that can guide me through building a good dynamic website. People seem to think my books are pretty good (http://www.amazon.com/exec/obidos/ASIN/0321186486/dmcinsiinc-20/002 -8800445-6161652). PHP and MySQL Web Develop

Re: [PHP] Echo issue RESOLVED!

2003-10-30 Thread Larry E . Ullman
However, I don't see the point in discussing this topic any longer. You won't change your opinion and Apple afficionados won't change their opinion either. I would like to suggest that you try Linux, BSD or OS X before you speak. On the bright side, Linux, Windows, and Mac OS X all run PHP. And thi

Re: [PHP] Tips on books and tutorials

2003-10-30 Thread Filip de Waard
Hi, On Fri, 2003-10-31 at 00:48, Tore E. Mackay wrote: > Thanx for your quick reply. No problem :) > I have had a look at some of the web sites you are refering to and they are > great, but I feel that they have info for the beginners and the advanced. I > need the one in between. I guess that

Re: [PHP] Tips on books and tutorials

2003-10-30 Thread Marco Tabini
Filip de Waard wrote: Hi, There are many great websites, for instance: http://www.phpdeveloper.org http://www.phpbuilder.com http://www.devshed.com http://www.phpnoise.com/ Shameless self-promotional plug of the day: And also don't forget php|architect (http://www.phparch.com), a magazine dedic

[PHP] PHP4.3.3 problem with "configure"

2003-10-30 Thread antonio scotti
Hi all, since I felt that my previous message got buried beneath this avalanche of postings, I propose it again hoping someone can give me a clue. I am istalling php4.3.3 on a linux suse8.1 distribution withand when I run configure, the script stops right before the end with a message saying it

Re: [PHP] OOP, dynamic class extention

2003-10-30 Thread Boyan Nedkov
Hey guys, you can extend a _class_ from an existing _class_ but not from a _string_constant_ (Ex1 - MY_BASE_CLASS is evaluated to constant of type string) neither from a _string_variable_ (Ex2 - $my_base_class_var is a variable of type string). To be able to use different base classes with the

Re: [PHP] Object References Problem

2003-10-30 Thread Michael Sims
On Thu, 30 Oct 2003 22:54:49 +0100, you wrote: >Hi there, > >I'm having trouble with passing objects as references. What I want to >do is something like this: [snip code] >The above code give the output: > >instance: >parent: test > >where I want it to give: > >instance: test >parent: test I do

Re: [PHP] Object References Problem

2003-10-30 Thread Mike Migurski
>I don't pretend to fully understand PHP references, or the strange and >mysterious ways that they work in regards to PHP objects, but I can tell >you how to acheive the results you desire. Someone else will have to >explain it. :) >If someone sees that I'm leading Gareth astray here, feel free

[PHP] Re: Oh, for a "sureset()" (orthogonal to isset())

2003-10-30 Thread Al
> function sureset($var) { > > if(!isset($var) || empty($var)) > return ''; > else > return $var; > } > > Of course, when you've got strict checking on, the above doesn't > work, because if the variable is unset you get caught on the fact > before the function call happens. One change will make yo

[PHP] Re: PPTs and thumbnails

2003-10-30 Thread Al
"Vijaya_manda" <[EMAIL PROTECTED]> wrote: > Is it possible to retrieve the first slide from a presentation and display > it as a thumbnail on my site. Users will upload ppt's which should be > displayed in form of thumbnails on my site. On clicking a particular > thumbnail the presentation (.ppt or

[PHP] Re: PPTs and thumbnails

2003-10-30 Thread Al
> In short: not with PHP. You're going to need a program that can read and > render PHP files, and save them as a static image (i.e. gif, jpg, etc). > Al Apologies, the 2nd sentence should read "You're going to need a program that can read and render PPT files ..." Arrrgh, I hate tpyos! :) Al -

[PHP] Passing constructor values to functions in a class

2003-10-30 Thread Terence
Dear List, I've been struggling with this for some time now and can't for the life of me figure out why the output is "GeorgeGeorge" and not "GeorgeBush" $staff_name="George"; $this->$staff_surname="Bush"; } function StaffName() { echo $this->$staff_name; } function StaffSurname() { ech

Re: [PHP] Passing constructor values to functions in a class

2003-10-30 Thread David Otton
On Fri, 31 Oct 2003 11:38:47 +0800, you wrote: >I've been struggling with this for some time now and can't for the life of >me figure out why the output is "GeorgeGeorge" and not "GeorgeBush" > $this->$staff_name="George"; Try this instead > $this->staff_name="George"; (superfluous $). Same

Re: [PHP] Passing constructor values to functions in a class

2003-10-30 Thread Curt Zirzow
* Thus wrote Terence ([EMAIL PROTECTED]): > Dear List, > > I've been struggling with this for some time now and can't for the life of > me figure out why the output is "GeorgeGeorge" and not "GeorgeBush" > > class StaffDetails { > > var $staff_name; > var $staff_surname; > > function StaffD