[PHP] Help with file upload

2003-10-16 Thread Bunmi Akinmboni
This is the new code: Bunmi Bunmi Akinmboni wrote: Thanks John, I had done it before and still tried it again now. This is what I get: Warning: copy(.): failed to open stream: Is a directory in /home/ayserve/public_html/fu/fuprocess.php on line 6 ayservenet.jpg DONE Array ( [ufile1] => Array (

[PHP] HELP!! - Xitami php install

2003-10-28 Thread Paul Vinten
Hi, I'm running Windows XP, and Xitami version 2.4d10, I can get get PHP 4.0.3 installed and working fine, (on my www book's companion CD) but it doesn't have a few of the functions I want. I've just tried installing 4.3.3 and 4.3.4 and can't get either to work... when trying to access a php file,

[PHP] help with EVAL direct

2003-11-04 Thread j . sobotka
Hello, you are last help help my please OS RedHat 9 and RedHat 7.2 Apache 1.3.27 and Apache 2 I have problem with direct eval, in version PHP4.2.2 is all OK in version PHP 4.3.3 -> direct eval bad here cut code $s = '$ret = ibase_execute($this->query, $arg_list[0], $arg_list[1], $arg_list[2],

Re: [PHP] Help with Javascript

2003-11-12 Thread Payne
Sent: Wednesday, November 12, 2003 9:48 AM To: [EMAIL PROTECTED] Subject: [PHP] Help with Javascript First thanks with the help I got yesterday with php and javascript problem, I have a problem with javascript and I need to know if anyone know of a javascript mailing like this, so some strange

Re: [PHP] Help with Javascript

2003-11-12 Thread Jason Wong
On Thursday 13 November 2003 01:47, Payne wrote: > I know this is a php question so if you can give me a javascript mailing > that would be a BIG help. Is it that hard to type "javascript mailing list" into your favourite search engine? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz

[PHP] Help with exec syntax

2003-11-16 Thread Mark
Php 4.3.4 Win 2000 I am attempting to have the exec function open a file for editing. The file opens, however php hangs until I close the file that was orginally opened. I read in the php manual that states: "If you start a program using this function and want to leave it running in the backgro

Re: [PHP] Help with fread()

2003-11-26 Thread Rasmus Lerdorf
Why not just fread($pagehandle,32768) ? On Wed, 26 Nov 2003, Nick Wilson wrote: > Hi all, > > I'm using the code below to open webpages and read them into a variable. > I got the example from the manual but am confused as to how to limit how > much of the page to read. > > Ideally, I just want to

Re: [PHP] Help with fread()

2003-11-27 Thread Nick Wilson
* and then Rasmus Lerdorf declared > Why not just fread($pagehandle,32768) ? Sure. I just got confused as to why '8912' was on the example and thought it significant. I see it's not now, thanks ;-) -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

[PHP] help with Log() function

2003-11-28 Thread Jon King
Hello, I'm having trouble getting a log formula to work. This forumla is supposed to return the number of payment required zero out a loan balance. /* n = - (LN(1-(B/m)*(r/q)))/LN(1+(r/q)) q = amount of annual payment periods r = interest rate B = principal m = payment amount n = amount payment

Re: [PHP] Help!session problem!

2003-12-06 Thread Chris Shiflett
--- ÎÚÓÐ ÎÞ <[EMAIL PROTECTED]> wrote: > Reproduce code: > --- > login.php: > $user_array=sybase_fetch_row($result); > session_start(); > session_register("user_array"); > ... > index.php: > session_start(); > $user_name=$user_array[1

[PHP] Help with where clause

2003-12-16 Thread Richard Kurth
I need to know how I can do a where clause in a select statement for mysql where one of the fields can have two solutions. In the example below field3 needs to equal all with a and also all with b. Can this be done and if so how. I am stumped on this one. select * from table where field1= '$this'

[PHP] HELP! -- Problem with imagejpeg()

2003-12-27 Thread René Fournier
Hello, I have a function that is meant to check if an image is greater than a certain width and height, and if it is, downsample it. The checking part works fine. Downsampling is not happening though. Here's what I've got (btw, $file = "/somedirectory/photo.jpg"): $src_img=imagecreatefromJPEG($

[PHP] Help parsing text file?

2004-01-08 Thread Carlton L. Whitmore
I'm very new to PHP. I want to display /var/log/lastlog with php on a webpage, but I need some help. How do I do that? Looking at the docs it looks like file() would work, but I couldn't get it to display the file. Carlton.

Re: [PHP] help with form

2004-01-17 Thread daniel
> I'm creating a form that puts data into two different tables in the > database. I was wondering how to get the "ID" from the first table > and, in the "background", associate it with the second table? > > any help is GREATLY appreciated! > Firstly you never said which db ? I'll assume mysql, ch

Re: [PHP] help with form

2004-01-17 Thread Justin French
On Sunday, January 18, 2004, at 01:39 PM, eawilkes wrote: I'm creating a form that puts data into two different tables in the database. I was wondering how to get the "ID" from the first table and, in the "background", associate it with the second table? any help is GREATLY appreciated! Check

Re: [PHP] Help with preg_replace

2004-01-19 Thread joel boonstra
On Mon, Jan 19, 2004 at 06:50:37PM +0200, John Clegg wrote: > Hi > > I am having some problems with preg_replace and I wondering if someone > could suggest a fix or explain why it is not working. > > > > Here is the Code: > * > $code = "blah http://www.foo.com/Unsubscribe.

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John Clegg wrote: Hi I am having some problems with preg_replace and I wondering if someone could suggest a fix or explain why it is not working. Here is the Code: * http://www.foo.com/Unsubscribe.php?EmailAddress=[MAIL] blah"; $url = "'http://www.foo.com/maxbid/Unsubscrib

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Clegg
Hi Joel, Thanks for the reply. I have tried using "/" to delimit the string and I get the following error String $url = "/http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL]/";; Gives the error: *Warning*: Unknown modifier '/' in* /test.php* on line *8* I found out that I could use

RE: [PHP] Help with preg_replace

2004-01-19 Thread craig
> Hi Joel, > > Thanks for the reply. > > I have tried using "/" to delimit the string and I get the > following error > > String > > $url = > "/http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL]/";; you have to escape all of the slashes execpt the first and last that delineate the re

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Clegg
Hi I have just realised that I have to delimit the following characters so I can use preg_replace: / ? [ ] Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. eg. \? Any ideas John John Clegg wrote: Hi Joel, Tha

Re: [PHP] Help with preg_replace

2004-01-19 Thread joel boonstra
On Mon, Jan 19, 2004 at 07:15:53PM +0200, John Clegg wrote: > Hi Joel, > > Thanks for the reply. > > I have tried using "/" to delimit the string and I get the following error > > String > > $url = "/http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL]/";; > > Gives the error: > *Wa

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John Clegg wrote: Hi I have just realised that I have to delimit the following characters so I can use preg_replace: / ? [ ] Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. eg. \? Any ideas John Maybe addslash

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John Nichel wrote: John Clegg wrote: Hi I have just realised that I have to delimit the following characters so I can use preg_replace: / ? [ ] Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. eg. \? Any ideas

Re: [PHP] Help with preg_replace

2004-01-19 Thread Jason Wong
On Tuesday 20 January 2004 01:31, John Clegg wrote: > Is there any php command to delimit all of these characters as I am > getting the string I am trying to replace from the database. preg_quote() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators

Re: [PHP] Help with preg_replace

2004-01-19 Thread John W. Holmes
joel boonstra wrote: The problem is that there are still special chars that need escaping. Specifically, the question mark (?) and the square braces ([]). Here is some modified code (apologies for poor word-wrapping): http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL] blah "; $url = "'

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John W. Holmes wrote: In $url, the periods still need to be escaped, too. This is where preg_quote() comes in handy. $url = "http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL]";; $url = preg_quote($url); $code = preg_replace("#$url#",$replace,$code,1); I hope the OP took notice of the

Re: [PHP] help with mysql

2004-01-26 Thread Renan G. Galang
B (B- Original Message - (BFrom: "Tom Flood" <[EMAIL PROTECTED]> (BTo: <[EMAIL PROTECTED]> (BSent: Tuesday, January 27, 2004 2:27 PM (BSubject: [PHP] help with mysql (B (B (B> Hello, (B> (B> I am just beginning my learning of php and its uses with mysql.

Re: [PHP] HELP <> PLEASE PHP

2004-01-29 Thread John Nichel
Hello Patrick. Where to start, where to start Patrick wrote: Hi, I have an situation on my hands I have a form that I am stuck using PHP for thanks to my friends choice of hosting company, I have no idea on how to setup a form in PHP other than HTML or in Flash, I need some one any one to gi

Re: [PHP] HELP <> PLEASE PHP

2004-01-29 Thread Jas
John Nichel wrote: Hello Patrick. Where to start, where to start Patrick wrote: Hi, I have an situation on my hands I have a form that I am stuck using PHP for thanks to my friends choice of hosting company, I have no idea on how to setup a form in PHP other than HTML or in Flash, I need s

Re: [PHP] HELP <> PLEASE PHP

2004-01-29 Thread memoimyself
Hello Patrick, I have good news and even better news for you. The good news is that you can make all your form-related woes disappear in less than a day. The even better news is that everything you need to know in order to solve your problem can be found in one convenient location: http://www.

Re: [PHP] HELP <> PLEASE PHP

2004-01-29 Thread Jas
Man, you really are a card Erik. Fellow manual reader, Jas [EMAIL PROTECTED] wrote: Hello Patrick, I have good news and even better news for you. The good news is that you can make all your form-related woes disappear in less than a day. The even better news is that everything you need to know

Re: [PHP] Help with files

2004-02-01 Thread Jason Wong
On Monday 02 February 2004 10:33, Mr. Austin wrote: > $buff = fopen("sample.txt", "r+"); ^ ---+ RTFM to see what other options you can use. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrato

Re: [PHP] Help with files

2004-02-01 Thread Mr. Austin
MAIL PROTECTED]> Sent: Sunday, February 01, 2004 8:43 PM Subject: Re: [PHP] Help with files > On Monday 02 February 2004 10:33, Mr. Austin wrote: > > > $buff = fopen("sample.txt", "r+"); >^ > ---+ > >

Re: [PHP] Help with files

2004-02-01 Thread John Nichel
Mr. Austin wrote: Hello all, I am trying to open a file (successful), then rewrite over the file when it is saved via a form on a website. I have used the following code, yet it simple rewrites from the file pointer, but does not clear the file before writing. Thanks for any help. $buff = fo

Re: [PHP] Help with files

2004-02-01 Thread John Nichel
Mr. Austin wrote: I'm not entirely sure why it is that you assume I did not read the manual or the online documentation (which is very thorough). I'm sure Jason has made that assumption because the answer to your question is right there in the manual...under one of the functions you're using. I

RE: [PHP] Help with files

2004-02-01 Thread Martin Towell
Instead of using "r+", use "w" This will clear the file for you :) > -Original Message- > From: Mr. Austin [mailto:[EMAIL PROTECTED] > Sent: Monday, 2 February 2004 1:51 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Help with files > > > I&#

[PHP] Help with mail() function

2004-02-02 Thread Pooya Eslami
Hi, I'm new to php and this newsletter. I have a form on my webpage and a php file to email it to me but the contents of the text area are not emailed to me. Can anyone help me with this? here is the code for my html and php files: Test Comments: -- PHP General Mailing List (http:/

Re: [PHP] Help with '&' character

2004-02-17 Thread "Miguel J. Jiménez"
Have you tried using '&' ? Chris Bruce wrote: I am having trouble with a string becoming truncated at an '&' character. I am passing the variable via a link (http://...&campaign=MBI%20List%20-%20Steel%20&%20Concrete) and then when I try to grab the incoming value of campaign into a SELECT quer

Re: [PHP] Help with '&' character

2004-02-17 Thread John W. Holmes
From: "Chris Bruce" <[EMAIL PROTECTED]> > I am having trouble with a string becoming truncated at an '&' > character. I am passing the variable via a link > > (http://...&campaign=MBI%20List%20-%20Steel%20&%20Concrete) and then > when I try to grab the incoming value of campaign into a SELECT quer

Re: [PHP] Help with '&' character

2004-02-17 Thread Chris Bruce
The problem is that the '&' character is already in a database. I am trying to do a query where I need to have it as '&', but like I said, when it comes into the script from the url it gets truncated. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 W

Re: [PHP] Help with '&' character

2004-02-17 Thread Chris Bruce
You are right John. I have it working now. Thanks. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 This e-mail and its contents are pri

Re: [PHP] Help with '&' character

2004-02-17 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 the problem is the '&' on the url http://...&campaign=MBI%20List%20-%20Steel%20&%20Concrete ^ | there> this url is saying:

Re: [PHP] Help with '&' character

2004-02-17 Thread Chris Shiflett
--- Chris Bruce <[EMAIL PROTECTED]> wrote: > I am having trouble with a string becoming truncated at an '&' > character. I am passing the variable via a link > > (http://...&campaign=MBI%20List%20-%20Steel%20&%20Concrete) and then > when I try to grab the incoming value of campaign into a SELECT

Re[2]: [PHP] help please

2004-02-22 Thread adwinwijaya
Hello ajay, Sunday, February 22, 2004, 9:05:52 PM, you wrote: a> hi! a> the code is a> include("classes/DB.php"); a> include("classes/PageMaker.php"); hmm... may be you need to add '/' in front of classess try this one: include(dirname(__FILE__)."/classes/DB.php"); hope it wil

RE: [PHP] HELP! printing Arrays

2004-03-03 Thread Chris W. Parker
Labunski on Wednesday, March 03, 2004 3:31 PM said: > Hello, > > // This will print first and sixth line from the text file: > $file = file("people.txt"); > print "$file[0]"; > print "$file[6]"; actually that will print the first and seventh line of the file...

Re: [PHP] HELP! printing Arrays

2004-03-03 Thread Daniel Clark
foreach($file as $value ){ print "$value"; } > // This will print first and sixth line from the text file: > $file = file("people.txt"); > print "$file[0]"; > print "$file[6]"; > > // But how to print all the lines from [0] to [6] ? > // Hope you understood my problem. -- PHP General Maili

Re: [PHP] HELP! printing Arrays

2004-03-03 Thread Labunski
Thanks! It was very useful! Lab. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HELP! printing Arrays

2004-03-03 Thread Labunski
Your script is working perfectly, thanks for teaching me! Lab. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HELP! printing Arrays

2004-03-03 Thread Brian V Bonini
On Wed, 2004-03-03 at 18:30, Labunski wrote: > Hello, > > // This will print first and sixth line from the text file: > $file = file("people.txt"); > print "$file[0]"; > print "$file[6]"; > > // But how to print all the lines from [0] to [6] ? > // Hope you understood my problem. > for($i=0;

Re: [PHP] HELP! printing Arrays

2004-03-03 Thread Ben Ramsey
I know that others have already helped you learn out to print out an array, but you can also use print_r($array); to print out the array. It's not useful for the end-user of your application, but it can help you out as you're programming. -- Regards, Ben Ramsey http://benramsey.com http://ww

Re: [PHP] HELP! printing Arrays

2004-03-03 Thread Ryan A
On 3/4/2004 1:32:42 AM, Ben Ramsey ([EMAIL PROTECTED]) wrote: > I know that others have already helped you learn out to print out an > array, but you can also use print_r($array); to print out the array. > It's not useful for the end-user of your application, but it can help > you out as you're >

[PHP] Help with PPP Strategies

2004-03-07 Thread Pooya Eslami
Hi, I want to write a php script for handling the username and password of users on my website. What strategies are used for password protected pages? I don't quite know where to start! One strategy that I had in mind was to have a folder for each user and access it via the user name and password b

Re: [PHP] Help with arrays

2004-03-11 Thread Raditha Dissanayake
Elliot J. Balanza wrote: Then I need to store the values i receive in an array in the form of: $variable['name'] = value; $value. -- Raditha Dissanayake. --- http://www.radinks.com/upload/ Drag and Drop Upload thousands of files and

Re: [PHP] Help with arrays

2004-03-11 Thread Elliot J. Balanza
Yes ok but how do I store it? with array() how? vamp "Raditha Dissanayake" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Elliot J. Balanza wrote: > > > > >Then I need to store the values i receive in an array in the form of: > > > >$variable['name'] = value; > > > > > > $va

Re: [PHP] Help with arrays

2004-03-11 Thread Raditha Dissanayake
Elliot J. Balanza wrote: Yes ok but how do I store it? with array() how? Whole business of reading from a db and storing into an array is probably redundant. You should try to directly process the contents of the db. This saves you memory and CPU. $variable['name'] = $value; is good.

Re: [PHP] Help with arrays

2004-03-11 Thread Jason Davidson
read about phps mysql_fetch_assoc in the manual.. this will explain what your looking for. http://ca.php.net/manual/en/function.mysql-fetch-array.php Jason "Elliot J. Balanza" <[EMAIL PROTECTED]> wrote: > > Yes ok but how do I store it? > > with array() how? > > vamp > > "Raditha Dissanay

Re: [PHP] Help with arrays

2004-03-11 Thread Jason Davidson
i supplied the wrong link, sorry.. this is the right one.. http://ca.php.net/manual/en/function.mysql-fetch-assoc.php Jason "Jason Davidson" <[EMAIL PROTECTED]> wrote: > > read about phps mysql_fetch_assoc in the manual.. this will explain what > your looking for. > http://ca.php.net/manual/en

Re: [PHP] help for getimagesize

2004-03-13 Thread Richard Davey
Hello Norbert, Saturday, March 13, 2004, 11:54:54 AM, you wrote: NP> on a page the function getimagesize is supposed NP> to be applied on all possible formats. NP> Unfortunately I do not find anybody, who can NP> procure a sample for me for these three formats: NP> 11 = JPX, 12 = JB2 and 13 = SW

Re: [PHP] help for getimagesize

2004-03-13 Thread Norbert Pfeiffer
I'm sorry - bad reply ... :-( Hi Richard, unfortunately you err. I use already XnView. This program does not support the looked for formats. m. b. G. Norbert _ normal: 02686-987103 Notruf: 0177-2363368 - e.o.m. -- PHP General Mailing List (http://www.

Re: [PHP] help for getimagesize

2004-03-13 Thread Firman Wandayandi
?. Regards, Firman - Original Message - From: "Norbert Pfeiffer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 13, 2004 10:13 PM Subject: Re: [PHP] help for getimagesize > I'm sorry - bad reply ... :-( > > Hi Richard, > > unf

Re: [PHP] Help: Database Search

2004-11-13 Thread Stuart Felenstein
I've changed my logic around but still running into a sql query error. I've tried a number of things with no success. Here is the error that returns on POST: SELECT PostStart, JobTitle, Industry, LocationState, VendorID FROM VendorJobs WHERE (VendorJobs.Industry = ''1','2','3''Query failed: You h

RE: [PHP] Help: Database Search

2004-11-15 Thread Gryffyn, Trevor
you're checking in your WHERE clause, the less work your DB server has to do. HTH -TG > -Original Message- > From: Stuart Felenstein [mailto:[EMAIL PROTECTED] > Sent: Saturday, November 13, 2004 1:16 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Help: Database

[PHP] Help with code#2

2004-12-20 Thread karl james
Hey guys, Just to let you know I turned off my read receipt, sorry about that. I had forgot I had it on. Karl James (TheSaint) [EMAIL PROTECTED] http://theufl.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help wth coding

2004-12-21 Thread Richard Lynch
> http://www.theufl.com/php/wrox_php/movie_details10.php Copy movie_details10.php into movie_details10.phps (with an 's' on the end) and then we can surf to your source and tell you something useful. Or, copy and paste your soure up to the line with the error to the list. We sure can't help you

[PHP] help with coding #3

2004-12-21 Thread karl james
Team, Ok I will try the links again, sorry about the hassel, gee do I sound like a rookie coming up >From the minor leagues or want. Anyway, Here are the links. Phps file http://www.theufl.com/movie_details.phps website http://www.theufl.com/php/wrox_php/movie_details.php on my

Re: [PHP] Help with code

2004-12-25 Thread Robby Russell
karl james said: > > Team, > > Can you tell me why this code is not working? > I get a query is empty at the moment. > > http://www.theufl.com/php/wrox_php/movie_details.phps We need some information on the errors that you are getting. -Robby -- /*** * Robby

Re: [PHP] Help with code

2004-12-25 Thread John Holmes
karl james wrote: Can you tell me why this code is not working? I get a query is empty at the moment. http://www.theufl.com/php/wrox_php/movie_details.phps Didn't we already see this once? From File: > $movie_query in mysql_query(); What kind of PHP code is that? You could really help yourself by t

RE: [PHP] Help with code

2004-12-25 Thread karl james
/movie_details.php Karl James (TheSaint) [EMAIL PROTECTED] http://theufl.com/ -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED] Sent: Sunday, December 26, 2004 1:09 AM To: karl james Cc: php-general@lists.php.net Subject: Re: [PHP] Help with code karl james wrote: > Can you tell me

Re: [PHP] Help with code

2004-12-26 Thread Burhan Khalid
karl james wrote: I have since updated it. And I am having issues with a function I suppose. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/virtual/site38/fst/var/www/html/php/wrox_php/movie_details.php on line 119 http://www.theufl.com/php/wrox_php

Re: [PHP] Help with encryption

2005-01-14 Thread Tom Rogers
Hi, Friday, January 14, 2005, 7:53:30 AM, you wrote: BD> Howdy all - BD> I have RTFM and STFW and I still can't get encryption to work. What I BD> finally ended up with from the PHP documentation is long, unwieldy, BD> confusing, and doesn't work. I give up. I threw my big mess away and BD> wo

Re: [PHP] Help with encryption

2005-01-14 Thread Jochem Maas
Brian Dunning wrote: Howdy all - I have RTFM and STFW and I still can't get encryption to work. What I good man! (for trying that is) bummer its not working yet... finally ended up with from the PHP documentation is long, unwieldy, confusing, and doesn't work. I give up. I threw my big mess away

Re: [PHP] Help with encryption

2005-01-14 Thread Greg Donald
On Thu, 13 Jan 2005 13:53:30 -0800, Brian Dunning <[EMAIL PROTECTED]> wrote: > Could anyone point me to a web page or other documentation that shows a > SIMPLE example of encryption? I know absolutely nothing about encryption. There are like 6 people in the entire world who know something about i

RE: [PHP] Help with encryption

2005-01-15 Thread Michael Sims
Greg Donald wrote: > On Thu, 13 Jan 2005 13:53:30 -0800, Brian Dunning > <[EMAIL PROTECTED]> wrote: >> Could anyone point me to a web page or other documentation that >> shows a SIMPLE example of encryption? > > I know absolutely nothing about encryption. There are like 6 people > in the entire w

Re: [PHP] Help with encryption

2005-01-15 Thread Jochem Maas
Michael Sims wrote: Greg Donald wrote: On Thu, 13 Jan 2005 13:53:30 -0800, Brian Dunning <[EMAIL PROTECTED]> wrote: Could anyone point me to a web page or other documentation that shows a SIMPLE example of encryption? I know absolutely nothing about encryption. There are like 6 people in the entir

Re: [PHP] Help with encryption

2005-01-19 Thread Brian Dunning
Here is a class that uses mcrypt that might be helpful: Tom - this class is awesome. Took 5 seconds to add to my site and worked like a charm on the first try. THANKS!! :) - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] help with nl2br

2005-01-21 Thread Jay Blanchard
[snip] some text copy Some more copy What I want instead is Some text copy some more text copy [/snip] What you want to do is start with a , then when you run into 2 \n\n you want to replace it with and then end with a http://www.php.net/preg_replace -- PHP General Mailing List (http://www.p

RE: [PHP] help with nl2br

2005-01-21 Thread Samuel DeVore
You might check out http://photomatt.net/scripts/autop "Call this function on the text you want to convert. Think of this code like nl2br on steroids. This is basically a cross-platform set of regular expressions that takes text formatted only by newlines and transforms it into text properly marke

Re: [PHP] help with nl2br

2005-01-21 Thread Karthik
Hey, I would just suggest that you "Explode" the data based on \n and then "walk" through it adding and tags as necessary.. shouldn't be too diffcult. hth -K On Fri, 21 Jan 2005 14:19:38 -0800, Phillip S. Baker <[EMAIL PROTECTED]> wrote: > Greetings all, > > Due to style sheet stuff I n

Re: [PHP] help with nl2br

2005-01-21 Thread Jochem Maas
Phillip S. Baker wrote: Greetings all, Due to style sheet stuff I need to modify the nl2br (IE create or use a different function). I am pulling data from a database and using nl2br, which does the standard. ... .html: some text copy Some more copy ... .css: .ParaFakeOrWhatEver {

Re: [PHP] help with nl2br

2005-01-24 Thread Richard Lynch
Phillip S. Baker wrote: > Due to style sheet stuff I need to modify the nl2br (IE create or use a > different function). > > I am pulling data from a database and using nl2br, which does the > standard. > > some text copy > > Some more copy > > What I want instead is > Some text copy > > some more

[PHP] help needed on imagettftext()

2005-01-27 Thread Harish Rao K
Hello, While working with some CAPTCHA stuff I get the following error: Fatal error: Call to undefined function imagettftext(). I have compiled with GD support and all the supporting libraries (Freetype, TTF, jpeg, X11R6 etc). What am I missing? Below is the configure command that I have used.

Re: [PHP] Help with references?

2005-01-28 Thread Jochem Maas
Jon wrote: This script only outputs the top level. i.e. that script has syntax errors. ... $arFiles = array( array['file1']( array( ['path] => array( [0] => 'folder1', [1] => 'subfolder1' [2] => 'file1.ext' ), ['length'] => 5464, ['size'] => 8765 ),

Re: [PHP] Help with references?

2005-01-28 Thread Jon
Here is one that does not throw an error but does not produce the desired results class dir { var $name; var $subdirs; var $files; var $num; var $prio; function dir($name,$num,$prio) { $this->name = $name; $this->num = $num; $this->prio = $prio; $this->files = array();

Re: [PHP] help-regarding-file_get_contents

2005-02-07 Thread Guillermo Rauch
Does the server support passive FTP connections? Extracted from the PHP Manual: PHP 3, PHP 4, PHP 5. ftps:// since PHP 4.3.0 * ftp://example.com/pub/file.txt * ftp://user:[EMAIL PROTECTED]/pub/file.txt * ftps://example.com/pub/file.txt * ftps:

[PHP] Help with SQL statement

2005-02-17 Thread Jacques
How can I determine which users have signed in and are still on-line during the first minute after they have signed in? My sql statement currently reads: SELECT * FROM tblusers WHERE usignedin = "yes" AND utimesignedin = (time() - 60) Hoe does one indicate seconds in a SQL statement? Can I use

Re: [PHP] [php] -help me

2005-02-17 Thread Bret Hughes
On Thu, 2005-02-17 at 23:50, K Karthik wrote: > i have got string as "/home/karthik/welcome.php/view.php" > i just need "view.php" how shall i remove rest of the string. > please do help me.i am new to php. > -thanks, > karthik > Lets see if you can learn to fish. Since you are new you should le

RE: [PHP] [php] -help me

2005-02-18 Thread Tyler Replogle
$str_array = explode("/", ""/home/karthik/welcome.php/view.php"); // $str_array[4] shoud be view.php From: K Karthik <[EMAIL PROTECTED]> To: php-general@lists.php.net Subject: [PHP] [php] -help me Date: Fri, 18 Feb 2005 11:20:29 +0530 MIME-Version: 1.0 Received: fr

Re: [PHP] [php] -help me

2005-02-18 Thread M. Sokolewicz
Tyler Replogle wrote: $str_array = explode("/", ""/home/karthik/welcome.php/view.php"); // $str_array[4] shoud be view.php From: K Karthik <[EMAIL PROTECTED]> To: php-general@lists.php.net Subject: [PHP] [php] -help me Date: Fri, 18 Feb 2005 11:20:29 +0530 M

Re: [PHP] help with adding

2005-02-25 Thread Jochem Maas
Jay Fitzgerald wrote: I have messed with this for a couple of days and cant get it right. Maybe I need sleep :-) The code below is echoing the qty correctly (10, 5, 25) for ($i = 1; $i <= $sendnum; $i++) { $qty = $_POST['qty'.$i]; echo $qty . ''; } The question is,

RE: [PHP] help with adding

2005-02-25 Thread Jesse Castro
> -Original Message- > From: Jay Fitzgerald [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 24, 2005 9:39 AM > To: php-general@lists.php.net > Subject: [PHP] help with adding > > > I have messed with this for a couple of days and cant get it >

Re: [PHP] help with adding

2005-02-25 Thread Stephen Johnson
ing the struggle against bad code */ ?> > From: "Jay Fitzgerald" <[EMAIL PROTECTED]> > Organization: Bayou Internet > Reply-To: <[EMAIL PROTECTED]> > Date: Thu, 24 Feb 2005 09:39:16 -0600 > To: > Subject: [PHP] help with adding > > The code bel

Re: [PHP] help with adding

2005-02-25 Thread Leif Gregory
Hello Jay, Thursday, February 24, 2005, 8:39:16 AM, you wrote: J> I have messed with this for a couple of days and cant get it right. J> Maybe I need sleep :-) J> The question is, how would I take add each of these numbers (10+5+25)? for ($i = 1; $i <= $sendnum; $i++) { $qty = $_POST['qty'.$i

Re: [PHP] help with adding

2005-02-25 Thread Dan Tappin
You could try: for ($i = 1; isset( $_POST['qty'.$i] ); $i++) { $qty = $_POST['qty'.$i]; $total .= $qty; echo $qty . ''; } echo $total; Dan T On Feb 24, 2005, at 8:39 AM, Jay Fitzgerald wrote: I have messed with this for a couple of days and cant get it right. Maybe

Re: [PHP] help with adding

2005-02-25 Thread Randy Johnson
Try this: $num=0; for ($i = 1; $i <= $sendnum; $i++) { $qty = $_POST['qty'.$i]; $num=$num+ $qty ; } echo $num; Jay Fitzgerald wrote: I have messed with this for a couple of days and cant get it right. Maybe I need sleep :-) The code below is echoing the qty correc

Re: [PHP] help with adding

2005-02-25 Thread Richard Lynch
Jay Fitzgerald wrote: > I have messed with this for a couple of days and cant get it right. Maybe > I > need sleep :-) > > > > The code below is echoing the qty correctly (10, 5, 25) > > > > for ($i = 1; $i <= $sendnum; $i++) > > { > > $qty = $_POST['qty'.$i]; > > echo $

Re: [PHP] help with adding

2005-02-25 Thread gustav
Hi there! I guess $sum =+ intval($_POST['qty'.$i]); should be $sum += intval($_POST['qty'.$i]); /G @varupiraten.se > Jay Fitzgerald wrote: >> I have messed with this for a couple of days and cant get it right. >> Maybe I >> need sleep :-) >> >> >> >> The code below is echoing the qty correctly

Re: [PHP] help with adding

2005-02-25 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Hi there! I guess $sum =+ intval($_POST['qty'.$i]); should be $sum += intval($_POST['qty'.$i]); yuo are corerct. ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with REGEXP please

2005-03-04 Thread Shaun
Hi, Please could someone tell me how i can extract the information from a string that is after 'ID_' and before '_FN' Thanks for your help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with dates

2005-03-06 Thread Jason Wong
On Sunday 06 March 2005 22:11, Kevin wrote: > Right now I'm working on a script that would calculate dates from one > calendar to another. The normal calendar we use and a newly invented > one. > > In order to do that I need to find the exact days since the year 0 > BC/AD. However, the functions p

Re: [PHP] Help with dates

2005-03-06 Thread Kevin
Thank you.. duh... quite useful... not... Where do you think I check first? Yours, Kevin "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sunday 06 March 2005 22:11, Kevin wrote: > > > Right now I'm working on a script that would calculate dates from one > > calenda

<    8   9   10   11   12   13   14   15   16   17   >