RE: [PHP] regexp for ' replacement

2002-04-05 Thread Rick Emery
addslashes($textline) -Original Message- From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:54 AM To: [EMAIL PROTECTED] Subject: [PHP] regexp for ' replacement Yet another regexpr question. If I have as part of a text: ...and then 'the quick brown f

RE: [PHP] Writing to Files

2002-04-05 Thread Rick Emery
try creating a script with fopen(), fwrite(), etc. When you run into problems, ask here. $filex = fopen("myfile","w"); fwrite( $filex, "write this here"); fclose($filex); -Original Message- From: Sebastian A. [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:29 AM To: PHP Gener

RE: [PHP] regexp for ' replacement

2002-04-05 Thread Rick Emery
MAIL PROTECTED]] Sent: Friday, April 05, 2002 11:35 AM To: Rick Emery Cc: [EMAIL PROTECTED] Subject: RE: [PHP] regexp for ' replacement Nop. I don't want to affect the first and last ' of every line. On Fri, 5 Apr 2002, Rick Emery wrote: > addslashes($textline) > >

RE: [PHP] refresh

2002-04-05 Thread Rick Emery
yes, put the name of the PHP file -Original Message- From: Kris Vose [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 12:23 PM To: Rick Emery Subject: RE: [PHP] refresh When I delete a record from a table in php it loops back to the table. However, It does not show that the

RE: [PHP] MySQL - UPDATE & INSERT

2002-04-05 Thread Rick Emery
what happened when you tried your query? -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 12:58 PM To: [EMAIL PROTECTED] Subject: [PHP] MySQL - UPDATE & INSERT Is this query legal? $query = "UPDATE table SET (var1, var2, var3) VALUE

RE: [PHP] Arrays within classes

2002-04-05 Thread Rick Emery
I corrected the syntax errors Erik found and added var_dump() after each $t equation/assignment The problem is that you refer to $test->words. You should refer to $test->words BIG DIFFERENCE $test->words means find the value of $words and look for that variable in $test. That is, if $words ="a

RE: [PHP] Arrays within classes

2002-04-05 Thread Rick Emery
riginal Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 1:28 PM To: 'Brian McLaughlin'; [EMAIL PROTECTED] Subject: RE: [PHP] Arrays within classes I corrected the syntax errors Erik found and added var_dump() after each $t equation/assignment The proble

RE: [PHP] getting slash with single quotes in form mail

2002-04-05 Thread Rick Emery
stripslashes($text) -Original Message- From: Rob Packer [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 7:46 PM To: [EMAIL PROTECTED] Subject: [PHP] getting slash with single quotes in form mail Hi, I have a contact form and when someone fills it out, all the single quotes (

RE: [PHP] difficulty in solving the unknown warning

2002-04-08 Thread Rick Emery
so what does line 111 look like? we can't read your mind... -Original Message- From: erich [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 3:35 AM To: [EMAIL PROTECTED] Subject: [PHP] difficulty in solving the unknown warning i am a php programmer whose learning expr. is about

RE: [PHP] Upload alert

2002-04-08 Thread Rick Emery
What you're seeking is push technology. I'm not certain that PHP can provide that. However, PHP can email you using the mail() function -Original Message- From: Rodolfo Silva [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 12:16 PM To: [EMAIL PROTECTED] Subject: [PHP] Upload ale

RE: [PHP] Object Confusion

2002-04-08 Thread Rick Emery
$A->variable Rather than having us all guess, show your code... -Original Message- From: Robert J. Cissell [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 11:42 AM To: [EMAIL PROTECTED] Subject: [PHP] Object Confusion If object of type A ($A) contains a variable $B which is an

RE: [PHP] fwrite() - problems....

2002-04-08 Thread Rick Emery
$fp = fopen($filename, "w"); fwrite($fp, $outputstring); READ THE DOCS -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 12:51 PM To: [EMAIL PROTECTED] Subject: [PHP] fwrite() - problems I have a large string that I want to written t

RE: [PHP] mysql question

2002-04-08 Thread Rick Emery
mysql is a relational database. therefore, the concept of a row number is irrelevant. that said, what do you REALLY want to do -Original Message- From: Julian [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 2:59 PM To: [EMAIL PROTECTED] Subject: [PHP] mysql question Hi!!! I

RE: [PHP] Assigning unique form names...

2002-04-08 Thread Rick Emery
perhaps you could use $file_name -Original Message- From: Jas [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 2:54 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Assigning unique form names... Ok I understand what you mean here, however what I need to do is have a unique form actio

RE: [PHP] Image Question

2002-04-08 Thread Rick Emery
First, why store it in a database? Why not store it as a separate file, then store pointer/file-name to it in database? If you do want it in the database (may I assume mysql?), then INSERT/LOAD the file directly into the field without conversion. -Original Message- From: Jay Paulson [ma

[PHP] RE: MySQL ORDER BY or PHP Sort?

2001-12-03 Thread Rick Emery
SELECT * FROM mytable ORDER BY series,price; -Original Message- From: René Fournier [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 4:27 PM To: [EMAIL PROTECTED] Subject: MySQL ORDER BY or PHP Sort? I want to select about 25 rows from a table, and sort them by two criteria.

[PHP] RE: What is causing duplicate keys?

2001-12-05 Thread Rick Emery
it should read: INSERT INTO recensioni VALUES( NULL,... In order fot auto_increment to work, you must use NULL. When you tried NULL, what SPECIFIC error did you get when it complained? FYI: it complains about the "duplicate key" because you already inserted a record with 300 in the PRIMARY KEY

[PHP] Events Listings

2001-06-23 Thread Rick Proctor
how to fix it, it would be muchly appreciated. The code is below Rick \n"; echo "alanis guide\n"; echo "\n"; echo "date\n"; echo "time\n"; echo "where\n"; echo "what\n"; echo "days till\n"; echo "\n"; //C

[PHP] RE: Events Listings

2001-06-26 Thread Rick Proctor
elate to me It would be more than greatly appreciated. I can usely figure things out, but I guess I'm just slow to this. Rick -Original Message- From: Rick Proctor [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 23, 2001 9:15 PM To: [EMAIL PROTECTED] Subject: Events Listings Hello,

RE: [PHP] RE: Events Listings

2001-06-28 Thread Rick Proctor
Hi Everyone, Thanks to the suggestions from everyone I got it working.. Thanks And Check it out @ http://www.alanis-morissette.com/am69/ (It's the TV Guide :-) Rick -Original Message- From: Rick Proctor [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 2:04 PM To: [

[PHP] RE: [PHP-DB] restoring mysql db after mysqldump

2001-08-22 Thread Rick Emery
Are your privileges in MySQL set correctly? If ROOT doesn't have read/write access, the script will crash. rick -Original Message- From: Jay Paulson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 22, 2001 11:29 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-DB] rest

Re: [PHP] preventing an include() from taking over?

2001-09-19 Thread Rick Gardner
t;); However, if a valid value is passed into $pg, you would just do include($pg); Sorry for the poor explanation, does this help though? Rick On Wednesday, September 19, 2001, at 03:43 PM, LRW wrote: > I've got a complicated little thing going on here. > I have page INDEX.HTM with a

[PHP] Problem with sem_get and semaphores

2001-10-04 Thread Rick Turbeville
is greatly appreciated. Thanks, Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Getting an Email into a PHP/pl script

2001-10-04 Thread rick fletcher
There's a good php POP3 class available here: http://www.thewebmasters.net/php/POP3.phtml That will enable you to log into your mail server and retrieve a mail message from it. > -Original Message- > From: Chris Aitken [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 04, 2001 2:54 PM

Re: [PHP] SimpleXML

2004-08-20 Thread Rick Fletcher
e_node ); $error_node->appendChild( $line_node ); // add the new "error" node to the tree $doc->documentElement->appendChild( $error_node ); // save back to the file $doc->save( "errors.xml" ); ?> -- Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for a "TODO:" parser.

2004-08-26 Thread Rick Fletcher
s you file path/name, line number, the matching line and the 2 that follow it. $ grep -HrnA 2 "TODO:" /path/to/code/root --rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for a "TODO:" parser.

2004-08-26 Thread Rick Fletcher
ot; on the command line which would produce most of the results that Daevid was looking for. More info on using grep can be found here: http://www.google.com/search?&q=man%20grep --rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] extended class question

2004-09-13 Thread Rick Fletcher
, so the assignment you're doing in testing's constructor is assigning "Pizza Delivery" to testing->var1 instead. When you call $test2->get_var1() you're calling the parent's get_var1() method, which prints out the parent's var1 property. (which

Re: [PHP] replace accents

2004-09-14 Thread Rick Fletcher
t; 'DH', 'ð' => 'dh', 'ß' => 'ss', 'Œ' => 'OE', 'œ' => 'oe', 'Æ' => 'AE', 'æ' => 'ae', 'µ' => 'u' ) ); } ?> --rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Rick Fletcher
oxy for free invites: http://isnoop.net/gmailomatic.php --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Rick Fletcher
Greg Donald wrote: On Mon, 20 Sep 2004 12:15:18 -0700, Rick Fletcher <[EMAIL PROTECTED]> wrote: Please stop talking about gmail invites on the list. Anyone who wants one, or who has some to give away, just do a google search for a place to get or give them. Sites like this one (the 3rd resu

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Rick Fletcher
se you haven't had your fill of flaming someone for asking that the list be kept on topic, try one of the half dozen other authors of emails to that effect that have come through the list in the last day or two. Cheers. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Remote grabbed images are blank

2004-10-12 Thread Rick Fletcher
ite/fclose, I'd suggest using the copy() function. This line replaces the 8 lines above: copy( $url, $filename ); --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_FILES Not Populating On File Upload

2004-10-22 Thread Rick Fletcher
"print_r()" it. [snip] upload_tmp_dir=/tmp Check to make sure the server has permission to write to /tmp. I just took away write permission to my upload_tmp_dir and tested this scenario on my machine, and it behaved the way you're describing. --Rick -- PHP General Mailing

Re: [PHP] A MySQL Question

2008-12-07 Thread Rick Pasotto
-Q-L". The > interviewer pronounced it the same as I, but I have heard others say > it differently. My-S-Q-L. Few people realize that 'sequel' was the language used by Ingres for their database and it was different from S-Q-L. -- "You are the only one who can use your a

Re: [PHP] Request to bash/jump/screw my code

2008-12-08 Thread Rick Pasotto
On Mon, Dec 08, 2008 at 09:01:56AM -0800, Ryan S wrote: > > Any advise is also most welcome. 'Advise' is a verb. 'Advice' is a noun. No charge. -- "I didn't understand this at first, but YOUR CONVINCING USE OF CAPITAL LETTERS HAS MADE IT ALL CLEAR

Re: [PHP] Request to bash/jump/screw my code

2008-12-08 Thread Rick Pasotto
osted by: \' OR id != \' On: 2008-12-08 13:24:59 \' OR id != \' -- "The greatest danger to liberty today comes from...expert administrators exclusively concerned with what they regard as the public good." -- Friedrich Hayek Rick Pasot

Re: [PHP] system() Question

2008-12-28 Thread Rick Pasotto
stem ( string $command [, int &$return_var ] ) You have to pass a pointer to the variable, not the variable itself. -- "Paper has a genius for multiplication that cannot be equaled anywhere else in nature." -- Hugh Keenleyside Rick Pasottor...@niof.nethttp://www.niof.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Variable formatting problem using sessions...

2009-01-26 Thread Rick Duval
I'm using an "OnClick" routine to set a session variable before I go to another page. onClick= works fine but I need a variable where "rick" is I've tried onClick= and other variations but it doesn't work. Can anybody tell me what the proper formatting

Re: [PHP] syntax

2009-02-25 Thread Rick Duval
WHERE date >= DATE_SUB(NOW(), INTERVAL 7 DAY) Works just fine for me. R On Tue, Feb 24, 2009 at 4:15 PM, Terion Miller wrote: > Need syntax help when it comes to using a timestamp. > What I'm trying to say in my query WHERE clause is to select records if the > timestamp on the record is in t

RE: [PHP] Re: Browser timeout

2009-03-02 Thread Rick Lim
Try set_time_limit (0); -Original Message- From: Ondrej Kulaty [mailto:kopyto...@gmail.com] Sent: Sunday, March 01, 2009 11:19 PM To: php-general@lists.php.net Subject: [PHP] Re: Browser timeout 40 seconds is not very long execution time for timeout, if you have some loop in the scrip

[PHP] mail() is duplicating

2009-03-13 Thread Rick Pasotto
usually idiotic. He is, more likely, one who likes his country more than the rest of us, and is thus more disturbed than the rest of us when he sees it debauched. He is not a bad citizen turning to crime; he is a good citizen driven to despair." --- H. L. Mencken Rick Pasottor

Re: [PHP] Embedding foreach loops

2009-08-11 Thread Rick Duval
OK, first guys, I'm sorry to have to do this but I can't get off this list!!! I've followed the instructions on a couple of occasions (the ones at the bottom of every email): > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php Been There, done th

Re: [PHP] Include Paths

2009-08-12 Thread Rick Duval
SORRY BUT I CAN'T GET OFF THIS LIST, I CAN'T GET OFF THIS LIST, I CAN'T GET OFF THIS LIST I'VE TRIED. NO RESPONSE. IS THERE AN ADMIN OUT THERE? PLEASE GET ME OFF THIS LIST! This message has been scanned for viruses and dangerous content by A

[PHP] Script sometimes not recognized as php

2009-08-30 Thread Rick Pasotto
pret a php script as php? -- The difficulties which I meet with in order to realize my existence are precisely what awaken and mobilize my activities, my capacities. Rick Pasottor...@niof.nethttp://www.niof.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Which query is more correct?

2009-11-20 Thread Rick Pasotto
explain of bot queries - but can't "read" them. :-) SELECT t1.* FROM registrants t1 LEFT JOIN ToBeRecleared t2 on t1.reg_id = t2.tbrc_reg_id where t2.tbrc_reg_id is NULL -- "Every major horror of history was committed in the name of an altruistic motive." -- Ayn Rand,

[PHP] First time PHP user question

2010-01-06 Thread Rick Dwyer
.txt" so I know it exists and it has the permissions set to 644, so it should be readable. Can someone point out to me what I am doing wrong? Thanks, --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: First time PHP user question

2010-01-07 Thread Rick Dwyer
Thanks Ashley & Nathan. As it turns out, there is more than one "tmp" folder... and I was looking in the wrong one. When I SSH'd in the correct one, I created the missing file and it began to work properly. Thanks for chiming in. --Rick On Jan 7, 2010, at 7:58 AM, As

[PHP] Formatting Decimals

2010-01-10 Thread Rick Dwyer
when I am looking for "$0.11". I tried: $newprice = "$".round(number_format($old_price, 2, ".", ","),2); But no luck. Any help is appreciated. Thanks, --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Formatting Decimals

2010-01-11 Thread Rick Dwyer
well, I am not aware of the logic to configure this accordingly. Thanks, --Rick On Jan 11, 2010, at 10:55 AM, Ryan Sun wrote: $newprice = sprintf("$%.2f", 15.109); On Sun, Jan 10, 2010 at 8:36 PM, Rick Dwyer wrote: Hello List. Probably an easy question, but I am not able t

Re: [PHP] Formatting Decimals

2010-01-11 Thread Rick Dwyer
On Jan 11, 2010, at 4:56 PM, tedd wrote: At 2:55 PM -0500 1/11/10, Rick Dwyer wrote: I have been asked to further modify the value to the nearest half cent. So if the 3rd decimal spot ends in 1 or 2, it gets rounded down to 0 If it ends in 3, 4, 5, 6 it gets rounded to 5. And if it 7, 8

Re: [PHP] Formatting Decimals Further Help

2010-01-22 Thread Rick Dwyer
t returns. How can I force the formatting of my_price to always contain either 2 or 3 decimal points (3 if the original number contains 3 or more decimal points to begin with) Thanks, --Rick On Jan 11, 2010, at 10:39 PM, Adam Richardson wrote: On Mon, Jan 11, 2010 at 7:45 PM, Matt

Re: [PHP] Formatting Decimals Further Help

2010-01-22 Thread Rick Dwyer
when the value of $my_price is 3.8 that is what it returns. How can I force the formatting of my_price to always contain either 2 or 3 decimal points (3 if the original number contains 3 or more decimal points to begin with) Thanks, --Rick Rick: Okay so 3.8 is stored in the database an

Re: [PHP] Formatting Decimals Further Help

2010-01-22 Thread Rick Dwyer
On Jan 22, 2010, at 7:30 PM, Nathan Rixham wrote: Thanks Nathan I'll give it a shot. --Rick your doing the number format before the rounding.. here's a version of the function that should fit the bill: function round_to_half_cent( $value ) { $value *= 100;

Re: [PHP] Formatting Decimals Further Help

2010-01-22 Thread Rick Dwyer
Thank you Nathan, This worked quite well. --Rick On Jan 22, 2010, at 8:10 PM, Nathan Rixham wrote: Rick Dwyer wrote: On Jan 22, 2010, at 7:30 PM, Nathan Rixham wrote: Thanks Nathan I'll give it a shot. np - here's a more condensed version: function round_to_half_ce

[PHP] PHP Syntax Help - Check?

2010-02-24 Thread Rick Dwyer
Hello all. I'm trying to learn PHP on the fly and I have a line of code that contains syntax I can't find documented anywhere: php echo check('element8'); In the above line, can someone tell me what "check" means? Thank you. --Rick -- PHP General Mailing

Re: [PHP] PHP Syntax Help - Check?

2010-02-24 Thread Rick Dwyer
id. SO, I created a hidden field on mypate.php with value="" and on formcheck.php, I added $my_id = $_Post['my_id']; However, when formcheck.php returns me to mypage.php, $my_id is still blank. Very frustrating. Any help determining what I am doing wrong is greatly ap

Re: [PHP] PHP Syntax Help - Check?

2010-02-24 Thread Rick Dwyer
uot; => 'Item Number:', . ); and I added: "my_id" => 'My ID Is:', And this works! So when I am on mypage.php and I enter a value into the form field "my_id" it carries over and repopulates should the form fail validation. But upon initial load

[PHP] Error Message - Need help troubleshooting

2010-03-01 Thread Rick Dwyer
o,status=no"); } As I said above, the error message does not always appear. Is the error due to the fact I am JS & PHP together? Any help in understanding what I am doing wrong is appreciated. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error Message - Need help troubleshooting

2010-03-02 Thread Rick Dwyer
The most annoying thing in making it difficult to to troubleshoot is this message does not always appear. --Rick On Tue, Mar 2, 2010 at 5:46 AM, Rick Dwyer wrote: Hello List. I have some JS code that open a new window with a contact form in it. When the link is clicked to open the

Re: [PHP] Error Message - Need help troubleshooting

2010-03-02 Thread Rick Dwyer
coded value and I never received this error. Only when I made it dynamic did this error appear. Thanks for any help. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error Message - Need help troubleshooting

2010-03-02 Thread Rick Dwyer
link and if so, sets the variable item_id to the value passed in the URL. Again however, this was not returning errors when the link was hardcoded with a value in place of item_id. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error Message - Need help troubleshooting

2010-03-02 Thread Rick Dwyer
On Mar 2, 2010, at 9:45 AM, Joseph Thayne wrote: I do not know if the question has been answered, but how are you opening the session? Are you using session_start() or are you using session_register()? Hi Joseph. It is created via: session_start(); --Rick -- PHP General Mailing List

[PHP] php-cli

2010-03-14 Thread Rick Pasotto
is always wise." -- Alexander Meiklejohn, 1955 Rick Pasottor...@niof.nethttp://www.niof.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php-cli

2010-03-14 Thread Rick Pasotto
On Sun, Mar 14, 2010 at 06:13:24PM +, Ashley Sheridan wrote: > On Sun, 2010-03-14 at 14:15 -0400, Rick Pasotto wrote: > > > Has cli php changed recently? > > > > I've got a php script (script1) that creates a php script (script2) by > > opening a file an

Re: [PHP] php-cli

2010-03-14 Thread Rick Pasotto
On Sun, Mar 14, 2010 at 08:40:51PM +, Ashley Sheridan wrote: > On Sun, 2010-03-14 at 16:41 -0400, Rick Pasotto wrote: > > > On Sun, Mar 14, 2010 at 06:13:24PM +, Ashley Sheridan wrote: > > > On Sun, 2010-03-14 at 14:15 -0400, Rick Pasotto wrote: > > > > &

Re: [PHP] php-cli

2010-03-14 Thread Rick Pasotto
On Mon, Mar 15, 2010 at 01:32:24PM +1300, Dmitry Ruban wrote: > Rick Pasotto wrote: > > > >I repeat: is there more than one way to run a php script from the cli? > > > > On *nix, you can add "#!/usr/bin/php" as first line and make file > executable (chmod +

Re: [PHP] php-cli

2010-03-14 Thread Rick Pasotto
On Mon, Mar 15, 2010 at 02:35:54PM +1300, Dmitry Ruban wrote: > Rick Pasotto wrote: > >On Mon, Mar 15, 2010 at 01:32:24PM +1300, Dmitry Ruban wrote: > >>Rick Pasotto wrote: > >>>I repeat: is there more than one way to run a php script from the cli? > >>>

[PHP] String Parse Help for novice

2010-06-13 Thread Rick Dwyer
5 more subdirectories... they would be dynamically assigned to a variable. Thanks for any help. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] String Parse Help for novice

2010-06-13 Thread Rick Dwyer
OK, I get the following error: Warning: basename() expects parameter 1 to be string, array given in When I use the following: $thepath = parse_url($url); $filename = basename($thepath); Is my variable thepath not automatically string? --Rick On Jun 13, 2010, at 6:23 PM, Ashley

Re: [PHP] String Parse Help for novice

2010-06-13 Thread Rick Dwyer
... if there were 5 more subdirectories... they would be dynamically assigned to a variable. --Rick On Jun 13, 2010, at 6:42 PM, Ashley Sheridan wrote: On Sun, 2010-06-13 at 18:35 -0400, Rick Dwyer wrote: OK, I get the following error: Warning: basename() expects parameter 1 to

[PHP] Replacing Registered Symbol

2010-06-18 Thread Rick Dwyer
str_replace("®","","$mystring"); I tried replacing the symbol in the above syntax with the HTML equivalent but no luck. Any help is appreciated. Thanks, --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie sequel question: how do we search for multiple things on 1 field like:

2010-06-18 Thread Rick Dwyer
SELECT * FROM contacts WHERE state = 'CA' and (name = 'bob' or name = 'sam' or name = 'sara') --Rick On Jun 18, 2010, at 4:30 PM, Dave wrote: SELECT * FROM contacts WHERE state = 'CA' and name = 'bob' or name = 'sam

Re: [PHP] Replacing Registered Symbol

2010-06-18 Thread Rick Dwyer
On Jun 18, 2010, at 4:52 PM, Daniel Brown wrote: Check your database's character encoding. My check: Navicat shows it as Latin1. I believe UTF-8 is what it should be, but I don't want to change it without understanding what impact it will have. Note that, while it won't make a

Re: [PHP] Replacing Registered Symbol

2010-06-18 Thread Rick Dwyer
On Jun 18, 2010, at 5:13 PM, Daniel Brown wrote: Can you hit the database from the command line to see if there's a difference in the output when you take the server and browser out of the equation? No, I'm on Mac OS 10.5 and apparently I don't have a MySQL client installed in terminal

Re: [PHP] Replacing Registered Symbol

2010-06-18 Thread Rick Dwyer
OK, it's definitely an encoding issue... when I change the encoding of my PHP page in BBedit to Western ISO Latin 1, it replaces successfully. --Rick On Jun 18, 2010, at 5:13 PM, Daniel Brown wrote: On Fri, Jun 18, 2010 at 17:07, Rick Dwyer wrote: Navicat shows it as Latin

[PHP] What am I missing here?

2010-06-19 Thread Rick Dwyer
o return anything: $PATH_INFO= substr($_SERVER['REQUEST_URI'],strlen($_SERVER['SCRIPT_NAME']), strlen($_SERVER['REQUEST_URI'])); --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] function within a class function

2010-06-20 Thread Rick Pasotto
T_STRING, expecting T_FUNCTION Is it not in the scope of the class function? -- "Memory is like an orgasm. It's a lot better if you don't have to fake it." -- Seymour Cray (on virtual memory) Rick Pasottor...@niof.nethttp://www.niof.net -- PHP Gener

Re: [PHP] function within a class function

2010-06-20 Thread Rick Pasotto
On Sun, Jun 20, 2010 at 08:47:53PM -0400, Brandon Rampersad wrote: > $this->usort(); > self::usort(); > > On Sun, Jun 20, 2010 at 7:45 PM, Rick Pasotto wrote: > > > Within a class function I have defined another function for use with the > > usort() function. How d

[PHP] not receiving mail from list

2010-06-20 Thread Rick Pasotto
laughs does not believe in what he laughs at, but neither does he hate it. Therefore, laughing at evil means not preparing oneself to combat it, and laughing at good means denying the power through which good is self-propagating. -- Umberto Eco, "The Name of the Rose" Rick Pa

[PHP] Stripping Characters

2010-06-22 Thread Rick Dwyer
item = str_replace("!","_","$mystring"); etc. For every possible character I can think of, is there a way to simply omit any character that is not an alpha character and not a number value from 0 to 9? --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Stripping Characters

2010-06-22 Thread Rick Dwyer
Thanks to everyone who responded. Regarding the myriad of choices, isn't Ashley's, listed below, the one most like to guarantee the cleanest output of just letters and numbers? --Rick On Jun 22, 2010, at 11:44 AM, Ashley Sheridan wrote: On Tue, 2010-06-22 at 11:40 -0400,

Re: [PHP] Stripping Characters

2010-06-22 Thread Rick Dwyer
f you are happy that your input won't go beyond the a-z0-9 range, then it should do what you need. No, actually I'm fairly confident characters outside the 128 range are what are causing me problems now. So I will try Richard's method. Thanks to all. --Rick

Re: [PHP] Stripping Characters

2010-06-22 Thread Rick Dwyer
logic above capture and remove every non alpha numeric character and place a SINGLE hyphen between the non contiguous alpha numeric characters? Thanks for the help on this. --Rick On Jun 22, 2010, at 4:52 PM, Rick Dwyer wrote: On Jun 22, 2010, at 1:41 PM, Ashley Sheridan wrote: It

Re: [PHP] Stripping Characters

2010-06-22 Thread Rick Dwyer
Very good. Thank you. --Rick On Jun 22, 2010, at 8:14 PM, Ashley Sheridan wrote: On Tue, 2010-06-22 at 20:03 -0400, Rick Dwyer wrote: Hello again list. My code for stripping characters is below. I'm hoping to get feedback as to how rock solid it will provide the desired output

Re: [PHP] HTML in emails

2010-07-04 Thread Rick Pasotto
gt; > We follow the standard and send both text and html. The text portion is the *only* portion I read. -- "When dealing with people, remember you are not dealing with creatures of logic, but creatures of emotion." -- Dale Carnegie Rick Pasottor...@niof.nethttp://www.niof.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Pill

2010-07-17 Thread Rick Dwyer
queHousesAppointmentCalendar vs. the PC returns: AntiqueHousesTAppointmentCalendar Is there any reason the PC version of FM converts the TM symbol to a T instead of removing as it should via regex? Thanks. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Pill

2010-07-17 Thread Rick Dwyer
lugin is working as it is removing everthing... but gets tripped on the trade mark symbol. I sent a side by side screen shot of the fields on the mac and pc to your personal address. --Rick On Jul 17, 2010, at 12:34 PM, Ashley Sheridan wrote: On Sat, 2010-07-17 at 12:30 -0400, Rick

Re: [PHP] PHP Pill

2010-07-17 Thread Rick Dwyer
38. This is all happening inside of FileMaker... I will test the PHP code inside a web browser on both plaforms to see what happens. --Rick

Re: [PHP] PHP Pill

2010-07-17 Thread Rick Dwyer
On Jul 17, 2010, at 2:08 PM, Rick Dwyer wrote: On Jul 17, 2010, at 1:29 PM, Ashley Sheridan wrote: Well, I did suggest one thing that could be happening. What do both string lengths come to? On the PC, the length of variable old string is 44 and new string is 39 On the Mac, the

Re: [PHP] PHP Pill

2010-07-17 Thread Rick Dwyer
On Jul 17, 2010, at 2:34 PM, Peter Lind wrote: On 17 July 2010 20:08, Rick Dwyer wrote: On Jul 17, 2010, at 1:29 PM, Ashley Sheridan wrote: Well, I did suggest one thing that could be happening. What do both string lengths come to? On the PC, the length of variable old string is 44

[PHP] Encoding Ampersands

2010-07-28 Thread Rick Dwyer
nswer as simple as: urlencode($myvar) Thanks, --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encoding Ampersands

2010-07-28 Thread Rick Dwyer
So htmlentities() will work for "Green, Red & Blue"? Will it work for "htm?color=blue&number=2&letter="? --Rick On Jul 29, 2010, at 12:23 AM, Josh Kehn wrote: > Rick- > > Probably would use htmlentities() instead. You could also

Re: [PHP] Encoding Ampersands

2010-07-28 Thread Rick Dwyer
Exactly what I was looking for! Thanks Josh. --Rick On Jul 29, 2010, at 12:33 AM, Josh Kehn wrote: > Rick- > > Give it a try! > > $test_one = "Green, Red & Blue"; > $test_two = "htm?color=blue&number=2&letter=a"; > > echo htmlentit

[PHP] Encoding for W3C Validation

2010-08-03 Thread Rick Dwyer
Hello List. In the Alt section of the IMG tag below, the variable $myitem has a value of "Who's There". echo " http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Rick Dwyer
On Aug 3, 2010, at 2:47 PM, Sebastian Ewert wrote: > Rick Dwyer wrote: >> Hello List. >> >> In the Alt section of the IMG tag below, the variable $myitem has a value of >> "Who's There". >> >> echo " > src='/itemimages/$m

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Rick Dwyer
Thanks Ash... this worked. --Rick On Aug 3, 2010, at 3:01 PM, Ashley Sheridan wrote: > On Tue, 2010-08-03 at 15:00 -0400, Rick Dwyer wrote: > >> On Aug 3, 2010, at 2:47 PM, Sebastian Ewert wrote: >> >>> Rick Dwyer wrote: >>>> Hello List. >>>>

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Rick Dwyer
On Aug 3, 2010, at 3:15 PM, Sebastian Ewert wrote: > Ashley Sheridan wrote: >> On Tue, 2010-08-03 at 15:00 -0400, Rick Dwyer wrote: >> >>> On Aug 3, 2010, at 2:47 PM, Sebastian Ewert wrote: >>> >>>> Rick Dwyer wrote: >>>>> Hello Lis

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Rick Dwyer
On Aug 3, 2010, at 3:36 PM, Ashley Sheridan wrote: > On Tue, 2010-08-03 at 15:32 -0400, Rick Dwyer wrote: >> >> On Aug 3, 2010, at 3:15 PM, Sebastian Ewert wrote: >> >> > Ashley Sheridan wrote: >> >> On Tue, 2010-08-03 at 15:00 -0400, Rick Dwyer wrote

[PHP] Quotes vs. Single Quote

2010-08-05 Thread Rick Dwyer
kstat = 'select field from table where fieldid = "'.$field_id.'"'; $result1 = @mysql_query($checkstat,$connection) or die('Couldn\'t execute query'); The focus being here: "'.$field_id.'"'; ('Couldn\'t execute query') Is this correct? Thanks for the help. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    2   3   4   5   6   7   8   9   10   >