Re: [PHP] php email functionality

2004-04-02 Thread Burhan Khalid
Shawn Beard wrote: I just upgraded to PHP 4.3.5 and now my email functionality does not work. I do have the SMTP setting in the php.ini set up and did restart Apache. We are running a Windows 2000 server and Apache 2.0.49. Any ideas? A few ideas/suggestions : Does your smtp server require authe

Re: [PHP] Configuration Variable user_agent

2004-04-02 Thread Burhan Khalid
Bernhard Kraft wrote: Hallo ! I run PHP 4.1.2. I want to set the user_agent which gets sent along when fetching file via the fopen(...) call. Normally this is "PHP/VERISON" in my case "PHP/4.1.2" I want to set a different user_agent. I *believe* you can set this via header(), but its still early

[PHP] Re: Relative Url

2004-04-02 Thread K.Bogac Bokeer
I'm using this on Apache. You need to include 'inc/globals.php' in your script. inc/globals.php define('RELPATH', GetRelativePath()); ?> inc/functions.php function GetRelativePath() { $RELPATH = str_replace(UpDirectory(__FILE__), '', dir_name($_SERVER['SCRIPT_NAME])); $REL

Re: [PHP] Apache version... 1.3.29 vs 2.0.

2004-04-02 Thread Jason Wong
On Saturday 03 April 2004 01:28, Chris Shiflett wrote: > --- Frano ILICIC <[EMAIL PROTECTED]> wrote: > > I just wonder what is the best apache version to run PHP 4.35? > > Just wondering if there is an obvious choice? > > Maybe not obvious, but I think the best choice is the latest Apache 1.3.x. B

Re: [PHP] I can't view files uploaded with PHP

2004-04-02 Thread Jason Wong
On Saturday 03 April 2004 03:04, Linux Zero wrote: > I write some PHP scripts for a system's module that allows the user to > upload a file from his computer to the host. It works fine in a server with > Linux Apache MySQL PHP (LAMP) environment. I based on the examples of > this page: > > h

Re: [PHP] php email functionality

2004-04-02 Thread Jason Wong
On Saturday 03 April 2004 00:59, Shawn Beard wrote: > I just tried downgrading to version 4.3.4 and it still does not work. And presumably it had worked before you did the upgrade? The tone of your original post suggested that the upgrade broke the mail functionality? Again: > Are you positive

Re: [PHP] Problem sending with mail()

2004-04-02 Thread Jason Wong
On Saturday 03 April 2004 03:35, Matt MacLeod wrote: > I'm stumped. I have a script to send a simple email using the mail() > function in PHP. > > For some reason I can only receive the email if I send it to my hotmail > account. If I send to my regular email ([EMAIL PROTECTED]) I can't get > it.

Re: [PHP] Global $_FILEs

2004-04-02 Thread Jason Wong
On Saturday 03 April 2004 05:50, Bruno Santos wrote: > i've tried to pass the global array $_FILES to a function $_FILES is a superglobal and hence available everywhere (including the inside of functions) without any work on your part. > but still no sucess... Please elaborate. > can someone

Re: [PHP] Re: $this variable reference question

2004-04-02 Thread Adam Reiswig
Jason, thanks. Yes, I understand your example here very well. My question actually had more to do with understanding what value was added to the class by "$myref = &$this;". Perhaps it is some misunderstanding I have of classes but, since a class is just a pattern and not an actual, usable o

Re: [PHP] Re: Session hell: register_globals off

2004-04-02 Thread Jason Barnett
Randall Perry wrote: on 4/2/04 8:24 PM, Jason Barnett at [EMAIL PROTECTED] wrote: Are you passing the session id between the pages? E.g. are you setting session cookies, or passing the session id as part of the url? Doesn't php default to using cookies? I'm not doing anything other than using

[PHP] Re: How to retrieve dir file list from an internet server folder?

2004-04-02 Thread Aidan Lister
Yes, you'll need to parse the output of the page. "Dave" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is it possible to retrieve dir file list from an internet server folder from > within a php program? > > In the browser, the http:// page displays "Index of" and a list of files.

Re: [PHP] opening cash register drawer

2004-04-02 Thread Robert Cummings
On Fri, 2004-04-02 at 20:40, Raditha Dissanayake wrote: > Leonard B Burton wrote: > > >Greetings, > > > >I am working on a Point of Sale Program for PHP. I need to find out how to open a > >cash register drawer. Could anyone give me any info? Do I need to do this with a > >javascript section?

Re: [PHP] opening cash register drawer

2004-04-02 Thread John Holmes
Leonard B Burton wrote: I am working on a Point of Sale Program for PHP. I need to find out how to open a cash register drawer. Could anyone give me any info? Do I need to do this with a javascript section? Uhmm... I to am interested in PHP scripts that open cash register drawers. Yeah... can

Re: [PHP] Re: Session hell: register_globals off

2004-04-02 Thread Randall Perry
on 4/2/04 8:24 PM, Jason Barnett at [EMAIL PROTECTED] wrote: > > Are you passing the session id between the pages? E.g. are you setting > session cookies, or passing the session id as part of the url? Doesn't php default to using cookies? I'm not doing anything other than using the code I showed

Re: [PHP] opening cash register drawer

2004-04-02 Thread Raditha Dissanayake
Leonard B Burton wrote: Greetings, I am working on a Point of Sale Program for PHP. I need to find out how to open a cash register drawer. Could anyone give me any info? Do I need to do this with a javascript section? You will be hard pressed to do anything like this with php. the reason i

[PHP] Re: opening cash register drawer

2004-04-02 Thread Jason Barnett
You probably need to check out OPOS, but I haven't looked at it in a while and can't really tell you what to do. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Why does session ID sometimes show appeneded to url and sometimes not?

2004-04-02 Thread Jason Barnett
Boot wrote: Thanks to those who helped with my last post on session vars. My question now is why does my server seem to randomly choose whether or not to show the session ID appended to the browser URL? Sometimes it is there, sometimes not. All pages session_start();. Thanks! Check your browser's

[PHP] Re: Session hell: register_globals off

2004-04-02 Thread Jason Barnett
page 1 __ // include class definition file include_once "order_classes.php"; // start session session_start(); // create instance of class Order $order = New Order(); // assign class instance to $SESSION[] $_SESSION['order'] = $order; page 2 __ // include class definition file include_once

[PHP] Re: $this variable reference question

2004-04-02 Thread Jason Barnett
My question is actually regarding the line "$myref = &$this;". The author states that this is a reference to the class/object itself. Isn't this like saying outside the class "$myref =& new test;"? What would be the point of referring to itself inside the class in this manner? Thanks for you

[PHP] Re: $this variable reference question

2004-04-02 Thread Jason Barnett
It's not the same thing. When an variable references an object then you can change either the original object or the new variable and you will be changing the *same* object, not a new one. Maybe this example helps? class test { function test($val) { global $myref;

Re: [PHP] Directories function opendir() - how to open an URL

2004-04-02 Thread Curt Zirzow
* Thus wrote Dave ([EMAIL PROTECTED]): > > Is http:// URL wrapper support included in PHP 4.3.4 ? > or is this included in PHP 5.0.0? I wouldn't expect the http wrapper to ever support opendir functionality. Its virtually impossilble to read directoy listings from a web server. > > "Curt Zirzo

[PHP] opening cash register drawer

2004-04-02 Thread Leonard B Burton
Greetings, I am working on a Point of Sale Program for PHP. I need to find out how to open a cash register drawer. Could anyone give me any info? Do I need to do this with a javascript section? Thanks, Leonard Burton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Directories function opendir() - how to open an URL

2004-04-02 Thread Dave
Is http:// URL wrapper support included in PHP 4.3.4 ? or is this included in PHP 5.0.0? "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Dave ([EMAIL PROTECTED]): > > The Directories function opendir(string path) > > As of PHP 4.3.0 path can also be any UR

[PHP] Re: problem about php

2004-04-02 Thread Jason Barnett
the browser always shows like this: Fatal error: Call to undefined function: domxml_open_mem() in c:\apache\htdocs\svg_dom_xml_php_bsp.php on line 76. What is wrong here? In php 4 the dom xml extension is NOT loaded by default. So you can't just call these functions until you load the extensi

Re: [PHP] Directories function opendir() - how to open an URL

2004-04-02 Thread Curt Zirzow
* Thus wrote Dave ([EMAIL PROTECTED]): > The Directories function opendir(string path) > As of PHP 4.3.0 path can also be any URL which supports directory listing , however only the file:// URL wrapper supports this in PHP 4.3. As of PHP 5.0.0, support for the ftp:// URL wrapper is included as wel

[PHP] Directories function opendir() - how to open an URL

2004-04-02 Thread Dave
The Directories function opendir(string path) As of PHP 4.3.0 path can also be any URL which supports directory listing This returns false eventhough the URL supports directory listing? opendir (http://www.fu.bar/images/); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] $this variable reference question

2004-04-02 Thread Adam Reiswig
I was trying to bend my mind around the concept of the reference operator (&) today and came across an article at http://www.onlamp.com/pub/a/php/2002/09/12/php_foundations.html where the author gave the following example: value = $val; } function printval() { echo "

Re: [PHP] Strange Numeric Conversion...

2004-04-02 Thread John Holmes
Monty wrote: Thanks Red, but, still the same problem: $id = 11; $id2 = preg_replace("/^0+(.*)$/","\\1",$id); echo $id2; // Displays 9 echo $id; // Displays 9 as well. If the number begins with a zero, there seems to be no way to tell PHP this is an integer, not an o

Re: [PHP] Strange Numeric Conversion...

2004-04-02 Thread John Holmes
Red Wingate wrote: ever tryed telling PHP to display the variable as an integer? echo (integer) $id ; Ever "tryed" realizing 0x09, 011, and 9 are all integers (just different bases)? ;) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] Strange Numeric Conversion...

2004-04-02 Thread Curt Zirzow
* Thus wrote Monty ([EMAIL PROTECTED]): > I tried removing the zeros, but, I get the same result: > > $id = 11; > $id = ltrim($id, '0'); > echo $id; // Displays: 9 instead of 11 ??? > > This didn't work either: > > $id = 11; > settype($id, 'string');

Re: [PHP] Strange Numeric Conversion...

2004-04-02 Thread Curt Zirzow
* Thus wrote Daniel Clark ([EMAIL PROTECTED]): > Found this: > > $a = 1234; # decimal number > $a = -123; # a negative number > $a = 0123; # octal number (equivalent to 83 decimal) > $a = 0x1A; # hexadecimal number (equivalent to 26 decimal) $a is integer in all these cases, the only difference i

Re: [PHP] Strange Numeric Conversion...

2004-04-02 Thread Daniel Clark
Found this: $a = 1234; # decimal number $a = -123; # a negative number $a = 0123; # octal number (equivalent to 83 decimal) $a = 0x1A; # hexadecimal number (equivalent to 26 decimal) http://www.phpbuilder.com/manual/language.types.integer.php#language.types.integer.casting > hm > > ever try

Re: [PHP] Strange Numeric Conversion...

2004-04-02 Thread Red Wingate
hm ever tryed telling PHP to display the variable as an integer? echo (integer) $id ; -- red Daniel Clark wrote: Doesn't putting and x11 tell PHP it's a decimal format? $id = 11; $id2 = preg_replace("/^0+(.*)$/","\\1",$id); echo $id2; // Displays 9 echo $id;

Re: [PHP] Strange Numeric Conversion...

2004-04-02 Thread Daniel Clark
Doesn't putting and x11 tell PHP it's a decimal format? > $id = 11; > $id2 = preg_replace("/^0+(.*)$/","\\1",$id); > > echo $id2; // Displays 9 > echo $id; // Displays 9 as well. > > If the number begins with a zero, there seems to be no way to tell PHP > this >

Re: [PHP] Strange Numeric Conversion...

2004-04-02 Thread Monty
Thanks Red, but, still the same problem: $id = 11; $id2 = preg_replace("/^0+(.*)$/","\\1",$id); echo $id2; // Displays 9 echo $id; // Displays 9 as well. If the number begins with a zero, there seems to be no way to tell PHP this is an integer, not an octal. The co

[PHP] Session hell: register_globals off

2004-04-02 Thread Randall Perry
Had a previous thread on this issue. Started working on it again and am running into new bugs, so thought I'd start a new thread. Read thoroughly through session examples in docs and here's how I tried to pass an object from one page to another: page 1 __ // include class definition file in

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Fidencio Monroy
This way works fine!! Thank you very much. -Original Message- From: Matt Matijevich [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 2:10 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Image output (Newb question) you should have script, call it image.php or s

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Matt Matijevich
you should have script, call it image.php or something like that, the only thing that should be in that script is this: no html tags in there, no whitespace. to see the image you could call the page like this http://www.yourdomain.whatever/image.php . you could call it in a iumage tag like this

Re: [PHP] Strange Numeric Conversion...

2004-04-02 Thread Red Wingate
sry... it's \\1 instead of //1 ... guess i had one to many beers :) Red Wingate wrote: trim will not work, try something like: $id = preg_replace("/^0+(.*)$/","//1",$id); instead Monty wrote: I tried removing the zeros, but, I get the same result: $id = 11; $id = ltrim($id, '0');

Re: [PHP] Strange Numeric Conversion...

2004-04-02 Thread Red Wingate
trim will not work, try something like: $id = preg_replace("/^0+(.*)$/","//1",$id); instead Monty wrote: I tried removing the zeros, but, I get the same result: $id = 11; $id = ltrim($id, '0'); echo $id; // Displays: 9 instead of 11 ??? This didn't work either

Re: [PHP] Global $_FILEs

2004-04-02 Thread Red Wingate
give us some more info how do you 'pass' the array to your function, remeber $_FILES is a super-global array in is available in the functions scoope as well. -- red Bruno Santos wrote: Hello all. I'm developing a script that requires the user to upload 2 files. i want to put all the lin

Re: [PHP] Image output (Newb question)

2004-04-02 Thread Red Wingate
use the output-buffer functions ( ob_start() ... etc.. ) but if you want to display an image you need to only display a image by your image or save it to a file and view it using the html tag. Fidencio Monroy wrote: Np, but I do not understand: Do should I remove all the html tags before the sc

Re: [PHP] Strange Numeric Conversion...

2004-04-02 Thread Monty
I tried removing the zeros, but, I get the same result: $id = 11; $id = ltrim($id, '0'); echo $id; // Displays: 9 instead of 11 ??? This didn't work either: $id = 11; settype($id, 'string'); $id = ltrim($id, '0'); echo $id;

[PHP] Global $_FILEs

2004-04-02 Thread Bruno Santos
Hello all. I'm developing a script that requires the user to upload 2 files. i want to put all the lines that takes care of the uploading of the file in a function. i've tried to pass the global array $_FILES to a function, but still no sucess... can someone help me ?? regards Bruno -- ---

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Fidencio Monroy
Np, but I do not understand: Do should I remove all the html tags before the script? (I used your format in last script with the same result) Thanks -Original Message- From: Matt Matijevich [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 1:35 PM To: Matt Matijevich; [EMAIL PROTE

Re: [PHP] Strange Numeric Conversion...

2004-04-02 Thread Daniel Clark
Wow, thanks John ! > Number values starting with a leading zero are assumed to be octal values. > > Octal 11 = Decimal 9 > > ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Strange Numeric Conversion...

2004-04-02 Thread Jay Blanchard
[snip] "naked" [/snip] Dang John, I guess I don't think octally any more! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Strange Numeric Conversion...

2004-04-02 Thread Jay Blanchard
[snip] Why is this happening??? $id = 11; echo $id; // Displays: 9 $id = 11; echo $id; // Displays: 11 How do I make the first number (00011) display as 11? Why is it showing 9? [/snip] First of all you have "naked" numbers. The first one, 11, looks like a bi

Re: [PHP] Strange Numeric Conversion...

2004-04-02 Thread John W. Holmes
From: "Monty" <[EMAIL PROTECTED]> > $id = 11; > echo $id; // Displays: 9 > > $id = 11; > echo $id; // Displays: 11 > > How do I make the first number (00011) display as 11? Why is it showing 9? Number values starting with a leading zero are assumed to be octal valu

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Matt Matijevich
Sorry for responding to myself but I also need to ad that you should not echo or print anything out in your php code before your header function or the text/html header will be sent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Matt Matijevich
change your script to just this: Don't have any white space before http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Why does session ID sometimes show appeneded to url and sometimes not?

2004-04-02 Thread BOOT
Thanks to those who helped with my last post on session vars. My question now is why does my server seem to randomly choose whether or not to show the session ID appended to the browser URL? Sometimes it is there, sometimes not. All pages session_start();. Thanks! -- PHP General Mailing List (h

[PHP] Strange Numeric Conversion...

2004-04-02 Thread Monty
Why is this happening??? $id = 11; echo $id; // Displays: 9 $id = 11; echo $id; // Displays: 11 How do I make the first number (00011) display as 11? Why is it showing 9? Thanks. Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] control panel--graphic question

2004-04-02 Thread Don Read
On 02-Apr-2004 Leonard B Burton wrote: > Greetings, > > This is more of a graphic question > > For a program I am writting I need to have a control panel to display > anything that may be wrong. I would like to use something like a > stoplight so that it would be easily understood by a lay pers

RE: [PHP] Displaying a money datatype from mssql - Solution

2004-04-02 Thread Frank M. Kromann
This is a bug in php 4.3.5 and it's fixed in the upcomming 4.3.6 release. - Frank > Recap: > In the query I had; > SELECT totalamount > > And it was returning; > Total Amount > 5.41108926696E-309 > > I tried to modify the query to; > SELECT cast(totalamount as decimal(10,2)) as totalamount > >

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Fidencio Monroy
This is the entire html doc http://www.w3.org/TR/html4/loose.dtd";> Untitled Document -Original Message- From: Matt Matijevic

[PHP] Re: php email functionality

2004-04-02 Thread Shawn Beard
I figured it out. I needed the send_mail_from in the php.ini set up with a valid email. This is a requirement on a windows server. Shawn Beard Web Administrator Iowa Foundation for Medical Care Information Systems [EMAIL PROTECTED] Office: 515-440-8581 Pager: 515-208-5907 >>> Manuel Lemos <[E

[PHP] Re: php email functionality

2004-04-02 Thread Manuel Lemos
Hello, On 04/02/2004 12:10 PM, Shawn Beard wrote: I just upgraded to PHP 4.3.5 and now my email functionality does not work. I do have the SMTP setting in the php.ini set up and did restart Apache. We are running a Windows 2000 server and Apache 2.0.49. Any ideas? It can be a problem with many

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Matt Matijevich
could you post all of your script? Is there any white space before your http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem sending with mail()

2004-04-02 Thread Manuel Lemos
Hello, On 04/02/2004 04:35 PM, Matt Macleod wrote: I'm stumped. I have a script to send a simple email using the mail() function in PHP. For some reason I can only receive the email if I send it to my hotmail account. If I send to my regular email ([EMAIL PROTECTED]) I can't get it. I've also

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Fidencio Monroy
Ok, this warning is generated and the same output Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache\htdocs\map.php:9) Thanks. -Original Message- From: Dave Avent [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2

Re: [PHP] Zend Optimizer 2.5.1 + PHP5 RC1 + WinXP + Apache 2 nothappy together?

2004-04-02 Thread Elisamuel Resto
Strange, it was working on a beta version... I guess I'll just wait for a bit and see what's up... "William Lovaton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I don't think Zend Optimizer can work with PHP 5 by the moment. > > > El vie, 02-04-2004 a las 01:28, Elisamuel Resto

[PHP] problem about php

2004-04-02 Thread Lu Wang
Dear Sir/Madam, These days I am studying php, however, there are always problems of configuration with php under windows 98. Could you tell me how to configurate it in detail. In perticurly,when I deal with some codes about domxml function, the browser always shows like this: Fatal error:

Re: [PHP] code design? modular?

2004-04-02 Thread Red Wingate
hmmm was wrong there ... it's http://php.net/manual/en/functions.php Red Wingate wrote: http://php.net/function :-) Andy B wrote: is it ok practice to put code like the code to put results from an mysql query into a combo box into an include file and then just include it wherever its needed

Re: [PHP] code design? modular?

2004-04-02 Thread Red Wingate
http://php.net/function :-) Andy B wrote: is it ok practice to put code like the code to put results from an mysql query into a combo box into an include file and then just include it wherever its needed? the code i can see would have to be used at least 5 times in the same page -- PHP Gene

RE: [PHP] Passing variables from Flash to PHP

2004-04-02 Thread motorpsychkill
O'Reilly's "Flash Remoting" discusses php examples fairly well although not all the source files are available on their website like they claim. www.flash-remoting.com > -Original Message- > From: Miles Thompson [mailto:[EMAIL PROTECTED] > Sent: Friday, April 02, 2004 11:14 AM > To: [EM

RE: [PHP] Displaying a money datatype from mssql - Solution

2004-04-02 Thread Alex Hogan
Recap: In the query I had; SELECT totalamount And it was returning; Total Amount 5.41108926696E-309 I tried to modify the query to; SELECT cast(totalamount as decimal(10,2)) as totalamount And php gave me an error; Undefined Index at line (x); When I tried to use 'number_format($totalamount,2)'

[PHP] code design? modular?

2004-04-02 Thread Andy B
is it ok practice to put code like the code to put results from an mysql query into a combo box into an include file and then just include it wherever its needed? the code i can see would have to be used at least 5 times in the same page

[PHP] Problem sending with mail()

2004-04-02 Thread Matt MacLeod
Hi, I'm stumped. I have a script to send a simple email using the mail() function in PHP. For some reason I can only receive the email if I send it to my hotmail account. If I send to my regular email ([EMAIL PROTECTED]) I can't get it. I've also tried sending to other non-hotmail addresses wi

RE: [PHP] php + mysql + japanese???

2004-04-02 Thread Jay Blanchard
[snip] hi! i have developed a web site in php using mysql 3.x and have to implement it in japanese, it seems that i have to use unicode/UTF-8, but i am having problems with mysql... anyone could help or anyone knows of any resource that helps in doing this? [/snip] If you are having problems with

Re: [PHP] Zend Optimizer 2.5.1 + PHP5 RC1 + WinXP + Apache 2 not happy together?

2004-04-02 Thread William Lovaton
I don't think Zend Optimizer can work with PHP 5 by the moment. El vie, 02-04-2004 a las 01:28, Elisamuel Resto escribió: > I've installed Apache and PHP5 RC1 fine, added my needed modules fine, then > I installed Zend Optimizer 2.5.1 and it doesn't load? phpinfo() doesn't show > it as loaded. ph

[PHP] [solved] assigning array to $_SESSION

2004-04-02 Thread Andy B
figured out how to do the $_SESSION multi dim arry thing...

Re: [PHP] Passing variables from Flash to PHP

2004-04-02 Thread Miles Thompson
At 10:44 AM 4/2/2004 -0800, [EMAIL PROTECTED] wrote: On Thu, 1 Apr 2004, Edward Tilley wrote: > Hi - I am an IIS, PHP 4.3 new user running on Win2k server. I need to > pass a variable ( $flash = 1 ) back out to my PHP script and can't find > any examples of this working after 2 days of looking. I

[PHP] I can't view files uploaded with PHP

2004-04-02 Thread Linux Zero
Hi everybody! I write some PHP scripts for a system's module that allows the user to upload a file from his computer to the host. It works fine in a server with Linux Apache MySQL PHP (LAMP) environment. I based on the examples of this page: http://www.php.net/manual/en/features.file-uplo

[PHP] php + mysql + japanese???

2004-04-02 Thread Luis Mirabal
hi! i have developed a web site in php using mysql 3.x and have to implement it in japanese, it seems that i have to use unicode/UTF-8, but i am having problems with mysql... anyone could help or anyone knows of any resource that helps in doing this? thanx in advance, luis -- PHP General Mailin

Re: [PHP] Passing variables from Flash to PHP

2004-04-02 Thread drisner
On Thu, 1 Apr 2004, Edward Tilley wrote: > Hi - I am an IIS, PHP 4.3 new user running on Win2k server. I need to > pass a variable ( $flash = 1 ) back out to my PHP script and can't find > any examples of this working after 2 days of looking. I can't get a > urldecode to work and I don't want a WD

[PHP] Re: PHP charset encoding

2004-04-02 Thread Ammar Ibrahim
Hello Nabil, Good to see you here :) I hope you solved the problem. anyway, i would like to make a comment about something: The Charset is defined in many places, If you are using HTML in the Tag Apache, PHP, Header(). you can use all these methods to specify the charset, what i suggest to use,

[PHP] Re: asigning an array of variables to $_SESSION

2004-04-02 Thread Justin Patrin
Andy B wrote: "$_SESSION['guesbook'] = $arr;" is it safe to say that i can do this: while($_SESSION['guestbook']=mysql_fetch_array($query)) to get the same thing as $_SESSION[guestbook]=$R?? No, that will se $_SESSION['guestbook'] to one thing after another, not an array. I would suggest: while

Re: [PHP] Flash MX

2004-04-02 Thread drisner
On Thu, 1 Apr 2004, Nadim Attari wrote: > I have to send data to flash. Should i use the "urlencode()" or the > "rawurlencode()" function to encode the data? If you are going to be doing this a lot, you should take a look at AMFPHP, Flash Remoting for PHP, at http://sourceforge.net/projects/amfph

[PHP] Re: asigning an array of variables to $_SESSION

2004-04-02 Thread Andy B
"$_SESSION['guesbook'] = $arr;" is it safe to say that i can do this: while($_SESSION['guestbook']=mysql_fetch_array($query)) to get the same thing as $_SESSION[guestbook]=$R?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP as module, also as suexec, in Apache?

2004-04-02 Thread James Butler
Running PHP Version 4.2.2 I would also like to run PHP both as an Apache module and in CGI mode. My Red Hat 9 installation includes a nice Apache with PHP compiled in. I would like to run the "ARSC" PHP/MySQL chat application (from sourceforge.net) on this server. I could run it as-is, however t

Re: [PHP] Re: XSLT bug?

2004-04-02 Thread Leung WC
No. '<' is always for the opening tag. So you have to enter the entity < whenever you mean '<' in XML data. Vincent Jansen wrote: That works, but shouldn't this behave the way I thought it should -Original Message- From: Juan Torres [mailto:[EMAIL PROTECTED] Sent: vrijdag 2 april 2004 15

[PHP] Re: asigning an array of variables to $_SESSION

2004-04-02 Thread Justin Patrin
Andy B wrote: hi... i need to assign an array to $_SESSION. the reason for this is that i have a page that gets data from 2 different tables from the same mysql db all at the same time... there is guestbook (for the guestbook) and events (for the events section). i guess i would need to know 2

[PHP] asigning an array of variables to $_SESSION

2004-04-02 Thread Andy B
hi... i need to assign an array to $_SESSION. the reason for this is that i have a page that gets data from 2 different tables from the same mysql db all at the same time... there is guestbook (for the guestbook) and events (for the events section). i guess i would need to know 2 things: 1. can

RE: [PHP] I think this is a bug...cant use exec commands.

2004-04-02 Thread Brian Duke
Thank you all for your collective help. I was very frustrated. This list helped me find the answer quickly and once again PHP is slowly all beginning to make sense. The default values enable safe-mode and that is what Jason was trying to get me to check. Thus when the php.ini wasn't where php thoug

[PHP] Re: parsing xml the right way

2004-04-02 Thread Justin Patrin
Merlin wrote: Hi there, I think I am parsing xml documents the wrong way. There must be a better way to access the results laterone like objects. For example I would like to search in a free form for a city name inside an xml document and php should return the country name and continent. This is

[PHP] Re: Session help please?

2004-04-02 Thread Justin Patrin
Paul wrote: Probably a stupid question. I figured I could do something like $_SESSION['test'] = 5 and refer to $test on other pages however I cannot. The reason I thought I could do this is because I can do $_SESSION['test'] = $_POST['test'] and be able to refer to just $test on other pages. Is t

Re: [PHP] Apache version... 1.3.29 vs 2.0.

2004-04-02 Thread Jason Giangrande
Frano ILICIC wrote: Hello, I just wonder what is the best apache version to run PHP 4.35? Just wondering if there is an obvious choice? I'm running both 1.3.x and 2.0.x (both currently running PHP 4.3.4) and both seem to work equally well. I would say that if the your server is running Linux

Re: [PHP] PHP charset encoding

2004-04-02 Thread Leung WC
if the page that the input form is on sets utf-8 as the content type, then most (?) browsers will send utf-8. you can use a meta tag like: utf-8 characters are 8 bit clean, so they can be stored and retrieved in mysql 3.x ok, but proper utf-8 sorting etc. doesn't work. for many purposes though

[PHP] Zend Optimizer 2.5.1 + PHP5 RC1 + WinXP + Apache 2 not happy together?

2004-04-02 Thread Elisamuel Resto
I've installed Apache and PHP5 RC1 fine, added my needed modules fine, then I installed Zend Optimizer 2.5.1 and it doesn't load? phpinfo() doesn't show it as loaded. php.ini is in the correct place and PHP is reading it. php.ini has the Zend Optimizer lines at the bottom as added by the installer.

Re: [PHP] Apache version... 1.3.29 vs 2.0.

2004-04-02 Thread Chris Shiflett
--- Frano ILICIC <[EMAIL PROTECTED]> wrote: > I just wonder what is the best apache version to run PHP 4.35? > Just wondering if there is an obvious choice? Maybe not obvious, but I think the best choice is the latest Apache 1.3.x. Chris = Chris Shiflett - http://shiflett.org/ PHP Security

Re: [PHP] determining number of rows in a mysql table

2004-04-02 Thread Leung WC
-{ Rene Brehmer }- wrote: Thought it looked fishy hehe ... My only problem is: Sometimes you actually need the data from that table later in the same script, so instead of doing another data pull, I have alot of cases where this is alot more useful (not actual code from any of my work, bu

[PHP] Apache version... 1.3.29 vs 2.0.

2004-04-02 Thread Frano ILICIC
Hello, I just wonder what is the best apache version to run PHP 4.35? Just wondering if there is an obvious choice? Thanks for any reply. Have a nice day Frano ILICIC Transcribe>WORLD Limited Mail : [EMAIL PROTECTED] Web : http://file-saveas.com -- PHP General Maili

RE: [PHP] control panel--graphic question

2004-04-02 Thread Jay Blanchard
[snip] For a program I am writting I need to have a control panel to display anything that may be wrong. I would like to use something like a stoplight so that it would be easily understood by a lay person. Does anyone have any comments as to what they have used? Also does anyone have a function

Re: [PHP] php email functionality

2004-04-02 Thread Shawn Beard
I just tried downgrading to version 4.3.4 and it still does not work. Shawn Beard Web Administrator Iowa Foundation for Medical Care Information Systems [EMAIL PROTECTED] Office: 515-440-8581 Pager: 515-208-5907 >>> Jason Wong <[EMAIL PROTECTED]> 04/02/04 10:35AM >>> On Saturday 03 April 2004 00

[PHP] control panel--graphic question

2004-04-02 Thread Leonard B Burton
Greetings, This is more of a graphic question For a program I am writting I need to have a control panel to display anything that may be wrong. I would like to use something like a stoplight so that it would be easily understood by a lay person. Does anyone have any comments as to what they h

Re: [PHP] php email functionality

2004-04-02 Thread Shawn Beard
I havent tried downgrading yet but yes the SMTP settings in the php.ini are identical to what they were before. I even tried deleting the php folder and starting from scratch rather than using the upgrade path. Still the same problem. Shawn Beard Web Administrator Iowa Foundation for Medical

Re: [PHP] Relative Url

2004-04-02 Thread Chris Shiflett
--- Chris Thomas <[EMAIL PROTECTED]> wrote: > I working on creating a poll script, and right now it consists of 3 > main files: > poll.php > pollFunctions.php > poll.css > These files reside in the /poll directory (for now) [snip] > So what im trying to figure out is the relative url of where the

Re: [PHP] php email functionality

2004-04-02 Thread Jason Wong
On Saturday 03 April 2004 00:30, Shawn Beard wrote: > There are no errors generated in the log. It just flat out doesnt work > anymore. Are the smtp settings in php.ini identical to the previous version? Are you positive you have made no other changes to your setup whilst upgrading php? If so

RE: [PHP] php email functionality

2004-04-02 Thread Shawn Beard
There are no errors generated in the log. It just flat out doesnt work anymore. Shawn Beard Web Administrator Iowa Foundation for Medical Care Information Systems [EMAIL PROTECTED] Office: 515-440-8581 Pager: 515-208-5907 >>> "Sam Masiello" <[EMAIL PROTECTED]> 04/02/04 10:14AM >>> What sorts o

  1   2   >