RE: [PHP] HELP! form validation

2005-06-08 Thread Dave Sayer
> -Original Message- > From: Jim Moseby [mailto:[EMAIL PROTECTED] > Sent: 08 June 2005 15:18 > To: '[EMAIL PROTECTED]' > Subject: RE: [PHP] HELP! form validation > > > > -Original Message- > > From: Dave Sayer [mailto:[EMAIL PROTECTED]

RE: [PHP] HELP! form validation

2005-06-08 Thread Jim Moseby
> Hi php’ers, > > What would be the best method of validation a large (8 > stages) form written > in php? The form validates using php at the moment but it > only displays the > errors in a group, what we want it to do is highlight the > fields or labels > for the incorrect entries (if that mak

Re: [PHP] HELP! form validation

2005-06-08 Thread Paul Waring
On 6/8/05, Dave Sayer <[EMAIL PROTECTED]> wrote: > What would be the best method of validation a large (8 stages) form written > in php? The form validates using php at the moment but it only displays the > errors in a group, what we want it to do is highlight the fields or labels > for the incorre

Re: [PHP] Help with some OOP

2005-06-05 Thread Jochem Maas
JamesBenson wrote: Hello all, Ive been working with PHP for my websites for a few months, just attempted to build my own class, after reading all this stuff about automated robots and XSS attacks etc decided to step up security a bit, my result is an attempt to create a class for using the tok

Re: [PHP] Help with using SPL to build a MySQL Iterator

2005-05-18 Thread Chris
V Kam wrote: Hello all I was trying to write an SPL Iterator for a MySQL result set but not having any luck. Specifically I'm not sure how to overload the key() and current/next() methods. Does anyone here have a working code sample that does this, or can offer some guidance on how to overload th

Re: [PHP] Help!!! Cannot do Authentication

2005-05-13 Thread Richard Lynch
On Thu, May 12, 2005 9:27 am, K.S. TANG said: > I have a page using the Basic HTTP Authentication and works well before. > But this night, the server seems to not receiving any $_SERVER pass in > from > Web browsers. > > if ( (!isset($_SERVER['PHP_AUTH_USER'])) || ($_SERVER['PHP_AUTH_USER'] > !=

RE: [PHP] Help with regex: breaking strings down to 'words' and 'phrases'

2005-05-10 Thread Murray @ PlanetThoughtful
> On Wed, 11 May 2005, Murray @ PlanetThoughtful wrote: > > > Hi All, > > > > I'd very much appreciate some help building a regular expression for > > preg_match_all that can differentiate between 'words' and 'phrases'. > > > > For example, say I have a string that contains: 'this is an "example o

Re: [PHP] Help with regex: breaking strings down to 'words' and 'phrases'

2005-05-10 Thread Philip Hallstrom
On Wed, 11 May 2005, Murray @ PlanetThoughtful wrote: Hi All, I'd very much appreciate some help building a regular expression for preg_match_all that can differentiate between 'words' and 'phrases'. For example, say I have a string that contains: 'this is an "example of a phrase"' I'd like to be a

Re: [PHP] help formatting a mysql datetime variable

2005-04-29 Thread Richard Lynch
On Fri, April 29, 2005 7:38 am, Bosky, Dave said: > I'm trying to get a mysql datetime variable called $cdate formatted so > it will print: > > Thursday, April 28, 2005 at 8:00:00 PM Eastern Time > > I tried the following but it's not perfect. > > -- > $newDate = date('I, F d, Y

Re: [PHP] Help outputting an array?

2005-04-25 Thread Petar Nedyalkov
On Tuesday 26 April 2005 06:55, Brian Dunning wrote: > Hi all - it seems the longer I use PHP, the stupider my questions are > getting. I finally got my XML parsed into an array, but perhaps my > skills at dealing with the array are not where I thought they were. > My array print_r's out like this:

Re: [PHP] Help outputting an array?

2005-04-25 Thread Mark Sargent
Brian Dunning wrote: Hi all - it seems the longer I use PHP, the stupider my questions are getting. I finally got my XML parsed into an array, but perhaps my skills at dealing with the array are not where I thought they were. My array print_r's out like this: Array ( [PARAS] => Array (

Re: [PHP] help with install to one page only

2005-04-24 Thread Drewcore
lisa, i think your problem may be simple enough... but if this doesn't work, i dunno... i'm guessing that you're using some webhost right? well... > Note: Your file should be present in the same folder where HEC/ is present > E.g: > ~/testcal.php [your file where you want to display event calenda

Re: [PHP] help for me about session

2005-04-24 Thread Richard Lynch
On Sat, April 23, 2005 7:35 pm, Josephson Tracy said: > hi everyone, > when i study php, i have a problem as following: > - > file1.php > if($NextCourse == 1){ do something;} > else($NextCourse ==""){do something other } > ?> > > > function hasNextCourse(){ > document.fo

Re: [PHP] help for me about session

2005-04-23 Thread Pedro Luis Cruz Riguetti
-- mierda carajo saquenme de sta lista de mierda q llema mi correo de huevadas rapido carjo.nierdas --- Banco de Crédito BCP - Dedicados a hacerte la Banca más simple. Visita nuestra Banca por Internet http://www.viabcp.com

Re: [PHP] help for me about session

2005-04-23 Thread Steve Buehler
At 09:35 PM 4/23/2005, Josephson Tracy wrote: hi everyone, when i study php, i have a problem as following: - file1.php if($NextCourse == 1){ do something;} else($NextCourse ==""){do something other } ?> - but when the 2ed access the file1.php the value

Re: [PHP] HELP!

2005-04-12 Thread Stephen Johnson
Yes -- In your example - $result_id would be accessed on page2 as $result_id = $_GET['result_id']; Then through out your script on page 2 you could access $result_id. Hope that helps. æ-- åæçäå- $result_id æèçååé2 $result_id = $_get['result_id ' ]; çåééåæçåæäååé2 æèèå $result_idã åæååã

Re: [PHP] Help with proper post method...

2005-04-06 Thread Richard Lynch
On Tue, April 5, 2005 10:23 pm, Joey said: > OK I am migrating some sites from an old school server to one with MySQL 4 > & > newest PHP, however certain things aren't running because of the > register_globals variable on the new server is set to OFF for security > reasons. > > What I am trying to

Re: [PHP] Help with proper post method...

2005-04-05 Thread Lars B. Jensen
very quick and *very* dirty, put this in top of your file extract($_POST); and voila, you bypassed "registerglobals off" -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for english speaking professionals http://www.careercross.com - Original Messag

Re: [PHP] help with GD

2005-04-05 Thread Richard Lynch
On Sun, April 3, 2005 12:31 am, [EMAIL PROTECTED] said: > is there any way to edit and resize animated gifs in PHP? > with imagegif() i only get a static image Not as far as I know... Though I do recall seeing something about this on the GD page, so maybe you want to look at adding that support t

Re: [PHP] Help. Floats turning into really small numbers? x.xxxxxxxxxxxxxxxxxxxxxxE-xx

2005-04-05 Thread Rasmus Lerdorf
Anthony Tippett wrote: I'm having trouble figuring out why subtraction of two floats are giving me a very small number. I'm thinking it has something to do with the internals of type casting, but i'm not sure. If anyone has seen this or can give me some suggestions, please. I have 2 variables tha

Re: [PHP] Help. Floats turning into really small numbers? x.xxxxxxxxxxxxxxxxxxxxxxE-xx- Narrowed it down!

2005-04-05 Thread Satyam
What you see as round numbers in base 10, are not so in binary. Numbers such as .5, .25, .125, .0625 and so on, multiples of one half, are round numbers in binary, though they don't look so in decimal. Others which look pretty simple in decimal are not, for example, 0.1 gives you an infinite s

Re: [PHP] Help. Floats turning into really small numbers? x.xxxxxxxxxxxxxxxxxxxxxxE-xx - Narrowed it down!

2005-04-04 Thread Anthony Tippett
Thanks to everyone that helped. After further googling, bug 9288 had a good explanation of what was going on ( which is not a bug) http://bugs.php.net/bug.php?id=9288&edit=3 I'll just include the answer for anyone that comes upon this tread on a search engine. [15 Feb 2001 2:55pm CET] hholzgra

Re: [PHP] Help. Floats turning into really small numbers? x.xxxxxxxxxxxxxxxxxxxxxxE-xx - Narrowed it down!

2005-04-04 Thread Anthony Tippett
btw, thanks for your response. I'm not sure as if I understand why. It's not like I'm using a very precise number when dealing with the hundreths place. Even without the multiplication the number gets messed up. eg. $a = 17.00; $a+= 1.10; $a+= 0.32; $a+= 0.07; print $a.""; // 18.49 var_dump

Re: [PHP] Help. Floats turning into really small numbers? x.xxxxxxxxxxxxxxxxxxxxxxE-xx - Narrowed it down!

2005-04-04 Thread Richard Lynch
Floats are NEVER going to be coming out "even" reliably. You'll have to check if the difference is less than X for whatever number X you like. Or you can look at something like BC_MATH where precision can be carried out as far as you like... But what you are seeing is to be expected. That's jus

Re: [PHP] Help. Floats turning into really small numbers? x.xxxxxxxxxxxxxxxxxxxxxxE-xx - Narrowed it down!

2005-04-04 Thread Anthony Tippett
Ok i've narrowed it down a little bit but still can't figure it out.. Here's the code and what I get for the output. Does anyone know what's going on? Can someone else run it on their computer and see if they get the same results? "; // 18.49 var_dump($a); // float(18.49) var_dump($a-18.49); /

Re: [PHP] Help! mod_php4 upgrade breaks GD!

2005-04-02 Thread Jason Wong
On Saturday 02 April 2005 02:46, [EMAIL PROTECTED] wrote: > No clue why it couldn't find libjpeg, but I then tried adding: > --with-zlib-dir=/usr/include (AND) --with-jpeg-dir=/usr/local/include/ > (the header files are there) That ought to be: --with-zlib-dir=/usr --with-jpeg-dir=/usr/local

Re: [PHP] Help with SQL Query String

2005-03-31 Thread Rahul S. Johari
On 3/31/05 12:45 PM, "Joseph Connolly" <[EMAIL PROTECTED]> wrote: > well...i would have told him to go pound sand...the php manual is great > and so is the MySQL manual. People are just lazy. Ave, "Pound sand" .. Interesting. And yes, both the manuals are great, and people are extremely lazy

Re: [PHP] Help with SQL Query String

2005-03-31 Thread Joseph Connolly
well...i would have told him to go pound sand...the php manual is great and so is the MySQL manual. People are just lazy. [/snip] Ya'll bitch when I make them RTFM, ya'll bitch when I do codewhat's a guy to do? j/k Actually http://dev.mysql.com/doc/mysql/en/string-functions.html shows that My

Re: [PHP] Help with SQL Query String

2005-03-31 Thread Rahul S. Johari
Ave, Thanks a lot folks. I did actually mention that doing something like $userid = trim($row['USERID']); And then using those variables in my SQL statement would work... The only reason I chose to make this post however and not do that was because I wanted to know if it can be done the other

Re: [PHP] Help with SQL Query String

2005-03-31 Thread John Nichel
Jay Blanchard wrote: Ya'll bitch when I make them RTFM, ya'll bitch when I do codewhat's a guy to do? j/k Don't get married? ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

RE: [PHP] Help with SQL Query String

2005-03-31 Thread Jay Blanchard
[snip] You should not just give him the code but rather tell him why. 1. trim() is a php function. MySQL does not know what to do with it. You need to place it 'outside' of the sql. You can also do something like this: $userid = trim($row['USERID']); Then use $userid in your sql. 2. Items in a

Re: [PHP] Help with SQL Query String

2005-03-31 Thread Joseph Connolly
You should not just give him the code but rather tell him why. 1. trim() is a php function. MySQL does not know what to do with it. You need to place it 'outside' of the sql. You can also do something like this: $userid = trim($row['USERID']); Then use $userid in your sql. 2. Items in arrays must

RE: [PHP] Help with SQL Query String

2005-03-31 Thread Jay Blanchard
[snip] $sql = INSERT INTO tblname (USERID,FULLNAME,SSN,STARTDATE) VALUES (trim($row[USERID]),trim($row[FULLNAME]),trim($row[SSNO]),trim($row[STAR TDAT E])); [/snip] Time to quote and concatenate and make pretty... $sql = "INSERT INTO tblname (USERID,FULLNAME,SSN,STARTDATE) "; $sql .= "VALUES ( ";

RE: [PHP] HELP!

2005-03-30 Thread Kim Madsen
> -Original Message- > From: çæä [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 30, 2005 11:46 AM > To: php-general@lists.php.net > Cc: php-general@lists.php.net Why to AND cc? > Would somebone give me a example of regulation expression to check > account(or money) type which start w

Re: [PHP] HELP , HELP ,HELP

2005-03-29 Thread Richard Lynch
On Tue, March 29, 2005 4:49 pm, wangchq said: > if(eregi("^\$[0-9]+\,[0-9]+\.[0-9]+",$set,$account)){ For starters: PHP use \ as an escape character for $ inside of "" Regex uses \ as an escape character for $ as a literal rather than line-end character. So your \$ should be \\\$, because PHP w

RE: [PHP] HELP , HELP ,HELP

2005-03-29 Thread Chris W. Parker
wangchq on Tuesday, March 29, 2005 4:50 PM said: > Hi; Hello. > I use this regulation expression to check account(money)type, but it > does not work. That's "regular" expression. You were close. :P > if(eregi("^\$[0-9]+\,[0-9]+\.[0-9]+",$set,$account)){ > >

Re: [PHP] Help! configure Apache as a proxy

2005-03-23 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: > I configured a Apache server as a proxy. > But it's very slow. when I use this server connect internet it is NOT so > slow. > I think it ss because,my config has some error! > Who can help me? This is a PHP programming list, not an Apache list. Ask in the Apache list t

Re: [PHP] Help! configure Apache as a proxy

2005-03-22 Thread Richard Lynch
On Tue, March 22, 2005 3:30 pm, [EMAIL PROTECTED] said: > I configured a Apache server as a proxy. > But it's very slow. when I use this server connect internet it is NOT so > slow. > I think it ss because,my config has some error! > Who can help me? WILD GUESS You've got Apache configured to do

Re: [PHP] Help with dates

2005-03-20 Thread Kevin
Dear Jochem and all the others who have offered help, Thank you all for your assistance! Thanks to all of you I have been able to reach the next step in the design process! Thanks ever so much! Most sincerely, Kevin "Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Kev

Re: [PHP] Help with dates

2005-03-17 Thread Jochem Maas
Kevin wrote: Dear mr. Maas, no need for 'mr' :-) First of all my appologies for taking so long to respond. I had a family death to attend to. my condolences. there is no need to apologise in any case. ... why is OBC relevant, I read later on that you take the start of egyptian civilization as zero.

Re: [PHP] Help with dates

2005-03-14 Thread Kevin
Dear mr. Maas, First of all my appologies for taking so long to respond. I had a family death to attend to. I will respond to the message in message. Yours, Kevin "Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > ... > >> > >>Why re-invent the wheel? > > > > > > It's

Re: [PHP] HELP TO GET OUT OF PHP MAILING LIST

2005-03-14 Thread Brian Dunning
I did not subscribe to it in the first place There goes that nefarious PHP-General again, randomly subscribing unsuspecting innocents as part of its evil master plan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with dates

2005-03-09 Thread Richard Lynch
>> > 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. >> >> [shudder] >> There are already WAY too many calendar systems. >> >> Inventing a new one is probably not such a good plan... >> >> Why re-

Re: [PHP] Help with dates

2005-03-09 Thread Jochem Maas
Jason Barnett wrote: Jochem Maas wrote: It's mostly the past. The RPG is set in Egypt and the beginning of the society in egypt has been taken as year 0. The start date I think is obvious, but I do not understand an end date of a calendar.. Perhaps I'm just blond.. but could you perhaps explai

Re: [PHP] Help with dates

2005-03-09 Thread Jason Barnett
Jochem Maas wrote: > >> It's mostly the past. The RPG is set in Egypt and the beginning of the >> society in egypt has been taken as year 0. The start date I think is >> obvious, but I do not understand an end date of a calendar.. Perhaps I'm >> just blond.. but could you perhaps explain that

Re: [PHP] Help with dates

2005-03-09 Thread Jochem Maas
... Why re-invent the wheel? It's part of a game. In the RPG there are dates which the players would like to be able to convert from our calendar to that one, and back again.. In order to do that I need to find the exact days since the year 0 BC/AD. why is OBC relevant, I read later on that you t

Re: [PHP] Help with dates

2005-03-09 Thread Kevin
Mr Lynch, Thanks a lot for your help so far! I will answer or respond in message. Yours, Kevin "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Kevin wrote: > > Right now I'm working on a script that would calculate dates from one > > calendar to another. The normal

Re: [PHP] Help with dates

2005-03-08 Thread Richard Lynch
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. [shudder] There are already WAY too many calendar systems. Inventing a new one is probably not such a good plan... Why re-invent the wh

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

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 REGEXP please

2005-03-04 Thread John Nichel
Shaun wrote: 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. preg_match ( "/ID_(.*)_FN/", $string, $result ) The data will be in $result[1] if there is a match. -- John C. Nichel ÜberGeek KegWorks.com 71

RE: [PHP] Help with REGEXP please

2005-03-04 Thread Chris W. Parker
Shaun on Friday, March 04, 2005 11:55 AM said: > Please could someone tell me how i can extract the information from a > string that is after 'ID_' and before '_FN' Get the RegExCoach. It'll be your best friend. Try: /ID_(.*)_FN/ Chris. -- PHP General Mailing

Re: [PHP] Help with REGEXP please

2005-03-04 Thread Leif Gregory
Hello Shaun, Friday, March 4, 2005, 12:54:34 PM, you wrote: S> Please could someone tell me how i can extract the information from S> a string that is after 'ID_' and before '_FN' This will match any upper or lowercase letter and number. If you have other characters like _ , etc, then you'll ne

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

Re: [PHP] Help Required: How to call .vbs file from .php file?

2005-02-25 Thread Rory Browne
Okay: You need to be explain yourself in a MUCH CLEARER manner. You want to 'call' a 'vbscript' from a php file. What exactly do you mean? Do you want to run server-side vbscript, or do you want to run client-side vbscript. Do you want to use asp-style vbscript to generate html, or do you want to

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 Required: How to call .vbs file from .php file?

2005-02-25 Thread Richard Lynch
lef1 wrote: > I am in desperate need of some help in calling a vbscript file from a php > file. > I have searched high and low and have come up with nothing that will do > it. > I have found one example of a html file, which will call a vbscript file > when > the html file is double-clicked, but wo

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 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 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 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 Stephen Johnson
for ($i = 1; $i <= $sendnum; $i++) { $qty = $_POST['qty'.$i]; $total = $total + $qty; echo $qty . ''; } echo "Total $total"; http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075 (fax) continuing the struggle against bad code

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 > right. Maybe I need sleep :-) > >

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 Required: How to call .vbs file from .php file?

2005-02-25 Thread Jay Blanchard
[snip] I am in desperate need of some help in calling a vbscript file from a php file. [/snip] http://www.php.net/exec -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] help me

2005-02-23 Thread Reinhart Viane
This is how I would do it, don't know if it is the best way. A. get the date out of the database Let's say $maindate is that date you retrieved from the database B. split up the date into several parts for day month and year The day as a number (dd): $day=date ("j", strtotime($maindate)); The mo

Re: [PHP] help me

2005-02-23 Thread Richard Lynch
K Karthik wrote: > i'd like to get a date from my database(mysql).and then show a combobox > of calendar(date-month-year) with the retrieved data selected. > can you help me doing this?? am new to php. http://www.google.com/search?q=PHP+date+combobox -- Like Music? http://l-i-e.com/artists.htm

Re: [PHP] Help with SQL statement

2005-02-18 Thread Bret Hughes
On Thu, 2005-02-17 at 23:21, Jacques wrote: > 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) > >

Re: [PHP] help me

2005-02-18 Thread Pablo M. Rivas
http://www.php.net/date On Fri, 18 Feb 2005 12:07:14 +0530, K Karthik <[EMAIL PROTECTED]> wrote: > i am so surprised for the immediate reply.thank you so much. > i'll be thank ful again if you could help me finding the current date > and time using php. > thanks, > karthik > > -- > PHP General M

Re: [PHP] help me

2005-02-17 Thread Robby Russell
On Thu, 2005-02-17 at 19:11 +0530, K Karthik wrote: > > can u help me to use $_SERVER['remote_addr'] to find the IP address ? > > i am new to php. i also want to find what page of my site he is viewing ? > print_r($_SERVER); what do you see? -- /*** * Robb

Re: [PHP] Help with a query please - unable to error check!

2005-02-16 Thread Mattias Thorslund
Could it be a quote-escaping problem? It would be easier to tell if you could show us the query and the code you're using. /Mattias Shaun wrote: Hi, I have a problem with a query, I get the following error message: You have an error in your SQL syntax. Check the manual that corresponds to your M

RE: [PHP] Help with a query please - unable to error check!

2005-02-16 Thread Chris W. Parker
Shaun on Wednesday, February 16, 2005 1:15 PM said: > I have a problem with a query, I get the following error message: > > You have an error in your SQL syntax. Check the manual that > corresponds to your MySQL server version for the right syntax to use > near '' a

Re: [PHP] Help with a query please - unable to error check!

2005-02-16 Thread John Holmes
Shaun wrote: I have a problem with a query, I get the following error message: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 23 If I echo the query to the screen and run the query to the database vi

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:

Re: [PHP] Help with references? again

2005-01-28 Thread Jon
OK, THIS one doesn't throw a syntax error ;) 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(); $this->subdirs = array(); }

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 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 needed on imagettftext()

2005-01-28 Thread Harish Rao K
Hi Marek Kilimajer, Thank You Marek it worked for me also. -Harish Rao K -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Thursday, January 27, 2005 9:19 PM To: Harish Rao K Cc: php-general@lists.php.net Subject: Re: [PHP] help needed on imagettftext() Harish

Re: [PHP] help needed on imagettftext()

2005-01-27 Thread Richard Lynch
Harish Rao K wrote: > 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? Check the log files from in

Re: [PHP] help needed on imagettftext()

2005-01-27 Thread Marek Kilimajer
Harish Rao K wrote: 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 th

RE: [PHP] Help with file not writing

2005-01-25 Thread Joey
That was it Bret, thanks for pointing out my blindess... Joey -Original Message- From: Bret Hughes [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 26, 2005 12:34 AM To: php general list Subject: Re: [PHP] Help with file not writing On Tue, 2005-01-25 at 07:53, Joey wrote: >

Re: [PHP] Help with file not writing

2005-01-25 Thread Bret Hughes
On Tue, 2005-01-25 at 07:53, Joey wrote: > I'm not too good with classes, in the below class I can get the hit counter > to write to the hit counter file, but I can't get it to write the log file, > I know security is done correctly on the file because it's the same as the > counter log file, but I

RE: [PHP] Help with file not writing

2005-01-25 Thread Joey
ailto:[EMAIL PROTECTED] Sent: Tuesday, January 25, 2005 7:44 PM To: Joey Subject: RE: [PHP] Help with file not writing I'll say it again. Every place that you have ->$ you should have just -> It's really that simple. Honest. Joey wrote: > Sorry I forgot to mention that I tried t

RE: [PHP] Help with file not writing

2005-01-25 Thread Joey
Sorry I forgot to mention that I tried that anyway and no change in the result. fputs($log,$this->log_entry ); -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 25, 2005 1:30 PM To: Joey Cc: PHP Subject: RE: [PHP] Help with file not writ

RE: [PHP] Help with file not writing

2005-01-25 Thread Joey
Actually writing to the counter file works fine, I just can't get it to write to the log file. -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 25, 2005 1:30 PM To: Joey Cc: PHP Subject: RE: [PHP] Help with file not writing Joey

RE: [PHP] Help with file not writing

2005-01-25 Thread Richard Lynch
Joey wrote: > $this->$hits .= fgets($hiti,128); Do global search and replace for '->$' and change it to '->' > $this->$hits=1+$this->$hits; > echo $this->$hits; > fputs($hito,$this->$hits); > fputs($log,$this->$log_entr

Re: [PHP] Help with file not writing

2005-01-25 Thread Marek Kilimajer
Joey wrote: Hi Marek, Me? I did not send you anything :) Member variables in classes are NOT used this way: $this->$hits But this way: $this->hits I don't see anything in the docs located http://us3.php.net/fopen to help. I changed it to w only but that made no difference. Can you please provide

RE: [PHP] Help with file not writing

2005-01-25 Thread Joey
Hi Marek, I don't see anything in the docs located http://us3.php.net/fopen to help. I changed it to w only but that made no difference. Can you please provide a more specific answer. THanks Code looks liks this: <% class counter { var $log_file = 'counters/google_log.txt';

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

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-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 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 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 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 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-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 please!!

2005-01-14 Thread Brent Baisley
I would check what hitting the machine from the network. At the most basic level, just try "netstat 1" on the command line. Also try iostat 1 to see what load the machine has. It may not be PHP or Apache but something else, maybe a denial of service attack. On Jan 13, 2005, at 10:02 PM, Brent C

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-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 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

<    3   4   5   6   7   8   9   10   11   12   >