[PHP] Re: PHP 4.1.2 binary for windows

2002-03-07 Thread Julio Nobrega
If you are looking for the security patch (I believe the only reason 1.2 was released), don't worry, the bug doesn't affect Windows. Unless there are other changes? -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho?

RE: [PHP] Database Error

2002-03-07 Thread Navid Yar
I just tried that Robert. It still gives me the same error that it did before. There is no error after the mysql_connect. It definitely is connecting. If it didn't connect then it wouldn't pass the query to the database in the first place and spit out an error on the SQL syntax. I checked the

RE: [PHP] A good PHP Shop

2002-03-07 Thread Bradley Goldsmith
Dunno, Havn't looked at it. What's the Url? -bcg -Original Message- From: Jaxon [mailto:[EMAIL PROTECTED]] Sent: Friday, 8 March 2002 8:49 AM To: Bradley Goldsmith; 'Peter Haywood'; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] A good PHP Shop hi how does it compare to

RE: [PHP] A good PHP Shop

2002-03-07 Thread Jaxon
www.fishcart.org :) i've been trying to decide which one to use to tackle a big mall project, but don't know enough about 'carts to make an intelligent assessment yet. cheers, jaxon -Original Message- From: Bradley Goldsmith [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002

[PHP] Referer Is Empty

2002-03-07 Thread Steven Walker
Hello, I'm having trouble getting the referring url. I have tried: $HTTP_REFERER getenv(HTTP_REFERER); $_SERVER[HTTP_REFERER]; ... but they are all blank. The referring page has a meta http-equiv=Refresh header. If the user waits for the page to automatically redirect,

Re: [PHP] Rasmus, O'Reilly, Programming PHP

2002-03-07 Thread Paul Roberts
Amazon have it listed as folows. http://www.amazon.com/exec/obidos/ASIN/1565926102/qid=1015539436/sr=2-3/ref=sr_2_3/104-7882944-0058305 List Price: $39.95 Our Price: $27.96 You Save: $11.99 (30%) This item will be published in March 2002. You may order it now and we will ship it to you when

[PHP] bug???

2002-03-07 Thread Rodrigo Peres
Hi list, I'm developing an CMS, and I started a session with PHP 4.1.1 With I use this in javascript alert(document.forms[0].elements[0].name) it returns PHPSESSID and if i use alert(document.forms[0].elements[0].value), it returns a number. It's a bug??? I'm using IE5 in macos 9.2.2 Thank's

[PHP] Re: User accounts

2002-03-07 Thread David Johansen
Here's a little piece of code that gives me a weird problem: ?php if (!$logout) { if ($_SESSION['loggedin']) { unset($_SESSION['loggedin']); } } ? I have the session started and everything, but it gives me the following error. Warning: Undefined variable: logout in

[PHP] Add associative element to an an array

2002-03-07 Thread Bradley Goldsmith
Hi, Ive got an array of associations like this: [1]=2 [2]=3 [3]=4 etc I want to add a new element [8]=6. How do I do this? I have tried several ways: pushing the element, merging arrays, etc with no luck (it either increments the key or doesn't work at all).

Re: [PHP] Add associative element to an an array

2002-03-07 Thread Matt Drake
I'd think $arr['8'] = 6 would work... Using a number (as in $arr[8] = 6) would possibly confuse things, though I can't get to a PHP machine right now so I'm not sure. M On Fri, 8 Mar 2002, Bradley Goldsmith wrote: Hi, Ive got an array of associations like this: [1]=2 [2]=3

RE: [PHP] Add associative element to an an array

2002-03-07 Thread Bradley Goldsmith
I'll answer my own question. $keyarray[$item[0]] = $node; *duh* How embarrasing is it that this thread will end up on google :) -bcg -Original Message- From: Bradley Goldsmith [mailto:[EMAIL PROTECTED]] Sent: Friday, 8 March 2002 9:50 AM To: [EMAIL PROTECTED] Subject: [PHP] Add

Re: [PHP] Add associative element to an an array

2002-03-07 Thread Mark
it sounds like you want: $array[8]=6; On Fri, 8 Mar 2002 09:50:24 +1100, Bradley Goldsmith wrote: Hi, Ive got an array of associations like this: [1]=2 [2]=3 [3]=4 etc I want to add a new element [8]=6. How do I do this? I have tried several ways: pushing the element, merging

Re: [PHP] Add associative element to an an array

2002-03-07 Thread Erik Price
On Thursday, March 7, 2002, at 05:50 PM, Bradley Goldsmith wrote: Ive got an array of associations like this: [1]=2 [2]=3 [3]=4 etc I want to add a new element [8]=6. How do I do this? I have tried several ways: pushing the element, merging arrays, etc with no

Re: [PHP] php, text file, and mysql

2002-03-07 Thread Erik Price
On Thursday, March 7, 2002, at 07:16 PM, gregory hernandez wrote: can i insert the actual file (i.e. document.txt, of course with it contents) into a mysql? in other words, i don't want to read the contents of the file and insert the contents into a field in mysql. i want to insert the

Re: [PHP] Rasmus, O'Reilly, Programming PHP

2002-03-07 Thread Erik Price
On Thursday, March 7, 2002, at 05:22 PM, Paul Roberts wrote: Amazon have it listed as folows. http://www.amazon.com/exec/obidos/ASIN/1565926102/qid=1015539436/sr=2-3/ref= sr_2_3/104-7882944-0058305 Hm. Too bad they don't have that read a sample chapter set up yet. That's a feature I

RE: [PHP] php, text file, and mysql

2002-03-07 Thread Jason Murray
But for storing images and PDFs or other binary data, there's no other way. Actually, after having some problems with BLOB columns when mysqldump'ing and moving the data into a new database, I did find another way. I borrowed a trick from MIME mail handling, and base64_encod'ed, then

RE: [PHP] php, text file, and mysql

2002-03-07 Thread Darren Gamble
Good day, This isn't really on the topic of PHP. But, to answer your question- yes, MySQL will let you do lots of neat things with those large text fields, like looking for substrings and such. If you want to store some text information, even that which might have special characters, line

RE: [PHP] A good PHP Shop

2002-03-07 Thread Bradley Goldsmith
Check out phpshop.org. It's base implimentation is a little dry (but extremely functional). You can view a heavily modified version in the wild at my shop: www.artsupplies.com.au All the best, Brad -Original Message- From: Peter Haywood [mailto:[EMAIL PROTECTED]] Sent: Thursday, 7

RE: [PHP] A good PHP Shop

2002-03-07 Thread Jaxon
hi how does it compare to fishcart? cheers, jaxon -Original Message- From: Bradley Goldsmith [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 4:40 PM To: 'Peter Haywood'; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] A good PHP Shop Check out phpshop.org.

[PHP] dealing with # in urls

2002-03-07 Thread Mark
Hi, I'm having a problem dealing with #'s in my urls. Most browsers will not send the # with the request because they know it's only for use with a named anchor. so when you type in: http://mysite.com/test.php?id=0#top all that the browser will send as a request is

Re: [PHP] php, text file, and mysql

2002-03-07 Thread Julio Nobrega
Hi, just two quick notes: About text and similar fields: http://mysql.com/doc/S/t/String_types.html About not storing images: http://mysql.com/doc/T/i/Tips.html (close to the middle). That's it :-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca -- PHP

Re: [PHP] A good PHP Shop

2002-03-07 Thread Matt
Don't forget The Exchange Project, which is now called osCommerce: http://www.oscommerce.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: User accounts

2002-03-07 Thread Kevin Stone
I understand your confusion. The thing is that empty() and ! are two completely different arguments. if(empty($var)) is looking for: $var = ''; if(!$var) is looking for: $var = false; or $var = 0; If $var is set to anything other than 0 or false then the ASCII value of the string is (by

RE: [PHP] Session_start()

2002-03-07 Thread Matthew Walker
You must place session_start() before any other /output/. It can come after other code, as long as nothing will be output before it. Alternately, you can turn on output buffering and just not worry about it. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message-

RE: [PHP] What is - mean in php?

2002-03-07 Thread Kearns, Terry
Because I'm not a hacker on the PHP engine, I don't really know but I also saw this symbol when learning C++ recently. It is used in C++ as a shortcut to dereferencing and accessing an objects properties/methods on objects which are on the free store (heap). Normally C++ uses the dot operator to

[PHP] php questions about cookies

2002-03-07 Thread zhaoxd
I have a question about cookies,why is the time that the cookies expired not same as the time that parameter of session.cookie_lifetime set? for example, I wanna the cookies expired 5 minutes later,what should I do?I think I should set the parameter,as follow: session.cookie_lifetime =

Re: [PHP] Session_start()

2002-03-07 Thread Erik Price
On Thursday, March 7, 2002, at 07:25 PM, Matthew Walker wrote: Do I have to place a session_start() function at the top of a page (.php) before the headers? When they say that you need to put session_start() before the headers, they're referring to the HTTP headers, not the head tag of the

Re: [PHP] Rasmus, O'Reilly, Programming PHP

2002-03-07 Thread DL Neil
Hi Erik, Rasmus/others, O'Reilly are advertising the imminent release (Mar 2002) of Programming PHP (http://www.oreilly.com/catalog/progphp/desc.html). Is that still going ahead? (I'll submit an advanced purchase order...) Hmmm... on the one hand, it's an O'Reilly book, and their

[PHP] Re: writing to a file

2002-03-07 Thread David Robley
In article [EMAIL PROTECTED], vallee.marc- [EMAIL PROTECTED] says... Hi, Here is a foo.txt file : name=foo age=100 sex=y I want to open the file, find the age line, and then replace the 100 with another value. The only way i see, is to rewrite the entire file That is

[PHP] Re: impossible to delete file after 'parse_ini_file'

2002-03-07 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... php script : ?php $ini_array = parse_ini_file(conf/conf.php); echo($ini_array[var1]); ? content of conf/conf.php : [data] var1 = xxx After execution of the php script, it is impossible to delete the conf.php file. Any

[PHP] Re: REQUEST QUESTION

2002-03-07 Thread David Robley
In article 006401c1c600$ba52c210$0600a8c0@aspire006, [EMAIL PROTECTED] says... Dear Mark, Thanx for your reply. The solution you mentioned I knew it allready but i cannot change the name of order to order[] or something else but i still want to know is there any other way i can

[PHP] Re: Use an ini file

2002-03-07 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Anyone know of an easy to use library/or code that will read and write an ini file? See parse_ini_file() together with the file handling functions. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List

Re: [PHP] Rasmus, O'Reilly, Programming PHP

2002-03-07 Thread Rasmus Lerdorf
The book will be coming out. I have seen the galleys and the appendices have gone in. -Rasmus On Fri, 8 Mar 2002, DL Neil wrote: Hi Erik, Rasmus/others, O'Reilly are advertising the imminent release (Mar 2002) of Programming PHP

Re: [PHP] Alphabet

2002-03-07 Thread Angel Fenoy
Nico Vrouwe wrote: $iord('Z') seems easier to me than $iord('A')+26 :) Easier: ?php for ($a = $i = 'A'; $i != 'Z'; $a .= ++$i) ; ? now $a contains 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] What is - mean in php?

2002-03-07 Thread Stephano Mariani
PHP uses - as C++ uses ., since PHP already uses . for strings. Stephano Mariani -Original Message- From: Kearns, Terry [mailto:[EMAIL PROTECTED]] Sent: Friday, 8 March 2002 12:28 AM To: 'S.Murali Krishna'; Jack Cc: [EMAIL PROTECTED] Subject: RE: [PHP] What is - mean in php?

[PHP] Re: Use an ini file

2002-03-07 Thread jtjohnston
Anyone know of an easy to use library/or code that will read and write an ini file? See parse_ini_file() together with the file handling functions. Dave, http://www.php.net/manual/en/function.parse-ini-file.php Good, but no code to write to an ini file? :) John -- PHP General Mailing

Re: [PHP] Referer Is Empty

2002-03-07 Thread Bogdan Stancescu
Javascript, if that's acceptable for the environment you're working in... Bogdan Steven Walker wrote: Hello, I'm having trouble getting the referring url. I have tried: $HTTP_REFERER getenv(HTTP_REFERER); $_SERVER[HTTP_REFERER]; ... but they are all blank. The referring

RE: [PHP] What is - mean in php?

2002-03-07 Thread Douglas Maclaine-cross
Used in conjunction with classes. class Foo { var bar; function Foo($bar) { $this-bar = $bar; } } $foo = new Foo(foobar); echo $foo-bar; // foobar For interests sake here's the same in C++ (correct me if I'm wrong it's been a long time since

[PHP] Urgent - MySQL is not inserting the single quotes

2002-03-07 Thread Manisha
I am inserting into the table values with single Quote. If I give the command through text file - Insert into test values ('manisha\' test') - then this is ok, but when i try to insert the manisha ' test value through http://hostname/sqladmin using GUI then MySql is giving error. Any help

[PHP] Re: Use an ini file

2002-03-07 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Anyone know of an easy to use library/or code that will read and write an ini file? See parse_ini_file() together with the file handling functions. Dave, http://www.php.net/manual/en/function.parse-ini-file.php Good, but no

Re: [PHP] Re: REQUEST QUESTION

2002-03-07 Thread karthikeyan
Hi, I use PHP 4.0.6, I am not sure about $_POST but $HTTP_POST_VARS removes duplicate entries. As far as $QUERY_STRING is concerned well I knew it could do it but I want to use POST method. Not that happy knowing that PHP doesn't support this feature when Java and CGI-Perl can. Regards,

[PHP] data to multi-dimensional array

2002-03-07 Thread Craig Westerman
Thanks again for your help last night Jim. I found another source that by passes the middle man and this script (see below) is quicker. It works great for ONE ticker symbol. Yahoo allows one to retrieve multiple quotes by typing in comma separated tickers with no spaces.msft,rhat,^dji The

Re: [PHP] Urgent - MySQL is not inserting the single quotes

2002-03-07 Thread Analysis Solutions
Hi Manisha: If I give the command through text file - Insert into test values ('manisha\' test') - then this is ok, but when i try to insert the manisha ' test value through http://hostname/sqladmin using GUI then MySql is giving error. What's the error? That would certainly help us

[PHP] Dbconnect

2002-03-07 Thread Josiah Wallingford
I have a file called dbconnect that stores all of my mysql information (host, user, pass) up until now I have always just used localhost as the hostname because it was on my local server. My question is what do I have to do to connect to a different server? Do I just have to put in the computers

[PHP] Re: Dbconnect

2002-03-07 Thread Michael Kimsal
Josiah Wallingford wrote: I have a file called dbconnect that stores all of my mysql information (host, user, pass) up until now I have always just used localhost as the hostname because it was on my local server. My question is what do I have to do to connect to a different server? Do I just

Re: [PHP] Urgent - MySQL is not inserting the single quotes

2002-03-07 Thread Manisha
thanks, you are right, gpc_magic_quotes of php.ini was off. At 11:08 PM 3/7/02 -0500, Analysis Solutions wrote: Hi Manisha: If I give the command through text file - Insert into test values ('manisha\' test') - then this is ok, but when i try to insert the manisha ' test value

[PHP] A silly question. :P

2002-03-07 Thread GENESiS DESiGNS
Hello everyone, I would like to know why you put this character (!) in front of this: ?php $var1 = Hello; $var2 = hello; if (!strcasecmp($var1, $var2)) { echo '$var1 is equal to $var2 in a case-insensitive string comparison'; } ? Do you see the (!) in front of the strcasecmp() function?

RE: [PHP] A silly question. :P

2002-03-07 Thread Jason Murray
I would like to know why you put this character (!) in front of this: An ! means that the following statement should be false. So: if (!isset($variable)) means If $variable is not set Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] What is - mean in php?

2002-03-07 Thread S.Murali Krishna
Hi In search of the definition for your question, I've came across an intersting Doc. Iam just giving here the snapshot of that. In PHP terms, the toplevel directory would be the global namespace, and the pathname separator would be -. Thus, the names $cart-items and

[PHP] Re: Crontab

2002-03-07 Thread Uma Shankari T.
I have given like that you have mentioned below.again it is giving the same error.pls tell me how i will solve that.. Your terminal lacks the ability to clear the screen or position the cursor. -Uma On Wed, 6 Mar 2002, Philip Hallstrom wrote: PHTry... PH PHlynx -dump PH

Re: [PHP] Urgent - MySQL is not inserting the single quotes

2002-03-07 Thread Analysis Solutions
On Fri, Mar 08, 2002 at 12:44:30PM +0800, Manisha wrote: thanks, you are right, gpc_magic_quotes of php.ini was off. Oh, so then in your script, you weren't using the addslashes() function. Personally, I prefer *magic_quotes to be off, allowing me to precisely control what I want to do with

Re: [PHP] Re: Crontab

2002-03-07 Thread S.Murali Krishna
Why don't you call the script as command line one and redirect output to /dev/null. On Fri, 8 Mar 2002, Uma Shankari T. wrote: I have given like that you have mentioned below.again it is giving the same error.pls tell me how i will solve that.. Your terminal lacks the ability to

Re: [PHP] Urgent - MySQL is not inserting the single quotes

2002-03-07 Thread Jason Wong
On Friday 08 March 2002 13:10, Analysis Solutions wrote: On Fri, Mar 08, 2002 at 12:44:30PM +0800, Manisha wrote: thanks, you are right, gpc_magic_quotes of php.ini was off. Oh, so then in your script, you weren't using the addslashes() function. Personally, I prefer *magic_quotes to be

[PHP] Re: dealing with # in urls

2002-03-07 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Mark) wrote: in php.ini there is a variable called arg separator.input that looks like it can help but when I add the line: arg separator.input = # I still get $id = 0#top Did you restart the server after modifying php.ini? As for

<    1   2