Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Rick Dwyer
On Aug 5, 2010, at 10:43 PM, Michael Shadle wrote: > On Thu, Aug 5, 2010 at 7:10 PM, Rick Dwyer wrote: >> Hi List. >> I've mentioned before that I am both just beginning to learn PHP AND I have >> inherited a number of pages that I'm trying to cle

[PHP] strtotime()

2010-08-23 Thread Rick Pasotto
vider running 5.2.13 on BSD and both give '1969-12-31'. What could be causing this? The second command is straight from the manual and the first is clearly implied. So far everything else seems to work as expected. -- "Economics is extremely useful as a form of employment for econom

Re: [PHP] strtotime()

2010-08-23 Thread Rick Pasotto
ecifically including those terms - are > in PHP5 >= 5.3.0 exclusively, for now. I don't believe there are any > plans to backport it to the 5.2 branch. > > Rick, if you want to add this as a "Documentation Problem" to > http://bugs.php.net/, one of us will like

Re: [PHP] strtotime()

2010-08-23 Thread Rick Pasotto
On Mon, Aug 23, 2010 at 11:38:41PM -0400, Daniel P. Brown wrote: > On Mon, Aug 23, 2010 at 22:27, Rick Pasotto wrote: > > > > After I sent my original post the one and only user comment on the > > relative date strings man page was pointed out to me. So, it's there but

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Rick Pasotto
t; > > Thanks, > > Alex > > Alex > > Just add a \n at the end as > > echo '\n'; That will not work. Single quotes means that the '\n' is not interpreted as a new line so you'll see a bunch of '\n' in the output. What I sometimes do is: $out = array(); $out[] = ''; $out[] = ''; $out[] = ' Page Title'; $out[] = ''; $out[] = ''; $out[] = 'This is the page body'; $out[] = ''; $out[] = ''; echo join("\n",$out); -- "Act as if you were already happy and that will tend to make you happy." -- 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 loop to issue sql insert

2010-11-14 Thread Rick Dwyer
p through the above found data, inserting each value as like this: insert into mytable (count, color) values ("578", "green"); insert into mytable (count, color) values ("254", "blue"); ...etc Thanks, --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP loop to issue sql insert

2010-11-14 Thread Rick Dwyer
On Nov 14, 2010, at 8:15 PM, Simon J Welsh wrote: On 15/11/2010, at 12:47 PM, Rick Dwyer wrote: Hello List. I have a sql command that counts, groups and sorts data from a table. I need to insert the results of that sql command into different table. My sql SELECT looks like this

[PHP] Parsing a phrase

2010-12-12 Thread Rick Dwyer
the search phrase to it's own variable so I can place them dynamically into the SQL statement. Thanks, --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Parsing a phrase

2010-12-12 Thread Rick Dwyer
Thanks Nathan. The MySQL Match/Against will probably work well... but I would need to somehow add a "+" to the beginning of each word in the phrase so PHP will still be involved. --Rick On Dec 12, 2010, at 2:51 PM, Nathan Rixham wrote: Rick Dwyer wrote: Hello all. I have a

Re: [PHP] Re: Parsing a phrase

2010-12-12 Thread Rick Dwyer
I have it working now using preg_replace. --Rick On Dec 12, 2010, at 3:50 PM, Rick Dwyer wrote: Thanks Nathan. The MySQL Match/Against will probably work well... but I would need to somehow add a "+" to the beginning of each word in the phrase so PHP will still be involved.

[PHP] Memory_Limit adjustments

2011-01-06 Thread Rick Dwyer
00 Total:21898120 283912 21614208 Thanks for any help. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Insert group by

2012-04-26 Thread Rick Dwyer
ut I would like it to groups plurals with singular words as well. So "hats" are grouped with "hat". Since I'm doing a "group by" column name, I don't know that this can be done. Any help is appreciated. Thanks, --Rick -- PHP General Mailing

[PHP] Array_diff problems

2012-04-27 Thread Rick Dwyer
[Funding_Type] => Other Funding [Amount] => 50 [Frequency_Description] => Other [Other_Funding] => none )) $arraydifferences = (array_diff($myarray1,$myarray2)); I need $arraydifferences to record the differences between the two. 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] Array_diff problems

2012-04-27 Thread Rick Dwyer
Thanks to both for the direction. --Rick On Apr 27, 2012, at 4:13 PM, Jim Giner wrote: > > > Are these arrays nested in an array? In that case the manual says you have > to do the compare differently. On Apr 27, 2012, at 4:19 PM, admin wrote: > > > -Origina

[PHP] Serving an image

2012-10-15 Thread Rick Dwyer
when it is opened? Thanks, --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP to decode AES

2012-10-18 Thread Rick Dwyer
of unprintable characters. I thought maybe it was due to $code not being in a hex format, but after converting to hex and resubmitting, I still unprintable characters. Any info is appreciated. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP to decode AES

2012-10-18 Thread Rick Dwyer
To correct what I posted below, $code that I'm passing to my function is encrypted… not plain text: ch7WvaSrCiHLstNeNUp5SkPfPgw0Z8vrNPJT+9vU7jN/C --Rick On Oct 18, 2012, at 12:06 PM, Rick Dwyer wrote: > Hello all. > > Has anyone ever tried to decode a JAVA AES/CBC encrypt

Re: [PHP] PHP to decode AES

2012-10-18 Thread Rick Dwyer
On Oct 18, 2012, at 2:38 PM, Matijn Woudt wrote: > On Thu, Oct 18, 2012 at 7:19 PM, Rick Dwyer wrote: >> To correct what I posted below, $code that I'm passing to my function is >> encrypted… not plain text: >> >> ch7WvaSrCiHLstNeNUp5SkPfPgw0Z8vrNPJT+9vU7jN/C

Re: [PHP] PHP to decode AES

2012-10-18 Thread Rick Dwyer
On Oct 18, 2012, at 4:39 PM, Adam Richardson wrote: > On Thu, Oct 18, 2012 at 12:06 PM, Rick Dwyer wrote: >> Hello all. >> >> Has anyone ever tried to decode a JAVA AES/CBC encrypted string with PHP >> before? >> >> I found a tutorial online with the

[PHP] Pear Mail - Trap for errors?

2012-11-14 Thread Rick Dwyer
have experience with the scenario below… specifically with determining if the smtp server accepted the mail for delivery? Thanks for any info. --Rick require_once "Mail.php"; $from = "f...@address.com"; $to = "t...@address.com"; $subject = "H

Re: [PHP] Pear Mail - Trap for errors?

2012-11-15 Thread Rick Dwyer
On Nov 14, 2012, at 10:48 PM, tamouse mailing lists wrote: > On Wed, Nov 14, 2012 at 7:19 PM, Rick Dwyer wrote: >> Hello all. >> >> I have some Pear Mail code composing an email and sending it to an external >> smtp server for sending. >> >> The iss

[PHP] Can't connect to MySQL via PHP

2013-01-12 Thread Rick Dwyer
t. Can someone tell me what I am doing wrong here? Appreciate it. Thanks, --Rick $db_name = "mydb"; $vc_host= "db.hostprovider.net"; $vc_user= "user"; $vc_pass= "pass"; $connection = @mysql_

Re: [PHP] Can't connect to MySQL via PHP

2013-01-12 Thread Rick Dwyer
On Jan 12, 2013, at 3:56 PM, "admin" wrote: > > >> -Original Message- >> From: Rick Dwyer [mailto:rpdw...@earthlink.net] >> Sent: Saturday, January 12, 2013 8:26 AM >> To: php-general@lists.php.net >> Subject: [PHP] Can't connect t

Re: [PHP] Can't connect to MySQL via PHP

2013-01-13 Thread Rick Dwyer
. --Rick On Jan 13, 2013, at 12:12 PM, Jim Giner wrote: > Regardless of the choice of interface to mysql, regardless of the completely > harmless but educational tips from Ash, and very deliberately ignoring the > un-helpful and extraneous comments of others, > I'm wondering ho

[PHP] Destroying cookies... not working

2011-04-27 Thread Rick Dwyer
t;Show Cookies" window. So I tried the following: setcookie('mycookie','',time()-3600); unset($_COOKIE['mycookie']); Still no luck. Any help with this is appreciated. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Destroying cookies... not working

2011-04-27 Thread Rick Dwyer
The following did the trick... is there any reason I should not use it? $name="mysession"; setcookie($name); --Rick On Apr 27, 2011, at 7:16 PM, Rick Dwyer wrote: Hello all. I have a logout page that should be destroying cookies when loaded... but it is not. setcookie

[PHP] PHP Rounding Question

2011-05-20 Thread Rick Dwyer
rounded to 0.25 4.28 gets rounded to 4.50 3.71 gets rounded to 3.75 Thanks, --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Displaying variables in text - clarification needed

2011-10-26 Thread Rick Dwyer
from mytable where name=' ".$myvar." ' and display='yes' "; What would explain why the former is suddenly causing problems? The version of PHP is 5.2.3 and from what I can tell, hasn't been updated since February of 2011. Thanks, --Rick --

[PHP] function.session-start in Webmaster Tools

2011-10-30 Thread Rick Dwyer
start Can anyone explain why webmaster tools is seeing pages with links ending in "function.session-start"? I read up on the error itself... sometimes caused by whitespace before the session_start tag... have fixed that. Any info is appreciated. --Rick

Re: [PHP] function.session-start in Webmaster Tools

2011-10-31 Thread Rick Dwyer
this... so I eliminated it. Not sure if that will fix as the page has never displayed an error and Google takes forever to recrawl the whole site. --Rick On Oct 31, 2011, at 5:44 AM, Stuart Dallas wrote: On 30 Oct 2011, at 20:30, Rick Dwyer wrote: Hello all. Not sure just how much

[PHP] PHP and webmaster tools

2011-11-02 Thread Rick Dwyer
Hello list. I am looking for someone who knows PHP and has extensive experience with webmaster tools. I have a series of crawl errors I need resolved but cannot find the bad URL's anywhere on the site. Please contact me off list. Thanks, --Rick -- PHP General Mailing List

[PHP] Writing out errors to a file

2011-11-03 Thread Rick Dwyer
Hello all. How do I get PHP to write out any errors or warnings to a text file that I can review and go through to troubleshoot issues? I don't have access to the ini file... so I was hoping for a simple write to a file at the web root. Thanks, --Rick -- PHP General Mailing List

[PHP] mcrypt_encrypt help needed

2011-11-30 Thread Rick Dwyer
="var1=1&var2=2&var3=3"; The above when decrypted will spit out a string of unprintable characters. Is encrypt/decrypt choking on the "=" sign? I tried: $myval=htmlentities($myval); But it did not work. Any help is appreciated. Thanks, --Rick -- PHP General Mailing

Re: [PHP] mcrypt_encrypt help needed

2011-11-30 Thread Rick Dwyer
et_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND))); } echo decrypt($myval); --Rick On Nov 30, 2011, at 4:14 PM, Adam Richardson wrote: On Wed, Nov 30, 2011 at 3:57 PM, Rick Dwyer wrote: Hello all. I am using the following function to encrypt a string: define('SALT

Re: [PHP] mcrypt_encrypt help needed

2011-11-30 Thread Rick Dwyer
s me problems. Is there alternative encrypting scheme that will not need url encoding (so I can be sure the passed url back from PayPal is ok as is)? --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mcrypt_encrypt help needed

2011-11-30 Thread Rick Dwyer
On Nov 30, 2011, at 7:38 PM, Matijn Woudt wrote: On Thu, Dec 1, 2011 at 1:14 AM, Rick Dwyer wrote: On Nov 30, 2011, at 5:13 PM, Matijn Woudt wrote: Your decrypt function seems fine, and the encrypt/decrypt functions work fine both in the same file for me. Now you say you use $_GET["

[PHP] Preferred Syntax

2011-12-14 Thread Rick Dwyer
t better in BBEdit. Is this just a preference choice or is one method better than the other? --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Preferred Syntax

2011-12-14 Thread Rick Dwyer
tinue to write new code breaking it out. And I too prefer a single quote for PHP and a double for HTML... even though the sample I displayed showed otherwise. Thanks to all who responded. --Rick

[PHP] PHP page source charset

2011-12-19 Thread Rick Dwyer
Hello all. When I set my page charset from iso-8859-1 to utf-8, when I run it through the W3C validator, the validator returns an error that it can't validate the page because of an illegal character not covered by UTF-8. "Sorry, I am unable to validate this document because on line 199

Re: [PHP] PHP page source charset

2011-12-20 Thread Rick Dwyer
On Dec 20, 2011, at 1:32 PM, Jim Lucas wrote: On 12/19/2011 6:44 PM, Rick Dwyer wrote: Hello all. When I set my page charset from iso-8859-1 to utf-8, when I run it through the W3C validator, the validator returns an error that it can't validate the page because of an illegal char

[PHP] Curl problems

2012-01-11 Thread Rick Dwyer
#x27;.$sess_id) ; curl_exec($curl_handle); curl_close($curl_handle); --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Curl problems

2012-01-11 Thread Rick Dwyer
On Jan 11, 2012, at 6:29 PM, Matijn Woudt wrote: On Thu, Jan 12, 2012 at 12:20 AM, Rick Dwyer wrote: Hello all. I use curl to make a call to another page on my site... but it operates erroneously sometimes working... sometimes not. The page it calls creates an email and I can see

[PHP] Form Post to different domain

2012-02-14 Thread Rick Dwyer
Hello all. If I have a form on domain A that uses POST to submit data and I want to submit the form to domain B on an entirely different server, how do I pull the form values (... echo $_POST["myval"] returns nothing) from the form at domain B? --Rick -- PHP General Ma

Re: [PHP] Form Post to different domain

2012-02-14 Thread Rick Dwyer
On Feb 14, 2012, at 1:16 PM, Daniel Brown wrote: On Tue, Feb 14, 2012 at 13:14, Rick Dwyer wrote: Hello all. If I have a form on domain A that uses POST to submit data and I want to submit the form to domain B on an entirely different server, how do I pull the form values (... echo

Re: [PHP] Form Post to different domain

2012-02-14 Thread Rick Dwyer
Thanks Dan. As it turned out the reason for not showing the passed values is that I didn't have "www" in the destination address and the values must have been getting lost when Apache redirected requests without www to the fully formed URL. --Rick On Feb 14, 2012, at

[PHP] Selecting checkboxes based on SQL query

2012-02-23 Thread Rick Dwyer
heckbox. But I don't know how to create a custom function from the above array to provide that logic. I've tried some tutorials, but with no success as the array I am receiving is not like those in the tutorials. Any help would be greatly appreciated. Thank you. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Selecting checkboxes based on SQL query

2012-02-23 Thread Rick Dwyer
0] => Array ( [cb] => 2 ) [1] => Array ( [cb] => 6 ) [2] => Array ( [cb] => 1 ) ) --Rick On Feb 23, 2012, at 2:08 PM, Fatih P. wrote: On Thu, Feb 23, 2012 at 8:49 PM, Rick Dwyer wrote: Hello all. I perform a SQL query like the following: $sql = 'select * f

Re: [PHP] Re: Randomize an array?

2005-03-07 Thread Rick Fletcher
Brian Dunning wrote: On Mar 7, 2005, at 7:40 AM, M. Sokolewicz wrote: array_rand() But that's likely to give me the same element more than once. I want to output the entire array but in a random order, like a shuffled deck of cards. like a shuffled deck of cards? http://www.php.net/shuffle -- PH

Re: [PHP] How from an html/web form I may go to a php script output(of form values)

2005-03-19 Thread Rick Robinson
Try this: Goto 'My Network Places' and set up an ftp connection to whereever you want to save the file. Then in notepad you can access it just 'like' a directory on your computer. On Sat, 19 Mar 2005 16:09:05 + (GMT), Philip Olson <[EMAIL PROTECTED]> wrote: > > > If is easy please answer an

Re: [PHP] WORK WITH PHP FILES REMOTELY WITH NotePad ? YES/NO ?

2005-03-19 Thread Rick Robinson
you can setup an ftp in my network places and use it just like a folder on your computer from notepad On Sat, 19 Mar 2005 20:55:49 -0500, Larry E. Ullman <[EMAIL PROTECTED]> wrote: > > WORK WITH PHP FILES REMOTELY WITH NotePad ? YES/NO ? > > I want to know if when be online I CAN OPEN A FILE FROM

Re: [PHP] PHP 5.0.4 not generating /usr/local/bin/pear ?

2005-04-05 Thread Rick Fletcher
Chances are it's not your fault. The initial release of 5.0.4 was missing the RunTest.php file. The end result of which is that pear isn't installed. It was noticed a day after the initial release, and I believe the 5.0.4 that's on php.net now has been fixed. --Rick mbneto

RE: [PHP] virtual domain own php.ini

2004-04-22 Thread Rick Fletcher
ticular VirtualHost. Check out: http://www.php.net/configuration.changes for more info. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Remove cahracters in string

2004-05-10 Thread Rick Fletcher
; > > > No characters before Philadelphia and after 20004 > > > >Is the character you want to remove ('t') always the same? > > > No. It just an example An accurate example of what you're actually going to be doing would help. For this example I wou

RE: [PHP] Re: Remove cahracters in string

2004-05-10 Thread Rick Fletcher
> >For this example I would have suggested: > > > > > $str = "PhiladelphiaFirstadate05Oct2004"; > > > > $str = trim( $str, "t" ); > > > > print( $str ); // outputs "PhiladelphiaFirstadate05Oct2004" >

RE: [PHP] find out ip address [beginner]

2004-05-24 Thread Rick Fletcher
> hi, i need some code to find out the ip address of a server. > just a simple dns query. > > how do i do that? i'm a beginner, please help. $ip = gethostbyname( "www.php.net" ); http://www.php.net/manual/en/function.gethostbyname.php --Rick -- PHP General Maili

RE: [PHP] How to check for a $_GET without throwing a Notice?

2004-05-26 Thread Rick Fletcher
is not passed: > >> > >>if ($_GET['id']) > >>if ($_GET['id'] != "") > >>if (isset $_GET['id']) > >> > > if (isset( $_GET['id'])) As a general note, isset( $array["key"] ) returns false if $

RE: [PHP] Re: clearing new pages

2004-05-26 Thread Rick Fletcher
o the end results looks like this: > > a.php: > > echo 'hello'; > header('location: b.php'); exit; That actually wouldn't work, because once there's output ("echo") you can't send a header. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Undiscovered Firefox...

2004-06-11 Thread Rick Fletcher
When you pasted that PHP code firefox did a google "I'm feeling lucky" search on it. If you go to google and manually do the I'm feeling lucky search you should end up at the same place. Yet another reason firefox deserves the top of the heap. --Rick > -Original Me

RE: [PHP] Syntax Help, Please

2004-06-15 Thread Rick Fletcher
't even know what I'm looking for! You're looking for a "heredoc." http://www.php.net/manual/en/language.types.string.php#language.types.string .syntax.heredoc Cheers, Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Unit Testing

2004-06-15 Thread Rick Fletcher
ge/PHPUnit Generic PHP Framework (dead?): http://gpfr.sourceforge.net/ SimpleTest looks the most complete and the most active, so that's where I'm leaning. Anyone have any experience with any of these libraries, or have any comments on PHP Unit testing in general? Thanks. Rick -- PHP Genera

RE: [PHP] Unexpected behaviuor with __CLASS__

2004-06-17 Thread Rick Fletcher
e is no way to achieve your desired result without creating an instance of test2 or overriding printClass() in test2. Cheers, Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Anyone have experiences with OCI9 and PHP ??

2004-06-18 Thread Rick Fletcher
some 9i related comments on the php.net oci8 page: http://us4.php.net/manual/en/ref.oci8.php Cheers, Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpinfo problem

2007-08-13 Thread Rick Knight
Thanks Chris, That was the problem. Is this new php5? I've used 3 prior php4 version and didn't have this problem. Thanks, Rick Chris wrote: You probably just have short_open_tags set to Off in your php.ini file. If so, either turn it On, or change the file to be: Chris R

Re: [PHP] phpinfo problem

2007-08-13 Thread Rick Knight
ore reading and testing when do a planned upgrade, I just didn't have the time this time. Thanks, Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Finding next recored in a array

2007-09-16 Thread Rick Pasotto
hing for the key that points to the > value '5'. What if the value '5' occurs more than once? >From the docs: "If needle is found in haystack more than once, the first matching key is returned. To return the keys for all matching values, use array_keys() w

Re: [PHP] Finding next recored in a array

2007-09-16 Thread Rick Pasotto
On Sun, Sep 16, 2007 at 06:04:45PM -0700, Richard Kurth wrote: > Richard Kurth wrote: >> Rick Pasotto wrote: >>> On Sun, Sep 16, 2007 at 07:09:02PM -0400, brian wrote: >>> >>>> Richard Kurth wrote: >>>> >>>>> $Campaign_array

Re: [PHP] explorer

2007-11-10 Thread Rick Pasotto
, Public Use of the Private Interest, 1977 Rick Pasotto[EMAIL PROTECTED]http://www.niof.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] checking for and enforcing https

2008-02-25 Thread Rick Pasotto
What is the best or recomended proceedure for making sure that a page is accessed only via a secure connection? -- "The secret of being miserable is to have the leisure to bother about whether you are happy or not. The cure is occupation." -- George Bernard Shaw Rick Pasotto

Re: [PHP] checking for and enforcing https

2008-02-26 Thread Rick Pasotto
from your losses. That requires intelligence, and makes the difference between a man of sense and a fool." -- Dale Carnegie Rick Pasotto[EMAIL PROTECTED]http://www.niof.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pear

2008-03-01 Thread Rick Pasotto
-- "... most legislators ... as they rarely make any moral distinctions, they are as likely to serve the devil, without intending it, as God." -- Henry David Thoreau Rick Pasotto[EMAIL PROTECTED]http://www.niof.net -- PHP General Mailing List (http://www.php.net/) To

[PHP] Why does the host make a difference?

2008-03-12 Thread Rick Pasotto
-- "There are two tragedies in life. One is to lose your heart's desire. The other is to gain it." -- George Bernard Shaw Rick Pasotto[EMAIL PROTECTED]http://www.niof.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie question about one php script passing control to another

2008-03-20 Thread Rick Pasotto
o preach eternal truths, and to bear witness to everlasting testimony against the giant falsehoods which bewitch and enslave the land." -- Nathaniel Peabody Rogers Rick Pasotto[EMAIL PROTECTED]http://www.niof.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] where to put a function

2008-04-14 Thread Rick Pasotto
bunch of functions that are not used on a given page load? -- "If some peoples pretend that history or geography gives them the right to subjugate other races, nations, or peoples, there can be no peace." -- Ludwig von Mises Rick Pasotto[EMAIL PROTECTED]http://www.ni

[PHP] triming utf8 (?) a string

2007-07-08 Thread Rick Pasotto
ot;Economics is extremely useful as a form of employment for economists." -- John Kenneth Galbraith Rick Pasotto[EMAIL PROTECTED]http://www.niof.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] triming utf8 (?) a string

2007-07-09 Thread Rick Pasotto
On Sun, Jul 08, 2007 at 06:30:54PM -0700, Jim Lucas wrote: > Rick Pasotto wrote: > >I'm using the PEAR Crypt_Blowfish module. When I decrypt the encrypted > >string the result is the original plus some '\ufffd' bytes. How can I > >get rid of those extra bytes? I

Re: [PHP] triming utf8 (?) a string

2007-07-09 Thread Rick Pasotto
On Mon, Jul 09, 2007 at 07:45:10AM -0700, Jim Lucas wrote: > Rick Pasotto wrote: > >On Sun, Jul 08, 2007 at 06:30:54PM -0700, Jim Lucas wrote: > >>Rick Pasotto wrote: > >>>I'm using the PEAR Crypt_Blowfish module. When I decrypt the encrypted > >>

[PHP] preg_replace() help

2007-07-13 Thread Rick Pasotto
re for debugging. $matches contains what I expect but nothing gets replaced and $txt stays the same so it loops forever. What am I doing wrong? -- "Everyone is as God has made him, and oftentimes a great deal worse." -- Miguel De Cervantes Rick Pasotto[EMAIL PROTEC

[PHP] Using PHP command line as a browser

2007-07-18 Thread Rick Lim
Hi there, Are there any good howtos for using php-cli as a progmatic browser. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] string as file

2007-08-09 Thread Rick Pasotto
Does php have a facility similar to python's stringIO? What I'm wanting to do is similar to a mail merge. IOW, I know I can create an include file like: $out = <

Re: [PHP] string as file

2007-08-10 Thread Rick Pasotto
On Fri, Aug 10, 2007 at 02:19:29PM +0100, Stut wrote: > Rick Pasotto wrote: >> On Thu, Aug 09, 2007 at 03:25:27PM -0500, Greg Donald wrote: >>> On 8/9/07, Rick Pasotto <[EMAIL PROTECTED]> wrote: >>>> Does php have a facility similar to python's stringIO? &g

Re: [PHP] string as file

2007-08-10 Thread Rick Pasotto
On Thu, Aug 09, 2007 at 02:39:51PM -0700, Jim Lucas wrote: > Rick Pasotto wrote: >> Does php have a facility similar to python's stringIO? >> What I'm wanting to do is similar to a mail merge. IOW, I know I can >> create an include file like: >> $out = <

Re: [PHP] string as file

2007-08-10 Thread Rick Pasotto
On Thu, Aug 09, 2007 at 03:25:27PM -0500, Greg Donald wrote: > On 8/9/07, Rick Pasotto <[EMAIL PROTECTED]> wrote: > > Does php have a facility similar to python's stringIO? > > > > What I'm wanting to do is similar to a mail merge. IOW, I know I can > >

[PHP] phpinfo problem

2007-08-12 Thread Rick Knight
usual phpinfo output. php -r "phpinfo();" works as does php -i and my php scripts run fine. What would cause phpinfo.php to not work? It's set rw for the apache2 user so I think the permissions are right. Is there a phpinfo enable/disable in the php.ini? Or in ./configure? Than

[PHP] apc and ZendPlatform

2006-06-30 Thread Rick Emery
any insight? Thanks in advance, Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return" -- Leonardo Da Vinci --

Re: [PHP] apc and ZendPlatform

2006-06-30 Thread Rick Emery
Quoting Jochem Maas <[EMAIL PROTECTED]>: Rick Emery wrote: We're running Zend Platform on a server that also has apc installed; we're using apc in the scripts to cache data, and I understand (I think) that it also does bytecode also often referred to as 'opcode' cac

[PHP] Re: undefined function bindtextdomain()

2006-09-13 Thread Rick Olson
It sounds like gettext isn't actually loading. Get the output of phpinfo(), and search for the 'gettext' extension to make sure it's there. If not, you either didn't ./configure correctly, or you aren't telling the php.ini file to load the gettext extension.

[PHP] Stored procs and transactions using Linux/PHP and Windows/MSSQL

2006-09-27 Thread Rick Emery
t method is being used to accomplish it. Thanks in advance, Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return"

Re: [PHP] Stored procs and transactions using Linux/PHP and Windows/MSSQL

2006-09-27 Thread Rick Emery
Quoting Richard Lynch <[EMAIL PROTECTED]>: On Wed, September 27, 2006 7:40 am, Rick Emery wrote: I'm trying to do something like this in the PHP application: begin transaction execute a stored procedure, receiving an identity back if certain conditions are met execute ano

Re: [PHP] Stored procs and transactions using Linux/PHP and Windows/MSSQL

2006-10-11 Thread Rick Emery
Quoting Chris <[EMAIL PROTECTED]>: Rick Emery wrote: Is anyone using PHP5 on Linux to connect to MS SQL Server 2000 on Windows and execute stored procedures with output parameters within a transaction? If so, how? I'm trying to do something like this in the PHP applicat

[PHP] help confirming a PDO_SQLITE bug

2006-10-30 Thread Rick Fletcher
;s broken in the same way? Thanks, Rick Fletcher Reproduce code: --- query( 'CREATE TABLE "things" ( name VARCHAR NOT NULL )'); $dbh->query( 'INSERT INTO things VALUES ( "thing one" )'); foreach( $dbh->query( 'SELECT * FROM thing

Re: [PHP] help confirming a PDO_SQLITE bug

2006-10-30 Thread Rick Fletcher
Thanks to anyone who entertained my previous email, but I've solved my own problem. It looks like the bug is in PDO_SQLITE 1.0.1. I've just compiled from that extension from CVS, changing nothing else, and the bug is gone. --rick Rick Fletcher wrote: I've just upgraded to Fe

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
m somebody else? -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return" -- Leonardo Da Vinci -- PHP General Mailing List

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
something more I can add to the cookie to make the process more secure? Which leads back to my original question; what would keep me from setting a cookie with, say, my manager's username, fooling the PHP application into thinking I'm her? I can't help but feel like I'm

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
ething to think about. I have not tested this though. It is on my task list for next week though. :) Let us know how it goes! Thanks, Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting Jochem Maas <[EMAIL PROTECTED]>: Rick Emery wrote: Okay, I'm following all of this. So I could take, say, the username reversed and encode it, then decode it in the PHP application, and be I wouldn't do it like that instead stick the username in the cookie

Re: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-12 Thread Rick Emery
ng about the user logging on to the network (LDAP or, in my case, Active Directory) and using those credentials for the web applications. Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] is there a guide for pda friendly web pages

2006-03-20 Thread Rick Lim
is there a guide for pda friendly web pages. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parse error: syntax error, unexpected '}'

2006-06-02 Thread Rick Emery
ot;INSERT INTO age (age_label) VALUES ($age)"; $results = mysql_query($insert) or die(mysql_error()); $age++ } There's a semi-colon missing at the end of the last line ($age++). Hope thi shelps, Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with

[PHP] question on getting PDO to output final assembled query from prepared statements?

2006-06-07 Thread Rick Harding
a dump of all SQL queries executed output to the page as it loads. I'm not sure what the best method to extend/wrap PDO calls to do this as I don't see any way in the PDO functionality to do it now. Thanks for the tips/help Rick -- PHP General Mailing List (http://www.php.net/

[PHP] question on getting PDO to output final assembled query from the prepared statements

2006-06-07 Thread Rick Harding
a dump of all SQL queries executed output to the page as it loads. I'm not sure what the best method to extend/wrap PDO calls to do this as I don't see any way in the PDO functionality to do it now. Thanks for the tips/help Rick -- PHP General Mailing List (http://www.php.net/

<    3   4   5   6   7   8   9   10   >