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 of a phrase'

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 at

Re: [PHP] Help outputting an array?

2005-04-26 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 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 } ? script language=javascript function hasNextCourse(){

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

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

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 ?php /* Stephen Johnson c | eh

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

2005-04-06 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 Message

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

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

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

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 to

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? ?php $a = 17.00 * 1; $a+= 1.10 * 1; $a+= 0.32 * 1; $a+= 0.07 *

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 just

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.br; // 18.49

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=9288edit=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! 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 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 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

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

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:

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

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 and

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 with $.

RE: [PHP] HELP , HELP ,HELP

2005-03-29 Thread Chris W. Parker
wangchq mailto:[EMAIL PROTECTED] 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 , 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 will

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 to

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 a

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

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

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-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 part of a game.

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

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

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

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-invent the wheel?

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

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 php

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

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' ?php $myString = ID_723456ABc_FN; preg_match(/ID_([a-z0-9]+)_FN/i,$myString, $extracted); echo $extracted[1]; ?

RE: [PHP] Help with REGEXP please

2005-03-04 Thread Chris W. Parker
Shaun mailto:[EMAIL PROTECTED] 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 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

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 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 . 'br /'; } The question

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 :-) The

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 . 'br /'; } echo Total $total; ?php /* Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075

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 . 'br /'; } 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.

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

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 $qty . 'br /'; }

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 wont

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 (10, 5, 25)

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

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 Mailing

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) Hoe does

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? -- /*** * Robby

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

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

2005-02-16 Thread Chris W. Parker
Shaun mailto:[EMAIL PROTECTED] 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 '' at line

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

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 *

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

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 the

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 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 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_entry ); cuz

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 wrote

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

RE: [PHP] Help with file not writing

2005-01-25 Thread Joey
:[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 that anyway and no change

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
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: I'm

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 copybr / br / Some more copybr / What I want instead is pSome text copy/p psome

RE: [PHP] help with nl2br

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

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

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 p /p and br / 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

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: div class=ParaFakeOrWhatEver some text copybr / br / Some more copybr /

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

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 entire

RE: [PHP] Help please!!

2005-01-14 Thread Jay Blanchard
[snip] Thanks guys for any help troubleshooting this. [/snip] Is the drive full? Enough memory? An unusual number of connections? Any other applications added to the system? what do you see when you run top? Have you looked at a MySQL process list? -- PHP General Mailing List

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 would

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

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

Re: [PHP] Help with pack unpack functions

2005-01-03 Thread Richard Lynch
What is strange is that I can always get the char data[] structure member, and sometimes I get meaningful data in a few of the shorts, but never all of the structure's members at the same time. Do you consistently get the same problems on the FIRST record returned? Anything after that is

Re: [PHP] Help with pack unpack functions

2005-01-03 Thread Scott E. Young
First, let me say thanks for responding. My other responses are embedded within your reply: What is strange is that I can always get the char data[] structure member, and sometimes I get meaningful data in a few of the shorts, but never all of the structure's members at the same time. Do

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

RE: [PHP] help in reversing an array

2004-12-25 Thread Mike
I am having some trouble reversing the order of an array. [snip] Which function amongst the available should I use? rsort() is what you're looking for. http://us2.php.net/manual/en/function.rsort.php -M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] help in reversing an array

2004-12-25 Thread M. Sokolewicz
Mike wrote: I am having some trouble reversing the order of an array. [snip] Which function amongst the available should I use? rsort() is what you're looking for. http://us2.php.net/manual/en/function.rsort.php -M what's wrong with array_reverse()?

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

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