[PHP] FTP'ing with function

2002-11-25 Thread poliva
I am trying to ftp with php code. The code works, but the file is truncated for some reason. The only thing that I could think of would be directive in the php.ini file, but these seem to be ok: max_execution_time = 60 > the files / script process quickly, so this doesn't seem to be the probl

Re: [PHP] Problem on OpenDir()

2002-11-25 Thread Joakim Andersson
Jack wrote: Dear all here is the path i want to open for reading files from it! path = "c:/pdf_reports/bills/Oct-02" Here you have no trailing / --- Snip --- when i change the path to : "c:/pdf_reports/bills/" But here you do... It should not make a difference as far as I know, but it may be w

Re: [PHP] FTP'ing with function

2002-11-25 Thread Matt Vos
Are you sure you are using the ASCII/Binary flag properly? Also, in your script, are you opening the file with fopen() then reading with fgets/fread to write to a file on the ftp? or are you using ftp_put()? I know if there is binary data in a file you are attempting to send ascii, it will truncat

[PHP] Re: imap

2002-11-25 Thread Greg
When trying to imap_connect to my local imap server, I get this error: Warning: Couldn't open stream {localhost:143} in /var/www/html/user/mail.php on line 2 can't connect: Any ideas? Thanks "Greg" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Can I user ph

[PHP] Starting an application on web server

2002-11-25 Thread Nic Fordham
Hi there, I am hosting a server running castle wolfenstein for a few friends of mine & want to make a web page to run on the same server that they can log in to to stop & start the game when they want. I have tried putting the following code in a web page - This creates a process on my server as

[PHP] Missing images

2002-11-25 Thread Baumann Reto
Hi all I have kind of a very strange problem... But I hope someone can help. Imageing a little web-based application for browsing images. Every page is exactly the same (from a php point of view). A user can browse through all the images which are displayed as thumbnails. Normally, everything work

[PHP] RedHat 8.0 php_flag invalid command error

2002-11-25 Thread Gary Smith
Aloha All, I've just installed RedHat Linux 8.0 and everything seems to work except I get this error from any of my .htaccess files. Invalid command 'php_flag' If I remove the php_flag then the site loads, otherwise I get an internal server error. The default install for RH8.0 is PHP 4.2.2 and

[PHP] Post your announcements in PHP Journal

2002-11-25 Thread Martin Streicher, Editor
PHP Journal is a new, quarterly technical publication focused on all things PHP. The first issue of PHPJ is scheduled for publication in January 2003, and features a great line-up of columns (that will appear in every issue) and feature stories, all written by experienced PHP developers and authors

Re: [PHP] Re: BBCode?

2002-11-25 Thread Jason Wong
On Tuesday 26 November 2002 04:42, Kyle Gibson wrote: > > Thanks, but that doesn't allow nested tags (a [b] tag inside of an [i] > > tag, for example). > > Nested tags? Do you mean [ib] ? Or [i[b]]? I think he means: "[i]A sentence in italics, with a word in [b]bold[/b][/i]" -- Jason Wong -> G

Re: [PHP] Re: BBCode?

2002-11-25 Thread Kyle Gibson
I think he means: "[i]A sentence in italics, with a word in [b]bold[/b][/i]" Yeah he told me. -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: BBCode?

2002-11-25 Thread Kyle Gibson
Thanks, but that doesn't allow nested tags (a [b] tag inside of an [i] tag, for example). Try this: \2',$text); while($temp != $text) { $temp = $text; $text = ereg_replace($pattern,'<\1>\2',$text); } return $text; } print format_text('[i] this is a [b]bold[/b]

[PHP] PHP Magick version 0.5a Released!

2002-11-25 Thread Michael Montero
Just released some more functionality. The major push right now is join my efforts with those of Christian Stocker to get one single module into PEAR. Christian and I have been working that. Please see the latest changes below...they are significant. - functions added:

[PHP] forum module for NUKE?

2002-11-25 Thread The Gabster
Hi all, I am looking for a php forum module for NUKE portal system. I am specifically looking for the same functionality as yahoogroups has where the user can post/receive messages on a specified email address- beside accessing the forum via the web. Thanks a lot, GAbi. _

[PHP] function args declared by-reference, with default value?

2002-11-25 Thread Nick Eby
true or false: when declaring a function, a given argument can be declared to pass by reference, or can be declared to have a default value, but never both. i.e., you can only write one of: function foo(&$param) function foo($param = "bar") but never the equivalent of: function foo(&$param = "ba

RE: [PHP] forum module for NUKE?

2002-11-25 Thread Peter Houchin
there's sort of one in there already ... but also check out http://www.nukescripts.net/ and that has links off that for other nuke sites/add on's > -Original Message- > From: The Gabster [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 26 November 2002 9:35 AM > To: [EMAIL PROTECTED] > Subject:

Re: [PHP] array manipulations

2002-11-25 Thread DL Neil
Mattia, > Can anyone suggest an ELEGANT way to find out if an array is made of empty > strings or not? > example > $a = Array( '' , '' , '' ); //ok > $b = Array( '' , '' , 'error' ); // not ok > $c = Array( 'error' , '' , 'error' ); // not ok implode() then check for nullstring/count characters.

RE: [PHP] inserting preexisting image inside dynamic image

2002-11-25 Thread Eric Pierce
That'll do it... thanks a lot! Eric Martin Towell <[EMAIL PROTECTED]> wrote: try these: ImageCopy*() -Original Message- From: Eric Pierce [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 2:57 PM To: [EMAIL PROTECTED] Subject: [PHP] inserting preexisting image inside dynamic im

Re: [PHP] Linux Question

2002-11-25 Thread Justin French
on 26/11/02 2:41 AM, Brian V Bonini ([EMAIL PROTECTED]) wrote: > Also, try to use relative sizes, if you use fixed sized like 10pt. you > will have size discrepancies on different platforms. If you use a > relative scheme like 12px it will render more consistently 12px is NOT a relative size,

Re: [PHP] Re: BBCode?

2002-11-25 Thread Justin French
on 26/11/02 7:42 AM, Kyle Gibson ([EMAIL PROTECTED]) wrote: >> Thanks, but that doesn't allow nested tags (a [b] tag inside of an [i] >> tag, for example). > > Nested tags? Do you mean [ib] ? Or [i[b]]? I would have thought nested tags would have meant: [i]something something [b]bolder[/b] some

[PHP] HELP: When hitting Refresh I still get old data ..

2002-11-25 Thread Krispi
Hi! Here is my scenario. I'm doing a dynamic html with php for my address book. When I enter all the data that is necesary and hit Submit, for saving the user( using POST), I get an error or success message, which is OK, but if I press a Refresh button now, it will try to save the user again, bec

Re: [PHP] forum module for NUKE?

2002-11-25 Thread The Gabster
Thanks Peter... I was there but I wasn't able to come up with anything. Can you please name one? Thanks a lot, GAbi. "Peter Houchin" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > there's sort of one in there already ... but also check out > http://www.nukes

Re: [PHP] Linux Question

2002-11-25 Thread Brian V Bonini
On Mon, 2002-11-25 at 18:26, Justin French wrote: > on 26/11/02 2:41 AM, Brian V Bonini ([EMAIL PROTECTED]) wrote: > > > Also, try to use relative sizes, if you use fixed sized like 10pt. you > > will have size discrepancies on different platforms. If you use a > > relative scheme like 12px it wil

[PHP] Making verification code harder to OCR?

2002-11-25 Thread Leif K-Brooks
I'm using a verification code image to stop automated sign ups, but two hackers seem to be OCRing it. I've looked through the registration script, and there's definitley no security holes. Does anyone have any ideas as to making the image harder to OCR? // seed with microseconds function mak

[PHP] Re: safe_mode On -- What exactly does it **DO**?

2002-11-25 Thread Richard
It appears to do some stuff which is undocumented. Specifically it quotes input to popen thus causing any redirection and other comand line stuff to be passed to the program that is being invoked as command parameters. Most of the stategies to simulate bidirectional pipes break because of this. Jr

[PHP] Re: safe_mode On -- What exactly does it **DO**?

2002-11-25 Thread Richard
It appears to do some stuff which is undocumented. Specifically it quotes input to popen thus causing any redirection and other comand line stuff to be passed to the program that is being invoked as command parameters. Most of the stategies to simulate bidirectional pipes break because of this. Jr

[PHP] mail() question!

2002-11-25 Thread Beauford.2002
Hi, I have a form where a user enters an email address. The contents of the form are then sent to myself, which works fine. The problem is that the from field says it is from nobody - how can I get it to say it is from the email address the user inputted - or is this possible? TIA -- PHP Gene

[PHP] Re: mail() question!

2002-11-25 Thread Nick Eby
you can use the (optional) headers argument to mail() and add the From header: mail ($to, $subject, $body, "From: $from"); "Beauford.2002" <[EMAIL PROTECTED]> wrote in message 000f01c294e0$6ce1fcd0$6401a8c0@p1">news:000f01c294e0$6ce1fcd0$6401a8c0@p1... > Hi, > > I have a form where a user enters

[PHP] Application with barcodes

2002-11-25 Thread Axis Computers
Hi, I am developing a demo of an application which uses barcodes, but I'm running into the following problems: 1. The gd library's compiled with SuSE 7.3 Pro version of PHP 4.06 doesn't support TTF so I have to install Postcript fonts (it does support Type 1), and I really don't know where I sho

[PHP] PHP_AUTH_USER failing, please help me...

2002-11-25 Thread Larry Brown
I just built a new server and loaded with RH8. I copied my php files over to the new apache server and modified the links. I couldn't find any mention of php in the httpd.conf so I figured it must me compiled into httpd so I tested it. The PHP files load, however, the php_auth_user and php_auth_

[PHP] Re: PHP_AUTH_USER failing, please help me...

2002-11-25 Thread Philip Hallstrom
Just a quick guess that register_globals is probably turned off (check with a phpinfo() to be sure) and therefore $PHP_AUTH_USER and $PHP_AUTH_PW are not being set. Or, try $_SERVER[PHP_AUTH_USER], etc... On Mon, 25 Nov 2002, Larry Brown wrote: > I just built a new server and loaded with RH8. I

[PHP] RE: PHP_AUTH_USER failing, please help me...

2002-11-25 Thread Larry Brown
Phil, You da man! It just doesn't get any sweeter. Register_globals is off. Thank you, Larry S. Brown Dimension Networks, Inc. -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 7:40 PM To: Larry Brown Cc: PHP List Subject: Re

RE: [PHP] forum module for NUKE?

2002-11-25 Thread Troy May
Doesn't PHP-Nuke have support forums? It would be better to ask in there if they do. -Original Message- From: The Gabster [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 3:43 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] forum module for NUKE? Thanks Peter... I was there but

[PHP] & in Query String

2002-11-25 Thread Jonathan Rosenberg
I have a page with thumbnail pictures that can be clicked on to see a larger picture. Each picture is hyperlinked as follows I access the 'pic' & 'caption' attributes with $_GET['pic'], etc. Pretty standard stuff. I have PHP set up so that error messages get mailed to a specified mail

Re: [PHP] Linux Question

2002-11-25 Thread Justin French
on 26/11/02 11:04 AM, Brian V Bonini ([EMAIL PROTECTED]) wrote: > On Mon, 2002-11-25 at 18:26, Justin French wrote: >> on 26/11/02 2:41 AM, Brian V Bonini ([EMAIL PROTECTED]) wrote: >> >>> Also, try to use relative sizes, if you use fixed sized like 10pt. you >>> will have size discrepancies on d

[PHP] Re: Application with barcodes

2002-11-25 Thread Manuel Lemos
Hello, On 11/25/2002 10:34 PM, Axis Computers wrote: I am developing a demo of an application which uses barcodes, but I'm running into the following problems: 1. The gd library's compiled with SuSE 7.3 Pro version of PHP 4.06 doesn't support TTF so I have to install Postcript fonts (it does su

[PHP] Re: When hitting Refresh I still get old data ..

2002-11-25 Thread christian haines
is it that your response page and the page processing the data are the same page? i have had issues with this previously and had to use a 3 step process - 1. address book form 2. processing script page 3. response page -- Christian Haines Internet Developer MITOUSA. Branding Strategies for

[PHP] Need help on client certificate validation using OpenSSL/PHP

2002-11-25 Thread Richard Rojas
Hi All, I'm a PHP newbie and Im really having difficulty with client-server certificate validation using Openssl and PHP. If somehow you know of a tutorial, a website or sample PHP codes that checks (expired, revoked) and validates client certificates, it would be of great help.

[PHP] More mail() questions.

2002-11-25 Thread Beauford.2002
Hi, Thanks to all who replied to my previous email. One more small problem. I am trying to get the message portion of the email to have line breaks, but whatever I do it displays on one line. This is what I have. $message = "First Line\n"; $message = "First Line\n"; -- PHP General Mailing Lis

[PHP] Shipping Purolator Class?

2002-11-25 Thread Matt Friedman
Hi Folks, Just checking around to see if anyone is using a Purolator web service to determine shipping costs online. Wondering if there are classes available and if the service is hard to use. Thanks very much, Matt Friedman > -Original Message- > From: John W. Holmes [mailto:[EMAIL

[PHP] (( Purolator Shipping ))

2002-11-25 Thread Matt Friedman
Hi Folks, Just checking around to see if anyone is using a Purolator web service to determine shipping costs online. Wondering if there are classes available and if the service is hard to use. Thanks very much, Matt Friedman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] More mail() questions.

2002-11-25 Thread Beauford.2002
Hi, Sorry, my last email got sent by mistake. I am trying to get the message portion of the email to have line breaks, but whatever I do it displays on one line. This is what I have. $message = "1st Line\n"; $message .= "2nd Line\n"; $message .= "\n"; $message .= "3rd Line\n"; $message .= "\n

[PHP] Re: More mail() questions.

2002-11-25 Thread Kyle Gibson
I am trying to get the message portion of the email to have line breaks, but whatever I do it displays on one line. This is what I have. $message = "1st Line\n"; $message .= "2nd Line\n"; $message .= "\n"; $message .= "3rd Line\n"; $message .= "\n"; $message .= "4th Line\n"; mail ("", $subject,

[PHP] Warning with Header("Location: test.php")

2002-11-25 Thread Padmini . Dey
I have user Header("Location: test.php") in a php file. It is not working, instead I have got a warning of the form Warning: Cannot add header information - headers already sent by (output started at /var/www/html/test.php:5) in /var/www/html/test.php on line 15 Here line 15 contains the Header (

RE: [PHP] Warning with Header("Location: test.php")

2002-11-25 Thread Peter Houchin
your header command must go before any other out put to the page .. eg boo etc > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 26 November 2002 3:02 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Warning with Header("Location: test.php") > > >

[PHP] Do i need triggers for this?

2002-11-25 Thread Faisal Abdullah
Hi guys, Lets say I have a table called 'employees', and another table called 'training_history'. Lets say I need to delete an employee, I would also have to delete his record in the 'training_history' table. Which is the best way to go about this? Controlling it at application level? Or should

Re: [PHP] Do i need triggers for this?

2002-11-25 Thread Justin French
on 26/11/02 3:46 PM, Faisal Abdullah ([EMAIL PROTECTED]) wrote: > Lets say I have a table called 'employees', and another table called > 'training_history'. > > Lets say I need to delete an employee, I would also have to delete his > record in the 'training_history' table. The employee would (I

RE: [PHP] Warning with Header("Location: test.php")

2002-11-25 Thread John W. Holmes
> I have user Header("Location: test.php") in a php file. It is not working, > instead I have got a warning of the form > > Warning: Cannot add header information - headers already sent by (output > started at /var/www/html/test.php:5) in /var/www/html/test.php on line 15 header() must come befor

Re: [PHP] Need help on client certificate validation using OpenSSL/PHP

2002-11-25 Thread Chris Shiflett
--- Richard Rojas <[EMAIL PROTECTED]> wrote: > I'm a PHP newbie and Im really having difficulty with > client-server certificate validation using Openssl and > PHP. If somehow you know of a tutorial, a website or > sample PHP codes that checks (expired, revoked) and > validates client certificates,

Re: [PHP] Do i need triggers for this?

2002-11-25 Thread Faisal Abdullah
> So, yes, I'd do this at an application level... although I have no idea what > triggers are :) > It does pretty much the same, only at the database level. The application doesn't have to know. All the application needs to know is to delete the id in the 'employee' table. Triggers will do the re

[PHP] implode()?

2002-11-25 Thread Jami
I need help once more. I have a variable that is a string with spaces. What I need to do is put a "+" sign in the spaces so that the string will print like "This+is+a+string." I have tried using implode, but I get this error: Warning: Bad arguments to implode() The code I am using is as follows

Re: [PHP] implode()?

2002-11-25 Thread Rasmus Lerdorf
str_replace On Mon, 25 Nov 2002, Jami wrote: > I need help once more. I have a variable that is a string with spaces. What I need >to do is put a "+" sign in the spaces so that the string will print like >"This+is+a+string." I have tried using implode, but I get this error: > > Warning: Bad arg

Re: [PHP] implode()?

2002-11-25 Thread Jami
Ok, figures I would be looking for something else and find the solution. urlencode(). Thanks for the reply Rasmus. :-) Jami - Original Message - From: "Jami" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Monday, November 25, 2002 11:26 PM Subject: [PHP] implode()? I

[PHP] www.php.net

2002-11-25 Thread Paul Marinas
is down? or my computer . Paul Marinas Technical Support RDS Craiova Phone: +402-51-410-194 Mobile: +407-22-451-439 Fax:+402-51-416-579 www.rdsnet.ro . Privileged/Confidential Information may be contained in this message. If you are n

Re: [PHP] Linux Question

2002-11-25 Thread conbud
Lets see where to start. Ive used both the px, pixels, and the small and tested them both in Linux (Mandrake 9.0) using Mozilla. Galeon and Opera, using default settings they come with, and they zoom the text with no problems. On windows Ive tested the same stuff using IE and Netscape, using defaul

Re: [PHP] Warning with Header("Location: test.php")

2002-11-25 Thread Björn Schotte
Hi, * [EMAIL PROTECTED] wrote: > Warning: Cannot add header information - headers already sent by (output > started at /var/www/html/test.php:5) in /var/www/html/test.php on line 15 You see that the output began on /var/www/html/test.php on line 5. It may be a char or even a whitespace. Normally

Re: [PHP] Form trouble

2002-11-25 Thread Björn Schotte
Hi, * David H wrote: > After I submited a query, if I use back then forward > again the form will resubmit itself. Which I do not > want. Does anyone have a solution for this problem? Register a token in a session var after submitting the form. When the user get's again on the resubmitted page yo

[PHP] Re: & in Query String

2002-11-25 Thread Derick Rethans
Jonathan Rosenberg wrote: I have a page with thumbnail pictures that can be clicked on to see a larger picture. Each picture is hyperlinked as follows I access the 'pic' & 'caption' attributes with $_GET['pic'], etc. Pretty standard stuff. I have PHP set up so that error messages get mailed

[PHP] Re: Making verification code harder to OCR?

2002-11-25 Thread Derick Rethans
Leif K-Brooks wrote: I'm using a verification code image to stop automated sign ups, but two hackers seem to be OCRing it. I've looked through the registration script, and there's definitley no security holes. Does anyone have any ideas as to making the image harder to OCR? Use two different

[PHP] Re: function args declared by-reference, with default value?

2002-11-25 Thread Derick Rethans
Nick Eby wrote: true or false: when declaring a function, a given argument can be declared to pass by reference, or can be declared to have a default value, but never both. i.e., you can only write one of: function foo(&$param) function foo($param = "bar") but never the equivalent of: function

Re: [PHP] implode()

2002-11-25 Thread Jason Wong
On Tuesday 26 November 2002 14:51, Jef wrote: > I am having difficulty with the implode function. What I am doing is > building a string for an UPDATE SQL command. At the end of the building > portion of the code, I want to insert a comma between the various fields > that will be updated. However,

Re: [PHP] www.php.net

2002-11-25 Thread Chris Shiflett
--- Paul Marinas <[EMAIL PROTECTED]> wrote: > is down? > or my computer . It works fine for me. Perhaps you should try a mirror: Australia: http://au.php.net/ English http://au2.php.net/ English Austria: http://at.php.net/ German http://at2.php.net/ German Belgium: http://be.php.net/ Engli

[PHP] implode()

2002-11-25 Thread Jef
I am having difficulty with the implode function. What I am doing is building a string for an UPDATE SQL command. At the end of the building portion of the code, I want to insert a comma between the various fields that will be updated. However, it is not working. Here is a portion of my code...than

[PHP] RE: [PHP-DB] implode()

2002-11-25 Thread Beau Lebens
implode accepts an *array* as input, not a string. you would need to change your $sqlUpdate to be an array, and each statement look something like; if($textfield12 != '') { $sqlUpdate[] = "textfield12='$textfield12'"; } of course it would probably be easier to just do something like this; if($ima

<    1   2