Re: [PHP] Re: fsockopen on ssl://

2008-05-19 Thread bob pilly
Hi Apache is serving php correctly and i can see this from a and everything else works fine just this one call to fsockopen using ssl://. Is there some sort of extra configuration required for apache to be able to do this that i am not aware of? Bob - Original Message From: Ólafur

[PHP] Re: fsockopen on ssl://

2008-05-18 Thread bob pilly
Hi Manuel Thanks for the reply. I have tested it with a timeout of 20 seconds and the same thing occurs. It works as before from the command line and not form within apache.. Any more ideas? Cheers Bob - Original Message From: Manuel Lemos <[EMAIL PROTECTED]> To: bob pilly &

[PHP] fsockopen on ssl://

2008-05-13 Thread bob pilly
, this problem is driving me nuts!! Cheers Bob __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

[PHP] fsockopen on ssl://

2008-05-13 Thread bob pilly
appreciated, this problem is driving me nuts!! Cheers Bob __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

Re: [PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-14 Thread Bob Sabiston
Zlib compression is what's used in Gzip. Just try it ;) $uncompressed = gzuncompress(file_get_contents("binaryfile.ext")); -Casey On Dec 14, 2007, at 9:45 AM, Bob Sabiston wrote: That isn't going to work. Gzip is used for entire files. Do you understand what I&#

Re: [PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-14 Thread Bob Sabiston
bles having 'fuzzy' types. Thanks, Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-14 Thread Bob Sabiston
That isn't going to work. Gzip is used for entire files. Do you understand what I'm trying to do, or am I misunderstanding you? Bob On Dec 13, 2007, at 11:13 PM, Casey wrote: On Dec 13, 2007 7:44 AM, Bob Sabiston <[EMAIL PROTECTED]> wrote: On Dec 12, 2007, at 7:20

Re: [PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-13 Thread Bob Sabiston
e has used it the other way as well? Thanks for any info. Bob On Dec 12, 2007, at 1:03 PM, Bob Sabiston <[EMAIL PROTECTED]> wrote: On Dec 12, 2007, at 2:31 PM, Richard Lynch wrote: On Wed, December 12, 2007 11:28 am, Bob Sabiston wrote: I'm trying to read some zlib-compress

Re: [PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-12 Thread Bob Sabiston
On Dec 12, 2007, at 2:31 PM, Richard Lynch wrote: On Wed, December 12, 2007 11:28 am, Bob Sabiston wrote: I'm trying to read some zlib-compressed data from a regular binary file. When I try to attach the zlib compression filter, I am getting an error: something about how the prebuf

[PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-12 Thread Bob Sabiston
in. I looked and found a way to turn off buffering for stream *writes*, but not for stream reads. Can anyone help with ideas for why this isn't working? I posted questions to comp.lang.php and received no response. Thanks Bob -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] round()

2007-10-10 Thread Bob Chatman
Why arent you just using sprintf? $var = 5.555; printf("%.2f", $var); # output : 5.56 printf("%.1f", $var); # output : 5.6 printf("%.0f", $var); # output : 6 On 10/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > While we're entertaining algorithms, has anyone else noticed that > > > ph

Re: [PHP] file_get_contents and https

2007-05-31 Thread Bob Hanson
both libeay32.dll ssleay32.dll are on the Windows path, which in my case includes the path to my PHP directory, so I just put them there. Excellent! Many thanks. Bob Hanson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_get_contents and https

2007-05-31 Thread Bob Hanson
llation issues there might be. When I look on the web I see lots of discussion, but it's pretty hard to figure out how much of it is currently applicable and how much of it is ancient history. Bob Jay Blanchard wrote: [snip] I am new to PHP; using Apache 2.2 and PHP 5/Windows. I'd

[PHP] file_get_contents and https

2007-05-31 Thread Bob Hanson
hink I have the following correct: 1) I have php_openssl.dll present and indicated as an extension in the ext directory 2) libeay32.dll is on the Windows path What more do I need to do? Thanks, Bob Hanson -- Robert M. Hanson Professor of Chemistry St. Olaf College Northfield, MN http://www.st

[PHP] newbie question

2007-03-19 Thread bob pilly
Hi all Can anyone tell me what '&' means before a var? e.g function(&$var) Thanks for any help in advance ___ What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the qui

[PHP] phpPgAdmin - prior version available?

2007-03-18 Thread Bob Hartung
Hi all, I have been struggling with phpPgAdmin 4.1 - login failures. There does not yet seem to be a fix. Where can I find a prior version for FC6 - rpm, tar.gz etc. Thanks, Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] operational musings

2007-02-28 Thread Bob Dusek
Wow. That pretty much sums it up! I'll probably give the standard sockets another try. I'll report back on my problems. > -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 28, 2007 4:32 PM > To: Bob Dusek >

RE: [PHP] operational musings

2007-02-28 Thread Bob Dusek
munication? > -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 28, 2007 4:11 PM > To: Bob Dusek > Cc: Robert Cummings; Jay Blanchard; php-general@lists.php.net > Subject: RE: [PHP] operational musings > > Perhaps try j

RE: [PHP] operational musings

2007-02-27 Thread Bob Dusek
>From my experience, database replication from the central server to each of the stores won't scale... We use a timed (every X minutes), home-brewed protocol that does something similar to a synchronization. And, we don't synchronize the entire database at central server (as there are parts of t

RE: [PHP] operational musings

2007-02-27 Thread Bob Dusek
The company I work for is currently doing this... using PHP in a retail environment, with a Linux server in every store, talking to the POS controller via a socket, storing data in a database (postgres), and processing retail transactions in real-time. And, sending results of those transactions to

[PHP] multiple sockets seems problematic

2007-02-22 Thread Bob Dusek
fter calling socket_close) when I try to bind to the same address/port as I did the first time around, socket_bind fails and tells me "Address already in use"... (and I try it repeatedly, sleeping 5 seconds between attempts, and it never becomes available). Any help or pointers would

RE: [PHP] time

2007-01-30 Thread Bob Dusek
If you have the timezone offset stored for each contact, you can compare that to the timezone offset of the server and do the math on a timestamp value. // return value format: hhmm // -0500 for US/EST, -5 hours relative to GMT $timeZoneOfServer = date("O"); > -Original Message- > Fro

RE: [PHP] busy message queues

2007-01-29 Thread Bob Dusek
ge_queue stuff. Any predictions on what we might see for performance without upgrading the PG version? Thanks for your feedback, thus far. It's good to hear what others think about this, as I'm pretty uncertain which direction to concentrate in. I've already got some stuff done

RE: [PHP] busy message queues

2007-01-29 Thread Bob Dusek
> > So, I'm leaning toward local sockets. I'm implementing > this right now, > > so I can test the performance against the Postgres > implementation. I > > will also implement and test other solutions if anyone can persuade > > me... ie. if you feel the msg_get_queue() stuff is worth the > > c

[PHP] busy message queues

2007-01-29 Thread Bob Dusek
#x27;m implementing this right now, so I can test the performance against the Postgres implementation. I will also implement and test other solutions if anyone can persuade me... ie. if you feel the msg_get_queue() stuff is worth the compile/installation effort. Any help will be appreciated. Th

[PHP] stream_socket_pair

2007-01-26 Thread Bob Dusek
r array in proc_open? Thanks, Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail reply-path

2006-08-16 Thread bob pilly
Hi Richard this is exactly what i was after and works perfectly! Cheers Bob Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, August 15, 2006 6:54 am, bob pilly wrote: > Im trying to send emails using the mail() function but im having a > problem. Because the box that the scripts

[PHP] Mail reply-path

2006-08-15 Thread bob pilly
and if so can you give advice or point me to some relevant docs on it? I have tried to change the Replay-path: part of the header with code but it seems to default to the above. Thanks in advance for any help!! Cheers Bob - Try the all-new Yahoo

[PHP] Dynamically assigning var namesi

2006-08-01 Thread bob pilly
!! Thanks in advance for any help or advice. Cheers Bob - All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine

[PHP] multiple BCC addresses with mail() function

2006-05-22 Thread bob pilly
this problem before any advice would be greatly appreciated! thanks for any advice in advance! Cheers Bob Send instant messages to your online friends http://uk.messenger.yahoo.com

[PHP] Variable within a Variable

2006-04-09 Thread bob pilly
expect that to print: Dear Mr Test we would like to.. but it doesnt it prints out Dear $title $name we would like to.. can someone point out where i am going wrong? Is this actually possible and if so im picking ive go the syntax wrong? Thanks for a

[PHP] Var within a var

2006-04-09 Thread bob pilly
print: Dear Mr Test we would like to.. but it doesnt it prints out Dear $title $name we would like to.. can someone point out where i am going wrong? Thanks for any help in advance! Cheers Bob - Yahoo! Photos – NEW, now of

[PHP] Re: [PHP-WIN] Wanna Join me for an open source PHP Project?

2005-11-26 Thread Bob Stout
ed in such an application that was open source. However, I have no interest in Outlook Express. If this ever progresses to the point of an MS Outlook version, I could get interested in it. -- Bob Stout <[EMAIL PROTECTED]> - The rules of life: "Either lead, follow, or get out of the wa

Re: [PHP] error reporting php-5.0.4-10.4 on FC4 - RESOLVED!!

2005-10-23 Thread Bob Hartung
e me a shove in the right direction. Tnx Bob Jasper Bryant-Greene wrote: On Sun, 2005-10-23 at 23:01 -0400, Bob Hartung wrote: Jasper & Derek phpinfo() says: configuration file path /etc/php.ini PHP Core DirectiveLocal Value Master Value display_er

Re: [PHP] error reporting php-5.0.4-10.4 on FC4

2005-10-23 Thread Bob Hartung
not sure where to turn at this point, except to get some sleep and attach this problem again tomorrow night when I return home from work. Thanks! Update tomorrow Bob Jasper Bryant-Greene wrote: On Sun, 2005-10-23 at 21:31 -0400, Bob Hartung wrote: Jasper If if make a file containing only

Re: [PHP] error reporting php-5.0.4-10.4 on FC4

2005-10-23 Thread Bob Hartung
Jasper If if make a file containing only I get what I expected. If I make a file containing I get NO output or errors in the browser window. If I select "view source" it returns: Eh? Anyone with any other ideas Tnx Bob Hartung Jasper Bryant-Greene w

[PHP] error reporting php-5.0.4-10.4 on FC4

2005-10-23 Thread Bob Hartung
y nor is anything written to the log file. Any suggestions? TIA Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] OOP Newbie - why does this not work?

2005-10-20 Thread Bob Hartung
Hi all, I'm trying to get started in OOP with PHP. I have the following short code snipped. I'f I comment out the 'class Test' definition and the following references to it, it prints This is outside the php code block and Start defining the class here: If I do not comment

[PHP] debugging dl()

2005-09-07 Thread Bob Pilly
compiled with module API=20041030, debug=0, thread-safety=0 These options need to match Has anyone seen this before? If not does anyone know how i can trace this further? Thanks in advance for any help!! Cheers Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] PHP noobie

2005-07-29 Thread Bob Stia
On Friday 29 July 2005 02:55, Jochem Maas wrote: > Bob Stia wrote: > > Hello PHP list > > > > First allow me to apologize if this is the wrong place for this and > > direct me to the proper place. (be nice now!) > > this list is really for people who are programm

[PHP] PHP noobie

2005-07-28 Thread Bob Stia
o install Apache? (The site is hosted by a commercial remote ISP as a courtesy/good will thing and I think they support PHP but do not wish to place any burden on them to support the site) Do I really need a data base? Please be patient and point the old guy in the right direction. Thanks, Bob S.

[PHP] Use of + with arrays

2005-07-06 Thread Bob Stearns
In a note on 31-Jul-2002 added to the unshift function the writer stated that array2=arrray1+array2 was equivalent to unshift(arrayw,list(array1)). My php seems to take strong objection to this [Fatal error: Unsupported operand types in /var/www/html/GEM/etFlush/embryo_newFrozen.php on line 41

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-30 Thread Bob Winter
is missing the '\}' that is in my test. -- Bob Brian V Bonini wrote: Hmmm, this simply does not work for me. Maybe something with my version of php or ssh.. I'm at a loss.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-29 Thread Bob Winter
HAT THE $cmd STRING ECHOED BY THE COMMAND LINE SHELL IS DIFFERENT FROM THE PHP SCRIPT'S ECHO Hope there is something here that helps you. -- Bob [EMAIL PROTECTED] ~ 6]# /var/www/html/test_script01.php ## With scp -v flag Executing: program /usr/local/bin/ssh host bmw.com, user root, c

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-28 Thread Bob Winter
his solves your problem. --Bob Brian V Bonini wrote: if($confirm == "s") { //if staging suck the files down to temp local dir first $cmd = "scp [EMAIL PROTECTED]:$directory/{{$files}} $tmp_dir/."; echo $cmd . "\n\n"; exec($cmd, $

[PHP] Re: Files

2005-06-28 Thread Bob Winter
mple works successfully on my system. --Bob \n"; // Notify the user on screen if the send was succesfull if(mail($email, $subject, $message, $headers)) { print "Mail sent successfully to $email"; } else { print

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-27 Thread Bob Winter
Brian, Can you post more of the script? --Bob Brian V Bonini wrote: On Mon, 27 Jun 2005, [ISO-8859-1] Andr? Medeiros wrote: $cmd = 'scp ' . $user . '@stagingcws.' . $tld . ':' . $directory/{' . $files . '} ' . $tmp_dir . '/';

Re: [PHP] Correcting contractions

2005-06-24 Thread Bob Winter
only need to invoke the function once. This will speed things up considerably. On that note you have a couple of bugs... "its" is a valid word for possession (its woodwork is exquisite). 'Ill" is also valid (Ill beset by fortune). Cheers, Rob. -- .

[PHP] Re: newline and pregreplace

2005-06-24 Thread Bob Winter
Bob Winter wrote: Dotan Cohen wrote: I've got a line like this: $str=preg_replace( "-regex here-", '\n\1', $str); Which has one of two problems: If I leave the single quotes around the second argument, then it returns as \n and not a newline. If I change the singl

[PHP] Re: newline and pregreplace

2005-06-24 Thread Bob Winter
s, then the info from the regex is not inserted in place of the \1. What is one to do in these situations? Dotan http://lyricslist.com/lyrics/artist_albums/273/jackson_michael.php Michael Jachson Lyrics Dotan, Try escaping the newline in your example: $str=preg_replace( "-regex here-&qu

Re: [PHP] Problem with arrays

2005-06-24 Thread Bob Winter
n array $first_array.\n'; // or alternatively to add a new sub-array to $first_array // $first_array[$key] = array($value); } } ?> --Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: array_search() with preg_match?

2005-06-23 Thread Bob Winter
{ if(substr_count($value1, $search)) { $result[] = $key1; } } // $result is an array containing all the keys for the values that contained the search phrase print_r($result); // or convert to string print implode(' ', $result); // or however else to need to handle the results --Bo

Re: [PHP] Re: Allowed memory size of

2005-06-21 Thread Bob Winter
David, I don't believe this to be a bug. In order to process the script, PHP needs to use additional memory resources. My guess is that while the original 69Mb file is loaded, the new encrypted file also needs to exist in memory. Glad you were able to find a solution. --Bob david f

Re: [PHP] Re: Allowed memory size of

2005-06-21 Thread Bob Winter
serted the debugging statements. Does the script work with smaller files? Can you the memory_limit to something very high, over 220 Mb, and/or test your script with smaller files to find the threshold where the Fatal error occurs? -- Bob david forums wrote: Bob I try to run your test script. So

[PHP] Re: Allowed memory size of

2005-06-20 Thread Bob Winter
imit There are a variety of limitations and restrictions to the commands noted above, be sure to read the documentation. -- Bob david forums wrote: Hello I got the following message. PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 69505726 bytes) I read

[PHP] Re: rename

2005-06-18 Thread Bob Winter
Look at http://us2.php.net/manual/en/function.rename.php Mister Jack wrote: Hi, I would like to know precisely what rename do in case of error. any link for that ? I do a : @rename($old, $new), what happens if I run out of space ? is the rename just an alias for C function library ? thanks --

[PHP] Re: How to print variable name and contents

2005-06-17 Thread Bob Winter
Bob Winter wrote: nntp.charter.net wrote: I want to write a trace procedure and call it with variable names, and I am having trouble with the syntax. My goal is to have a procedure that will echo lines such as: Trace: $myvar="the contents of $myvar My attempt that didn't

[PHP] Re: How to print variable name and contents

2005-06-17 Thread Bob Winter
n superglobal variables eval("\$t = \${$q};");// assign value of orginal $m to $t echo ("TRACE: $m = $t"); // output my_trace('$my_var'); // note the use of single quotes here my_trace('$_ENV["COMPUTERNAME"]

[PHP] PHP exec function.

2005-06-10 Thread Bob Snowdon
=exec($execstring); I am sure this is something very simple! But obviously beyond me. Bob Snowdon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP and COM+ prob

2005-05-17 Thread bob pilly
ssible does anyone know of any good docs on using com with php? Thanks in advance for any help!! Cheers Bob ___ Yahoo! Messenger - want a free and easy way to contact your friends online? http://uk.mes

[PHP] php and com

2005-05-17 Thread Bob Pilly
C:\\Program Files\\Apache Group\\Apache2\\htdocs\\testcom.php(3): com->com('Word.applicatio...')\n#1 {main}\n thrown in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\testcom.php on line 3 | Has anyone seen this error before or know what it means? Or if possible does anyone know o

Re: [PHP] Replacement Question.

2005-04-20 Thread Bob Palma
Thanks. I took a look, and you were right. It was creating another entry in the array at the end, so I used an if statement checking the value of [1] and [2] in $array_of_fields. Thanks for all the great help Bob Palma [EMAIL PROTECTED] Duncan Hill wrote: On Wednesday 20 April 2005 16:01

Re: [PHP] Replacement Question.

2005-04-20 Thread Bob Palma
Wow! Thanks.. That works great. Just one small hitch though. After it prints all of the data properly, it adds one more '$date' on the end which gets printed as '12/31/69 7:00:pm'. Is there a way to do all groups - 1 ? Bob Palma [EMAIL PROTECTED] Duncan Hill wrote: O

[PHP] Replacement Question.

2005-04-20 Thread Bob Palma
quot;,date("m/j/y g:i a",$worklogt4),$worklogt4); -- $worklogt1 is the value of the field from the database and the first two replacements are actually for different characters, even though they look the same. Can anyone help me with this? I've been beating myself up for almost

[PHP] POST method to php page from php page

2005-04-08 Thread Bob Pilly
ation would be greatly appreciated. Cheers Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] 5.0.3 will not compile on solaris x86 v9 - zend_strtod fails to compile

2005-03-15 Thread Bob Tadlock
5.0.3 will not compile on solaris x86 v9 - zend_strtod fails to compile 5.0.2 compiles and runs fine PHP 5.0.3 solaris x86 version 9 gcc 3.3.2 (gnu) make 3.80 (gnu) flex 2.5.4 (gnu) bison 1.875 (gnu) m4 1.4.2 (gnu) autoconf 2.59 (gnu) automake 1.9 (gnu) perl 5.6.1 gzip 1.3.3 (gnu) tar 1.14 (gnu)

[PHP] Spam and this list

2005-03-01 Thread bob
Well, this time it took just 11 days to get my first bit of spam from this mailing list. I am most surprised that a list like this would be so open to Spiders and other creepie crawlies. Other PHP mailing lists are fine, why can't the original and best one be one of them ? Alexis -- PHP Genera

[PHP] Crontab for Windows

2005-02-17 Thread bob
Hi, I am trying to schedule the running of some PHP scripts on my Win2K PC at home. On my live server I use Linux, so am fully familiar with Crontab. I am not that familiar with running scripts using the scheduler in Win2K though. So far what I have is: C:\php\php.exe -q c:\path\to\php\file.php

[PHP] Dynamic Class Name Assignments

2004-11-24 Thread bob pilly
ray("100","101","102","104"); $numnames=count($names); for($i=0;$i<$numnames;$i++){ *** below is the syntax im missing *** $case.$names[$i] = new Test($names[$i]); } var_dump($case100); ?> Than

[PHP] old guy newbie needs some help

2004-07-17 Thread Bob Imperial
While I realize this is elementary to most of you, I am just getting started with php, moving from coldfusion :) I am currently reading through the chapter on sessions and running into a little issue that after making many changes to my php.ini file, I continue to get the following errors while run

[PHP] Page Loading Problem

2004-07-09 Thread Bob
Hello all I bring up a browser and try and go to my index.php for the first time and all I receive back in the broswer is a blank page. This is the test from the view source Then, once you hit refresh, the page displays properly and keeps displaying properly until I close the browser a

RE: [PHP] Password encyption

2004-07-02 Thread Bob Eldred
Well that's a whole different thing, then. -Original Message- From: Anzak Wolf [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 1:40 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Password encyption I do run my own server but I know for a fact that even if I hard

RE: [PHP] Password encyption

2004-07-02 Thread Bob Eldred
So host your own server. That way nobody but you has access to it. Then you could store the password wherever you want, unecrypted, and it wouldn't matter. If you're running an application that's that security conscious, you shouldn't be using a shared server anyway. -Original Message- F

Re: [PHP] Protecting database passwords

2004-07-01 Thread Bob Hockney
ed by the site admin. -Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Protecting database passwords

2004-06-29 Thread Bob Hockney
ce I store the password needs to be readable by PHP, and therefore isn't very secure. I have restricted the rights of the database user, but I'm wondering how others have dealt with this, or maybe I'm completely missing the point. -Bob -- PHP General Mailing List (http://www

RE: [PHP] Re: hellllppp my php kills the browser

2004-06-19 Thread Bob Eldred
However, those newbies who stick around will learn how to research and find most of the answers themselves. Not a bad result, if you ask me. Education often sounds "Holier than Thou", but there's usually a good reason for it. Bob -Original Message- From: Michael Lauzon

Re: [PHP] internal server error

2004-06-18 Thread Bob Lockie
On 06/18/04 14:24 Marek Kilimajer spoke: What installation instructions did you follow. Did you install cgi or module version? I fixed it, I had the test file in the cgi-bin directory. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] internal server error

2004-06-18 Thread Bob Lockie
I'm getting an 'Internal Server Error' when I run: http://216.15.235.3/cgi-bin/testphp.php I've added AddType directives, this is not my first install of PHP but it is my first install with the latest versions. Is anybody using the php-install mailing list? I got tons of SPAM when I posted there.

Re: [PHP] update count

2004-06-16 Thread Bob Lockie
What is the best way to only do an update if it going to update only one row? You don't say what database you're using. The general way is to use a unique key in the WHERE clause. UPDATE tablename SET foo=1 WHERE id=123 MySQL also lets you use a LIMIT clause that will either limit the number o

[PHP] update count

2004-06-16 Thread Bob Lockie
What is the best way to only do an update if it going to update only one row? I want to protect my code so that it won't accidentally update more than one row. I can do a select first but there must be an easier way. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] Re: Header target?

2004-06-14 Thread Bob Lockie
On 06/12/04 19:05 Kim Steinhaug spoke: Steve Douville had a long answer, the short answer : no Ok, thanks. I want to avoid relying on Javascript anyways. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Header target?

2004-06-11 Thread Bob Lockie
Is it possible to specify the target frame in a "Header" call? I have a form that submits in one frame and I want it to redirect to another frame in some cases. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] testing array_search

2004-06-11 Thread Bob Lockie
On 06/11/04 17:17 Curt Zirzow spoke: * Thus wrote Bob Lockie ([EMAIL PROTECTED]): I'm having a very hard time testing array_search. $j = array_search( $i, $errList ); echo "j=" . $j; if (($j != false) && ($j >= 0)) { mixed array_search ( mixed needle, array haystack

[PHP] testing array_search

2004-06-11 Thread Bob Lockie
I'm having a very hard time testing array_search. $j = array_search( $i, $errList ); echo "j=" . $j; if (($j != false) && ($j >= 0)) { -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: passing a function as a parameter

2004-06-11 Thread Bob Lockie
Take a look at call_user_func(): http://de3.php.net/manual/en/function.call-user-func.php Thanks, I have it working. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] passing a function as a parameter

2004-06-11 Thread Bob Lockie
I want to pass a function as a parameter and execute it in another function. A callback. :-) For example: function a() { echo "a"; } function b( $func ) { func(); echo "b"; } The output of "b( a )" will be "ab". -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

[PHP] other browsers

2004-06-07 Thread Bob Lockie
I've got this psuedo code that works in the Mozilla browser but does not work in IE or Opera or Konqueror. The input type isn't passing a request name or value and I have a few buttons and I use the name passed to determine with button was pressed. The PHP related thing Mozilla passes: Request v

Re: [PHP] Class Syntax Help or Globals issue

2004-06-04 Thread Bob Pillford
Thanks very much! Marek Kilimajer wrote: bob pilly wrote: Hi All I am new to classes and are trying to work out whether they will make my coding experience easier. I have written the following test class which is trying to take three variables from a mssql query and add them as variables in a new

[PHP] Class Syntax Help or Globals issue

2004-06-03 Thread bob pilly
Hi All I am new to classes and are trying to work out whether they will make my coding experience easier. I have written the following test class which is trying to take three variables from a mssql query and add them as variables in a new class. This isnt working as i keep getting an error that s

Re: [PHP] session variables

2004-06-01 Thread Bob Lockie
On 06/01/04 22:12 John Nichel spoke: Bob Lockie wrote: $_SESSION['new_name'] = $_REQUEST['new_name']; Is not global. I printed out the value locally but it is not made into a session variable. Did you start the session before you set $_SESSION['new_name']? That was

[PHP] session variables

2004-06-01 Thread Bob Lockie
$_SESSION['new_name'] = $_REQUEST['new_name']; Is not global. I printed out the value locally but it is not made into a session variable. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to verify that data is in a blob?

2004-06-01 Thread Bob Lockie
On 05/31/04 15:44 [EMAIL PROTECTED] spoke: I want to verify that there is data (doesn't matter whether it's valid data or not) inside a MySQL blob using a PHP function. How do I do this? Thanks!! What characteristic defines a blob? -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] shortcut if

2004-05-31 Thread Bob Lockie
No syntax error but this always returns 's'. $add = $delete_count > 0 ? "s" : "x"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: duplicating a row

2004-05-31 Thread Bob Lockie
On 05/31/04 11:42 Craig spoke: http://dev.mysql.com/doc/mysql/en/INSERT_SELECT.html "Bob Lockie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I want to duplicate a row (back it up - copy to a table with the same schema) regardless of the table schema. This in My

[PHP] duplicating a row

2004-05-31 Thread Bob Lockie
I want to duplicate a row (back it up - copy to a table with the same schema) regardless of the table schema. This in MySQL but I need a solution that can be made easily portable to other databases. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP] multiple checkbox help

2004-05-31 Thread Bob Lockie
Thanks to all those who responded. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] multiple checkbox help

2004-05-31 Thread Bob Lockie
I tried this HTML: $_REQUEST['deleteID'] === the last box checked. so I did a google search and changed my HTML to: Now the code: for ($i = 0; $i < count($_REQUEST['deleteID']); $i++){ echo "deleting '" . $value . "'"; } has the right count but how do I get the values out? -- PHP General Ma

[PHP] interesting

2004-05-25 Thread Bob Lockie
echo "\"" . $search_for_list[$i][0] . "\"" works but echo "\"$search_for_list[$i][0]\"" prints "Array[0]. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] other eyes

2004-05-24 Thread Bob Lockie
Thanks to all who responded. Doh to me. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] other eyes

2004-05-24 Thread Bob Lockie
I can't see it. Maybe other eyes will help. :-) Why does search_username.1 show the data that was posted with the form but search_username.2 is empty? $search_usename = $_REQUEST[search_username]; echo "search_username.1='$_REQUEST[search_username]'"; echo "search_username

<    1   2   3   4   5   6   7   >