Re: [PHP] mail() question

2004-04-02 Thread Aidan Lister
It's quite easy to remove access to the mail function, simply put mail in your php.ini under disable_functions Hernan Marino [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] sorry. lazy me. there is auto_prepend_file in php.ini I'll see if it works. Thanks! On Fri, 2 Apr 2004 03:51:18

[PHP] Re: parsing xml the right way

2004-04-02 Thread Aidan Lister
Wait until you have installed PHP5, then use the simplexml library. You have not showed us any code, how are we to tell you if you are doing it the right or wrong way? Merlin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi there, I think I am parsing xml documents the wrong way.

[PHP] Configuration Variable user_agent

2004-04-02 Thread Bernhard Kraft
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 tried to set the variable user_agent in the php.ini file. But the variable doesn't

[PHP] any way to dio_close(0) without opening it before?

2004-04-02 Thread Bernard Fouché
Hi. I want to close fd 0 1, like I would do in C under Linux to close a socket with a remote end. However php refuses that I simply do: dio_close(0); dio_close(1); How can I close these 2 fds? Thanks! Bernard

[PHP] tiff to pdf conversion

2004-04-02 Thread Brent Clark
Hi all anyone know of a quick way to convert a tiff file to a pdf format file. I was thinking of a shell script. Kind Regards Brent Clark

[PHP] Ncurses

2004-04-02 Thread Brent Clark
Hi all I was browsing the list of functions for PHP and I saw a whole range of ncurses functions. I was wondering if anyone knows of a site that has any demos or examples and or where it can be used Kind Regards Brent Clark

[PHP] hi

2004-04-02 Thread shane
Here is it! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Image output (Newb question)

2004-04-02 Thread Fidencio Monroy
Hi, I need to display some PNG pictures in a script; from help I got $im = imagecreatefrompng(images/map.png); imagepng($im); It outputs the binary data as a string, kind of trash; what do I need to set to tell the browser how to interpret it? Thanks. Fidencio Monroy.

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Dave Avent
Header (Content-type: image/png); $im = imagecreatefrompng(images/map.png); imagepng($im); ImageDestroy ($im); -Original Message- From: Fidencio Monroy [mailto:[EMAIL PROTECTED] Sent: 02 April 2004 10:55 AM To: (PHP General List) Subject: [PHP] Image output (Newb question) Hi, I need

[PHP] Forcing Mac's to show download box, rather than inline

2004-04-02 Thread Mark C
Hi, I'm trying to server an image(s) up from a php script, this script, checks for the image and then outputs the required header types, I'm trying to get the browsers to download the requested image (when they click the link), rather than display inline. I've got it working on both Mozilla and

Re: [PHP] tiff to pdf conversion

2004-04-02 Thread Jason Wong
On Friday 02 April 2004 16:39, Brent Clark wrote: anyone know of a quick way to convert a tiff file to a pdf format file. I was thinking of a shell script. It would have to be a pretty clever shell script. I don't know of a tiff pdf convertor but you can use tiff2ps then ps2pdf, google for

Re: [PHP] Forcing Mac's to show download box, rather than inline

2004-04-02 Thread Mark C
Once upon a time Mark C was quoted as saying: Hi, I'm trying to server an image(s) up from a php script, this script, checks for the image and then outputs the required header types, I'm trying to get the browsers to download the requested image (when they click the link), rather than

[PHP] XSLT bug?

2004-04-02 Thread Vincent Jansen
Don't know if this is the best place to post. I'm also not shure if this is a problem with the PHP implementation or it's something a bug in libxslt. But here's the deal. (I use php5.0.0RC1 for testing on winXP) This works: xsl:if test=position() $start xsl:call-template

[PHP] Re: Wrong IP address

2004-04-02 Thread K.Bogac Bokeer
I'm using this one: function FetchIP() { $client_ip = $_SERVER['HTTP_CLIENT_IP']; $x_forwarded_for = $_SERVER['HTTP_X_FORWARDED_FOR']; $remote_addr = $_SERVER['REMOTE_ADDR']; if ( !empty ($client_ip) ) { $ip_expl =

Re: [PHP] Relative Url

2004-04-02 Thread Chris Thomas
What im trying to do is this. I working on creating a poll script, and right now it consists of 3 main files: poll.php - Which does the server-side processing pollFunctions.php - Which draws the poll and does some client side stuff poll.css- stylesheet

Re: [PHP] tiff to pdf conversion

2004-04-02 Thread Mark C
Once upon a time Jason Wong was quoted as saying: On Friday 02 April 2004 16:39, Brent Clark wrote: anyone know of a quick way to convert a tiff file to a pdf format file. I was thinking of a shell script. you could give ImageMagick a try, i.e convert somefile.tif somefile.pdf

[PHP] PHP + XSL-FO

2004-04-02 Thread Juan Torres
Hello, can PHP parser a XML file with a XSL-FO file to generate a PDF file? Greetings. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: XSLT bug?

2004-04-02 Thread Juan Torres
Try this: xsl:if test=position() #60; $start Good Luck. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: XSLT bug?

2004-04-02 Thread Vincent Jansen
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:59 To: [EMAIL PROTECTED] Subject: [PHP] Re: XSLT bug? Try this: xsl:if test=position() #60; $start Good Luck. -- PHP

Re: [PHP] Relative Url

2004-04-02 Thread Red Wingate
Hi chris, Haven't much time now but maybe you can find a way with those ideas: in pollFunctions.php do : $pollFunctions_path = str_replace( basename ( _FILE_ ) , '' , _FILE_ ); in foo.php do : $foo_path = str_replace( basename ( _FILE_ ) , '' , _FILE_ ); Now you just have to compute the diff

Re: [PHP] Ncurses

2004-04-02 Thread Ray Hunter
On Fri, 2004-04-02 at 01:46, Brent Clark wrote: I was browsing the list of functions for PHP and I saw a whole range of ncurses functions. I was wondering if anyone knows of a site that has any demos or examples and or where it can be used Used on *nix flavors and you need to compile

Re: [PHP] PHP + XSL-FO

2004-04-02 Thread Ray Hunter
On Fri, 2004-04-02 at 06:57, Juan Torres wrote: can PHP parser a XML file with a XSL-FO file to generate a PDF file? sure if you set it up properly! /ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: session/mysql problems

2004-04-02 Thread Tom Dangler
From php manual http://us3.php.net/variables.external Note: Superglobal arrays, like $_POST and $_GET, became available in PHP 4.1.0 Andy B [EMAIL PROTECTED] 04/01/04 12:55PM hi I created a login script and originally was using php4.3.3 to write the script with. Then I found out that it had

Re: [PHP] Relative Url

2004-04-02 Thread Red Wingate
Ok found his one on some old libs of mine, guess this should work but i am not sure : ?php function find_relativ_path( $origin , $target ){ $append = ''; $string = ''; $origin = explode('/',$origin); $target = explode('/',$target); unset($origin[(count($origin)-1)]);

[PHP] Re: session/mysql problems

2004-04-02 Thread Andy B
Note: Superglobal arrays, like $_POST and $_GET, became available in PHP 4.1.0 so i remembered... had to try and port it backwards to fit the $HTTP_POST and $HTTP_SESSION vars but still didnt work... for some reason they arent going from page to page but got something else worked out for now in

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

2004-04-02 Thread Brian Duke
Yes, in fact to be sure I copied free into my /var/www/html/swap directory and used that path. It still says. [EMAIL PROTECTED] swap]# php swap.php sh: line 1: /usr/local/php/bin/free: No such file or directory even though I explicitly said exec (/var/www/html/swap/free -b, $data, $result);

Re: [PHP] Re: session/mysql problems

2004-04-02 Thread Jason Wong
On Friday 02 April 2004 22:45, Andy B wrote: Note: Superglobal arrays, like $_POST and $_GET, became available in PHP 4.1.0 so i remembered... had to try and port it backwards to fit the $HTTP_POST and $HTTP_SESSION vars but still didnt work... for some reason they arent going from page to

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

2004-04-02 Thread Brian Duke
Forgive the top-post. I tried the php -I found php was looking for the php.ini in /var/www/conf. I copied php.ini from /etc/ to /var/www/conf. Now the shell_exec works fine. Thanks Jason. If I wanted to use exec() for this project in the future, is: (shell_exec (free -b)) = (exec(free -b,

[PHP] ADOdb installation

2004-04-02 Thread Gabe
For those of you that are using ADOdb, hopefully you can help me out. I'm evaluating PHP on IIS and I was curious if I had to have a directory with the ADOdb scripts for every virtual host? For example, if I had three virtual hosts at three different IP's: 210.210.210.200 210.210.210.201

[PHP] php email functionality

2004-04-02 Thread Shawn Beard
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? Shawn Beard Web Administrator Iowa Foundation for Medical Care Information

Re: [PHP] ADOdb installation

2004-04-02 Thread Matt Matijevich
Would each virtual host need to have a directory with the ADOdb scripts? No Just put the adodb scripts in the include_path, or just have a designdated place on your windows bow for adodb, then in you include statement just use something like include('c:\adodb\adodb.php'); //not exactly sure

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

2004-04-02 Thread Jay Blanchard
[snip] I tried the php -I found php was looking for the php.ini in /var/www/conf. I copied php.ini from /etc/ to /var/www/conf. Now the shell_exec works fine. (shell_exec (free -b)) = (exec(free -b, $data ,$result_code)) I tried using exec as exec(free -b, $data ,$result_code)); but I didn't

[PHP] Re: session/mysql problems

2004-04-02 Thread Andy B
$HTTP_* aren't superglobals and are not available inside functions that i know of i didnt use them inside functions unless checking them with if(!empty($HTTP_SESSION['username'])){. is illegal...? if that is so then no wonder why it didnt work -- PHP General Mailing List

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

2004-04-02 Thread Jason Wong
On Friday 02 April 2004 23:09, Brian Duke wrote: If I wanted to use exec() for this project in the future, is: (shell_exec (free -b)) = (exec(free -b, $data ,$result_code)) They're different, see manual for details. I tried using exec as exec(free -b, $data ,$result_code)); but I didn't

Re: [PHP] Re: session/mysql problems

2004-04-02 Thread Jason Wong
On Friday 02 April 2004 23:21, Andy B wrote: $HTTP_* aren't superglobals and are not available inside functions that i know of i didnt use them inside functions unless checking them with if(!empty($HTTP_SESSION['username'])){. is illegal...? if that is so then no wonder why it didnt

[PHP] [Stats] PHP Net List: March 2004

2004-04-02 Thread Bill Doerrfeld
-- Searchable archives for this list are available at http://www.listsearch.com/phplist.lasso --

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

2004-04-02 Thread Jason Wong
On Friday 02 April 2004 23:16, Jay Blanchard wrote: So there WAS more than one copy of the php.ini! :) No, the php binary (ie not the webserver php module) was *expecting* its php.ini to be located at /var/www/conf. As it wasn't there, the existing copy at /etc/php.ini was copied over. Have

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

2004-04-02 Thread Brian Duke
They're different, see manual for details. The Manual is brilliant. exec(free -b, $data ,$result_code); print_r($data); Array ( [0] = total used free sharedbuffers cached [1] = Mem: 256917504 2494013447516160 0 29487104

RE: [PHP] php email functionality

2004-04-02 Thread Sam Masiello
What sorts of errors are you seeing in your log? --Sam -Original Message- From: Shawn Beard [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 8:11 AM To: [EMAIL PROTECTED] Subject: [PHP] php email functionality I just upgraded to PHP 4.3.5 and now my email functionality does

Re: [PHP] Re: parsing xml the right way

2004-04-02 Thread trlists
On 2 Apr 2004 Aidan Lister wrote: Wait until you have installed PHP5, then use the simplexml library. I will shortly have the same questions about ways to parse XML, and I can't use PHP 5 -- it's a production environment and the PTB are not going to move to something that is that recently

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

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

[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

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:30,

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

[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 TranscribeWORLD Limited Mail : [EMAIL PROTECTED] Web : http://file-saveas.com -- PHP General

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,

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 -

[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

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: meta http-equiv=Content-Type content=text/html; charset=utf-8 utf-8 characters are 8 bit clean, so they can be stored and retrieved in mysql 3.x ok, but

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

[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

[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

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

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

[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

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

[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

[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

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

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

[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 meta Tag Apache, PHP, Header(). you can use all these methods to specify the charset, what i suggest to

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 WDDX

[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

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

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] [solved] assigning array to $_SESSION

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

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.

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

[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

[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

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

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

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

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

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

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

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,

[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 Matt Matijevich
could you post all of your script? Is there any white space before your ?php tag? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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

[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

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Fidencio Monroy
This is the entire html doc !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html;

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

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

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

[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

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Matt Matijevich
change your script to just this: ?php $link = mysql_connect(localhost, root, ); if ($link){ header(Content-type: image/png); $im = imagecreatefrompng(images/map/map-15x9.png); imagepng($im); //,images/.session_id()..png imagedestroy($im);

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] 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 values. Octal

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

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

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

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 img tag. Fidencio Monroy wrote: Np, but I do not understand: Do should I remove all the html tags before

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

  1   2   >