Re: [PHP] Am I asking too much?

2003-10-10 Thread Marek Kilimajer
For security reasons mysql_query does not support ; to separate queries. phpmyadmin splits multiple query strings up (PMA_splitSqlFile()) John Taylor-Johnston wrote: $sql1 works, but $sql2 doesn't. Am I asking too much? :=) $sql2 echoes ok. If I copy it and run it in phpmyadmin, it works, but

Re: [PHP] Saving Form Data

2003-10-10 Thread Burhan Khalid
PHP wrote: [ snip ] I think I need some kind of HTML parser that will break up the supervisors form, then insert any values need for the form values and then re-display the form data. Well, if you insert the XML declaration at the top, and make sure your page validates as XHTML, I believe you

Re: [PHP] Free web space

2003-10-10 Thread John Nichel
You mean I'd have to google for free web hosts which allow Perl then? Damn, when will my work ever be done? hehe John Taylor-Johnston wrote: John, Oops, that's a little sarcastic :=) Take it easy on the guy. We don't want them running screaming back to the Perl newsgroups, do we? John [EMAIL

Re: [PHP] Maybe a silly question

2003-10-10 Thread Ryan Thompson
It's for classes. A site called http://www.php.net has some great documentation on it. $object-property (or function whatever the case may be) On Friday 10 October 2003 01:57, Tom Ray [Lists] wrote: I'm wondering if someone can explain something for me. I've never used this before but have

Re: [PHP] Multiple PHP modules

2003-10-10 Thread Ryan Thompson
I thought that might work but the Apache docs don't list LoadModule as a supported directive in VirtualHost. I did try it today however and it seems I ended up with a runaway server. It wouldn't respond to any request, it would say it couldn't be found and I couldn't stop the server. I had to

Re: [PHP] Multiple PHP modules

2003-10-10 Thread Marek Kilimajer
Copy the configuration directory to another one, change Listen and Port directive to another port of your choice, set up php and instruct apache to use this configuration: httpd -f /etc/httpd/confPHP5/httpd.conf -DHAVE_PHP5 Ryan Thompson wrote: I thought that might work but the Apache docs

Re: [PHP] Re: Limits and php...

2003-10-10 Thread Jason Wong
On Friday 10 October 2003 11:02, Robert Cummings wrote: If you've been following a thread then you'll have read everything anyways. If you bottom post I gotta scan through all the crap I've already read, and that often involves employing the down arrow or mouse. One of the bad habits that top

Re: [PHP] Multiple PHP modules

2003-10-10 Thread Jason Wong
On Friday 10 October 2003 15:10, Ryan Thompson wrote: It's possible to run to web servers simultaneous off the same computer isn't it? Each handling different IP address? or at least host names Maybe I'll try that tomorrow unless someone stops me and says it's a waste of time. :) You can

[PHP] form to printer servers w/ip

2003-10-10 Thread Louie Miranda
guys, anyone had successfull projects relating on my subject?. im full of overflowing ideas on my head right now. its like form to fax, but this time form to printer. i mean printer servers w/ ip. -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] form to printer servers w/ip

2003-10-10 Thread Louie Miranda
one way i found is, connecting to php socket and going to printer port to send the data. -- - Louie Miranda http://www.axishift.com - Original Message - From: Louie Miranda [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 10, 2003 4:12 PM Subject: [PHP] form to printer

Re: [PHP] Video Streaming

2003-10-10 Thread Burhan Khalid
Manisha Sathe wrote: Client's site will be on PHP/Linux. They want to add Videos on site. But they say they want to make use of Video Straming. I am very new to this part. I searched web, I found some third party softwares (one of this is videolan which is open source). But not sure how to

Re: [PHP] form to printer servers w/ip

2003-10-10 Thread Marek Kilimajer
I would execute lpr (man lpr). Louie Miranda wrote: one way i found is, connecting to php socket and going to printer port to send the data. -- - Louie Miranda http://www.axishift.com - Original Message - From: Louie Miranda [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October

[PHP] PHP generated AuthUserFiles?

2003-10-10 Thread MIKE YRABEDRA
Is there a way to let PHP generate the necessary AuthUserFiles for use with .htaccess? I don't allow my clients the ability to use .htpasswd in the command line. From what I see, the user file is just a text file with the username and the encrypted password. TIA

Re: [PHP] Multiple PHP modules

2003-10-10 Thread David Otton
On Fri, 10 Oct 2003 03:10:53 -0400, you wrote: Is it possible to load two different PHP modules in apache having them linked to different virtual hosts? I'm hoping I can run one site with PHP 5 and another with 4.3.x I thought that might work but the Apache docs don't list LoadModule as a

Re: [PHP] PHP generated AuthUserFiles?

2003-10-10 Thread David Otton
On Fri, 10 Oct 2003 06:34:43 -0400, you wrote: Is there a way to let PHP generate the necessary AuthUserFiles for use with .htaccess? I don't allow my clients the ability to use .htpasswd in the command line. From what I see, the user file is just a text file with the username and the encrypted

[PHP] Get fields values from a string.

2003-10-10 Thread Carles Xavier Munyoz Bald
Hi, I have a string with the format: field_value1:field_value2:field_value3 Is there any PHP string manipulation function to extract this values from the string ? Greetings. --- Carles Xavier Munyoz Baldó [EMAIL PROTECTED] http://www.unlimitedmail.net/ --- -- PHP General Mailing List

[PHP] Re: Get fields values from a string.

2003-10-10 Thread Mehdi Achour
Hi, Check this : php.net/explode didou Carles Xavier Munyoz Baldó wrote: Hi, I have a string with the format: field_value1:field_value2:field_value3 Is there any PHP string manipulation function to extract this values from the string ? Greetings. --- Carles Xavier Munyoz Baldó [EMAIL

[PHP] Echo $PHP_SELF not working

2003-10-10 Thread Jeff McKeon
I've just published a new website and something is wrong. I suspect the PHP.ini on the server but I can't seem to find anything. The line: form method='post' action='?PHP ECHO $PHP_SELF ?' Doesn't seem to work. If I look at the view source from the web browser I see this.. form method='post'

Re: [PHP] Congratulations You Win

2003-10-10 Thread Didier McGillis
NONONONONOONO ITS MINE, BACK AWAY ! grr From: Kevin Bruce [EMAIL PROTECTED] To: Nathan Taylor [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] Congratulations You Win Date: Wed, 08 Oct 2003 14:40:25 -0400 WOW! who's ALREADY jumped

[PHP] PHP Installation Problems

2003-10-10 Thread Andrew Woolley
-Original Message- From: Mehdi Achour [mailto:[EMAIL PROTECTED] Sent: 10 October 2003 12:28 To: Andrew R. Woolley Cc: [EMAIL PROTECTED] Subject: Re: PHP Installation Problems Hi Andrew, Please ask support questions at [EMAIL PROTECTED] didou I use php a lot myself but have only

RE: [PHP] Congratulations You Win

2003-10-10 Thread Didier McGillis
NO I CAN AFFORD MICRO$OFT ! WELL KINDA From: Dan Joseph [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: [PHP] Congratulations You Win Date: Wed, 8 Oct 2003 14:39:03 -0400 Excellent! We all win again! Retirement here I come! -Dan Joseph -Original Message- From:

[PHP] Re: Echo $PHP_SELF not working

2003-10-10 Thread Paul van Schayck
Hello, Here we go again ;) [EMAIL PROTECTED] (Jeff McKeon) wrote I've just published a new website and something is wrong. I suspect the PHP.ini on the server but I can't seem to find anything. register_globals is on off. Which is a good idea, keep it there! On the dev server ECHO

[PHP] Problem :file_exists japanese filename

2003-10-10 Thread umesh
Hi Gurus, (B (BI am using PHP4 on linux. (B (BI am reading the filename from querystring and display it in the browser. (BBefore displaying , I am checking the existance of the file by using (Bfile_exists. (BIf the file name contains japanese characters, such as $BI4?M0l

Re: [PHP] Maybe a silly question

2003-10-10 Thread Tom Ray [Lists]
thanks, now that I know what it's for I know where to find it on php.net Ryan Thompson wrote: It's for classes. A site called http://www.php.net has some great documentation on it. $object-property (or function whatever the case may be) On Friday 10 October 2003 01:57, Tom Ray [Lists] wrote:

Re: [PHP] Problem :file_exists japanese filename

2003-10-10 Thread Marek Kilimajer
Is the codepage of filesystem and of the string the same? What do you (Bsee if you list the files in the directory using php? (B (Bumesh wrote: (B (B Hi Gurus, (B (B I am using PHP4 on linux. (B (B I am reading the filename from querystring and display it in the browser. (B Before

Re: [PHP] Problem :file_exists japanese filename

2003-10-10 Thread Payne
What is the codepage for Japanese, that mysql uses? (B (BPayne (B (BMarek Kilimajer wrote: (B (BIs the codepage of filesystem and of the string the same? What do you (Bsee if you list the files in the directory using php? (B (Bumesh wrote: (B (B (B (BHi Gurus, (B (BI am using PHP4

RE: [PHP] Re: Echo $PHP_SELF not working

2003-10-10 Thread Jeff McKeon
So you're saying I had register_globals set to ON on my dev server!? CRAP!!! I thought I was working with it off! Now I have to redevelop it all and change all my $variables from forms to $_POST['variable']? Even when they post to the same page with action='?PHP ECHO $_SERVER['PHP_SELF']'??

RE: [PHP] Problem :file_exists japanese filename

2003-10-10 Thread umesh
Hi, (B (BIf I list out all filkes in the directory using php, it shows garbage (Bfilenames (those which have japanese). (B (BUmesh. (B (B-Original Message- (BFrom: Marek Kilimajer [mailto:[EMAIL PROTECTED] (BSent: Friday, October 10, 2003 6:04 PM (BTo: umesh (BCc: [EMAIL

Re: [PHP] Problem :file_exists japanese filename

2003-10-10 Thread Marek Kilimajer
Mysql uses default-character-set setting in my.cnf, but this is used for (Bthings like sorting and cases. Generaly it will accept any input you (Bgive it. So codepage depends on the source of the input. (B (BPayne wrote: (B (B What is the codepage for Japanese, that mysql uses? (B (B

RE: [PHP] PHP Installation Problems

2003-10-10 Thread Daniel Perez Clavero
Can you be a bit more explicit about errors? I´ve got some apache+PHP running on W2K Server box... -Original Message- From: Andrew Woolley [mailto:[EMAIL PROTECTED] Sent: viernes, 10 de octubre de 2003 14:11 To: [EMAIL PROTECTED] Subject: [PHP] PHP Installation Problems -Original

Re: [PHP] Problem :file_exists japanese filename

2003-10-10 Thread Marek Kilimajer
Then you have codepage problem. How did you get the files there in the (Bfirst place? (B (BYou can try to set the codepage of the html page to each possible (Bjapanese coding and find out which one is used. (B (Bumesh wrote: (B (B Hi, (B (B If I list out all filkes in the directory

RE: [PHP] Echo $PHP_SELF not working

2003-10-10 Thread Daniel Perez Clavero
try to use $_SERVER['PHP_SELF'] instead of. -Original Message- From: Jeff McKeon [mailto:[EMAIL PROTECTED] Sent: viernes, 10 de octubre de 2003 14:09 To: php Subject: [PHP] Echo $PHP_SELF not working I've just published a new website and something is wrong. I suspect the PHP.ini on

[PHP] serialized arrays

2003-10-10 Thread Donaldson Sgt Michael J
$s_array1 = serialize($results); echo img src= \gd_graph.php?h_array=urlencode($s_array1) \ ; What's the problem with this code? I am trying to pass an array to create graph but instead of the pic i get this in my browser. Probably do to bad HTML syntax. Can I urlencode in a get or does it have

RE: [PHP] serialized arrays

2003-10-10 Thread Gregory Kornblum
echo img src= \gd_graph.php?h_array=.urlencode($s_array1). \ ; Also here's some functions to help. function Array2URLString($array_in) { $ser = serialize($array_in); $ser = urlencode($ser); return $ser; } function URLString2Array($url_string_in) { $ser1 =

Re: [PHP] serialized arrays

2003-10-10 Thread Brad Pauly
On Fri, 2003-10-10 at 07:41, Donaldson Sgt Michael J wrote: $s_array1 = serialize($results); echo img src= \gd_graph.php?h_array=urlencode($s_array1) \ ; What's the problem with this code? I am trying to pass an array to create graph but instead of the pic i get this in my browser.

Re: [PHP] serialized arrays

2003-10-10 Thread Marek Kilimajer
Gregory Kornblum wrote: function URLString2Array($url_string_in) { $ser1 = stripslashes($url_string_in); // $arr1 = urldecode($ser1); urldecoding is done by php. $arr1 = unserialize($arr1); return $arr1; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] magic_quotes_gpc and \

2003-10-10 Thread Johnson, Kirk
If I have a form that POSTS a textarea that contains PHP code. Say some code that contains legitimate escapes \ like: echo a href=\http://somewhere.com\;Click/a; When the data is posted and received in the destination script, additional escapes \ are added. So how do I get to the

[PHP] pad numbers

2003-10-10 Thread Diana Castillo
is there a function to convert a number that has less than two digits into a number with a leading zero? for instance, to convert a 5 to 05 but to leave a 11 as 11 thanks, Diana -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Limits and php...

2003-10-10 Thread Robert Cummings
On Fri, 2003-10-10 at 03:43, Jason Wong wrote: On Friday 10 October 2003 11:02, Robert Cummings wrote: If you've been following a thread then you'll have read everything anyways. If you bottom post I gotta scan through all the crap I've already read, and that often involves employing the

RE: [PHP] pad numbers

2003-10-10 Thread Susan Ator
The way I have done it is to check the length of the number and if it is 1 then add the 0 myself. my $len = length($mm); if ($len eq 1) { $mm = 0$mm; } Susan -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 10:45 AM To: [EMAIL PROTECTED]

Re: [PHP] pad numbers

2003-10-10 Thread Tom Rogers
Hi, Saturday, October 11, 2003, 12:44:38 AM, you wrote: DC is there a function to convert a number that has less than two digits into a DC number with a leading zero? DC for instance, to convert a 5 to 05 but to leave a 11 as 11 DC thanks, DC Diana $num = sprintf(%02d,$num); is what you need

Re: [PHP] pad numbers

2003-10-10 Thread Marek Kilimajer
str_pad -- Pad a string to a certain length with another string Diana Castillo wrote: is there a function to convert a number that has less than two digits into a number with a leading zero? for instance, to convert a 5 to 05 but to leave a 11 as 11 thanks, Diana -- PHP General Mailing List

Re: [PHP] pad numbers

2003-10-10 Thread Wang Shengli
$d = 5; $dd = sprintf(%0d, $d); will do -- $dd = 05; - Original Message - From: Diana Castillo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 10, 2003 10:44 AM Subject: [PHP] pad numbers is there a function to convert a number that has less than two digits into a

Re: [PHP] pad numbers

2003-10-10 Thread Wang Shengli
Sorry, it should be $dd = sprintf(%02d, $d); will generate $dd = 05; If you want 005; use $dd =sprintf(%03d, $d); if you want XXX5; use $dd = sprintf(%X4d, $d); - Original Message - From: Diana Castillo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 10, 2003 10:44 AM

[PHP] preg_match

2003-10-10 Thread Omar
Hello everyone. In this line preg_match(/[^a-z0-9'\?!-], $item) i can´t find de way to add vowels with accent (á,é,í,ó,ú,ñ,Ñ) and other characters to the preg_match function. Can anyone help me? The documentation of this function is not very clear (or complete) to me. Thank you. -- PHP

[PHP] displaying var in textarea

2003-10-10 Thread Shawn McKenzie
I have a var: $test = 'echo \'test\';'; If I display this in a textearea like so: echo textarea wrap=\virtual\ rows=\20\ style=\width: 100%\ name=\action\\n .$test ./textarea\n; In the browser and in the HTML source I see (no slashes): echo 'test'; Even if I do an htmlentities($test); I see no

[PHP] Re: displaying var in textarea

2003-10-10 Thread Ben Duffy
Shawn McKenzie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a var: $test = 'echo \'test\';'; If I display this in a textearea like so: echo textarea wrap=\virtual\ rows=\20\ style=\width: 100%\ name=\action\\n .$test ./textarea\n; In the browser and in the HTML

[PHP] Re: displaying var in textarea

2003-10-10 Thread Ben Duffy
Ben Duffy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Shawn McKenzie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a var: $test = 'echo \'test\';'; If I display this in a textearea like so: echo textarea wrap=\virtual\ rows=\20\ style=\width: 100%\

[PHP] ftp_connect() issues

2003-10-10 Thread Phil Ewington - 43 Plc
Hi All, A script that has been running successfully for over 18 months has suddenly stopped working due to ftp_connect() failing. I have been assured that nothing has changed on the ftp server so now need to try and find out why this is happening. ftp_connect seems to only return true or false,

[PHP] Display a JPG Image

2003-10-10 Thread Pushpinder Singh Garcha
Hello Everyone, I am trying to display a JPG image to a use, who has logged in. Some research on google revealed a way to do this. I am using the following code to display it. if (session_is_registered(valid_user)){ if(session_is_registered(cmi)){

Re: [PHP] Re: Limits and php...

2003-10-10 Thread Jason Wong
On Friday 10 October 2003 22:44, Robert Cummings wrote: *Most* bottom posters are savvy enough to trim posts adequately to ensure that there is no crap to wade through whilst maintaining some kind of continuity within a thread. I'll call this premise one, which is by no means a tautology

[PHP] Re: ftp_connect() issues

2003-10-10 Thread Paul van Schayck
[EMAIL PROTECTED] (Phil Ewington - 43 Plc) wrote A script that has been running successfully for over 18 months has suddenly stopped working due to ftp_connect() failing. I have been assured that nothing has changed on the ftp server so now need to try and find out why this is happening.

Re: [PHP] Re: Limits and php...

2003-10-10 Thread Robert Cummings
On Fri, 2003-10-10 at 12:12, Jason Wong wrote: On Friday 10 October 2003 22:44, Robert Cummings wrote: *Most* bottom posters are savvy enough to trim posts adequately to ensure that there is no crap to wade through whilst maintaining some kind of continuity within a thread. I'll

RE: [PHP] Display a JPG Image

2003-10-10 Thread Bertrand Moulard
-Original Message- From: Pushpinder Singh Garcha [mailto:[EMAIL PROTECTED] Sent: 10 October 2003 17:06 To: [EMAIL PROTECTED] Subject: [PHP] Display a JPG Image Hello Everyone, I am trying to display a JPG image to a use, who has logged in. Some research on google revealed a way to

RE: [PHP] Display a JPG Image

2003-10-10 Thread Bertrand Moulard
try image/jpeg cheers .b -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: pad numbers

2003-10-10 Thread pete M
from php manual str_pad function ?php $input = Alien; print str_pad($input, 10); // produces Alien print str_pad($input, 10, -=, STR_PAD_LEFT); // produces -=-=-Alien print str_pad($input, 10, _, STR_PAD_BOTH); // produces __Alien___ print str_pad($input, 6 , ___);

Re: [PHP] ftp_connect() issues

2003-10-10 Thread Jason Wong
On Saturday 11 October 2003 00:01, Phil Ewington - 43 Plc wrote: A script that has been running successfully for over 18 months has suddenly stopped working due to ftp_connect() failing. I have been assured that nothing has changed on the ftp server so now need to try and find out why this is

Re: [PHP] Re: Echo $PHP_SELF not working

2003-10-10 Thread Shawn McKenzie
Unless you do an extract($_POST); in a main include somewhere before your form. For $PHP_SELF just do $PHP_SELF = $_SERVER['PHP_SELF']; or to get all of the $_SERVER vars, do extract($_SERVER); -Shawn Jeff McKeon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] So you're saying I had

[PHP] Did anyone have success with the require() function??

2003-10-10 Thread Scott Fletcher
Hi Fellas! Did anyone have success with making the required function work if using this sample code. It didn't work for me. --snip-- require($_REQUEST['PDF_LIB_PATH']); --snip-- But I have success if I do this instead... --snip-- $PDF_LIB_PATH = $_REQUEST['PDF_LIB_PATH'];

Re: [PHP] preg_match

2003-10-10 Thread Jason Wong
On Friday 10 October 2003 23:16, Omar wrote: In this line preg_match(/[^a-z0-9'\?!-], $item) i cant find de way to add vowels with accent (,,, and other characters to the preg_match function. Can anyone help me? The documentation of this function is not very clear (or complete) to me.

[PHP] Echoing string with single quote from $_POST

2003-10-10 Thread James Johnson
Hi, I'm building a form where a user can enter text. When the form is submitted I'm doing some validation before continuing. If the form isn't filled correctly, then the user has to correct it before continuing. However, I want to save the data that has been entered (some of it may be lengthy),

[PHP] Formatting text in a textarea

2003-10-10 Thread James Johnson
Hi, More of a general HTML question, but thought I'd ask here: I'm doing form validation and if something needs to be corrected, then the user is informed and allowed to make changes. So, they don't have to retype what they entered in the textarea, I'm displaying it again with: ?php

[PHP] Getting elapsed time

2003-10-10 Thread Jeff McKeon
Is there a simple way (a built in function) to get the elapsed time between two given timestamps (-MM-DD HH:MM:SS)? Thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Display a JPG Image

2003-10-10 Thread Jon Shoberg
On Fri, 10 Oct 2003, Bertrand Moulard wrote: try image/jpeg cheers .b -- http://jon.shoberg.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Did anyone have success with the require() function??

2003-10-10 Thread Curt Zirzow
On Fri, 10 Oct 2003 13:09:16 -0400, Scott Fletcher [EMAIL PROTECTED] wrote: Hi Fellas! Did anyone have success with making the required function work if using this sample code. It didn't work for me. --snip-- require($_REQUEST['PDF_LIB_PATH']); --snip-- When you access an array inside of a

RE: [PHP] Getting elapsed time

2003-10-10 Thread Jay Blanchard
[snip] Is there a simple way (a built in function) to get the elapsed time between two given timestamps (-MM-DD HH:MM:SS)? [/snip] http://www.php.net/strtotime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RegEx -- help

2003-10-10 Thread Lists
I do not know if this is the right list, but if someone could help me with the following I need a function that does this: function phone($num) { take num and remove anything that is not a number ex: () - / If there is not 1 at the start, add a one to the start of the number. make sure

Re: [PHP] PHP generated AuthUserFiles?

2003-10-10 Thread Mika Tuupola
On Fri, 10 Oct 2003, MIKE YRABEDRA wrote: Is there a way to let PHP generate the necessary AuthUserFiles for use with .htaccess? http://pear.php.net/package/File_HtAccess http://pear.php.net/package/File_Passwd -- Mika Tuupola

Re: [PHP] RegEx -- help

2003-10-10 Thread Mohamed Lrhazi
Untested: function fixhisnumber($str){ //remove all but numbers $str = preg_replace(/[^0-9]/,,$str); //append 1, unless it's already there $str = $str[0] == '1'? $str:1.$str; if (strlen($str) == 10) return $str; else return -1; } Mohamed~ On Fri, 2003-10-10 at 14:01, Lists wrote: I do not

[PHP] imagepsloadfont returns wrong datatype

2003-10-10 Thread Michael Winston
Hi- I *finally* got imagepsloadfont() to work on my Mac OS X box (it helps if you actually have a .pfb file). Now I'm having problems with another aspect of imagepsloadfont(). The docs say it should return an int, however it's returning a resource. I'm guessing this is why imagestring and

[PHP] Re: Display a JPG Image

2003-10-10 Thread Kevin Stone
Delete the line with header(Content-disposition: ... ). Just set the content type and output the file. -Kevin Pushpinder Singh Garcha [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello Everyone, I am trying to display a JPG image to a use, who has logged in. Some research on

[PHP] PHP weirdo bahavior (code mutation)

2003-10-10 Thread Mohamed Lrhazi
Hello all, I am using a PHP application called modernbill, which uses iocube encoder... PHP very frequently dies with SIG fault... 4.3 dies systematically While working on this problem I stumbled on this behavior : In my code, I have something like this: $table_customer=customer; $sql=select *

[PHP] Need advice, hopefully on topic.

2003-10-10 Thread Jeremy Russell
Hello list, I got this project, I'm writing it in PHP of course. What I would like to do is create a simple an efficient way to work on it from a couple different locations/workstations. I'm throwing around the idea of a CVS repository, but am not sure if this is the best way. Does

Re: [PHP] Need advice, hopefully on topic.

2003-10-10 Thread Mike Migurski
I got this project, I'm writing it in PHP of course. What I would like to do is create a simple an efficient way to work on it from a couple different locations/workstations. I'm throwing around the idea of a CVS repository, but am not sure if this is the best way. Does anyone have

[PHP] PHP source display

2003-10-10 Thread Lists
When I used apache 1.3 I could call a file with an extension of .phps and it would display formatted source. In apache 2.0 it does not do this Here is my config from apache 2.0 LoadModule php4_module modules/libphp4.so # # Cause the PHP interpreter handle files with a .php extension. # Files

Re: [PHP] PHP weirdo bahavior (code mutation)

2003-10-10 Thread Burhan Khalid
Mohamed Lrhazi wrote: I am using a PHP application called modernbill, which uses iocube encoder... PHP very frequently dies with SIG fault... 4.3 dies systematically While working on this problem I stumbled on this behavior : In my code, I have something like this: $table_customer=customer;

Re: [PHP] PHP source display

2003-10-10 Thread Ryan Thompson
Try using the function view_source(string filename) That's off the top of my head. Might be wrong. It's in the documentation On Friday 10 October 2003 15:41, Lists wrote: When I used apache 1.3 I could call a file with an extension of .phps and it would display formatted source. In apache 2.0

[PHP] [xml] character data

2003-10-10 Thread Decapode Azur
I do not understand why this line does not work : $info[$element] = $content; but yet this works: echo $content; why? what is the trick? -- $xml_comment_file = basename($svg_file, '.svg.xml') .'.info.xml'; if (file_exists($xml_comment_file)) { $file = $xml_comment_file; $info =

[PHP] Re: RegEx -- help

2003-10-10 Thread Curt Zirzow
On Fri, 10 Oct 2003 14:01:00 -0400 (EDT), Lists [EMAIL PROTECTED] wrote: I do not know if this is the right list, but if someone could help me with the following Sure, I'll be glad to help. I need a function that does this: I'm not sure if you want me to write the code that does this for you,

Re: [PHP] Need advice, hopefully on topic.

2003-10-10 Thread Curt Zirzow
On Fri, 10 Oct 2003 12:40:30 -0700 (PDT), Mike Migurski [EMAIL PROTECTED] wrote: I got this project, I'm writing it in PHP of course. What I would like to do is create a simple an efficient way to work on it from a couple different locations/workstations. I'm throwing around the idea of a

Re: [PHP] Re: RegEx -- help

2003-10-10 Thread Robert Cummings
On Fri, 2003-10-10 at 16:18, Curt Zirzow wrote: On Fri, 10 Oct 2003 14:01:00 -0400 (EDT), Lists [EMAIL PROTECTED] wrote: I do not know if this is the right list, but if someone could help me with the following Sure, I'll be glad to help. I need a function that does this: I'm

[PHP] Major wierdness - ack!

2003-10-10 Thread James Johnson
Hi, I'm getting so frustrated with this. I have put some error trapping code in my site with the following code (an included file): ?php ob_start(); error_reporting(E_ALL); set_error_handler('pc_error_handler'); function pc_error_handler($errno, $error,

[PHP] Exec() wont run program

2003-10-10 Thread steve
I want to start up a program through a php page. For example, gedit. I found that the user is apache by running this: - passthru('whoami'); since apache might not have access to run a certain command, I'll use sudo. I edited the sudoers file in /etc/sudoers and underneath the line: #

[PHP] Re: Major wierdness - ack!

2003-10-10 Thread Curt Zirzow
On Fri, 10 Oct 2003 13:27:59 -0700, James Johnson [EMAIL PROTECTED] wrote: I have a page that hits the database to display the records. One of the columns is 'startDate'. I format this for display like this: td valign=top?php echo date('m/d/Y',strtotime($row_GetAds['startDate'])); ?/td The page

[PHP] Re: Exec() wont run program

2003-10-10 Thread Curt Zirzow
On Fri, 10 Oct 2003 13:24:49 -0700, Steve [EMAIL PROTECTED] wrote: I want to start up a program through a php page. For example, gedit. I found that the user is apache by running this: - passthru('whoami'); since apache might not have access to run a certain command, I'll use sudo. I

[PHP] Repost: Help needed on PHP+IIS+filesys

2003-10-10 Thread Michael Kochendoerfer
Hi, does anyone know how to handle file and directory paths on a IIS 5.0 server? Problem is that the server has multi-domain and each domain has an associated 'root' dir below e:\webspaces. So if one uses relative path strings, an opendir() for example will fail. One has to use

[PHP] Re: Exec() wont run program

2003-10-10 Thread steve
Curt Zirzow wrote: What is gedit? it looks like the gnu text editor command. most X applications wont run from the webserver in most cases. gedit is a simple text editor - I think it stands for Gnome Edit echo shell_exec(sudo gedit); might give some answers, Curt. Tried echo shell_exec(sudo

[PHP] CSV file with PHP

2003-10-10 Thread Cesar Aracena
Hi all, Does anybody knows how to make a CSV (comma separated values) file with PHP based on results fetched from MySQL? I need it to import it with Microsoft Outlook Express. Thanks in advanced, Cesar Aracena www.icaam.com.ar -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Quick question: PHP user?

2003-10-10 Thread Grant Rutherford
Hi, Just a quick question... What user does php run as on linux? Is it the Apache user? Is there some way to tell? I need to be able to set a directory so that only PHP can access it. Thanks, Grant -- Grant Rutherford Iders Incorporated 600A Clifton Street Winnipeg, MB R3G 2X6

RE: [PHP] Need advice, hopefully on topic.

2003-10-10 Thread Jeremy Russell
I a newbie to cvs itself. I'll take a look at the link Thanks! -Original Message- From: Mike Migurski [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 2:41 PM To: Jeremy Russell Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Need advice, hopefully on topic. I got this

[PHP] XML / XLS application

2003-10-10 Thread orlandopozo
Hello mailing list, I have a question about the use of XML / XLS application, I am introducing myself in this technology, What is useful XML / XLS for? , I need a basic example, basic application of it, because I don't find the use of it. I know that XML is used to interchange data between every

[PHP] Re: CSV file with PHP

2003-10-10 Thread Curt Zirzow
On Fri, 10 Oct 2003 18:38:04 -0300, Cesar Aracena [EMAIL PROTECTED] wrote: Hi all, Does anybody knows how to make a CSV (comma separated values) file with PHP based on results fetched from MySQL? I need it to import it with Microsoft Outlook Express. csv file format as follows: value,value\

[PHP] Oracle - Win32

2003-10-10 Thread orlandopozo
Hello mailing list, I want to use Oracle function in PHP parser in Win32 OS, but I don't know how to install it, in the official documentation tell this: Installation You have to compile PHP with the option --with-oracle[=DIR], where DIR defaults to your environmment variable ORACLE_HOME. I

Re: [PHP] CSV file with PHP

2003-10-10 Thread Dan Anderson
You could do something like: $result = mysql_query($query) or die(mysql_error()); // don't display errors on production machines $first = TRUE; while ($line = mysql_fetch_array($result)) { if ($first) { foreach ($line as $key = $value) { if ($first) {

Re: [PHP] Quick question: PHP user?

2003-10-10 Thread Dan Anderson
Just a quick question... What user does php run as on linux? It all depends on how PHP is set up. Do something like: $fff = fopen (./temp,w); fwrite($fff,testing); fclose($fff); in a directory chmod 777. Look at the user id. (For what it's worth on my system its UID 518). -Dan -- PHP

[PHP] Re: Quick question: PHP user?

2003-10-10 Thread Curt Zirzow
On Fri, 10 Oct 2003 16:44:37 -0500, Grant Rutherford [EMAIL PROTECTED] wrote: Hi, Just a quick question... What user does php run as on linux? Is it the Apache user? Is there some way to tell? I need to be able to set a directory so that only PHP can access it. You can figure who

Re: [PHP] Quick question: PHP user?

2003-10-10 Thread Ryan Thompson
As an apache module it runs as the apache user. On Friday 10 October 2003 17:44, Grant Rutherford wrote: Hi, Just a quick question... What user does php run as on linux? Is it the Apache user? Is there some way to tell? I need to be able to set a directory so that only PHP can access it.

Re: [PHP] CSV file with PHP

2003-10-10 Thread Curt Zirzow
On Fri, 10 Oct 2003 18:09:14 -0400, Dan Anderson [EMAIL PROTECTED] wrote: while ($line = mysql_fetch_array($result)) { if ($first) { foreach ($line as $key = $value) { if ($first) { fwrite($file_handle, $key); $first = FALSE; } else { fwrite($file_handle, , $key); } } fwrite ($file_handle,

[PHP] controlling cvs from php

2003-10-10 Thread Jeremy Andrews
Hello, I'm trying to login to a cvs repository and upload/download files from a php script utilizing the 'cvs' command. I'm trying to avoid the use of external libraries, etc... Is it possible to do this with popen, or more likely with proc_open? I'd prefer to do it with the former so as

[PHP] Re: XML / XLS application

2003-10-10 Thread Curt Zirzow
On Fri, 10 Oct 2003 18:09:18 -0400, [EMAIL PROTECTED] wrote: Hello mailing list, I have a question about the use of XML / XLS application, I am introducing myself in this technology, What is useful XML / XLS for? XML - data storage XLS - language to display define how to display XML. HTML - XML

  1   2   >