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

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,

[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

[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

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

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

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

[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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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

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

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]

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

[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

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

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

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

[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] php_value disable_functions sintax?

2002-11-25 Thread Rodolfo Gonzalez
On Mon, 25 Nov 2002, Rasmus Lerdorf wrote: > You can't disable functions in your httpd.conf. That particular directive > is probably the only one that is server-wide and can only be set in your > php.ini file. The reason is that it is too expensive to disable and > re-enabled functions on a per-

RE: [PHP] Form trouble

2002-11-25 Thread Chris Shiflett
There is one common method used to avoid this that is pretty reliable. 1. http://example.org/1.php submits to http://example.org/2.php 2. http://example.org/2.php processes the form, then uses a Location header to redirect to http://example.org/3.php. For example: header("Location: http

RE: [PHP] Form trouble

2002-11-25 Thread Clint Tredway
Not really. The back button uses the browers history to go back.. And there is no way to disable the back button. -Original Message- From: David H [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 2:33 PM To: Clint Tredway; [EMAIL PROTECTED] Subject: RE: [PHP] Form trouble Bu

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). Nested tags? Do you mean [ib] ? Or [i[b]]? If you mean [ib], then I'm afraid what you want cannot be done in ereg_replace. As far as I am aware, that is. -- Kyle Gibson admin(at)frozenonline.com http://w

Re: [PHP] php_value disable_functions sintax?

2002-11-25 Thread Rasmus Lerdorf
You can't disable functions in your httpd.conf. That particular directive is probably the only one that is server-wide and can only be set in your php.ini file. The reason is that it is too expensive to disable and re-enabled functions on a per-request basis which is what we would need to do if w

RE: [PHP] Re: Sorting parsed XML

2002-11-25 Thread Chris
Unavailable as I am reading an XML file produced by another web site and it dynamically updates the information on the sheet every 5 minutes or so. At least to my knowledge of what XSLT can do. > From: Geoff Hankerson [mailto:[EMAIL PROTECTED]] > > This seems to me to be more easily handled by

RE: [PHP] Form trouble

2002-11-25 Thread David H
But what about updates to the database...? Is there away not to have the information send to the server at all? Thanks, David --- Clint Tredway <[EMAIL PROTECTED]> wrote: > When the form is submitted check the database with > the info that is > being submitted. If a record matches the data being

Re: [PHP] Form trouble

2002-11-25 Thread Chris Boget
> When the form is submitted check the database with the info that is > being submitted. If a record matches the data being submitted then don't > do the insert. If there is not a record there, then insert the record.. Either that or, if you are using mySQL, instead of using "INSERT INTO..." use "

Re: [PHP] imagecopyresized

2002-11-25 Thread Morgan Hughes
On Mon, 25 Nov 2002, adrian [EMAIL PROTECTED] wrote: > sorry.i included the link so you can see the result > it's difficult to explain what it looks like without including > attachments - which is a worse idea i think! > there are no errors it just looks bad. > i didn't know that imagecreate() pro

[PHP] php_value disable_functions sintax?

2002-11-25 Thread Rodolfo Gonzalez
Hi, I'm trying to use disable_functions inside an Apache's VirtualHost, like this: php_value disable_functions basename,chgrp,chmod,phpinfo I tried both with and without " but the functions are not disabled. I'm using php_flag safe_mode on in the same virtual host. Any help on what I'm doing

[PHP] Re: Newbie: ereg

2002-11-25 Thread Mattia
I don't know if I got it right bu try echo htmlentities('This shall be visible'); htmlentities() will translate your string in 'This shall be visible' > This shall be visible > or > This shall be visible too -- PHP General Mailing List (http://www.php.net/) To unsu

RE: [PHP] Form trouble

When the form is submitted check the database with the info that is being submitted. If a record matches the data being submitted then don't do the insert. If there is not a record there, then insert the record.. HTH Clint -Original Message- From: David H [mailto:[EMAIL PROTECTED]] Sent:

[PHP] Form trouble

Hi, 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? Thanks, David __ Do you Yahoo!? Yahoo! Mail Plus – Powerful. Affordable. Sign up now. h

[PHP] array manipulations

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 tia Mattia -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] Re: imap

On Mon, 25 Nov 2002 14:14:54 -0500 [EMAIL PROTECTED] (Greg) wrote: > Can I user php to create IMAP mailboxes? I'm using Cyrus and php and apache > are running on the same computer as Cyrus. Thanks! > -Greg > > Maybe something like that would fit your needs: http://www.delouw.ch/linux/web-cyr

Re: [PHP] imap

On Tuesday 26 November 2002 03:14, Greg wrote: > Can I user php to create IMAP mailboxes? I'm using Cyrus and php and > apache are running on the same computer as Cyrus. Thanks! The short answer is, yes. The long answer is, if you have to ask then no. Try searching the archives for something a

Re: [PHP] Automajickally POST to a remote form

--- Kris Williams <[EMAIL PROTECTED]> wrote: > Once upon a time I used to be able to POST form data to external > sites with ASP and an MSXML (or something) server object on IIS > and I'm wondering if there's a similar sort of technique using > PHP. You can post with PHP using cURL or doing it yo

[PHP] Continuing Session Within Socket

Hi. I'm working on a project where I need to send a user an e-mail whose content is identical to an already existing PHP-generated web page. (This web page relies on session data to do its work.) The mail function in PHP requires that I save the HTML of this page into a variable and send it along

[PHP] Continuing Session Within Socket

Hi. I'm working on a project where I need to send a user an e-mail whose content is identical to an already existing PHP-generated web page. (This web page relies on session data to do its work.) The mail function in PHP requires that I save the HTML of this page into a variable and send it along

Re: [PHP] imagecopyresized

sorry.i included the link so you can see the result it's difficult to explain what it looks like without including attachments - which is a worse idea i think! there are no errors it just looks bad. i didn't know that imagecreate() produces 8-bit images. this implies that with older versions of gd

Re: [PHP] Re: BBCode?

This will replace all versions (open and close) of bold, italicize and underline tags with brackets using preg_replace. $text = preg_replace("/\[(\/)?([biu])\]/","<\\1\\2>",$text) ; - find [ = "\[" - match IF slash exists = "(\/)?" - match

[PHP] imap

Can I user php to create IMAP mailboxes? I'm using Cyrus and php and apache are running on the same computer as Cyrus. Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] imagecopyresized

On Mon, 25 Nov 2002, adrian [EMAIL PROTECTED] wrote: > hi > i'm having problems resizing jpegs. > here's an e.g. using manual example. > code used : > $new_w=395; > $new_h=297; > header("Content-type: image/jpeg"); > $dst_img=ImageCreate($new_w,$new_h); > $src_img=ImageCreateFromJpeg($name); > >

[PHP] Re: sockets (again)

Hi, You have to choose a protocol for AF_INET sockets. Try getprotobyname() with tcp and udp to get one. bye On Mon, 25 Nov 2002 10:24:46 -0800 [EMAIL PROTECTED] (Gareth Thomas) wrote: > Hi, > > I really need some help here because I am going to lose my mind otherwise!! > A script that was run

Re: [PHP] Re: Sorting parsed XML

This seems to me to be more easily handled by XSLT. (Not the only option but a good one). XSLT lets you select only the nodes you want and also sort them as well. @ Edwin wrote: Hello, "Chris" <[EMAIL PROTECTED]> wrote: I'm trying to write PHP code that will not only parse the XML but also

Re: [PHP] imagecopyresized

On Tuesday 26 November 2002 02:10, [EMAIL PROTECTED] wrote: > hi > i'm having problems resizing jpegs. > here's an e.g. using manual example. > code used : > $new_w=395; > $new_h=297; > header("Content-type: image/jpeg"); > $dst_img=ImageCreate($new_w,$new_h); > $src_img=ImageCreateFromJpeg($name)

[PHP] sockets (again)

Hi, I really need some help here because I am going to lose my mind otherwise!! A script that was running fine Friday has decided not to work for no apparent reason today. The problem seems to be with a socket_create that just stops the script, so I created a simple test script as shown below to s

Re: [PHP] Upgrade issues

All files are owened by my Apache user + Group, set to rw access on files and rwx on directories... I do a chown + chmod on my web server's tree every few minutes via cron for my development system. Just to proove my point... root@netsonic:~# ls -l /usr/local/www/v-webs/games.savage.za.org/html/

Re: [PHP] Re: BBCode?

On Tuesday 26 November 2002 01:42, Leif K-Brooks wrote: > Thanks, but that doesn't allow nested tags (a [b] tag inside of an [i] > tag, for example). If you want to deal with nested tags then it's probably best to replace each opening and closing tag individually. Otherwise you might end up with

Re: [PHP] Recommendations for PHP/MySQl calendar & on-line submission/votin g

Dave, et al -- ...and then Merritt, Dave said... % % I working with helping our local high school technical center set up a web % server/site. Went with the typical AMP solution (unfortunately on MSWin Hey, three out of four ain't bad :-) % though). The center is wanting to add an on-line ca

Re: [PHP] Upgrade issues

Check the owners of directories and files, they must be the same as for /usr/local/www/v-webs/games.savage.za.org/html/index.php, then it should work under safe mode too. Chris Knipe wrote: if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) { $modpath = "th

Re: [PHP] php-4.3.0pre2, fgets and socket_get_status

Does anyone know of any significant changes to the fgets() function in php-4.3.0pre2 which might affect reading from a socket a single byte at a time in the way I describe below? I've had to change to using fread() instead, which is fine, but I'd like to know why I've had to do this, and whether th

[PHP] imagecopyresized

hi i'm having problems resizing jpegs. here's an e.g. using manual example. code used : and the result can be seen here. http://www.sitestogo.biz/temp/test.php i'm wondering if it's to do with the gd library installed.

Re: [PHP] Upgrade issues

> > > > if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) { > > > > $modpath = "themes/$ThemeSel/"; > > > > } > > > > > > > > I don't get it? > > > > > > > > Warning: Unable to access themes/DeepBlue/modules/News/index.php in > > > > /usr/local/www/v-webs/games.savage

Re: [PHP] PHP.net spam protection

On Tuesday 26 November 2002 00:02, Gene Bandy wrote: > Hello all, > > > > I have searched the archives and cannot find an answer to this question. Which archives did you search? Not the PHP ones I hope? > I would like to implement the same type of white list spam protection > (where you must send

[PHP] Re: Newbie: ereg

I still havent found a site that shows what I need. I dont think php.net explain how ereg works. I only want to publish stuff from the stringvariable $text thats inside tags looking like this This shall be visible or This shall be visible too thanks Martin Try the following: ]+>)([^<]+)(]+>)

[PHP] Re: Sorting parsed XML

Sorry, use to using to a listserv that auto-plants the listserv address, not the responder's address on replies :P > From: @ Edwin [mailto:[EMAIL PROTECTED]] > If you'd like to sort these, then I think you might be able > to do something like this: 1. Instead of printf()'ing your > 's or 's ins

  1   2   >