Re: [PHP] free php live support script ?

2004-11-16 Thread Robby Russell
On Tue, 2004-11-16 at 18:35 -0800, Robby Russell wrote: > On Tue, 2004-11-16 at 21:40 -0400, Mario Bittencourt wrote: > > Hi, > > > > I was wondering if there is any free php live support script ? > > > > I'd like to add a "chat room" in my web site so users could chat with > > a human operator i

RE: [PHP] XML + PHP is going to eat my shorts [SOLVED]

2004-11-16 Thread Burhan Khalid
On Tue, 2004-11-16 at 09:50 -0600, Jay Blanchard wrote: > [snip] > > > [/snip] > > using fread the above line comae out like this(even though I was not > echoing the line, just processing) > > > > ...as soon as I added stripslashes the syntax error disappeared and > VIOLA!...xml file pa

RE: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Burhan Khalid
On Tue, 2004-11-16 at 09:01 -0600, Jay Blanchard wrote: > [snip] > xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, 0); > xml_parser_set_option($this->parser, XML_OPTION_SKIP_WHITE, 1); > [/snip] > > I had those in there as well...here is the first few liners of the XML > source >

Re: [PHP] Weird virtual() behavior for nested require()

2004-11-16 Thread Paul Cantrell
Well, after 36 hours of silence on this one, I'll consider the php-general list stumped, and file it as a bug. P On Nov 15, 2004, at 11:50 AM, Paul Cantrell wrote: I'm getting a weird behavior when virtual() calls another page that uses a require(). The behavior seems contrary to the docs for

RE: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Burhan Khalid
On Tue, 2004-11-16 at 08:51 -0600, Jay Blanchard wrote: > [snip] > > > > > > ... it throws an error from xml_get_error_code > > Trim your xml file. Whitespace can cause this problem. > [/snip] > > I trimmed and chopped to no avail. Argh. Try this snippet which has worked for me in the past.

Re: [PHP] How to path global object

2004-11-16 Thread Jason Wong
On Wednesday 17 November 2004 00:01, Hongwei Li wrote: > no values are displayed. Apparently, $obj is not pathed to tsnext.php and > tsshow.php (the second time), but $ind is. What is wrong in the above > codes? Can somebody help me? You seem to have a fundamental misunderstanding of what the

Re: [PHP] Date Conversions?

2004-11-16 Thread Justin French
On 16/11/2004, at 6:29 AM, Robert Sossomon wrote: I have a date in format YY-MM-DD in a MySQL table. I need to pull it back to display it in either format: MM-DD-YY or Month Day, Year format. Do it in PHP, not in the query, IMHO. You can also experiment with strtotime()... the catch will be the

Re: [PHP] how to parse a string parse with ereg

2004-11-16 Thread Jason Wong
On Wednesday 17 November 2004 07:17, [EMAIL PROTECTED] wrote: > But it has one weakness. In the case the device (ppp0) is > missing somewhere in the output as the user didn't intend > to integrate this required information, and by having insight > it could be more than 10 lines with 10.000 rules o

[PHP] Re: free php live support script ?

2004-11-16 Thread Manuel Lemos
Hello, On 11/16/2004 11:40 PM, Mario Bittencourt wrote: I was wondering if there is any free php live support script ? I'd like to add a "chat room" in my web site so users could chat with a human operator in a 1-1 mode. There are some solutions here you may want to try: http://www.phpclasses.org/b

[PHP] Re: mp3 parsing

2004-11-16 Thread Ryan King
On Nov 16, 2004, at 7:24 PM, Manuel Lemos wrote: Hello, On 11/16/2004 10:58 PM, Ryan King wrote: Anyone out there have a way to read the header info out of an mp3 file? I'm able to parse out the id3 tags, but am having trouble finding a way to read the header info. The info I'm trying to get is

Re: [PHP] isset opposite

2004-11-16 Thread Dustin Krysak
Yeah as soon as I saw this example, I figured that was the case for example something like if (!empty()) and so on. d On 16-Nov-04, at 5:26 PM, Robby Russell wrote: On Tue, 2004-11-16 at 17:19 -0800, Dustin Krysak wrote: Thanks! perfect! d For future reference, just about any function that us

[PHP] free php live support script ?

2004-11-16 Thread Mario Bittencourt
Hi, I was wondering if there is any free php live support script ? I'd like to add a "chat room" in my web site so users could chat with a human operator in a 1-1 mode. thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] isset opposite

2004-11-16 Thread Robby Russell
On Tue, 2004-11-16 at 17:19 -0800, Dustin Krysak wrote: > Thanks! > > perfect! > > d For future reference, just about any function that uses is at the beginning should return a boolean result. So if (is_array()) can also be checked with if (!is_array()) This should apply to all the php included

RE: [PHP] Question on query string

2004-11-16 Thread Robby Russell
On Wed, 2004-11-17 at 11:28 +1100, Jason Oakley wrote: > I think maybe > > $jtitle=$HTTP_GET_VARS['JTitle']; > Might I remind you that $_HTTP_*_VARS is deprecated.. $_GET $_POST (it's also much quicker to type) -Robby -- /*** * Robby Russell | Owner.

Re: [PHP] Problem typing in PHP forms on Mac OS

2004-11-16 Thread Jonel Rienton
It works flawlessly on my mac os panther 10.3.6, i wonder what build of mac os they are using. I can type in on all the textfields. -- I not know English well, but I know 7 computer languages. anonymous On Nov 16, 2004, at 2:24 P

[PHP] Re: mp3 parsing

2004-11-16 Thread Manuel Lemos
Hello, On 11/16/2004 10:58 PM, Ryan King wrote: Anyone out there have a way to read the header info out of an mp3 file? I'm able to parse out the id3 tags, but am having trouble finding a way to read the header info. The info I'm trying to get is the playtime and bitrate. Here you can find sever

Re: [PHP] free php live support script ?

2004-11-16 Thread Robby Russell
On Tue, 2004-11-16 at 21:40 -0400, Mario Bittencourt wrote: > Hi, > > I was wondering if there is any free php live support script ? > > I'd like to add a "chat room" in my web site so users could chat with > a human operator in a 1-1 mode. > > thanks. > We use this program for live support wi

Re: [PHP] isset opposite

2004-11-16 Thread Dustin Krysak
Thanks! perfect! d On 16-Nov-04, at 4:13 PM, Robby Russell wrote: On Tue, 2004-11-16 at 15:11 -0800, Dustin Krysak wrote: Hi there.. I am pretty new to PHP, and I am familiar with php "isset" option now i was wondering (I have looked at the PHP site - but can not find it) how can you check

[PHP] Re: handling tag and quote (' & ")

2004-11-16 Thread Matthew Weier O'Phinney
* Adwinwijaya <[EMAIL PROTECTED]>: > Hello php-general, > Is there suggestion about how to remove html tag, javascript and quote > (' & ") from user's input at the same time ? Yes. Oh, you wanted an example? $value = preg_replace('/[\'\"]/', '', strip_tags($value)); -- Matthew Weier O'Phinney

Re: [PHP] handling tag and quote (' & ")

2004-11-16 Thread Greg Donald
On Wed, 17 Nov 2004 10:28:30 +1100, adwinwijaya <[EMAIL PROTECTED]> wrote: > Hello php-general, > > I have question for you :) > > Is there suggestion about how to remove html tag, javascript and quote > (' & ") from user's input at the same time ? strip_tags() str_replace() -- Greg Donald Ze

RE: [PHP] Question on query string

2004-11-16 Thread Robert Cummings
On Tue, 2004-11-16 at 20:24, Robby Russell wrote: > On Wed, 2004-11-17 at 11:28 +1100, Jason Oakley wrote: > > I think maybe > > > > $jtitle=$HTTP_GET_VARS['JTitle']; > > > > Might I remind you that $_HTTP_*_VARS is deprecated.. > > $_GET > $_POST > (it's also much quicker to type) And no

Re: [PHP] mp3 parsing

2004-11-16 Thread Ron Stiemer
Hi, maybe this wil help you...i made this some time ago... Titel: " . $title . "" . "Band: " . $band . "" . "Album: " . $album . "" . "Jahr: " . $year . "" . "Kommentar: " . $comment . ""; fclose( $value ); } ShowID3( "test.mp3", "" ); ?> Regards, Ron Am Mittwoch, 1

[PHP] mp3 parsing

2004-11-16 Thread Ryan King
Anyone out there have a way to read the header info out of an mp3 file? I'm able to parse out the id3 tags, but am having trouble finding a way to read the header info. The info I'm trying to get is the playtime and bitrate. thanks, ryan -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] Re: [PHP-DB] OOP vs Functions and includes]

2004-11-16 Thread Jonel Rienton
Original Message Subject: Re: [PHP-DB] OOP vs Functions and includes From: "Jonel Rienton" <[EMAIL PROTECTED]> Date: Tue, November 16, 2004 7:04 pm To: <[EMAIL PROTECTED]> Hi again Pablo, not sure how the inner workings of PHP are as far as instantiating new classes. other lang

Re: [PHP] bubble sort crashing apache

2004-11-16 Thread Thomas Goyne
On Tue, 16 Nov 2004 15:43:51 -0500, Josh Howe <[EMAIL PROTECTED]> wrote: I've implemented my own bubble sort function that is crashing apache. Can somebody either help me out with the bubble sort or help me figure out a way to solve my problem with php's built in sorting functions? http://us4.php.n

RE: [PHP] Question on query string

2004-11-16 Thread Jason Oakley
I think maybe $jtitle=$HTTP_GET_VARS['JTitle']; -- Jason Oakley Robina Helpdesk AAPT Limited Ph: 07 5562 4359 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ]On Behalf Of Stuart Felenstein Sent: Wednesday, 17 November 2004 9:38 AM To:

Re: [PHP] Object oriented programming

2004-11-16 Thread Robby Russell
On Tue, 2004-11-16 at 15:39 -0800, Matthew Sims wrote: > It's a new way of writing out programs that > many new languages are taking in. OO programming is definitely not a "new" way of writing programs. > SIMULA I (1962-65) and Simula 67 (1967) are the two first > object-oriented languages. Simul

Re: [PHP] isset opposite

2004-11-16 Thread Robby Russell
On Tue, 2004-11-16 at 15:11 -0800, Dustin Krysak wrote: > Hi there.. I am pretty new to PHP, and I am familiar with php "isset" > option now i was wondering (I have looked at the PHP site - but > can not find it) how can you check if something is not set? I need to > test if a $_GET is n

Re: [PHP] isset opposite

2004-11-16 Thread Ryan King
On Nov 16, 2004, at 5:11 PM, Dustin Krysak wrote: Hi there.. I am pretty new to PHP, and I am familiar with php "isset" option now i was wondering (I have looked at the PHP site - but can not find it) how can you check if something is not set? I need to test if a $_GET is not set (not ju

Re: [PHP] isset opposite

2004-11-16 Thread Greg Donald
On Tue, 16 Nov 2004 15:11:39 -0800, Dustin Krysak <[EMAIL PROTECTED]> wrote: > how can you check if something is not set? !isset() -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: [PHP-DB] OOP vs Functions and includes

2004-11-16 Thread Bruno B B Magalhães
Pablo, This is a very complex discussion... But generalizing, a LOT, OO is more appropriated for big systems due to its extensibility and easy maintenance, while procedural approach works best for small applications that don't require to much updates and aren't too complex. Here is a example

RE: [PHP] Question on query string

2004-11-16 Thread Chris W. Parker
Stuart Felenstein on Tuesday, November 16, 2004 1:35 PM said: > I'm not seeing what is incorrect. I did try > $HTTP_GET_VARS['Ind'] = urldecode('Ind'); (in > searchresults.php) but of course it wasn't imploded > yet. I don't want to confuse this question or myself >

Re: [PHP] isset opposite

2004-11-16 Thread Matthew Sims
> Hi there.. I am pretty new to PHP, and I am familiar with php "isset" > option now i was wondering (I have looked at the PHP site - but > can not find it) how can you check if something is not set? I need to > test if a $_GET is not set (not just empty). > > thanks in advance! > > d > I

RE: [PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
--- "Ford, Mike" <[EMAIL PROTECTED]> wrote: > > //Textfields / Dropdown > > $HTTP_GET_VARS['JTitle']; > > $HTTP_GET_VARS['City']; > > $HTTP_GET_VARS['Days']; > > And thrice ditto. > They looked good, gone now :) Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > Did you purposefully ignore my previous email??? > Someone else I think > mentioned this in another email in this thread also. > Why are you > assigning anything to $HTTP_GET_VARS at all? It's > meant to retrieve > data. > > // (again) this is h

Re: [PHP] Object oriented programming

2004-11-16 Thread Matthew Sims
> Hello my friends, how can I get a tutorial or book about Object Oriented > Programming (OOP) in PHP, if is posible about PHP 5, I am beginning in use > PEAR, and almost librarys are in OOP. Can you help me? > > Thanks :) >procedural > = > "¿Acaso se olvidará la mujer de su bebé, y dejará de

[PHP] handling tag and quote (' & ")

2004-11-16 Thread adwinwijaya
Hello php-general, I have question for you :) Is there suggestion about how to remove html tag, javascript and quote (' & ") from user's input at the same time ? thx ;) -- Best regards, adwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] Object oriented programming

2004-11-16 Thread daniel
> Hello my friends, how can I get a tutorial or book about Object > Oriented Programming (OOP) in PHP, if is posible about PHP 5, I am > beginning in use PEAR, and almost librarys are in OOP. Can you help me? > > Thanks :) > PEAR is the best thing that happen to PHP even though its a CPAN for PHP

Re: [PHP] Patrick Volkerding Battles Mystery Illness

2004-11-16 Thread Matthew Sims
> This: > > http://slashdot.org/article.pl?sid=04/11/16/1846207 > > That sucks. > > If anyone knows a doctor, please ask him/her and lets see if we can help > him out. > > Patrick, hope you're better very soon. > > --Michael > Here's to hoping he'll pull through. He seems to be doing better. Lon

Re: [PHP] how to parse a string parse with ereg

2004-11-16 Thread Mark-Walter
Hi Jason Wong, > > > The regular expression is already working but how can I reduce the > > > string to have then only 2 lines ? > > Convert the string into an array using explode(). Thank's a lot for this information. I tried this but one thing is not suitable so far for me while using explode.

[PHP] isset opposite

2004-11-16 Thread Dustin Krysak
Hi there.. I am pretty new to PHP, and I am familiar with php "isset" option now i was wondering (I have looked at the PHP site - but can not find it) how can you check if something is not set? I need to test if a $_GET is not set (not just empty). thanks in advance! d -- PHP General Ma

RE: [PHP] Question on query string

2004-11-16 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm > -Original Message- > From: Stuart Felenstein > To: [EMAIL PROTECTED] > Sent: 16/11/04 21:35 > Subject: Re: [PHP] Question on query string > For searchresults.php (right be

Re: [PHP] Re: php.ini

2004-11-16 Thread Mailit, LLC
This is a similar question, but under Linux. No matter how I change the upload_max_filesize in /etc/php.ini, the file uploading script refuses to accept files larger than 512 kB. If I run the phpinfo() function, the new value for upload_max_size (20M) appears there, but I get the message "File c

RE: [PHP] splitting string

2004-11-16 Thread Chris W. Parker
M. Sokolewicz on Tuesday, November 16, 2004 12:47 PM said: >> Chris W. Parker wrote: >> >>> Yes. >>> >>> $string = "$string1|$string2|$string3|$string4|$string5"; >>> >>> >>> $string_back = explode("|", $string); >>> > please explain... WHY is that better? Wel

Re: [PHP] Auto-load class if it doesn't exists!

2004-11-16 Thread Rick Fletcher
is it possible to have a solution that works like an autoloader... for example: $myclass = new class(); but if this class wasn't loaded yet, it loads by itself... egg: if(class_exists(class)) { $myclass = new class(); } else { require_once(PATH_DIR.'class.class.php'); $myclass = new

RE: [PHP] odbc fetch array issues

2004-11-16 Thread Jay Blanchard
[snip] $sql = "SELECT * FROM users WHERE username='$username' AND password='$password'"; $result = odbc_exec($dbConnection, $sql); while ($rows = odbc_fetch_array($result)) { //This doesn't work with odbc_fetch_object either print $rows->COLUMNNAME; } [/snip] For odbc_fetch_array you wo

[PHP] Patrick Volkerding Battles Mystery Illness

2004-11-16 Thread HMStudios
This: http://slashdot.org/article.pl?sid=04/11/16/1846207 That sucks. If anyone knows a doctor, please ask him/her and lets see if we can help him out. Patrick, hope you're better very soon. --Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

[PHP] Object oriented programming

2004-11-16 Thread Pedro Irán Méndez Pérez
Hello my friends, how can I get a tutorial or book about Object Oriented Programming (OOP) in PHP, if is posible about PHP 5, I am beginning in use PEAR, and almost librarys are in OOP. Can you help me? Thanks :) = "¿Acaso se olvidará la mujer de su bebé, y dejará de compadecerse del hijo de

RE: [PHP] bubble sort crashing apache

2004-11-16 Thread Jay Blanchard
[snip] crashing apache [/snip] Apache list maybe? And what, exactly, do you mean by crashing Apache? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] splitting string

2004-11-16 Thread Mike
Pipes are also good visual delimiters - so if you're reading through output or looking in your raw data, I find that by scanning for pipes is a lot easier visually than other sorts of delimiters. I've sometimes used two or three pipes in a row just to make sure I don't have someone entering a singl

Re: [PHP] Problem typing in PHP forms on Mac OS

2004-11-16 Thread Jeff - Webmaster
Thank you for the response Brent. I made that change and the problem still exists. I ran the page through the validator and it found some generic problems, but nothing that seemed like it would relate here. Jeff At 01:19 PM 11/16/2004, Brent Baisley wrote: I never had a problem with a Mac, nor a

RE: [PHP] splitting string

2004-11-16 Thread Kelly Hallman
Nov 16 at 12:00pm, Chris W. Parker wrote: > > Also, is there actially better way to do this then adding \n between > > strings? (e.g. store form fields name, address, city, state, zip, > > phone, email as a one string in db and later pull them from DB and > > split them back?) > > Yes. > $string =

Re: [PHP] splitting string

2004-11-16 Thread Afan Pasalic
Jason Wong wrote: You're not using your database like it should be used. Each invidually identifiable item should be stored in a separate column. Lumping everything into one column makes it harder to extract and process data. Google for "normalise table tutorial", or "normalize table tutorial" i

Re: [PHP] Re: unable to upload a directory using the web brower (HTTP).

2004-11-16 Thread Scott Fletcher
I like the Rad Upload from the link you provided and it work pretty well. I like it and I'm going to buy it. There's a lot of ease of use which is a good sign. It even accept the non-certificate-authority ssl certificate as well as the certificate expiration. A few others won't and stopped work

[PHP] Problem typing in PHP forms on Mac OS

2004-11-16 Thread Jeff - Webmaster
Hello all. I have created a few PHP pages on our website where users can go a fill out a simple form and submit it to our support department using the post method. For users on PC's, this works flawlessly. I am getting complaints from people who use Macintosh who say that they are not able to t

Re: [PHP] my own extension

2004-11-16 Thread Uffe Kousgaard
"Klaus Reimer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > But you know your library and you have it under control so maybe it's > easier to write C include files to interface your Kylix library from C > instead of writing Delphi-Units to interface PHP from Kylix. > > So I would

Re: [PHP] splitting string

2004-11-16 Thread Afan Pasalic
Chris W. Parker wrote: Yes. $string = "$string1|$string2|$string3|$string4|$string5"; $string_back = explode("|", $string); Ok, I'm going to change the code and use pipes :) Thanks to all of you.! -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] splitting string

2004-11-16 Thread Philip Thompson
On Nov 16, 2004, at 2:46 PM, M. Sokolewicz wrote: Afan Pasalic wrote: Chris W. Parker wrote: Yes. $string = "$string1|$string2|$string3|$string4|$string5"; $string_back = explode("|", $string); Ok, I'm going to change the code and use pipes :) Thanks to all of you.! -afan please explain... WHY is

[PHP] odbc fetch array issues

2004-11-16 Thread Adil
Hey people, Anyone know much about odbc_fetch_array() or odbc_fetch_object() functions in php. My while loop keeps breaking while using this function. I'm trying to grab a row from the result returned by the database query and for testing purposes, just printing out each item in the row as follo

Re: [PHP] Problem typing in PHP forms on Mac OS

2004-11-16 Thread Jeff - Webmaster
https://www.shoppingnw.com/ccare/auto_bill.php Thanks Jeff At 01:12 PM 11/16/2004, Jonel Rienton wrote: do you have the actual link of this page, i can test it for you. -- I not know English well, but I know 7 computer languages. a

Re: [PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
--- Jason Wong <[EMAIL PROTECTED]> wrote: > When you're building a query string then (in > general) there is no need for > urldecode(). On the contrary you want to use > urlencode(), this is done on the > *value* of the individual parameters. > > And about this: $_POST["Ind[]"], it's obvious

[PHP] bubble sort crashing apache

2004-11-16 Thread Josh Howe
I've implemented my own bubble sort function that is crashing apache. Can somebody either help me out with the bubble sort or help me figure out a way to solve my problem with php's built in sorting functions? This is my problem. I'm writing my own class for displaying html tables. Right now, the

RE: [PHP] splitting string

2004-11-16 Thread Chris W. Parker
Afan Pasalic on Tuesday, November 16, 2004 10:01 AM said: > I create a string from other strings: > $string = > $string1."\n".$string2."\n".$string3."\n".$string4."\n".$string5; and > then store it in DB. [snip] > Also, is there actially better way to do this the

Re: [PHP] splitting string

2004-11-16 Thread John Nichel
M. Sokolewicz wrote: please explain... WHY is that better? For me, I'll use pipes because they are so rarely used (if ever) when an user is entering text. If I make my delimiter a newline (or comma, etc.), and an end user enters one with whatever they're inputting, it will screw up my split.

Re: [PHP] splitting string

2004-11-16 Thread Dennis Lahay
Remember, working code is better than pretty code, on any day. If you have a system that you understand and it works (without excessively slowing the system down or grinding it to a halt), then stick with it. Over time you'll learn better ways of doing things. But, your first goal should be gett

Re: [PHP] Is Perl faster than PHP?

2004-11-16 Thread Brad Pauly
On Tue, 16 Nov 2004 16:54:22 +0100, Merlin <[EMAIL PROTECTED]> wrote: > Hi there, > > it came to my attention that most of the high traffic portals are using perl > in > the backend. Those sites do also apear to me to be very fast in comparison to > most php sites. Are there any known performance

Re: [PHP] Problem typing in PHP forms on Mac OS

2004-11-16 Thread Brent Baisley
I never had a problem with a Mac, nor any platform as long as I adhered to web standards. OK, so IE can be problematic especially with CSS. Anyway, I notice that your input field doesn't have a value="" attribute. That may be your problem. I'm pretty sure it's a required attribute. IE is extrem

Re: [PHP] splitting string

2004-11-16 Thread Brent Baisley
The problem is that you are using single quotes, so php is looking for a literal \n rather than escaping it to a new line character. Try double quotes and then PHP will parse the contents of the quotes, looking for escape characters and variables. explode("\n") Use nl2br() to convert new lines

Re: [PHP] Problem typing in PHP forms on Mac OS

2004-11-16 Thread Jonel Rienton
do you have the actual link of this page, i can test it for you. -- I not know English well, but I know 7 computer languages. anonymous On Nov 16, 2004, at 2:24 PM, Jeff - Webmaster wrote: Hello all. I have created a few PHP pages

[PHP] Re: http header script to stimluate upload with drag and drop??

2004-11-16 Thread Scott Fletcher
I have written lot of http header scripts myself, so I'm familiar with what they are used for. Scott "M. Sokolewicz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Scott Fletcher wrote: > > Hi! > > > > I wonder is is it possible to have an http header that would stimluate > hea

Re: [PHP] http header script to stimluate upload with drag anddrop??

2004-11-16 Thread Scott Fletcher
:-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] odbc question

2004-11-16 Thread Adil
>$sql = "SELECT * FROM users WHERE username='$username' AND password='$password'"; >$result = odbc_exec($dbConnection, $sql); > >while ($rows = odbc_fetch_array($result)) { > //This doesn't work with odbc_fetch_object either > print $rows->COLUMNNAME; >} It's returning an array, not an obj

Re: [PHP] splitting string

2004-11-16 Thread Afan Pasalic
That was the trick? At least - I was close :) Thanks! -afan Klaus Reimer wrote: Afan Pasalic wrote: But, I can't figure out how to split them back? $string_back = explode('\n', $string); That one is the right one. But you must use double quotes, not single quotes. Escaped characters (except \') i

Re: [PHP] splitting string

2004-11-16 Thread Klaus Reimer
Afan Pasalic wrote: But, I can't figure out how to split them back? $string_back = explode('\n', $string); That one is the right one. But you must use double quotes, not single quotes. Escaped characters (except \') in single quoted strings are not processed. -- PHP General Mailing List (http://

Re: [PHP] php.ini

2004-11-16 Thread Jason Wong
On Wednesday 17 November 2004 01:33, [EMAIL PROTECTED] wrote: > thanks for the replies, but... > > > If there is a php.ini file in the php root directory, then that gets > > used. Otherwise, the php.ini file in C:\Windows (iirc). If the > > Actually it seems like the Zend IDE installed another apa

Re: [PHP] splitting string

2004-11-16 Thread M. Sokolewicz
Afan Pasalic wrote: Chris W. Parker wrote: Yes. $string = "$string1|$string2|$string3|$string4|$string5"; $string_back = explode("|", $string); Ok, I'm going to change the code and use pipes :) Thanks to all of you.! -afan please explain... WHY is that better? -- PHP General Mailing List (http://

Re: [PHP] http header script to stimluate upload with drag and drop??

2004-11-16 Thread Robby Russell
On Tue, 2004-11-16 at 13:10 -0500, Scott Fletcher wrote: > Hi! > > I wonder is is it possible to have an http header that would stimluate > files/folders upload via dragging over to the browser window? If so then > what are the sample functions or scripts that make this possible... > > Thank

Re: [PHP] splitting string

2004-11-16 Thread Dennis Lahay
I usually put a bar "|" between each string, if I need to. $string = $string1."|".$string2."|".$string3."|".$string4."|".$string5; D On Nov 16, 2004, at 12:01 PM, Afan Pasalic wrote: I create a string from other strings: $string = $string1."\n".$string2."\n".$string3."\n".$string4."\n".$string5;

Re: [PHP] splitting string

2004-11-16 Thread Jason Wong
On Wednesday 17 November 2004 02:01, Afan Pasalic wrote: > I create a string from other strings: > $string = $string1."\n".$string2."\n".$string3."\n".$string4."\n".$string5; > and then store it in DB. > > But, I can't figure out how to split them back? > > Tried: > $string_back = explode('\n', $

Re: [PHP] php.ini

2004-11-16 Thread lister
thanks for the replies, but... > If there is a php.ini file in the php root directory, then that gets used. Otherwise, the php.ini file in C:\Windows (iirc). If the Actually it seems like the Zend IDE installed another apache server. But the situation is more confusing. When I start my standard

Re: [PHP] splitting string

2004-11-16 Thread Greg Donald
On Tue, 16 Nov 2004 12:01:04 -0600, Afan Pasalic <[EMAIL PROTECTED]> wrote: > I create a string from other strings: > $string = $string1."\n".$string2."\n".$string3."\n".$string4."\n".$string5; > and then store it in DB. > > But, I can't figure out how to split them back? > > Tried: > $string_ba

[PHP] Re: splitting string

2004-11-16 Thread M. Sokolewicz
Afan Pasalic wrote: I create a string from other strings: $string = $string1."\n".$string2."\n".$string3."\n".$string4."\n".$string5; and then store it in DB. But, I can't figure out how to split them back? Tried: $string_back = explode('\n', $string); $string_back = explode('', $string); $string_

[PHP] Re: http header script to stimluate upload with drag and drop??

2004-11-16 Thread M. Sokolewicz
Scott Fletcher wrote: Hi! I wonder is is it possible to have an http header that would stimluate headers don't "stimulate". They are simple "messages", a bit of text with no real meaning until the browser/server/whatever gives it meaning locally to itself. files/folders upload via dragging o

Re: [PHP] Auto-load class if it doesn't exists!

2004-11-16 Thread Jonel Rienton
Hi, you would need something like a singleton class if my memory serves me. cheers, jonel -- I not know English well, but I know 7 computer languages. anonymous On Nov 16, 2004, at 11:36 AM, Bruno B B Magalhães wrote: Hi people, is

RE: [PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
--- "Ford, Mike" <[EMAIL PROTECTED]> wrote: > The main problem with the above snippet that I can > see is that there's very > unlikely to be such a thing as $_POST["Ind[]"] -- > form fields with > name="Ind[]" will turn up as an array in > $_POST["Ind"] ($_POST["Ind"][0], > $_POST["Ind"][1], etc

Re: [PHP] Authentication Class

2004-11-16 Thread Bruno B B Magalhães
Is this good or bad? heheh! Regards, Bruno B B Magalhaes On Nov 16, 2004, at 3:31 PM, raditha dissanayake wrote: Bruno B B Magalhães wrote: Hi guys, well, I wrote a class for a big project (a framework), and here it is, I was wondering if someone have any suggestions regarding flexibility and s

Re: [PHP] Is Perl faster than PHP?

2004-11-16 Thread Brent Baisley
Since both Perl and PHP are scripting languages, I don't think you could definitively say one is faster than the other. First and foremost it's the talent of the coder that makes a program fast or slow. Perl has been around a lot longer and so the libraries (i.e. CPAN) are more refined and opti

Re: [PHP] link in ModalDialog

2004-11-16 Thread vlad georgescu
first of all thanks for response. and second, some clarification. i have a main window (with a txtarea - html-editor), from this page I want to open a little page (upload_img.php) to handle the uploadimg2-onserver and return path2img-onserver (where was uploaded) on close. showModalDialog in js o

RE: [PHP] Question on query string

2004-11-16 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 16 November 2004 16:28, Stuart Felenstein wrote: > --- Richard Davey <[EMAIL PROTECTED]> wrote: > > > > Use urldecode() to get them back to "normal" again. > > Changed the for

[PHP] http header script to stimluate upload with drag and drop??

2004-11-16 Thread Scott Fletcher
Hi! I wonder is is it possible to have an http header that would stimluate files/folders upload via dragging over to the browser window? If so then what are the sample functions or scripts that make this possible... Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] splitting string

2004-11-16 Thread Afan Pasalic
I create a string from other strings: $string = $string1."\n".$string2."\n".$string3."\n".$string4."\n".$string5; and then store it in DB. But, I can't figure out how to split them back? Tried: $string_back = explode('\n', $string); $string_back = explode('', $string); $string_back = explode('', $

Re: [PHP] Question on query string

2004-11-16 Thread Jason Wong
On Wednesday 17 November 2004 00:28, Stuart Felenstein wrote: > --- Richard Davey <[EMAIL PROTECTED]> wrote: > > Use urldecode() to get them back to "normal" again. > > Changed the form action line to this: > > action="searchresults.php?Ind= urldecode(((isset($_POST["Ind[]"]))?$_POST["Ind[]"]:""))

Re: [PHP] XML + PHP is going to eat my shorts [SOLVED]

2004-11-16 Thread Marek Kilimajer
Jay Blanchard wrote: [snip] [/snip] using fread the above line comae out like this(even though I was not echoing the line, just processing) ...as soon as I added stripslashes the syntax error disappeared and VIOLA!...xml file parsing at its finest! magic_quotes_runtime enabled? what about

RE: [PHP] Question on query string

2004-11-16 Thread Chris W. Parker
Stuart Felenstein on Tuesday, November 16, 2004 8:28 AM said: > --- Richard Davey <[EMAIL PROTECTED]> wrote: > >> Use urldecode() to get them back to "normal" again. [snip] > Or should I do a $_GET['Ind'] = urlencode('Ind') on > searchresults.php ? hth, chris.

Re: [PHP] my own extension

2004-11-16 Thread Klaus Reimer
Uffe Kousgaard wrote: It is a large delphi library I want to call from PHP, so I don't think it is easier. But you know your library and you have it under control so maybe it's easier to write C include files to interface your Kylix library from C instead of writing Delphi-Units to interface PHP

[PHP] Auto-load class if it doesn't exists!

2004-11-16 Thread Bruno B B Magalhães
Hi people, is it possible to have a solution that works like an autoloader... for example: $myclass = new class(); but if this class wasn't loaded yet, it loads by itself... egg: if(class_exists(class)) { $myclass = new class(); } else { require_once(PATH_DIR.'class.class.php'); $my

[PHP] How to path global object

2004-11-16 Thread Hongwei Li
Hi, I have a question of how to path global object's values. Below are some simplified codes. It has 4 pieces: 1. tsstart.php: -- this is the start point to be browsed 2. tsdata.php: -- to get data, here I set it as a 2-d array and assign values to it to simplify the code 3. tsshow.php: -

[PHP] weekly email idea

2004-11-16 Thread Robby Russell
On some of the general lists (like I am on the python list), they have a weekly email that someone puts together and sends out to the list with tips and urls to things found throughout the week on the mailing list. People post valuable links and information and it would be a quick overview of the p

Re: [PHP] Is Perl faster than PHP?

2004-11-16 Thread raditha dissanayake
Merlin wrote: Hi there, it came to my attention that most of the high traffic portals are using perl in the backend. Those sites do also apear to me to be very fast in comparison to most php sites. Are there any known performance comperissons between the two available? Or can one say that PHP or

Re: [PHP] Authentication Class

2004-11-16 Thread raditha dissanayake
Bruno B B Magalhães wrote: Hi guys, well, I wrote a class for a big project (a framework), and here it is, I was wondering if someone have any suggestions regarding flexibility and security. Wow it's the most artistic piece of php i have ever seen. -- Raditha Dissanayake. --

  1   2   >