[PHP] Q: file writing problem - help desperately needed

2003-02-12 Thread Dunkel
Newbie question: I try to modify a txt-file but get "not writable" error. (just like in http://www.php.net/manual/en/function.fwrite.php ) Here is the code, stripped to the original, straight from the tutorial. And I can't get it work. What's wrong here? $somecontent = 'PERKELE\n'; $filename

Re: [PHP] GD and 4.3

2003-02-12 Thread Kevin Waterson
This one time, at band camp, Joseph Bannon <[EMAIL PROTECTED]> wrote: > I hear GD is included in 4.3. What does it all > support? Does it support gif? read only gif support http://www.php.net/manual/en/ref.image.php Kevin -- __ (_ \

Re: [PHP] Database problem - works in Windows - not Linux

2003-02-12 Thread Mike Mannakee
Your MySQL servers may be set to refuse anonymous connections. Mike "Chris Hewitt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Lee P. Reilly wrote: > > >Hi there, > > > >I'm moving an application from Windows -> Linux, and am having a problem > >with the d

[PHP] GD and 4.3

2003-02-12 Thread Joseph Bannon
I hear GD is included in 4.3. What does it all support? Does it support gif? Joseph __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] IIS

2003-02-12 Thread Joe Njeru
Hi, I'm using IIS on win2k. Joe Njeru -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ftp_get()

2003-02-12 Thread Tom Rogers
Hi, Thursday, February 13, 2003, 9:17:17 AM, you wrote: M> I am trying to ftp_get($con,"/tmp/download.tmp","/remote/file M> dir/file.txt",FTP_ASCII). I am getting errors because of the space in the M> remote filename. I tried using "/remote/file\ dir/file.txt" as the M> filename, but that also f

Re: [PHP] when is OOP a good choice?

2003-02-12 Thread php
On 12 Feb 2003 at 21:50, anders thoresson wrote: > I've just started to read about - and will soon try to write - object > oriented code. I think I've got the basics both from the PHP-books I have, > and from various sources on the web. > > But nowhere have I read a good explanation to two of m

Re: [PHP] Re: File not rewritable - why? Help needed.

2003-02-12 Thread Paul Dunkel
Marek Kilimajer wrote: use chmod 755 directory on each directory that is in the way to your file I tried that, too. Didn't help. Here is the code, stripped to the original, straight from the tutorial. And I can't get it work. What's wrong here? $somecontent = 'PERKELE\n'; $filename = 'teks

Re: [PHP] PGP and PHP together???

2003-02-12 Thread David T-G
Jason, et al -- ...and then Jason Sheets said... % % There is a PHP extension named GPGext for PHP, it uses the gnupg made % easy library to make gpg functions available to PHP without executing % external programs. Way cool! I'm not suprised, but I hadn't heard of it before. Can't wait to see

Re: [PHP] PGP and PHP together???

2003-02-12 Thread Jason Sheets
There is a PHP extension named GPGext for PHP, it uses the gnupg made easy library to make gpg functions available to PHP without executing external programs. It is available at: http://www.sourceforge.net/projects/gpgext/ Jason On Wed, 2003-02-12 at 20:34, David T-G wrote: > Mike -- > > ...and

Re: [PHP] PGP and PHP together???

2003-02-12 Thread David T-G
Mike -- ...and then MIKE YRABEDRA said... % % Is it possible to use php and pgp together? Are there any good tutorials out % there? It's absolutely possible. What do you want to do? The only thing that most people find a little tricky is that you have to think as the web server and not as your

Re: [PHP] Re: $$ Variable?

2003-02-12 Thread Ernest E Vogelsinger
At 03:49 13.02.2003, [EMAIL PROTECTED] said: [snip] >Ok, but what does the $$name signify? Looking on php.net I couldn't find >anything regarding it. Maybe I'm looking in the wrong place? [snip] In the example Phili

Re: [PHP] Re: $$ Variable?

2003-02-12 Thread jtx
Ok, but what does the $$name signify? Looking on php.net I couldn't find anything regarding it. Maybe I'm looking in the wrong place? On Wed, 12 Feb 2003, Philip Hallstrom wrote: > Check the manual for sure, but assuming: > > $cookie = array("foo" => "bar", "red" => "blue") > > once this is don

[PHP] Re: $$ Variable?

2003-02-12 Thread Philip Hallstrom
Check the manual for sure, but assuming: $cookie = array("foo" => "bar", "red" => "blue") once this is done you'll have the following variable defined: $foo = "bar"; $red = "blue"; I think that's how it works anyway. On Wed, 12 Feb 2003 [EMAIL PROTECTED] wrote: > I'm trying to piece apart som

[PHP] $$ Variable?

2003-02-12 Thread jtx
I'm trying to piece apart someone's code to see exactly what it is they're trying to do - This code was written for PHP 3.x, so it's not quite as nice as 4 (with $_POST, $_GET, $_SESSION, etc). There's this one part in particular that I have no idea what's trying to be done: if (isset ($cookie))

[PHP] Output Compression stops working after a while

2003-02-12 Thread Zavier Sheran
I enabled output comression in php.ini with zlib.output_compression = On zlib.output_compression_level = -1 also, I loaded the gzip module in httpd.conf with LoadModule gzip_module modules/mod_gzip-1.3.19.1a.so Now, when I restart Apache, I get compressed output. But after an hour or so Apache

Re: [PHP] Database problem - works in Windows - not Linux

2003-02-12 Thread Chris Hewitt
Lee P. Reilly wrote: Hi there, I'm moving an application from Windows -> Linux, and am having a problem with the database. I have the following script to test my database connection (Linux): -=-=-=-=-=-=-=-=-=-=-=-=-=- snip =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I'd put in a mysql_error

[PHP] Pspell

2003-02-12 Thread John Nichel
Hi guys, Having a problem here getting php4.3 to compile with pspell. I have the new aspell (aspell-0.50.2) installed, and according to the aspell site, aspell and pspell are now one. Php configures fine, but durning make, I get these errors -lcrypt -lresolv -lm -ldl -lnsl -lcrypt -o

RE: [PHP] ftp_get()

2003-02-12 Thread Barajas, Arturo
Chris, Wouldn't work if you urlencode the path to the file? Something like: ftp_get($con,"/tmp/download.tmp", urlencode("/remote/file dir/file.txt"), FTP_ASCII) THT -- Un gran saludo/Big regards... Arturo Barajas, IT/Systems PPG MX (SJDR) (427) 271-9918, x448 > -Original Message-

[PHP] ftp_get()

2003-02-12 Thread Muti
I am trying to ftp_get($con,"/tmp/download.tmp","/remote/file dir/file.txt",FTP_ASCII). I am getting errors because of the space in the remote filename. I tried using "/remote/file\ dir/file.txt" as the filename, but that also fails. I also tried to ftp_chdir() to the directory first and get fil

[PHP] Database problem - works in Windows - not Linux

2003-02-12 Thread Lee P. Reilly
Hi there, I'm moving an application from Windows -> Linux, and am having a problem with the database. I have the following script to test my database connection (Linux): -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= $connection = mysql_connect("localhost","","") or die

[PHP] Re: var_export() strips slashes

2003-02-12 Thread Shawn McKenzie
Is this a real bug, or am I just doing something stupid? :-) Thanks! Shawn > Seems that var_export() strips slashes from my array keys even though the > docs say that it returns valid PHP code. This is bad if I want to use $b > below to define another array, gives a parse error on the single quo

[PHP] IS PEAR Secure?

2003-02-12 Thread MIKE YRABEDRA
I am looking into installing PEAR on my production server running 4.3. Are there any PEAR security issues to be concerned about? -- Mike Yrabedra President 323 Enterprises Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM:

[PHP] Re: when is OOP a good choice?

2003-02-12 Thread Vladimir Galkov
if you work in comand its good thing. "Anders Thoresson" <[EMAIL PROTECTED]> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I've just started to read about - and will soon try to write - object > oriented code. I think I've got the basics both from the PHP-bo

Re: [PHP] Learning PHP

2003-02-12 Thread Ernest E Vogelsinger
At 16:14 12.02.2003, Greg Luce said: [snip] >Could anyone recommend a fast track for learning php for an experienced >ColdFusion developer? I'm working my way through the tutorials on >php.net and free2code.net, but they seem pretty kindergarten. Any >advice?

RE: [PHP] when is OOP a good choice?

2003-02-12 Thread Le Yang
Object oriented programming in php has better logic thus is more suitable for more complex jobs. It also makes maintenance easier, although you have to write a bit more code -Original Message- From: anders thoresson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12, 2003 3:50 PM To:

Re: [PHP] MySQL Login Setup not working with PHP

2003-02-12 Thread Ernest E Vogelsinger
At 14:31 12.02.2003, Tim Burgan said: [snip] >The problem is that I don't know what my USERNAME or PASSWORD for MyDQL are. >How do I find this information out? [snip] You need to ask your SysAdmin... -- >O E

[PHP] Re: undefined function - crypt()

2003-02-12 Thread Anthony Ritter
Greg wrote in message: > I believe you need to have mcrypt installed. > -Greg . Not sure what mcrypt is. Please advise. In Ullman's textbook, it says that decrypt() and encrypt(0 fuctions will not work if PHP is not installed as a module. However, in his example in the boo

Re: [PHP] restricting access to files using PHP

2003-02-12 Thread Ernest E Vogelsinger
At 10:46 12.02.2003, Shams said: [snip] >i've written a secure PHP login script which will allow users to login to a >directory such as this: > >smezone.com/members/index.php > >however, how do I restrict people from accessing HTML files in that >directory (w

RE: [PHP] undefined function - crypt()

2003-02-12 Thread Barajas, Arturo
Tony, You have to compile PHP with the "crypt" option, I don't remember the exact syntax (--enable-crypt? --with-crypt=/path?) Something along those lines... -- Un gran saludo/Big regards... Arturo Barajas, IT/Systems PPG MX (SJDR) (427) 271-9918, x448 > -Original Message- > From:

[PHP] Re: undefined function - crypt()

2003-02-12 Thread Greg
I believe you need to have mcrypt installed. -Greg "Anthony Ritter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Using MS Win98 / PHP /Apache > > I'm getting a undefined function error - crypt() > > The following scripts were taken from Larry Ullman's book on

[PHP] undefined function - crypt()

2003-02-12 Thread Anthony Ritter
Using MS Win98 / PHP /Apache I'm getting a undefined function error - crypt() The following scripts were taken from Larry Ullman's book on PHP on page 60-61. Any advice would be helpful. Thank you. Tony Ritter .. //ullmanform.html HTML Form

[PHP] PGP and PHP together???

2003-02-12 Thread MIKE YRABEDRA
Is it possible to use php and pgp together? Are there any good tutorials out there? -- Mike Yrabedra President 323 Enterprises Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock

Re: [PHP] Failed opening

2003-02-12 Thread Ernest E Vogelsinger
At 13:14 12.02.2003, thkiat said: [snip] >Hi can someone explain to me what is this and how to fix it:- > >Warning: Failed opening '../language/english/admin.php' for inclusion >(include_path='.;c:\apache\php\pear') in >c:\apache\htdocs\exoops\modules\sitemap

Re: [PHP] PHP & JavaScript

2003-02-12 Thread Greg
Thank you so much, that worked perfectly...I know it's off topic, but do you know how to automatically select all elements of a select multiple box and then submit the form using a submit button? Thanks! -Greg "John Nichel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTE

[PHP] when is OOP a good choice?

2003-02-12 Thread anders thoresson
I've just started to read about - and will soon try to write - object oriented code. I think I've got the basics both from the PHP-books I have, and from various sources on the web. But nowhere have I read a good explanation to two of my questions: 1. What are the main benefits from OOP? 2. Whe

[PHP] How do you... get a text stream into IMAP parsing...

2003-02-12 Thread Les Barstow
Is there any way to send an email message which is already in PHP (in a string, array, or I/O stream) through the IMAP parser without putting it into a file first? Thanks in advance, -- Les Barstow | System Administrator | "A society of sheep must in time beget Jaleco Entertainment |

Re: [PHP] string to array

2003-02-12 Thread Steve Werby
"Kevin Waterson" <[EMAIL PROTECTED]> wrote: > What is the best method to convert a string to an array > > I need to able to loop through each letter of the string > not just use $string[47] You can find out how long it is using strlen(), then loop through it using your favorite looping construct.

Re: [PHP] string to array

2003-02-12 Thread Leif K-Brooks
There's no built-in function, but try this (copied from manual): $chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY); Kevin Waterson wrote: >What is the best method to convert a string to an array > >I need to able to loop through each letter of the string >not just use $string[47] > >Is t

[PHP] Announcement: Smarty template engine 2.4.2 released

2003-02-12 Thread Monte Ohrt
Hello! Smarty 2.4.2 now supports the ability to access objects within the templates, a long awaited feature. Two methods are available, one which closely follows Smartys existing syntax conventions, and another that follows more traditional object syntax for those familiar with PHP. The regex par

[PHP] string to array

2003-02-12 Thread Kevin Waterson
What is the best method to convert a string to an array I need to able to loop through each letter of the string not just use $string[47] Is there a definitive method to do this? Kevin -- __ (_ \ _) )

RE: [PHP] setcookie on PHP??

2003-02-12 Thread Daniel Masson
Send some pieces of code. Daniel E Massón. Ingeniero de desarrollo [EMAIL PROTECTED] Imagine S.A. Su Aliado Efectivo en Internet www.imagine.com.co (57 1)2182064 - (57 1)6163218 Bogotá - Colombia - Soluciones web para Inte

Re: [PHP] php & javascript drop down menu???

2003-02-12 Thread Jeff Bluemel
thanks Jason, between this & the other suggestions I was emailed I believe I can make this all work like I need to. Jeff "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Wednesday 12 February 2003 08:47, Jeff Bluemel wrote: > > OK... I have a dy

Re: [PHP] Passing PostgreSQL resource

2003-02-12 Thread Joshua Moore-Oliva
Oh btw, you will have to remove those isString and isint functions.. they are other parts of my library that just check the type of a variable... and log a message through an error handling system I've set up.. I'd have the library up now but it's not that well commented.. Josh. On February

Re: [PHP] Passing PostgreSQL resource

2003-02-12 Thread Joshua Moore-Oliva
There's really no other way to do it... You can't serialize a connection or resultset since they are both resources... If you really wanted you could turn a recordset into an array and store that as a serialised object and pass it around... but a) Depending on how much data a recordset returne

Re: [PHP] PHP & JavaScript

2003-02-12 Thread John Nichel
document.forms[0].elements['select1[]'] Assuming the form is your first form on the page, reference the element in JavaScript as above. Greg wrote: I have a problem with 2 select multiple boxes in my PHP pages. In order for PHP to pass multiple values to a page that it is posted to, the name o

[PHP] var_export() strips slashes

2003-02-12 Thread Shawn McKenzie
Seems that var_export() strips slashes from my array keys even though the docs say that it returns valid PHP code. This is bad if I want to use $b below to define another array, gives a parse error on the single quote in the key. $a = array('it\'s here' => 'single, \' double "'); $b = var_export($

Re: [PHP] Passing PostgreSQL resource

2003-02-12 Thread Lucas Lain
i will use it for the moment but i was thinking in a "light" solution ... i dont like the idea of creating a temp table for each page... Joshua Moore-Oliva wrote: Try this function... it's one part of a php class I've been thinking about making open-source. Give it any sql statement and a pag

[PHP] PHP & JavaScript

2003-02-12 Thread Greg
I have a problem with 2 select multiple boxes in my PHP pages. In order for PHP to pass multiple values to a page that it is posted to, the name of the select box must have [] at the end of it. My problem is that when I do that for select1[] in my page that breaks the syntax of the JavaScript cod

Re: [PHP] Passing PostgreSQL resource

2003-02-12 Thread Joshua Moore-Oliva
Try this function... it's one part of a php class I've been thinking about making open-source. Give it any sql statement and a page (0 based for the page) and a number of records for a page and you are set. I've only tested this on postgresql. function pageSql( $sql, $page, $recs_per_page ) {

RE: [PHP] Learning PHP

2003-02-12 Thread Bryan Lipscy
You may want to wait a few days on this book. The 2nd edition is due out tomorrow. Search on 0-672-32525-X -Original Message- From: Brent Baisley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12, 2003 9:19 AM To: Greg Luce Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Learning PHP N

Re: [PHP] Passing PostgreSQL resource

2003-02-12 Thread Ray Hunter
This is how i handle this concept: 1. Determine the number of rows from the query. 2. Set up limits on how many rows to display per page. 3. Then do multiple queries with those limits. Postgresql allows for queries with limits. That should get you started... Ray On Wed, 2003-02-12 at 09:58, Lu

[PHP] Full text search of mysql

2003-02-12 Thread Hardik Doshi
Hello, I want to use mysql's full text search capabilities with two different tables. Can i join tables using full text search? I am using mysql 3.23.55 thanks Hardik __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shop

[PHP] buildconf: Your version of autoconf likely contains buggy cache code

2003-02-12 Thread Robin Mordasiewicz
when I run buildconf I get this message. Everything seems to work ok but Can someone explain this warning. buildconf: autoconf version 2.53 (ok) buildconf: Your version of autoconf likely contains buggy cache code. Running cvsclean for you. To avoid this, install autoconf-2.

Re: [PHP] quick question form validation

2003-02-12 Thread Jason Wong
On Thursday 13 February 2003 01:40, Didier McGillis wrote: > I get this. > > Warning: Cannot add header information - headers already sent by (output > started header.php:7) in add_store.php on line 186 OK, did you search the archives? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Ope

[PHP] Using function fsockopen() under proxy

2003-02-12 Thread Cleber
Hi, everyone... Why to use the function fsockopen() under proxy?? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RSA implementation

2003-02-12 Thread Matt Vos
Why not try this: Store the plaintext password in your DB, or hash with a permanent key (same key for all users) Send a well-salted key to the browser @ your login page, each time the user logs in Have the user enter the password, have javascript hash it and send it to you (if you're storing a has

RE: [PHP] MySQL Login Setup not working with PHP

2003-02-12 Thread Barajas, Arturo
Try user = 'root', password = ''. It's a security breach, so you would want to change it ASAP. Look for the SQL GRANT and REVOKE commands. -- Un gran saludo/Big regards... Arturo Barajas, IT/Systems PPG MX (SJDR) (427) 271-9918, x448 > -Original Message- > From: Tim Burgan [mailto:

[PHP] setcookie on PHP??

2003-02-12 Thread Balaravi, Bala (Ravi), ALABS
I need to set a cookie within a document in PHP? setcookie didn't work. I guess it works only in PHP3 & PHP4 Any good ideas?? Thanks Rave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] quick question form validation

2003-02-12 Thread Didier McGillis
I get this. Warning: Cannot add header information - headers already sent by (output started header.php:7) in add_store.php on line 186 From: Jason Wong <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] quick question form validation Date: Thu, 13 Feb 200

[PHP] Re: PHP 4.3 on win 2k

2003-02-12 Thread Mike Mannakee
What server are you using? Mike "Joe Njeru" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi All, > > I get a "Invalid access to memory location." error when I install php 4.3 on > win2k as a isapi module. I've tried to install it as a cgi but I keep on > ge

Re: [PHP] quick question form validation

2003-02-12 Thread Jason Wong
On Thursday 13 February 2003 01:26, Didier McGillis wrote: > Is there a way that I can redirect and keep the id. If you want to _redirect_ use header(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet

Re: [PHP] quick question form validation

2003-02-12 Thread Didier McGillis
Is there a way that I can redirect and keep the id. From: Jason Wong <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] quick question form validation Date: Thu, 13 Feb 2003 00:55:59 +0800 On Thursday 13 February 2003 00:47, Didier McGillis wrote: > I must

Re: [PHP] Learning PHP

2003-02-12 Thread Brent Baisley
Normally I don't recommend a SAMS book since I often find them lacking depth. But I picked up"PHP and MySQL Web Devlopment" and actually thought it very helpful. By chapter two you're reading and writing files and by page 150 (of and 800+ page book) you're into object oriented programming. It c

[PHP] Search metatag script

2003-02-12 Thread Vicki
I'm pretty new to PHP and have no programming background, so I wanted to ask what would be the best way to approach this script. A client will develop a set of keywords which we will post on a Keyword Index page (probably 50+). He will then designate which of 25 product pages to apply these ke

[PHP] Passing PostgreSQL resource

2003-02-12 Thread Lucas Lain
Hi.. i'm new at this mailing list and you can say that i'm a newbie in Php programming :) i dont know how to pass a connection to a database between pages. I want to show the results in multiple pages with a unique connection. can anyone help me? Thanks in advance. Lucas -- Lucas Lain [EMAIL PRO

[PHP] Browser displays binary data

2003-02-12 Thread olinux
I've been searching and not really sure what I should be searching for. I just got a note from a reader who says that they are unable to read an article on our website (from the screenshot it looks like browser is getting binary data). This article is php generated html with proper doctype, html,

Re: [PHP] quick question form validation

2003-02-12 Thread Jason Wong
On Thursday 13 February 2003 00:47, Didier McGillis wrote: > I must be missing something, but I am doing some very simple validation of > a form. So if it is incorrect I need to redisplay the form. Normally what > I do is I just include the form back in. This one I have tried to include > the f

RE: [PHP] sorting multi-dimensional array where array elements are structs [simple class]

2003-02-12 Thread Erin Fry
Okay. For some reason, usort messes things up when you have a multi-dimensional array (or at least mine). When I commented out the call to usort, the information printed, but out of order. When I called the usort, I’m not sure what happened, but all of the elements in my array were blank. Wh

[PHP] quick question form validation

2003-02-12 Thread Didier McGillis
I must be missing something, but I am doing some very simple validation of a form. So if it is incorrect I need to redisplay the form. Normally what I do is I just include the form back in. This one I have tried to include the form back in, but I need to keep an id number. That seems to blow

Re: [PHP] Fwd: Re: Guest book

2003-02-12 Thread Marek Kilimajer
Also forgot you should use *strftime()* instead of date() ( http://www.php.net/strftime ) Marek Kilimajer wrote: Try setlocale (LC_ALL, 'no_NO'); at the beginnig of your script (I'm not sure no_NO is right) Alexander Verlo wrote: I have a problem. My guestbook should log the time and date

Re: [PHP] Fwd: Re: Guest book

2003-02-12 Thread Marek Kilimajer
Try setlocale (LC_ALL, 'no_NO'); at the beginnig of your script (I'm not sure no_NO is right) Alexander Verlo wrote: I have a problem. My guestbook should log the time and date when someone write the book. It does now, but not in my language (norwegian). I have tried some of the hint's at y

[PHP] Fwd: Re: Guest book

2003-02-12 Thread Alexander Verlo
I have a problem. My guestbook should log the time and date when someone write the book. It does now, but not in my language (norwegian). I have tried some of the hint's at your page, but it wont work. This is my script: $date = date ("l d. F Y H:i:s"); if(empty($navn)){ echo "Du har ikke sk

Re: [PHP] Print_r bug?

2003-02-12 Thread Leif K-Brooks
But according to the manual: Note: Prior to PHP 4.0.4, print_r() will continue forever if given an array or object that contains a direct or indirect reference to itself. An

Re: [PHP] Print_r bug?

2003-02-12 Thread Johannes Schlueter
On Wednesday 12 February 2003 16:53, Leif K-Brooks wrote: > I think I've found a print_r bug with reference recursion. The > following example script runs forever: > > $GLOBALS['foo'] = &$GLOBALS; > print_r($GLOBALS); > ?> > > Am I correct in thinking this is a bug that should be reported? No, t

[PHP] Print_r bug?

2003-02-12 Thread Leif K-Brooks
I think I've found a print_r bug with reference recursion. The following example script runs forever: $GLOBALS['foo'] = &$GLOBALS; print_r($GLOBALS); ?> Am I correct in thinking this is a bug that should be reported? -- The above message is encrypted with double rot13 encoding. Any unauthori

Re: [PHP] Learning PHP

2003-02-12 Thread David T-G
Greg -- ...and then Greg Luce said... % % Could anyone recommend a fast track for learning php for an experienced % ColdFusion developer? I'm working my way through the tutorials on % php.net and free2code.net, but they seem pretty kindergarten. Any % advice? I had extensive perl experience as w

Re: [PHP] Learning PHP

2003-02-12 Thread Reuben D. Budiardja
On Wednesday 12 February 2003 10:14 am, Greg Luce wrote: > Could anyone recommend a fast track for learning php for an experienced > ColdFusion developer? I'm working my way through the tutorials on > php.net and free2code.net, but they seem pretty kindergarten. Any > advice? I think with your exp

Re: [PHP] Failed opening

2003-02-12 Thread Marek Kilimajer
php interpreter wants to include this file, check if it is there - one directory up from SCRIPT_FILENAME, then laguage\english\admin.php thkiat wrote: Hi can someone explain to me what is this and how to fix it:- Warning: Failed opening '../language/english/admin.php' for inclusion (include_pat

[PHP] Learning PHP

2003-02-12 Thread Greg Luce
Could anyone recommend a fast track for learning php for an experienced ColdFusion developer? I'm working my way through the tutorials on php.net and free2code.net, but they seem pretty kindergarten. Any advice?

Re: [PHP] RSA implementation

2003-02-12 Thread Chris Hewitt
José León Serna wrote: El mar, 11-02-2003 a las 18:49, Chris Hewitt escribió: Have you considered using on one-way MD5 hash instead? That's how I'm doing it now, but I would like to allow the user to change it's password, and I want to encrypt it, of course ;-) Yes. The procedure here w

Re: [PHP] need help with a table please - sorry

2003-02-12 Thread Chris Hayes
woops i did not finish that line: If you imagine to walk through your code, with every step $i increases. If you start the second row, then the counter is at 8 and will never be 7 again. And some bad english: Besides, your second print '' for every cell, which will break your table, and p

Re: [PHP] need help with a table please - sorry

2003-02-12 Thread Chris Hayes
At 15:43 12-2-03, you wrote: Hello friends. Sorry I sent the wrong code in my last mail. Here is my correct code. I want the output of my query to be formatted such that after every 7th output, the 8th one should start on a new row in the table. I have written the following code but does not w

Re: [PHP] need help with a table please - sorry

2003-02-12 Thread Matt
>- Original Message - >From: "Denis L. Menezes" <[EMAIL PROTECTED]> >Sent: Wednesday, February 12, 2003 9:43 AM >Subject: [PHP] need help with a table please - sorry >Sorry I sent the wrong code in my last mail. Here is my correct code. >I want the output of my query to be formatted such

[PHP] need help with a table please - sorry

2003-02-12 Thread Denis L. Menezes
Hello friends. Sorry I sent the wrong code in my last mail. Here is my correct code. I want the output of my query to be formatted such that after every 7th output, the 8th one should start on a new row in the table. I have written the following code but does not work. Can someone please help?

Re: [PHP] RSA implementation

2003-02-12 Thread José León Serna
El mar, 11-02-2003 a las 18:49, Chris Hewitt escribió: > Have you considered using on one-way MD5 hash instead? That's how I'm doing it now, but I would like to allow the user to change it's password, and I want to encrypt it, of course ;-) The procedure here will be to: -Encrypt the new passwor

[PHP] Help to make tables please.

2003-02-12 Thread Denis L. Menezes
Hello friends. I want the output of my quesry to be formatted such that afdter every 7th output, the 8th one should start on a new row in ythe tabel. I have written the following code but does not work. Can someone please help? Quote : "; Print""; Print "$row[CategoryName]"." "; Print "

Re[2]: [PHP] msession users

2003-02-12 Thread Tom Rogers
Hi, Wednesday, February 12, 2003, 11:32:54 PM, you wrote: RM> Any information would definitely be interesting. here it is: sessionlife); return true; } function destroy($key) { global $class_ref;

[PHP] MySQL Login Setup not working with PHP

2003-02-12 Thread Tim Burgan
I've installed a bundle from ( www.fireworks.com.au ) that includes PHP, MySQL and Apache all pre-configured. All is working OK, except that I'm trying to access a table in my database using the following PHP code: The problem is that I don't know what my USERNAME or PASSWORD for MyDQL are. How

Re: [PHP] msession users

2003-02-12 Thread Robin Mordasiewicz
Any information would definitely be interesting. On Wed, 12 Feb 2003, Tom Rogers wrote: > Hi, > > Wednesday, February 12, 2003, 4:01:28 PM, you wrote: > RM> Are there any msession users here, if so please share your experiences. > RM> I am considering using msession for a multiple server environm

RE: [PHP] Echo # problem

2003-02-12 Thread Ford, Mike [LSS]
> -Original Message- > From: Chris Hayes [mailto:[EMAIL PROTECTED]] > Sent: 12 February 2003 13:02 > > At 13:46 12-2-03, you wrote: > >The code I am trying to get working is shown below however, > as the # is > >interpreted as a comment the header function is only redirecting to > > > >./

Re: [PHP] Re: File not rewritable - why? Help needed.

2003-02-12 Thread Marek Kilimajer
use chmod 755 directory on each directory that is in the way to your file [EMAIL PROTECTED] wrote: Marek Kilimajer wrote: Also make sure server has read permission to directories. I'm pretty sure that is the problem. How should I check that? I've now tried my PHP in two other servers wi

RE: [PHP] Echo # problem

2003-02-12 Thread Chris Hayes
At 13:46 12-2-03, you wrote: The code I am trying to get working is shown below however, as the # is interpreted as a comment the header function is only redirecting to ./itemadmin.php3?submittedby=$submittedby&cat=$cat $head = "./itemadmin.php3?submittedby=$submittedby&cat=$cat#$edit"; header (

Re: [PHP] restricting access to files using PHP

2003-02-12 Thread David T-G
Shams -- ...and then Shams said... % % Hi, Hi! % ... % however, how do I restrict people from accessing HTML files in that You've seen the suggestions from others to change your .html files. You may or may not want to do that. If you don't want to do that, then you need a .htaccess file.

Re: [PHP] Classes, global objects, and pointers

2003-02-12 Thread Marek Kilimajer
John Hughes wrote: In this example which parallels a problem I am having in my real life script. I would like to have a global object, in this case $tester. I would then like to be able to store local references to this global object right inside the class. These are assigned byref in the class

Re: [PHP] Re: File not rewritable - why? Help needed.

2003-02-12 Thread user
Marek Kilimajer wrote: Also make sure server has read permission to directories. I'm pretty sure that is the problem. How should I check that? I've now tried my PHP in two other servers with no result. I'm definetly doing something wrong :-( Paul Dunkel -- [EMAIL PROTECTED] -- PHP Gene

Re: [PHP] Re: File not rewritable - why? Help needed.

2003-02-12 Thread user
Awlad Hussain wrote: try CHMOD 777 I tried that. It didn't help. I also tried in two other servers with no result. I'm definetly doing something wrong :-( More ideas? Paul Dunkel -- [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

[PHP] Failed opening

2003-02-12 Thread thkiat
Hi can someone explain to me what is this and how to fix it:- Warning: Failed opening '../language/english/admin.php' for inclusion (include_path='.;c:\apache\php\pear') in c:\apache\htdocs\exoops\modules\sitemap\admin\admin_header.php on line 19 Thank you! -- PHP General Mailing List (http:/

Re: [PHP] restricting access to files using PHP

2003-02-12 Thread Justin French
Assuming Apache: 1. use index.php or login.php as a log-in file, just as you are 2. if you have your heart set on naming the files .html instead of .php, then create a .htaccess file in the dir which forces .html files thru php for that directory 3. create a php file called "access_control.php"

Re: [PHP] Echo # problem

2003-02-12 Thread Petre Agenbag
Two ways: a) echo "blabla # $blabla"; or b) echo 'blabla # '.$blabla; The # character must just be inside the echo's quotes. On Wed, 2003-02-12 at 13:36, Paul McQ wrote: > I am writing an application in which I need to redirect to an url using the > Header function. This redirection must inc

  1   2   >