Re: [PHP] Detect language date(F)

2004-01-26 Thread Martin Luethi
my example should also work with fr or fr-ca what do you get with: echo $_SERVER["HTTP_ACCEPT_LANGUAGE"]; ? the locale-string depends on your webserver. under linux you have to build them first (e.g.: locale-gen) take a look at the user-notes under http://ch2.php.net/manual/de/function.setlocale.ph

Re: [PHP] Mail Transaction Failed

2004-01-26 Thread Tom Rogers
Hi, Tuesday, January 27, 2004, 4:32:46 PM, you wrote: cho> The message contains Unicode characters and has been sent as a binary attachment. Be careful this crap is a virus -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Stupid newbie question = Why don't I need a ; after this line?

2004-01-26 Thread Tom Rogers
Hi, Tuesday, January 27, 2004, 4:18:03 PM, you wrote: P> Thanks for any advice. P> Can anyone tell me why I do not get any errors with ( no ; after _id'] ) P> P> From the manual (which is given away free:) The closing tag for the block will include the immediately trailing newline if one i

Re: [PHP] Stupid newbie question = Why don't I need a ; after this line?

2004-01-26 Thread Jason Wong
On Tuesday 27 January 2004 14:18, Paul wrote: > Can anyone tell me why I do not get any errors with ( no ; after _id'] ) > > > > manual > Basic syntax -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet

[PHP] Free Web Site Link Exchange Software

2004-01-26 Thread Scott Dudley
I've been looking this evening for a free PHP reciprocal link exchange package. I'm prepared to roll my own if I can't find what I'm after but there's so many of us hacking code these days that I can't imagine that someone's not already done so. Can anyone recommend such a package? I'm looking

[PHP] Mail Transaction Failed

2004-01-26 Thread chuck
The message contains Unicode characters and has been sent as a binary attachment. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mail Transaction Failed

2004-01-26 Thread chuck
The message contains Unicode characters and has been sent as a binary attachment. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to prevent duplicated values?

2004-01-26 Thread BAO RuiXian
Thomas Svenson wrote: BAO RuiXian wrote: Make it field UNIQUE. That's the easy method, but usually not very smart. It only causes MySQL to Well, if there is an easy method, why we bother to use a more complicacted way? generate an error which you then have to take care of in your ap

[PHP] test

2004-01-26 Thread daitken
The message cannot be represented in 7-bit ASCII encoding and has been sent as a binary attachment. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help with mysql

2004-01-26 Thread Renan G. Galang
could you send the line 16 the parser was pointing out? (B (BIt could be you have the wrong number of parameters for the call to (Bmysql_connect(), or your PHP wasn't compiled with mysql functionality (Benabled. (This is doubtful since mysql functionality is ON by default). (B (B (B- Ori

[PHP] help with mysql

2004-01-26 Thread Tom Flood
Hello, I am just beginning my learning of php and its uses with mysql. I wrote a small program to add information into a mysql database. However my script returns the following error: Fatal error: Call to undefined function: mysql_connect() in /var/www/html/ephi/mysql.php on line 16 what is th

[PHP] Stupid newbie question = Why don't I need a ; after this line?

2004-01-26 Thread Paul
Thanks for any advice. Can anyone tell me why I do not get any errors with ( no ; after _id'] ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] unexpected include parse error

2004-01-26 Thread R'twick Niceorgaw
Hi Paul, Quoting Paul Furman <[EMAIL PROTECTED]>: > $dirstr= "./" probably because you are missing a ; at the end? >include 'scandir.php'; >scandir('$dirstr'); you should also change this to scandir($dirstr); > ?> > > parse error, unexpected T_INCLUDE in [the above file] > > if

Re: [PHP] unexpected include parse error

2004-01-26 Thread Paul Furman
Shawn McKenzie wrote: I've noticed in both of your posts that you aren't terminating the line before the include with a ; Yup, thanks! Then I fixed my global problem without bugging you guys too. Final result: #call.php $dirstr= "./"; include 'scandir.php'; scandir('$dirstr'); #scandir.php

[PHP] Re: content management

2004-01-26 Thread Al
"Justin French" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tuesday, January 27, 2004, at 04:23 PM, Al wrote: > > > This is one of the most frequently asked questions about the LAMP > > platform. > > A fantastic site that offers a comparison of all the different open > > sourc

[PHP] Re: Can we make .exe programs with php?

2004-01-26 Thread Shawn McKenzie
Depending upon why you want an executable, if its to run on a client machine as an app then check out php-gtk. -Shawn "Dvdmandt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > A while ago there was someone who announced a link to some program that > allowed you to make exe's (yes,

Re: [PHP] Re: content management

2004-01-26 Thread Justin French
On Tuesday, January 27, 2004, at 04:23 PM, Al wrote: This is one of the most frequently asked questions about the LAMP platform. A fantastic site that offers a comparison of all the different open source CMS systems out there and lets you test drive them all is http://www.opensourcecms.com/ . I

[PHP] Re: content management

2004-01-26 Thread Al
"Pupeno" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Does anybody know of an extremely simple CMS (to serve pages, documents, not news based like most of them) that can store pages in various languages and comes with interface in various languages (or that it is translatable) ? - --

Re: [PHP] unexpected include parse error

2004-01-26 Thread Shawn McKenzie
I've noticed in both of your posts that you aren't terminating the line before the include with a ; That would probably help. FYI... If you use / then you don't have to escape it like // only the \. Also, instead of ".\\" you can use '.\' -Shawn "Paul Furman" <[EMAIL PROTECTED]> wrote in messa

Fw: [PHP] unexpected include parse error

2004-01-26 Thread Renan G. Galang
I might be incorrect, but i think there's supposed to be a semicolon at the line: $dir="./" it should read as $dir="./"; cheers! =) > - Original Message - > From: "Paul Furman" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, January 27, 2004 1:10 PM > Subject: Re

Re: [PHP] Re: variable container?

2004-01-26 Thread Shawn McKenzie
So why not use: get_defined_vars()? Returns an array of all defined variables :-) -Shawn "Jake McHenry" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > - Original Message - > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, January 26, 2004 6:12 PM > Sub

Re: [PHP] unexpected include parse error

2004-01-26 Thread Paul Furman
Paul Furman wrote: PS I'm on my windows apache server but the forward slash seems to work OK actually, it was the back slash that was causing problems, it only works with a forward slash! but... I've still got the include error: ??? Parse error, unexpected T_INCLUDE #call $dirstr= "./"

Re: [PHP] unexpected include parse error

2004-01-26 Thread Paul Furman
David Obrien wrote: the \ has to be slashed ".\\"; Ah great, thanks! that fixes most of the errors. The following runs where I define the $dirstr in the function but if I try to define it in the page that calls the function, it still gives Parse error, unexpected T_INCLUDE in [#call] #call

Re: [PHP] unexpected include parse error

2004-01-26 Thread David OBrien
the \ has to be slashed ".\\"; -Dave At 11:27 PM 1/26/2004, Paul Furman wrote: I'm new so probably missing something easy or doing something terribly wrong but I have spent a lot of time experimenting... parse error, unexpected T_INCLUDE in [the above file] if I comment out the $dirstr= ".

[PHP] unexpected include parse error

2004-01-26 Thread Paul Furman
I'm new so probably missing something easy or doing something terribly wrong but I have spent a lot of time experimenting... parse error, unexpected T_INCLUDE in [the above file] if I comment out the $dirstr= "./" above that error goes away and the scandir.php include runs (that's a php5 fun

[PHP] Using Chr() on Characters Over 255

2004-01-26 Thread Rob Paxon
XHTML specifications state that certain literal characters must be represented as their entity, as in ", etc. The function htmlentities() only encodes a few of them. I wrote a function that uses an array of all special characters listed in the XHTML specification and the html entity code for

RE: [PHP] How to prevent duplicated values?

2004-01-26 Thread Thomas Svenson
Radwan Aladdin wrote: > But I'm using VB OCX file to show the result... I tried the UNIQUE > and it worked greate! So do you mean I should use other ways? If it works, then great. The problem, as I can see it, is if you have a form where a user applies for a user account (I assume that since the

Re: [PHP] [Fwd: Delivery Report (failure) for php-general@lists.php.net]

2004-01-26 Thread John Nichel
Chris Shiflett wrote: --- John Nichel <[EMAIL PROTECTED]> wrote: Anybody else getting a ton of these? Everytime I send mail to the list. Yes, I think everyone is. I always assume that such problems are well-known and actively being worked on, but that might be an erroneous assumption. I know tha

Re: [PHP] Remove Dynamic String between StringA and StringB

2004-01-26 Thread Matt Matijevich
Hi :), i'm looking for a function to remove multiple dynamic parts of a string, there are only the start and end strings given (remove all between string A and string B) got somebody a working procedure for that? regards a start of a procedure I have $stringA = "string A"; $stringB = "stri

Re: [PHP] Remove Dynamic String between StringA and StringB

2004-01-26 Thread memoimyself
Hello 24 fan, On 27 Jan 2004 at 0:56, Jack Bauer wrote: > i'm looking for a function to remove multiple dynamic parts > of a string, there are only the start and end strings given > > (remove all between string A and string B) > > got somebody a working procedure for that? I'm not sure I under

Re: [PHP] [Fwd: Delivery Report (failure) for php-general@lists.php.net]

2004-01-26 Thread Chris Shiflett
--- John Nichel <[EMAIL PROTECTED]> wrote: > Anybody else getting a ton of these? Everytime I send mail to the list. Yes, I think everyone is. I always assume that such problems are well-known and actively being worked on, but that might be an erroneous assumption. I know that Pair Networks handle

[PHP] PCRE vs. POSIX-extended for regular expressions

2004-01-26 Thread Pablo Gosse
Hi all. Quick quesiton about PCRE vs. POSIX-extended regular expressions. How much of a difference is there between these two types of regular expressions. I know I've read that PCRE is faster, but is it that much of a difference? A while ago I had to write a bunch of regular expression pattern

Re: [PHP] [Fwd: Delivery Report (failure) for php-general@lists.php.net]

2004-01-26 Thread Brian V Bonini
On Mon, 2004-01-26 at 18:35, John Nichel wrote: > Anybody else getting a ton of these? Everytime I send mail to the list. > Yup. For a long time now... > Original Message > Subject: Delivery Report (failure) for [EMAIL PROTECTED] > Date: Mon, 26 Jan 2004 20:06:54 + > From:

[PHP] Remove Dynamic String between StringA and StringB

2004-01-26 Thread Jack Bauer
Hi :), i'm looking for a function to remove multiple dynamic parts of a string, there are only the start and end strings given (remove all between string A and string B) got somebody a working procedure for that? regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Problem: Failed to write session data (lack of resources?)

2004-01-26 Thread Louie Miranda
to BAO: I have a lot of disk-space. to Tom: Yes, permission is ok. Btw, php rans on Mac OS X 10.1, i was wondering if any of you encountered any problems similar to mine? Im not a newbie so dont tell me to do df and check permissions. But i did re-check it in case their is some problems, still. I

[PHP] [Fwd: Delivery Report (failure) for php-general@lists.php.net]

2004-01-26 Thread John Nichel
Anybody else getting a ton of these? Everytime I send mail to the list. Original Message Subject: Delivery Report (failure) for [EMAIL PROTECTED] Date: Mon, 26 Jan 2004 20:06:54 + From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] This report relates to your message: Subject: Re:

Re: [PHP] Can I run it on any OS?

2004-01-26 Thread Marek Kilimajer
Radwan Aladdin wrote: Hi all.. Can I run my PHP project on any server and OS? I used the timetamp, random string, UNIQUE fields and many many other feaures for PHP.. Hm, are you sure you are talking about php? unique is from sql syntax -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] How to prevent - Page has expired

2004-01-26 Thread Marek Kilimajer
Use get instead of post method Steen Rabøl wrote: Hi Sorry, my fault, I did not explain myself correctly Let's say that you have a search functions, then the user press the search button brows the result, and then press the 'Back' button of the browser, then you can get this 'Page has expire

Re: [PHP] Re: variable container?

2004-01-26 Thread memoimyself
On 26 Jan 2004 at 18:21, Jake McHenry wrote: > yes, but they're not converted into those yet. all of the variables > are with register_globals = on and they're all global vars. I'm > converting them all over to session vars, this is why I need to know > the list. Just an additional note to my pr

Re: [PHP] Re: variable container?

2004-01-26 Thread John Nichel
Jake McHenry wrote: There are your 'super-globals', like $_POST, $_GET, $_REQUEST, $_SESSION, etc. If I'm not mistaken, phpinfo() will show you all of those, as well as php/web server configuration. yes, but they're not converted into those yet. all of the variables are with register_globals =

Re: [PHP] Re: variable container?

2004-01-26 Thread Jake McHenry
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 26, 2004 6:12 PM Subject: Re: [PHP] Re: variable container? > Hello Jake, > > On 26 Jan 2004 at 17:55, Jake McHenry wrote: > > > I want a list of all variables used. I tried just putting var_dump

Re: [PHP] Re: variable container?

2004-01-26 Thread Jake McHenry
- Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: "Jake McHenry" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, January 26, 2004 6:11 PM Subject: Re: [PHP] Re: variable container? > Jake McHenry wrote: > > > I want a list of all variables used. I tried just put

Re: [PHP] Re: variable container?

2004-01-26 Thread memoimyself
Hello Jake, On 26 Jan 2004 at 17:55, Jake McHenry wrote: > I want a list of all variables used. I tried just putting var_dump() but got > an error. I'd like to see a list of all variables being used in the script, > then I can start cleaning original code and what I have added. Some strange > res

[PHP] SOLVED: [PHP] random alphanumeric value generator

2004-01-26 Thread craig
I love this list! That's perfect! I was able to simplify the function down even more. Thanks a lot, Craig > -Original Message- > From: Matt Matijevich [mailto:[EMAIL PROTECTED] > Sent: January 26, 2004 4:01 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] random alphanu

Re: [PHP] Re: variable container?

2004-01-26 Thread John Nichel
Jake McHenry wrote: I want a list of all variables used. I tried just putting var_dump() but got an error. I'd like to see a list of all variables being used in the script, then I can start cleaning original code and what I have added. Some strange results lead me to believe I'm declaring the vari

Re: [PHP] random alphanumeric value generator

2004-01-26 Thread Matt Matijevich
because it is MySQL, couldn't you just use mysql_insert_id http://www.php.net/manual/en/function.mysql-insert-id.php instead of this: //now get the random number, and MD5 it to get it alphanumeric $query = 'SELECT MAX(uiIndex), cKey FROM randomKey GROUP BY cKey'; $result = mysql_query($qu

[PHP] random alphanumeric value generator

2004-01-26 Thread craig
Hi, I am trying to generate a non-sequential random alphanumeric value. Just to make things fun, I need to guarantee that each value is unique. I have a working solution, but it seems retarded to me because there is a small chance that 2 people might hit the same page at the same time, do separ

Re: [PHP] Re: variable container?

2004-01-26 Thread Jake McHenry
- Original Message - From: "Jas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 26, 2004 5:43 PM Subject: [PHP] Re: variable container? > http://us4.php.net/manual/en/function.var-dump.php > HTH > Jas > > Jake McHenry wrote: > > Is there some global variable container

[PHP] Re: variable container?

2004-01-26 Thread Jas
http://us4.php.net/manual/en/function.var-dump.php HTH Jas Jake McHenry wrote: Is there some global variable container that I can print_r out to show me all the variables that are being used on a page? In my efforts of converting from globals over to sessions, I've been getting a little mis organiz

[PHP] variable container?

2004-01-26 Thread Jake McHenry
Is there some global variable container that I can print_r out to show me all the variables that are being used on a page? In my efforts of converting from globals over to sessions, I've been getting a little mis organized with my code, and would like to know of all variables that are in use on

Re: [PHP] odbc functions - not binary safe?

2004-01-26 Thread memoimyself
Check out the message below, which a user added to the online version of the PHP manual. Could this have anything to do with your problem? ** FROM http://br2.php.net/manual/en/function.mysql-escape-string.php ** sp4m_only at hotmail dot com 02-Apr-2003 10:07 I found out another very curiou

[PHP] Re: Problem decrypting data stored in MySQL text field using mcrypt?

2004-01-26 Thread Jas
Jas wrote: Murray @ Planetthoughtful.Org wrote: Hi All, I'm trying to implement encryption on certain data fields in my MySQL database and I'm experiencing ongoing problems. I seem to be able to encrypt the data without issues, but can't figure out how to decrypt the data. My field

Re: [PHP] Xml documents to html

2004-01-26 Thread memoimyself
Hi John, On 26 Jan 2004 at 21:42, John wrote: > How can I show xml files which have been created in MS Word, in a > browser as ie Html. > > Is this posible and what would it take. The short answer to your question is "Yes, it's possible". As for what it would take, the answer is a little long

Re: [PHP] How to prevent - Page has expired

2004-01-26 Thread Matt Matijevich
I know that this is not a PHP problem, but Is there a way to prevent the 'Page has expired...' when the user press 'Back' post to a page that does nothing but process the form post. When it is done, it redirects to another page. -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] How to prevent - Page has expired

2004-01-26 Thread Steen Rabøl
Hi Sorry, my fault, I did not explain myself correctly Let's say that you have a search functions, then the user press the search button brows the result, and then press the 'Back' button of the browser, then you can get this 'Page has expired' warning Is there some trick to prevent this, or

[PHP] Question about PEAR::raiseError use in XML_RPC client

2004-01-26 Thread Luis Cruz
Greetings; I recently grabbed the latest source for XML_RPC from CVS for use with a project I am working on. I grabbed the latest source rather than the stable build mainly because it includes a handy base class that defines a raiseError method. However, I am puzzled by own thing. XML_RPC_Bas

RE: [PHP] How to prevent - Page has expired

2004-01-26 Thread Jay Blanchard
[snip] I know that this is not a PHP problem, but Is there a way to prevent the 'Page has expired...' when the user press 'Back' [/snip] Session variables http://us2.php.net/session -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to prevent - Page has expired

2004-01-26 Thread Steen Rabøl
Hi I know that this is not a PHP problem, but Is there a way to prevent the 'Page has expired...' when the user press 'Back' Thanks in advance. Steen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Can I run it on any OS?

2004-01-26 Thread Jay Blanchard
[snip] Can I run my PHP project on any server and OS? I used the timetamp, random string, UNIQUE fields and many many other feaures for PHP.. So must I run it on Linux? or I can run it on any OS? Can you please tell me what are the OS that I can run my project on? [/snip] PHP can be installed a

Re: [PHP] Can I run it on any OS?

2004-01-26 Thread John Nichel
Radwan Aladdin wrote: Hi all.. Can I run my PHP project on any server and OS? I used the timetamp, random string, UNIQUE fields and many many other feaures for PHP.. So must I run it on Linux? or I can run it on any OS? Can you please tell me what are the OS that I can run my project on? Wait

[PHP] Can I run it on any OS?

2004-01-26 Thread Radwan Aladdin
Hi all.. Can I run my PHP project on any server and OS? I used the timetamp, random string, UNIQUE fields and many many other feaures for PHP.. So must I run it on Linux? or I can run it on any OS? Can you please tell me what are the OS that I can run my project on? Waiting your replies.. Th

RE: [PHP] Xml documents to html

2004-01-26 Thread Jay Blanchard
[snip] How can I show xml files which have been created in MS Word, in a browser as ie Html. Is this posible and what would it take. [/snip] Yes, it is possible. See the XSLT reference at http://www.w3c.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] odbc functions - not binary safe?

2004-01-26 Thread John Nichel
[EMAIL PROTECTED] wrote: Hello CC, On 26 Jan 2004 at 12:47, C C wrote: Hi, I'm trying to insert binary data into a MS SQL Server database. Text files are added fine, but binary files with null bytes are not. The field I'm adding the binary data to is image type. I get an error about unclosed qu

Re: [PHP] odbc functions - not binary safe?

2004-01-26 Thread memoimyself
Hello CC, On 26 Jan 2004 at 12:47, C C wrote: > Hi, > > I'm trying to insert binary data into a MS SQL Server database. Text > files are added fine, but binary files with null bytes are not. The > field I'm adding the binary data to is image type. I get an error about > unclosed quotation marks

[PHP] Xml documents to html

2004-01-26 Thread John
Hi, How can I show xml files which have been created in MS Word, in a browser as ie Html. Is this posible and what would it take. Thanks John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] content management

2004-01-26 Thread joel boonstra
On Mon, Jan 26, 2004 at 08:07:21PM -0300, Pupeno wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Does anybody know of an extremely simple CMS (to serve pages, documents, not > news based like most of them) that can store pages in various languages and > comes with interface in vario

[PHP] odbc functions - not binary safe?

2004-01-26 Thread C C
Hi, I'm trying to insert binary data into a MS SQL Server database. Text files are added fine, but binary files with null bytes are not. The field I'm adding the binary data to is image type. I get an error about unclosed quotation marks at the null byte, but I've replaced ' with ''. I tried esca

[PHP] content management

2004-01-26 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does anybody know of an extremely simple CMS (to serve pages, documents, not news based like most of them) that can store pages in various languages and comes with interface in various languages (or that it is translatable) ? - -- Pupeno: [EMAIL PRO

RE: [PHP] How to prevent duplicated values?

2004-01-26 Thread Thomas Svenson
BAO RuiXian wrote: > Radwan Aladdin wrote: >> I want to prevent mySQL from storing the same value in a >> specified field (Username).. so how can I do it? >> > Make it field UNIQUE. That's the easy method, but usually not very smart. It only causes MySQL to generate an error which you then have to

Re: [PHP] Detect language date(F)

2004-01-26 Thread John Taylor-Johnston
But even if I change my browser language to de-ch, I stll get "February" when I run it. http://www.glquebec.org/glq2-test/english/testlanguage.php ? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Detect language date(F)

2004-01-26 Thread John Taylor-Johnston
I see what you are doing, But don't see where to create fr or fr-ca, for my example? John Martin Luethi wrote: > the variable $_SERVER["HTTP_ACCEPT_LANGUAGE"] contains the Accept-Language- > Header from the browser > -> http://ch2.php.net/reserved.variables > > with setlocale() you can set locale

[PHP] Re: Problem decrypting data stored in MySQL text field using mcrypt?

2004-01-26 Thread Jas
Murray @ Planetthoughtful.Org wrote: Hi All, I'm trying to implement encryption on certain data fields in my MySQL database and I'm experiencing ongoing problems. I seem to be able to encrypt the data without issues, but can't figure out how to decrypt the data. My field in my test tabl

Re: [PHP] Script halts inside imap_fetchstructure()

2004-01-26 Thread Mike Gollub
Good question. Both machines show: IMAP c-Client Version 2001 One possibly interesting difference in the configurations, though. Hosting company: --with-imap=/usr/local/4admin/src/imap-2002.RC10 My machine: --with-imap=shared (OK, obviously I'm grasping at straws here) Both machines' IMAP c

[PHP] Re: Regex Help

2004-01-26 Thread Ben Ramsey
Check the PHP manual for preg_match() (http://us3.php.net/manual/en/function.preg-match.php). I did play around with it a little bit, and I think I've got a starting point for you to work with. Try out this code and then play around with it to get the results you need. $matches[2][0] will hol

[PHP] Problem decrypting data stored in MySQL text field using mcrypt?

2004-01-26 Thread Murray @ PlanetThoughtful.org
Hi All, I'm trying to implement encryption on certain data fields in my MySQL database and I'm experiencing ongoing problems. I seem to be able to encrypt the data without issues, but can't figure out how to decrypt the data. My field in my test table, in which I'm storing the encrypt

RE: [PHP] can't figure out this mysql error

2004-01-26 Thread Chris W. Parker
Jason Wong on Friday, January 23, 2004 10:03 PM said: > Time to put the php debugger in action -- echo all your variables to > see that contain what you expect them to contain. 'echo $this->Result;' prints "Resource id #2" 'print_r($this->Result);' prints "Resource

[PHP] Difference between --with-... and --enable-... in config.m4 [php-4.3.1]

2004-01-26 Thread Bruce Bailey
Hi I created a new extension in php-4.3.1 using the ext_skel script. When I edit the config.m4 file, I see a comment that says 'If your extension references something external, use with' seems rather ambiguous. It’s not clear if ‘something external’ is the UNIX file system, a socket connection

[PHP] create_function() and anonymous methods

2004-01-26 Thread Marco
Hi again... I'm still curious about the question below, already posted several days ago... Marco Hi all, Is it possible to use create_function() to define anonymous methods (like in Java) ? I mean something like: class Listener { function listen () { return 'I am an abstract method'; }

Re: [PHP] An array curiosity....

2004-01-26 Thread Robert Cummings
On Mon, 2004-01-26 at 09:57, joel boonstra wrote: > On Mon, Jan 26, 2004 at 08:50:51AM -0600, Jay Blanchard wrote: > > Out of curiosity, and because I have never noted this in other > > languages, why doesn't an 'open' comma at the end of an array throw any > > kind of error? Is it because the comm

Re: [PHP] Seems Simple enough

2004-01-26 Thread Christopher J. Crane
Ok the problem seems to me, the format. I think that once I have the format changed to include a comma seperation for thousands. I think at that point, it is no longer a true number, so PHP deals with it differently. "Christopher J. Crane" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

[PHP] Regex Help

2004-01-26 Thread karthikeyan
Sorry last time I forgot to put subject on my mail. So here I am putting appropriate subject and sending it. Hi All, Just wondering if somebody can help me with this small regex search. The information I wanted to capture is the one in the Square Bracket. i.e Date : 1/21/04, Race Type: 5-16, Do

Re: [PHP] Seems Simple enough

2004-01-26 Thread Stuart
Christopher J. Crane wrote: To the original problem, it all hinges on me changing the format of $Balance. If I remove the line " $Balance = number_format($SummaryField["Balance"],2,'.',','); " and replace it with " $Balance = $SummaryField["Balance"]; " it works fine. Well, duh! If you add periods

Re: [PHP] Seems Simple enough

2004-01-26 Thread Christopher J. Crane
Good Question on the looking though all rows. I never wrote code looking at just that one code and getting the variable from the column. That is why I limited the query to one "LIMIT 1". I guess it is just me pasting code from my other applications and not checking it out. To the original problem,

[PHP] Naming Files

2004-01-26 Thread Paul Furman
It doesn't matter what I name my files apparently, I don't need any extension or anything once I get the first script going and that can be index.php, index.htm or anything if I pont to it specifically. To me it makes sense to call them xx.php 'cause I'm on a windows machine & it's just confusi

Re: [PHP] Function for crypt and decript.

2004-01-26 Thread Jon Bennett
http://uk.php.net/md5 Thanks, Jon jon bennett | [EMAIL PROTECTED] new media creative _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ J b e n . n e t 91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD t: +44 (0) 1225 341039 w: http://www.jben.net/ On 23 Jan 2004, at 09:55,

Re: [PHP] Seems Simple enough

2004-01-26 Thread Stuart
Christopher J. Crane wrote: This does not ... $SummaryResults = mysql_query("SELECT * FROM Accounting WHERE UserID='$UserID' LIMIT 1") or die("Invalid query"); while($SummaryField = mysql_fetch_array($SummaryResults)) { $Balance = number_format($SummaryField["Balance"],2,'.',','); } Dis

Re: [PHP] Seems Simple enough

2004-01-26 Thread Christopher J. Crane
Ok here is the wierd thing. I pasted more code, it seems to not work because of me changing the number format. This works ... if($Balance >= 10001) { $Balance = number_format($Balance,2,'.',','); echo "\$$Balance\n"; } if($Balance <= ) { $Balance = number_format($Balance,2,'.',',');

RE: [PHP] Seems Simple enough

2004-01-26 Thread Larry Brown
you need one of the to if's to be either $Balance >=1 elseif($Balance < 1000) or $Balance > 1 elseif($Balance <= 1). Yours has the first saying everything equal to or greater than 10001 which 1 is not else everything less than or equal to which 1 is not. =) Larry -Or

Re: [PHP] send a POST to a URL from within PHP code

2004-01-26 Thread Chris Shiflett
--- Vincent DUPONT <[EMAIL PROTECTED]> wrote: > I would like to simulate sending a form in POST to a specified URL > through PHP. You can do this with a number of PEAR classes (search on http://pear.php.net/), the cURL extension (if you have it), or manually with PHP (if you have the allow_url_fop

Re: [PHP] Conditional code execution

2004-01-26 Thread Craig Jackson
On Mon, 2004-01-26 at 10:11, Chris Hayes wrote: > At 17:03 26-1-04, you wrote: > >I'm sure how to frame the question. Here's the problem. > >I would like to store PHP code in a database. Then I would like to > >while-loop through the array executing the code something like this: > > > > >while($RS=

Re: [PHP] Challenge: Sessions & Frames

2004-01-26 Thread Chris Shiflett
--- Jonathan Hilgeman <[EMAIL PROTECTED]> wrote: > I -do- use Javascript, client-side scripting to refresh the top frame > when some data has changed and I want the top frame to re-read it. But > SOMETIMES refreshing it will just cause the shared session to split > (which is the main problem I'm ha

Re: [PHP] cron problem

2004-01-26 Thread dread
On 26-Jan-2004 Mario wrote: > Hi all > > there is a bit of a problem with running cron scripts on our server > and i > would appreciate any help from the unix gurus. > The story: I have created a script in the cron dir that runs a php > file that > sends auto emails. (The script is working fine w

Re: [PHP] Conditional code execution

2004-01-26 Thread Craig Jackson
On Mon, 2004-01-26 at 10:09, John W. Holmes wrote: > From: "Craig Jackson" <[EMAIL PROTECTED]> > > > This would require something like the equivalent of eval in javascript. > > Does PHP have that capability? > > Yes. Oddly enough it's called eval(). Imagine that... > > ---John Holmes... -- PHP

Re: [PHP] Seems Simple enough

2004-01-26 Thread Stuart
Christopher J. Crane wrote: if($Balance >= 10001) { echo "\$$Balance\n"; } elseif($Balance <= ) { echo "\$$Balance\n"; } else { echo "\$$Balance\n"; } Works fine here. The elseif condition will be true if $Balance is undefined. Are you sure that variable exists and is actually set to 1?

[PHP] Re: jgraph and php

2004-01-26 Thread Christopher J. Crane
I do a lot of this. Go to http://designpile.net/stocks I use a file called charts.php as the image file..so like http://designpile.net/stocks/images/lchart.php?sym=IKN This way you can pass varibles to the php code. As you might have guessed this is not an image but instead a PHP code creating the

Re: [PHP] create a file

2004-01-26 Thread Matt Matijevich
How can I create a file (txt) in client-side? I dont think there is a way unless you are using some kind of java applet. You can create the text on the server and give the user a link to save the text file on their computer. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] Seems Simple enough

2004-01-26 Thread Christopher J. Crane
I have these lines of code, that I thought was simple enough, but it doesn't work how I thought. The Variable $Balance is set to 1 in the database, and I thought it would be outputed as purple or the be found true of the "else" part of the code. It comes out as red or the "elseif" part of the c

Re: [PHP] create a file

2004-01-26 Thread Raditha Dissanayake
Hi, Certainly not with PHP! you will need to use a signed java applet or an activex all the best Viviane Hu wrote: hi, How can I create a file (txt) in client-side? Thanks a lot for you help. viviane -- Raditha Dissanayake. --

Re: [PHP] getting content with fput, SESSIONS and frames

2004-01-26 Thread Matt Matijevich
HTTP/1.1 302 Found Date: Mon, 26 Jan 2004 11:38:51 GMT Server: Apache X-Powered-By: PHP/4.3.1 Location: http://domain.tld/c17c340a3e6a2cb268451f3eda5930ce/frameset.php?q=string Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pra

[PHP] create a file

2004-01-26 Thread Viviane Hu
hi, How can I create a file (txt) in client-side? Thanks a lot for you help. viviane

  1   2   >