[PHP] Re: Zlib Compression || Implementation || Bandwidth Savings?

2004-02-04 Thread rush
Cf High [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] My lord, this rocks! Our pages load at least twice as fast now, and bandwidth will likely be reduced by at least a factor of 2. I would strongly recommend utilizing zlib compression functions to anyone looking to speed page

[PHP] [Newbide Guide] For the benefit of new members

2004-02-04 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en

[PHP] PEAR DB 1.6.0RC4 released

2004-02-04 Thread Daniel Convissor
Hi Folks: I just released version 1.6.0RC4 of PEAR DB. Several things have been fixed since RC1 which is included with the latest PHP RC release. Also, if you're using 1.5.0 variants or earlier, definitely check out the new version for loads of enhancements and way fewer bugs. I've also spent

[PHP] Is there a PHP Style Sheet Switcher that doesn't reload pages?

2004-02-04 Thread Freedomware
I have a JavaScript style sheet switcher that works quite nicely, but I want to make a MULTI-style switcher; one that lets you switch various items independently of one another. It sounds like it can be done with either PHP or JavaScript, each with its own advantages. The biggest disadvantage

Re: [PHP] Is there a PHP Style Sheet Switcher that doesn't reload pages?

2004-02-04 Thread Raditha Dissanayake
Hi, This is explained in Kumar's mail which was sent out a little while ago. If you didn't see it an older version is archived here: http://www.mail-archive.com/[EMAIL PROTECTED]/msg128334.html but in short it can't be done. Does anyone know if there's a PHP method that does NOT involve

[PHP] Date comparison

2004-02-04 Thread BEOI 7308
Hi I want to substract $first_date to $second_date and print the result this way : xx days, xx hours, xx minutes i tried (strtotime($second_date)-strtotime($first_date)) but what i get is a timestamp and i dont know what to do with it Is there already a function to print the result in a human

Re: [PHP] Is there a PHP Style Sheet Switcher that doesn't reload

2004-02-04 Thread Freedomware
Hm... I haven't found Kumar's style sheet switcher post yet, but if you say it can't be done, I'll take your word for it. Thanks for the tip. Raditha Dissanayake wrote: Hi, This is explained in Kumar's mail which was sent out a little while ago. If you didn't see it an older version is

Re: [PHP] Is there a PHP Style Sheet Switcher that doesn't reload

2004-02-04 Thread Adam Bregenzer
On Wed, 2004-02-04 at 04:47, Freedomware wrote: Hm... I haven't found Kumar's style sheet switcher post yet, but if you say it can't be done, I'll take your word for it. The problem here is your approach. PHP can only be used to control the content sent to browsers. Once the browser

[PHP] PDFlib, transparency and TIFF images

2004-02-04 Thread Victor Spång Arthursson
Hi everyone - hope there's someone good at PDFlib out there I'm trying to use a picture, a TIFF image, with transparency, in a PDF created by a PHP-script... The manual says that only explicit transparency can be used when working with TIFF images, and that this operation requires two steps

[PHP] PHP MYSQL Drop Down Select Box

2004-02-04 Thread Junaid Saeed Uppal
Hello Everyone, I am trying to make 2 drop down boxs using data from a mysql database , the code is attached , the problem is I have a category and a sub category table. The link between the two tables is the id ( ID in category table mid in subcat tables are the same ) . So i would like to

RE: [PHP] Date comparison

2004-02-04 Thread Burhan Khalid
BEOI 7308 wrote: Hi I want to substract $first_date to $second_date and print the result this way : xx days, xx hours, xx minutes i tried (strtotime($second_date)-strtotime($first_date)) but what i get is a timestamp and i dont know what to do with it Is there already a function

RE: [PHP] Re: authentication comparing to /etc/passwd

2004-02-04 Thread Burhan Khalid
John Taylor-Johnston wrote: if($PHP_AUTH_USER != user1) || ($PHP_AUTH_PW != password) ... or somehting like that. I can't find it in the manual, but it is there someplace. Adam Williams wrote: Hi, is there a PHP function or some sort of way to have a user enter their username and

[PHP] Re: Date comparison

2004-02-04 Thread Michael Nolan
Burhan Khalid wrote: BEOI 7308 wrote: Hi I want to substract $first_date to $second_date and print the result this way : xx days, xx hours, xx minutes i tried (strtotime($second_date)-strtotime($first_date)) but what i get is a timestamp and i dont know what to do with it Is there already a

[PHP] Slightly OT! PHP / HTML Editor for Linux

2004-02-04 Thread Shaun
Hi, I've just switched from Windows to Linux and don't want to change back! However I used to use Dreamweaver MX for all my PHP / HTML editing, can anyone recommend a good alternative? Many thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Slightly OT! PHP / HTML Editor for Linux

2004-02-04 Thread Jay Blanchard
[snip] I've just switched from Windows to Linux and don't want to change back! However I used to use Dreamweaver MX for all my PHP / HTML editing, can anyone recommend a good alternative? [/snip] Try Zend Studio. http://www.zend.com -- PHP General Mailing List (http://www.php.net/) To

[PHP] [ERR] RE: [PHP] Re: authentication comparing to /etc/passwd

2004-02-04 Thread postmaster
Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) ---BeginMessage--- John Taylor-Johnston wrote: if($PHP_AUTH_USER != user1) || ($PHP_AUTH_PW != password) ... or somehting like that. I can't find it in the manual, but it is there someplace. Adam

[PHP] [ERR] RE: [PHP] Date comparison

2004-02-04 Thread postmaster
Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) ---BeginMessage--- BEOI 7308 wrote: Hi I want to substract $first_date to $second_date and print the result this way : xx days, xx hours, xx minutes i tried

RE: [PHP] Re: Issue with 'W' in the date() function?

2004-02-04 Thread Ford, Mike [LSS]
On 03 February 2004 16:16, William Bailey contributed these pearls of wisdom: Ok. Its been a long day and my brain is starting to shut down so... How would i work out which year the 'W' relates to? I have a unix timestamp value and want to end up with the correct 'YW' value. Look at

[PHP] session problem

2004-02-04 Thread marc serra
Hi, I'm working on a multi-langage website and i got problem with a fonction which destroy my session :-( I got a file which change my langage like this : // session_start(); if ($_POST['langue']==us) $_SESSION['language']=us; else

RE: [PHP] R: [PHP] SQL Query Not Kosher?

2004-02-04 Thread Ford, Mike [LSS]
On 03 February 2004 13:45, Alessandro Vitale contributed these pearls of wisdom: try removing curly braces as follows: $query = mysql_query(UPDATE stories SET status='approved' WHERE story_id={$id}); | Nothing wrong with the above, it's perfectly valid -- just a slightly different way of

Re: [PHP] PHP MYSQL Drop Down Select Box

2004-02-04 Thread Raditha Dissanayake
hi, Please visit the mysql website and read up on 'joins'. I guess you haven't seen siva kumar's mail either. You can see an archived version here. http://www.mail-archive.com/[EMAIL PROTECTED]/msg128334.html Junaid Saeed Uppal wrote: Hello Everyone, I am trying to make 2 drop down boxs using

Re: [PHP] Slightly OT! PHP / HTML Editor for Linux

2004-02-04 Thread Raditha Dissanayake
Shiva Kumar i am referring to your post for the third time today !! Shaun this topic is covered here: http://www.mail-archive.com/[EMAIL PROTECTED]/msg128334.html best regards Shaun wrote: Hi, I've just switched from Windows to Linux and don't want to change back! However I used to use

Re: [PHP] session problem

2004-02-04 Thread Jason Wong
On Wednesday 04 February 2004 20:59, marc serra wrote: When the header function is called I'm correctly redirected on the right page but all my session variables are destroyed. Try session_write_close() before you redirect. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source

RE: [PHP] session problem

2004-02-04 Thread Ford, Mike [LSS]
On 04 February 2004 12:59, marc serra contributed these pearls of wisdom: Hi, I'm working on a multi-langage website and i got problem with a fonction which destroy my session :-( I got a file which change my langage like this :

[PHP] Use of Class Reference Variable in another Class

2004-02-04 Thread news.php.net
Inside of a class I am trying to make a call to a function in another class. I have one class defined to be my DataBase Interface call dbi. To use that class I do this: $db = new dbi; Then I can use the functions in dbi like this: $db-dbquery(select * from whatever); Inside another class

[PHP] Session troubles

2004-02-04 Thread DL
Hi all, I am using PHP v4.12, and here is the scenario. I have one page, index.php with a form that has a searchfield (dropdown) and searchcriteria (textbox). When submitted I want to populate two session variables with the form values of searchfield and searchcriteria. This page also uses

[PHP] Recommendation on PHP encoder please

2004-02-04 Thread Harry Sufehmi
Hi, my company's looking to buy a PHP encoder to secure the source code. The encoded scripts should be able to run on Solaris platform (Apache webserver), and should only require minimum changes to the server. I looked on Zend Encoder and was ready to suggest it when I realise that the US$ 960

RE: [PHP] Session troubles

2004-02-04 Thread Ford, Mike [LSS]
On 03 February 2004 21:20, DL contributed these pearls of wisdom: Hi all, I am using PHP v4.12, and here is the scenario. Which OS are you on? I seem to remember that a bug in 4.1.2 meant that sessions were write only on one particular group of OS -- but I can no longer remember whether it

RE: [PHP] Session troubles

2004-02-04 Thread Larry Brown
I know I may be displaying severe ignorance, but I have to ask... What do you mean by this page also uses paging? What is paging? Larry -Original Message- From: DL [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 4:20 PM To: [EMAIL PROTECTED] Subject: [PHP] Session troubles

[PHP] Extract of a Paragraph

2004-02-04 Thread Daniel Perez Clavero
Hi list, I would like to show a extract (first 50 words of a text), in order to construct something similar to articles view with read more link. To Extract the first 50 words, should I use str_word_count, and explode/implode or there´s another way, much simple. Any sample would be apreciated.

[PHP] xml posts

2004-02-04 Thread Diana Castillo
does anyone know why some xml applications that work when sent with active-x objects dont work when I send the xml with php instead? what can I do to make them arrive in the same way as they do when sent with active-x objects? thank you , -- Diana Castillo -- PHP General Mailing List

[PHP] Segmentation Fault in Apache b/cuz of PHP

2004-02-04 Thread Jonathan Villa
Looks like PHP is causing a segmentation fault in Apache. Why do I think this? Well because it only happens with the PHP pages and my httpd error logs only show entries when PHP page are accessed.. I have RPM installations of Apache (1.3.27) and PHP (4.1.2) on a RedHat 7.1 server. Any ideas on

[PHP] Reasons for Using XML

2004-02-04 Thread gohaku
Hi everyone, Since everyone has been talking about XML, can anybody tell me why XML is used as opposed to using a CSV file? I'm probably wrong about why XML is used, this is why I'm asking. Thanks in advance. -Gohaku -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] finding news stories in a selection of months

2004-02-04 Thread Don Read
On 02-Feb-2004 Michael Hill wrote: Hi everyone, snip heres the code i have: $strSQL = SELECT date from .$tbl_prefix.news where live=1 order by date asc limit 0,1; $result = mysql_query($strSQL,$dbconn); $firstresult = mysql_fetch_array($result); $firstdate = $firstresult['date'];

Re: [PHP] Recommendation on PHP encoder please

2004-02-04 Thread Chris W
Harry Sufehmi wrote: Hi, my company's looking to buy a PHP encoder to secure the source code. The encoded scripts should be able to run on Solaris platform (Apache webserver), and should only require minimum changes to the server. I looked on Zend Encoder and was ready to suggest it when I

Re: [PHP] Is there a PHP Style Sheet Switcher that doesn't reload

2004-02-04 Thread Christophe Chisogne
Adam Bregenzer wrote: You have to use javascript or some other client side language to change anything on a page once it is loaded in the browser. Perhaps with a minor exception: with mozilla, you can select a stylesheet to apply (menu view / use style). From the CSS 1 spec [1]: The 'LINK'

Re: [PHP] Help for code to 'sort list' please

2004-02-04 Thread Don Read
On 02-Feb-2004 EastLothianDirectory wrote: Was just reading your previous reply and my months are indeed in text and therein lies the problem. snip Look at the MySQL functions FIELD() and/or FIND_IN_SET(). Regards, -- Don Read [EMAIL PROTECTED] --

Re: [PHP] Use of Class Reference Variable in another Class

2004-02-04 Thread BAO RuiXian
news.php.net wrote: [snip...] Inside another class (Class2) I have several functions that need database access. So in each function I can use $db = new dbi; and then use the functions as usual ($db-dbquery(blah);). I am wondering, can I create the new dbi instance at the top of Class2 and

RE: [PHP] Extract of a Paragraph

2004-02-04 Thread Brian Paulson
$string = substr($stringname,0,50); echo $string; http://www.php.net/substr Thank You Brian Paulson Sr. Web Developer [EMAIL PROTECTED] www.chieftain.com 1-800-279-6397 x 207 -Original Message- From: Daniel Perez Clavero [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004

Re: [PHP] Slightly OT! PHP / HTML Editor for Linux

2004-02-04 Thread John Nichel
Shaun wrote: Hi, I've just switched from Windows to Linux and don't want to change back! However I used to use Dreamweaver MX for all my PHP / HTML editing, can anyone recommend a good alternative? Many thanks I use Quanta... http://quanta.sourceforge.net and there's Bluefish...

RE: [PHP] Extract of a Paragraph

2004-02-04 Thread Matt Matijevich
snip $string = substr($stringname,0,50); echo $string; http://www.php.net/substr /snip That will just give the first 50 characters of the string. You could just try one of the many suggestions on http://www.php.net/manual/en/function.str-word-count.php Scroll down to the user comments and

RE: [PHP] Slightly OT! PHP / HTML Editor for Linux

2004-02-04 Thread Burhan Khalid
Shaun wrote: Hi, I've just switched from Windows to Linux and don't want to change back! However I used to use Dreamweaver MX for all my PHP / HTML editing, can anyone recommend a good alternative? Many thanks You could try running Dreamweaver MX under wine [ http://www.winehq.com ]

[PHP] Re: newbie pls help

2004-02-04 Thread Ben Ramsey
RedHat 8 should already have apache and PHP installed on it. You may just need to start the httpd service to get apache working. -Ben Mrs. Geeta Thanu wrote: Hi all, I want to install apache and php in a redhat box version 8 and want apache to load php. So how i shld proceed. Just downloading

Re: [PHP] Slightly OT! PHP / HTML Editor for Linux

2004-02-04 Thread Gabriel Guzman
On Wednesday 04 February 2004 08:21 am, Burhan Khalid wrote: Shaun wrote: Hi, I've just switched from Windows to Linux and don't want to change back! However I used to use Dreamweaver MX for all my PHP / HTML editing, can anyone recommend a good alternative? Many thanks You

RE: [PHP] Document generation from XML

2004-02-04 Thread Burhan Khalid
Russell Seymour wrote: Ray, I can create the XML of the document that I want to generate using the built in XML functions in PHP. THe thing I then want to do is be able to do is then use that XML to create documents in multiple formats, e.g. PDF. I think that I can use DocBook or

[PHP] [ERR] RE: [PHP] Document generation from XML

2004-02-04 Thread postmaster
Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) ---BeginMessage--- Russell Seymour wrote: Ray, I can create the XML of the document that I want to generate using the built in XML functions in PHP. THe thing I then want to do is be able to do is then

RE: [PHP] Recommendation on PHP encoder please

2004-02-04 Thread Adrian Teasdale
Chris, quite a few people sell their scripts online or they may wish to install legacy code that they have sweated over for years onto a clients machine - encoding them helps for piece of mind :) Ade I'm sorry I can't help you but I am curious as to what the point of this is. If you are

[PHP] explode separate lines

2004-02-04 Thread Diana Castillo
does anyone know how to do an explode where the separator is a linefeed? -- Diana Castillo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] explode separate lines

2004-02-04 Thread Vail, Warren
$result = explode(\n, $orignalvalue); Beware, there are several caveats with line feeds. Depending on where the data originated, it could be \r\n or \r. Warren Vail -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 8:50 AM To: [EMAIL

[PHP] [ERR] RE: [PHP] Slightly OT! PHP / HTML Editor for Linux

2004-02-04 Thread postmaster
Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) ---BeginMessage--- Shaun wrote: Hi, I've just switched from Windows to Linux and don't want to change back! However I used to use Dreamweaver MX for all my PHP / HTML editing, can anyone recommend a

Re: [PHP] Slightly OT! PHP / HTML Editor for Linux

2004-02-04 Thread Brad Pauly
On Wed, 2004-02-04 at 06:28, Raditha Dissanayake wrote: Shiva Kumar i am referring to your post for the third time today !! Shaun this topic is covered here: http://www.mail-archive.com/[EMAIL PROTECTED]/msg128334.html Adding to the list from a link at the above URL, I really like Anjuta.

[PHP] [ERR] RE: [PHP] Slightly OT! PHP / HTML Editor for Linux

2004-02-04 Thread postmaster
Transmit Report: To: [EMAIL PROTECTED], 2004/02/05 02:17:10, 999, »ó´ë¹æ ¼ö½Å¼­¹ö Á¢¼Ó½Ã°£ ÃÊ°ú ---BeginMessage--- Shaun wrote: Hi, I've just switched from Windows to Linux and don't want to change back! However I used to use Dreamweaver MX for all my PHP / HTML editing, can anyone

[PHP] problem referencing a mysql object

2004-02-04 Thread craig
Hi, the problem is that I am trying to use a varible in the objects attribute name. the offending line of code is: echo img src='$row-cPic$count' border='1'; this is giving the warning: Undefined property: cPic I have tried playing with eval and variable variables to get 'cPic$count' to

Re: [PHP] problem referencing a mysql object

2004-02-04 Thread BAO RuiXian
craig wrote: Hi, the problem is that I am trying to use a varible in the objects attribute name. the offending line of code is: echo img src='$row-cPic$count' border='1'; this is giving the warning: Undefined property: cPic I have tried playing with eval and variable variables to get

[PHP] loosing var in class / function

2004-02-04 Thread Harry.de
How can i save a variable in a function? The lower example doesn't work. The var is always an empty string! Anyone any solution? --- $some_var = foobar; require('something.php'); class SOMECLASS { function SomeFunction() {

[PHP] extract(filename)

2004-02-04 Thread John Taylor-Johnston
In Borland Delphi, I can extract a filename from the paramstr(0) and then exchange out the extension. ChangeFileExt(extractfilename(paramstr(0)), '.html'); Is there a way to extract the filename of /home/www/calendars/february2004.html and swap its extension for .htm? february2004.htm is pure

Re: [PHP] loosing var in class / function

2004-02-04 Thread John Nichel
Harry.de wrote: How can i save a variable in a function? The lower example doesn't work. The var is always an empty string! Anyone any solution? --- $some_var = foobar; require('something.php'); class SOMECLASS { function SomeFunction() {

RE: [PHP] extract(filename)

2004-02-04 Thread Burhan Khalid
John Taylor-Johnston wrote: In Borland Delphi, I can extract a filename from the paramstr(0) and then exchange out the extension. ChangeFileExt(extractfilename(paramstr(0)), '.html'); Is there a way to extract the filename of /home/www/calendars/february2004.html and swap its extension

RE: [PHP] explode separate lines

2004-02-04 Thread Burhan Khalid
Diana Castillo wrote: does anyone know how to do an explode where the separator is a linefeed? You could try explode(\n, $stuff);, but if you are wanting to read information from a file and store each line in an array, the file() function does exactly that. -- Burhan Khalid

Re: [PHP] loosing var in class / function

2004-02-04 Thread Duncan Hill
On Wednesday 04 February 2004 17:52, Harry.de wrote: How can i save a variable in a function? The lower example doesn't work. The var is always an empty string! Anyone any solution? --- $some_var = foobar; require('something.php'); class

Re: [PHP] extract(filename)

2004-02-04 Thread Yann Larrivee
Check pathinfo() http://ca3.php.net/manual/en/function.pathinfo.php Yann www.phpquebec.org On Wed, 2004-02-04 at 12:56, John Taylor-Johnston wrote: In Borland Delphi, I can extract a filename from the paramstr(0) and then exchange out the extension.

Re: [PHP] extract(filename)

2004-02-04 Thread John Taylor-Johnston
Burhan, Novel indeed! RTFM :) I was playing around with filename and a few other words. Didn't think of basename. Thanks, J Is there a way to extract the filename of /home/www/calendars/february2004.html and swap its extension for .htm? How about starting at the manual? What a novel

[PHP] [ERR] RE: [PHP] extract(filename)

2004-02-04 Thread postmaster
Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) ---BeginMessage--- John Taylor-Johnston wrote: In Borland Delphi, I can extract a filename from the paramstr(0) and then exchange out the extension. ChangeFileExt(extractfilename(paramstr(0)), '.html');

RE: [PHP] [ERR] RE: [PHP] extract(filename)

2004-02-04 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Wednesday, February 04, 2004 10:23 AM said: Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) OH GREAT! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] [ERR] RE: [PHP] extract(filename)

2004-02-04 Thread John Nichel
Chris W. Parker wrote: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Wednesday, February 04, 2004 10:23 AM said: Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) OH GREAT! After the last go around, anything coming from hanmir.com gets sent to

[PHP] pathinfo() basename()

2004-02-04 Thread John Taylor-Johnston
I'm getting this error: Warning: basename() expects parameter 1 to be string, array given in /home/users/q/qx04t9mu/www/calendars/test3.php on line 8 What did I do wrong? $extension is a string?! line 2$fullpath = pathinfo($_SERVER[SCRIPT_FILENAME]); line 3echo $fullpath[extension] . br\n;

Re: [PHP] pathinfo() basename()

2004-02-04 Thread John Nichel
John Taylor-Johnston wrote: I'm getting this error: Warning: basename() expects parameter 1 to be string, array given in /home/users/q/qx04t9mu/www/calendars/test3.php on line 8 What did I do wrong? $extension is a string?! Okay, $extension is a string, but it's not parameter 1. $fullpath is

Re: [PHP] pathinfo() basename()

2004-02-04 Thread Cesar Cordovez
extension is a string, $fullpath (parameter 1) is not. It is an array! Cesar =) John Taylor-Johnston wrote: I'm getting this error: Warning: basename() expects parameter 1 to be string, array given in /home/users/q/qx04t9mu/www/calendars/test3.php on line 8 What did I do wrong? $extension is

Re: [PHP] extract(filename)

2004-02-04 Thread Jason Wong
On Thursday 05 February 2004 02:18, John Taylor-Johnston wrote: Novel indeed! RTFM :) I was playing around with filename and a few other words. Didn't think of basename. Here's another novel idea: The manual is organised around chapters and in most cases each chapter deals with a group of

[PHP] Backslashing the [ and ] in a regex

2004-02-04 Thread Sam Masiello
I am kind of stuck on a problem that I am hoping you can help with. I am working on an application where the user can input a regular expression into a text box on a web form. This regular expression will be put into a postgres database, then later into an XML file. My dilemma is that if a

[PHP] [ERR] RE: [PHP] explode separate lines

2004-02-04 Thread postmaster
Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) ---BeginMessage--- Diana Castillo wrote: does anyone know how to do an explode where the separator is a linefeed? You could try explode(\n, $stuff);, but if you are wanting to read information from a file

Re: [PHP] Backslashing the [ and ] in a regex

2004-02-04 Thread Adam Bregenzer
On Wed, 2004-02-04 at 14:06, Sam Masiello wrote: $rule = ereg_replace([[:alpha:]+*/.|()$], 0, $rule) ; But if the user backslashes either a left or right bracket ([ or ]), I am having difficulty getting that extra backslash into the string. I tried just adding the [ and ] characters

RE: [PHP] Reasons for Using XML

2004-02-04 Thread Williams, Olwen - SAL
From my point of view XML allows more complex data structures. It's multi-dimensional rather than flat file. Olwen Williams [EMAIL PROTECTED] -- -Original Message- From: gohaku [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 4:15 AM To: [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] Extract of a Paragraph

2004-02-04 Thread Adam Bregenzer
On Wed, 2004-02-04 at 09:00, Daniel Perez Clavero wrote: To Extract the first 50 words, should I use str_word_count, and explode/implode or there´s another way, much simple. Any sample would be apreciated. Regards Regular expressions should do the trick: $extract = array();

[PHP] unsetting a session in ssl

2004-02-04 Thread electroteque
Hi there, i was wondering if there was a way to unset a http session when in https ? I dont particularly want to switch back to http and then get a exit ssl box in the browser before going to another page, how is it possible ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Backslashing the [ and ] in a regex

2004-02-04 Thread Sam Masiello
Thank you for the reply, Adam, but unfortunately it didn't work. --Sam Adam Bregenzer wrote: On Wed, 2004-02-04 at 14:06, Sam Masiello wrote: $rule = ereg_replace([[:alpha:]+*/.|()$], 0, $rule) ; But if the user backslashes either a left or right bracket ([ or ]), I am having

[PHP] Re: [PHP3] WHAT is PEAR?

2004-02-04 Thread David Clymer
On Wed, 07 Jun 2000 02:51:45 -0500, Richard Lynch wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Cheng, Cheng-Wei) wrote: I see this term a lot but cannot find the explaination in the documentation. I think that's the nifty feature whereby you can easily load sub-modules into

RE: [PHP] Backslashing the [ and ] in a regex

2004-02-04 Thread Chris W. Parker
Sam Masiello mailto:[EMAIL PROTECTED] on Wednesday, February 04, 2004 1:36 PM said: Thank you for the reply, Adam, but unfortunately it didn't work. So you want to accept input that may or may not look like the following? Here is some \[text\] for j00. Well I'm no regex expert but I

RE: [PHP] Backslashing the [ and ] in a regex

2004-02-04 Thread Adam Bregenzer
On Wed, 2004-02-04 at 16:35, Sam Masiello wrote: Thank you for the reply, Adam, but unfortunately it didn't work. Sorry bout that. Here's another shot at it. If I understand your goal correctly you want to escape the existing backslashes that proceed certain special characters (namely

[PHP] Using sessions with register globals off

2004-02-04 Thread Randall Perry
I've looked through the docs and past posts but I'm still a bit confused. How do I translate the following into code that can be used with register_globals set off. Assuming there's a preceding page that has created the session 'name' and registered the var 'order' with the 'name' session.

Re: [PHP] Using sessions with register globals off

2004-02-04 Thread Matt Matijevich
snip Assuming there's a preceding page that has created the session 'name' and registered the var 'order' with the 'name' session. session_name('name'); session_register('order'); /snip Try $_SESSION['order'] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: [PEAR] Problem with DB::isError

2004-02-04 Thread Martin Marques
El Mié 04 Feb 2004 16:45, David Clymer escribió: I'm having some problems with the DB::isError function identifying a non-object as an error object (or so it seems). I'm using postgreSQL 7.3.x. The relevant code is below: /***[ my code start ]***/

[PHP] Changing PATH Environment variable in PHP globally

2004-02-04 Thread Robert Pendell
I want to be able to change the Environment Path for all scripts. Is this possible with a setting in .htaccess or php.ini? Here are some restrictions that are in place to keep in mind when replying to the question. 1. I am not the admin so I have no access to the Apache conf files. 2. suPHP

Re: [PHP] Extract of a Paragraph

2004-02-04 Thread Justin French
On Thursday, February 5, 2004, at 02:35 AM, Brian Paulson wrote: $string = substr($stringname,0,50); echo $string; http://www.php.net/substr No, that's 50 *characters* -- he wanted 50 *words*. A quick and reasonably accurate[1] solution would be this: Daniel, There's a few things you need

[PHP] $PHP_SELF AND INFORMATION.

2004-02-04 Thread Philip J. Newman
$_SERVER[PHP_SELF]; returns /c/hosting/newman/hello.php is there an easy way to get get hello.php? --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] $PHP_SELF AND INFORMATION.

2004-02-04 Thread Martin Towell
http://au2.php.net/manual/en/function.basename.php Martin -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED] Sent: Thursday, 5 February 2004 11:57 AM To: [EMAIL PROTECTED] Subject: [PHP] $PHP_SELF AND INFORMATION. $_SERVER[PHP_SELF]; returns

Re: [PHP] $PHP_SELF AND INFORMATION.

2004-02-04 Thread John Nichel
Philip J. Newman wrote: $_SERVER[PHP_SELF]; returns /c/hosting/newman/hello.php is there an easy way to get get hello.php? Didn't we just have this question today? http://www.php.net/manual/en/function.basename.php -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General

[PHP] PHP5: Problem concerning multiple inheritance / interfaces

2004-02-04 Thread Vivian Steller
Hello at all, ok my problem in a nutshell: i need multiple inheritance! is there a solution to fake this functionallity in php5? i have the following problem: the goal is to implement my own DomXML implementation based on the existing DomNode, DomDocument, Dom... Classes. thus, i implement my

[PHP] Re: [PHP-QA] PHP5: Problem concerning multiple inheritance / interfaces

2004-02-04 Thread vivi
Marcus Boerger wrote: Hello vivi, Wednesday, February 4, 2004, 5:19:40 PM, you wrote: Hello at all, ok my problem in a nutshell: i need multiple inheritance! is there a solution to fake this functionallity in php5? i have the following problem: the goal is to implement my own DomXML

[PHP] Why my $SERVER_NAME variable is not working anymore?

2004-02-04 Thread Gabriel Schillaci
Hi. This is a stupid question, I know. I'm using my old set of routines well documented and bullet proof. They were working just fine on Win and Linux systems, regardless of webserver of php version, UNTIL php 4.3.x - IIS over Win destroyed my life. Is there something I can do on php.ini file or

[PHP] Re: [PHP-DB] Re: [PHP] Oracle + PHP

2004-02-04 Thread Luis Moran Ochoa
IT WORKS. Exactly, I need to unset the locale variables With that It works without problems. Thank you all. in the start script to see which variables are set. Boot, move /tmp/apache-start to /tmp/apache-boot, stop apache, start apache from your root shell. diff -u /tmp/apache-boot

Re: [PHP] Why my $SERVER_NAME variable is not working anymore?

2004-02-04 Thread John Nichel
Gabriel Schillaci wrote: Hi. This is a stupid question, I know. I'm using my old set of routines well documented and bullet proof. They were working just fine on Win and Linux systems, regardless of webserver of php version, UNTIL php 4.3.x - IIS over Win destroyed my life. Is there something I

Re: [PHP] Why my $SERVER_NAME variable is not working anymore?

2004-02-04 Thread John Nichel
John Nichel wrote: Gabriel Schillaci wrote: Hi. This is a stupid question, I know. I'm using my old set of routines well documented and bullet proof. They were working just fine on Win and Linux systems, regardless of webserver of php version, UNTIL php 4.3.x - IIS over Win destroyed my life.

Re: [PHP] Why my $SERVER_NAME variable is not working anymore?

2004-02-04 Thread Gabriel Schillaci
Thanks John for your quick answer. What I'm looking for is for a miraculous way to convert or adapt my existing code. I already detected where are each one of my lost variables. I just want to know if the only way I have is to manually replace every old variable by the new one. Hope not.

Re: [PHP] Why my $SERVER_NAME variable is not working anymore?

2004-02-04 Thread John Nichel
Gabriel Schillaci wrote: Thanks John for your quick answer. What I'm looking for is for a miraculous way to convert or adapt my existing code. I already detected where are each one of my lost variables. I just want to know if the only way I have is to manually replace every old variable by the

[PHP] multi dimension array sort help

2004-02-04 Thread Justin French
Hi, I've read and re-read array_multisort(), but still can't get a grip on how to sort my array: Array ( [0] = Array ( [path_id] = 3 [year] = 2004 [month] = 02 [day] = 05 [hits] = 3 [path] = home )

RE: [PHP] multi dimension array sort help

2004-02-04 Thread Martin Towell
would usort() be better for this? Martin -Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: Thursday, 5 February 2004 3:33 PM To: php Subject: [PHP] multi dimension array sort help Hi, I've read and re-read array_multisort(), but still can't get a grip

Re: [PHP] Why my $SERVER_NAME variable is not working anymore?

2004-02-04 Thread John Nichel
Gabriel Schillaci wrote: It is already set to ON, but still getting the same message, and other messages such as: Notice: Undefined variable xxx This is another kind of error I started to receive since we moved from Linux/php 4.2.x to Win/php 4.3.x Until 4.2.x, this code was good for

[PHP] recursive direcotry listing

2004-02-04 Thread Binay
Hi all, is there function which scans a particual directory recurisly and stores the content in array or other way? Listing of files should be in alphabetical way and directories should come on top. Thanks Binay

[PHP] MySQL: Order by

2004-02-04 Thread John Taylor-Johnston
This is probably a MySQL question, and maybe an easy question, but I'm here to learn |:) When I order by number, it echoes 1,2,3,4,5,6,7,8,9,10 and hten jumps to 100...199 before it comes back to 11-19. Any way of ordering that differently? $sql = 'SELECT * FROM '.$table.' ORDER BY number

  1   2   >