Re: [PHP] Function stored in a database

2002-04-09 Thread Robert Cummings
the $func() call in an if( function_exists( $func ) ) test :) Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED

Re: [PHP] sockets and flush()

2002-04-09 Thread Robert Cummings
. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] skipping a WHILE loop in mysql_fetch_*()

2002-04-09 Thread Robert Cummings
:) Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] sockets and flush()

2002-04-09 Thread Robert Cummings
? Nescape 4.x series doesn't usually draw a table until the close tag is found or the page ends. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail

Re: [PHP] How creat image pointer from JPG/GIF string?

2002-04-09 Thread Robert Cummings
from the database, write to a temporary file, and then use imagecreatefromjpeg() as per usual. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer

[PHP] Getting the URL that triggered a 404.

2002-07-11 Thread Robert Cummings
When the 404 is caught and a PHP script is executed there doesn't appear to be any information in the environment variables indicating what URL triggered the 404. Could someone tell me how to obtain that information? Cheers, Rob. -- .-. | Robert Cummings

Re: [PHP] Getting the URL that triggered a 404.

2002-07-11 Thread Robert Cummings
. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] mysql LIMIT

2002-07-14 Thread Robert Cummings
with a 10 second test query! Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] eregi() problems...

2002-04-15 Thread Robert Cummings
. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] calculating US holidays

2002-04-15 Thread Robert Cummings
://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP

Re: [PHP] peer code review wanted

2002-04-15 Thread Robert Cummings
with this, or at least confirm that I'm not crazy? Well you don't return true anywhere... default return is false which is what happens if the else statement is reached. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP

Re: [PHP] PHTML - anyone know anything about this?

2002-04-16 Thread Robert Cummings
extension. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] format date

2002-04-16 Thread Robert Cummings
]); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .-. | Robert Cummings

Re: [PHP] Re: Screen Scraping using PHP

2002-04-17 Thread Robert Cummings
second that request *heh*! Cheers Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] Re: Screen Scraping using PHP

2002-04-17 Thread Robert Cummings
Pillaging ;) Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] mysql quickie..

2002-04-17 Thread Robert Cummings
... but good enough for useful purposes: mysql_query( 'SELECT last_insert_id()' ); if( ($row = mysql_fetch_assoc()) ) { $id = $row['last_insert_id()']; } Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java

Re: [PHP] Re: Sessions / Serialized Data

2002-04-17 Thread Robert Cummings
need to unserialize into the current session structure... which I think can be found somewhere in the GLOBALS hash. Cheers Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer

Re: [PHP] mysql quickie..

2002-04-17 Thread Robert Cummings
need. Ummm yeah... I was gonna say that too, BUT FORGOT! Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED

Re: [PHP] unsetting object references

2002-04-17 Thread Robert Cummings
it. You will just break the reference. Correct me if I'm wrong *chuckle* Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL

Re: [PHP] unsetting object references

2002-04-17 Thread Robert Cummings
Erik Price wrote: On Wednesday, April 17, 2002, at 03:59 PM, Robert Cummings wrote: Now if what you meant was the following: $objectFoo = new MyObject(); $objectFee = $objectFoo; unset( $objectFoo ); Then the object shouldn't be deleted since $objectFee is still

Re: [PHP] Re: function returning true or errors

2002-04-18 Thread Robert Cummings
but does this sound sloppy? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .-. | Robert

Re: [PHP] Number checker

2002-04-18 Thread Robert Cummings
, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] limit on extended classes

2002-04-18 Thread Robert Cummings
Erik Price wrote: Is there a limit on how many times you can extend a class in PHP 4? Was there ever? Curious to know! Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer

Re: [PHP] Number checker

2002-04-18 Thread Robert Cummings
Robert Cummings wrote: Jeroen Timmers wrote: i want to check if a given string has only numbers for exampl $test = 343124312 TRUE $test1 = q34daf23423 FALSE I'm tempted to say go read about ereg(), but since it's just as long to provide a response... return ereg

Re: [PHP] multiple select list

2002-04-18 Thread Robert Cummings
generate client side script with server side script, arguably you might be able to do the same with client side also... :) Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer

Re: [PHP] limit on extended classes

2002-04-18 Thread Robert Cummings
Erik Price wrote: On Thursday, April 18, 2002, at 03:10 PM, Robert Cummings wrote: Is there a limit on how many times you can extend a class in PHP 4? Was there ever? Curious to know! I could be completely mistaken, since I can't provide a source, but I thought that PHP 3 only

[PHP] Memory Leak... tracking?

2002-04-19 Thread Robert Cummings
. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] PHP compared to JSP

2002-05-06 Thread Robert Cummings
-- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] Anyone use frames and PHP solution?

2002-05-06 Thread Robert Cummings
as the frame source for any given frame, just like if it were an .htm or .html page. My guess is that he's looking for a library that will provide an abstracted layer to delegating the frames. Cheers, Rob. -- .-. | Robert Cummings

Re: [PHP] escaping quotes in forms and redisplaying variables in form fields

2002-05-06 Thread Robert Cummings
. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] Alternating table rows...

2002-05-10 Thread Robert Cummings
to one, so does elseif and is set to zero HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java

Re: [PHP] Alternating table rows...

2002-05-10 Thread Robert Cummings
Robert Cummings wrote: The more generic approach: function getNextColour( $lastIndex, $colourList ) { return $colourList[(++$lastIndex % count( $colourList ))]; U... $lastIndex++, don't want to start on the second entry :) Cheers, Rob. -- .-. | Robert Cummings

Re: [PHP] Alternating Table Rows, Part Deux..

2002-05-10 Thread Robert Cummings
. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] Alternating Table Rows, Part Deux..

2002-05-10 Thread Robert Cummings
man: Doh! Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] Re: Is This Possible? (Database - PHP)

2002-05-13 Thread Robert Cummings
to give you access from another server. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046

Re: [PHP] Re: Is This Possible? (Database - PHP)

2002-05-13 Thread Robert Cummings
Robert Cummings wrote: Justin French wrote: Yup, with local host you're not going to be able to access it from a remote machine (although it's worth asking your host). Actually you can connect to a mySQL database from a remote server. You just need to make sure that permissions

[PHP] String comparison...

2002-05-13 Thread Robert Cummings
. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] uh, oh errors?

2002-05-16 Thread Robert Cummings
: - transmission of content doesn't start until preprocessor completes - slightly more overhead since content must be stored in memory until buffer is flushed. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java

Re: [PHP] refreshing PHP on onClick

2002-05-16 Thread Robert Cummings
to have a demo would you? A visualization would help me a lot. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED

Re: [PHP] refreshing PHP on onClick

2002-05-16 Thread Robert Cummings
understandable :) Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Robert Cummings
it better *heheheh* Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] Can anyone help me save img from URL?

2002-05-16 Thread Robert Cummings
://domain.com/image.gif Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] Can anyone help me save img from URL?

2002-05-16 Thread Robert Cummings
' )) ) { fwrite( fh, $imageData ); } } Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone

Re: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Robert Cummings
, right? [/snip] Can you have the compiled with apache version and the CGI version installed on the same server? Sure can! Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer

Re: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Robert Cummings
never needs to hang the user while it retrieves data from a remote site. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto

Re: [PHP] ob_start() and ob_gzhandler

2002-05-17 Thread Robert Cummings
and Apache on Windoze, PHP is version 4.2.0 I think, Apache is 1.3.something. If you don't manually flush a buffer I believe it auto flushes when the preprocessor completes. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP

Re: [PHP] brain cramp, ouch!

2002-05-17 Thread Robert Cummings
is a resource identofier, which means if you run two queries on the same connection the second result set will overwrite the first. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer

Re: [PHP] brain cramp, ouch!

2002-05-17 Thread Robert Cummings
Robert Cummings wrote: Kelly Meeks wrote: Ok Let's say I'm querying a table, and looping thru the results: $connect=mysql_connect(host,user,pass); $thedb=mysql_select(database1); $thequery=select * from foo; $theresult=mysql_query($thequery) or die (mysql_error()) while

Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-21 Thread Robert Cummings
before failure (Homer Simpson) == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Cheers, Rob. -- .-. | Robert Cummings

Re: [PHP] read from flatfile and convert

2002-05-22 Thread Robert Cummings
- either by hand (small file) or by writing a script to do it for you. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL

Re: [PHP] question about executing a bash shell script...

2002-08-16 Thread Robert Cummings
the following: php myPhpScript.php The following will probably give you the desired results... php -qC myPhpScript.php This prevents PHP from switching out of the current directory. HTH, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer

Re: [PHP] question about executing a bash shell script...

2002-08-16 Thread Robert Cummings
execute the script, nothing in $bashresult Kelly - Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Kelly Meeks [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, August 16, 2002 4:44 PM Subject: Re: [PHP] question about executing a bash shell script... Kelly Meeks

Re: [PHP] secure files acess

2002-08-16 Thread Robert Cummings
, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] secure files acess

2002-08-16 Thread Robert Cummings
Robert Cummings wrote: David Buerer wrote: I have a bunch of files which need to be kept secure. I need to allow a user access to them them based on a criteria which I can programmatically determine. My question, is how can I allow the user to download or view only one file on my

Re: [PHP] secure files acess

2002-08-16 Thread Robert Cummings
David Buerer wrote: Thankyou Robert, THat is a great and easy way to do it. What if I need to initiate a download to the user? If you set the mime type properly the browser will automatically make it a download versus displaying it. Cheers, Rob. -- .-. | Robert Cummings

Re: [PHP] resizing an image

2002-08-29 Thread Robert Cummings
not done anything with PHP image processing functions. *sheesh* read the first comment at: http://www.php.net/manual/en/function.imagecopyresized.php -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer

Re: [PHP] Writing Files

2002-08-30 Thread Robert Cummings
ownership. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Robert Cummings
data. Is this a bug and how do you fix it?? i've never seen this problem in ns, at least not with the stuff i've designed in the past. do you have a page/form somewhere we could look at? -- .-. | Robert Cummings

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Robert Cummings
have Netscape 4.x installed on the same machine as my Netscape 6 cause anything funny to bleed over, you think? Perhaps its a shared library thing.. hmmm... Well thanks for the advice... regards, dan -- .-. | Robert Cummings

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Robert Cummings
reload either like the other post suggest with the CTRL-r Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED

Re: [PHP] LOC counters

2002-09-04 Thread Robert Cummings
'\''^?//'\'' | grep -c '\''.*'\''' Then from my linux command line I just type countcode. And yes I know I could have come up with something better than */*/*/..., but like I said QUICK AND DIRTY :) Cheers, Rob. -- .-. | Robert Cummings

Re: [PHP] multiple keywords in search boxes

2002-09-04 Thread Robert Cummings
).% AND ; } // // Trim the extraneous AND. // $qString = substr( $qString, whatever goes here to trim AND ); // // Perform query. // } -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer

Re: [PHP] replacing \n with br

2002-09-06 Thread Robert Cummings
! Part 1.2Type: application/pgp-signature -- .-. | Robert Cummings

Re: [PHP] replacing \n with br

2002-09-06 Thread Robert Cummings
-- ...and then Robert Cummings said... % % David T-G wrote: % % I've never had problems with doing: % % $foo = I don't like\nnewlines; % % $foo = ereg_replace( \n, 'br /', $foo ); I'm afraid I do. Given my code $fin = stripslashes(${base64_encode($k

Re: [PHP] replacing \n with br

2002-09-06 Thread Robert Cummings
David T-G wrote: Rob, et al -- ...and then Robert Cummings said... % % Actually on second thought... and I don't know why I went with the *grin* % crowd in the first place... I do the following: % % $foo = I don't like\nnewlines; % % $foo = str_replace( \n, 'br /', $foo

Re: [PHP] replacing \n with br

2002-09-06 Thread Robert Cummings
the input for you. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

[PHP] Question about character acces, [] vs {}

2002-09-06 Thread Robert Cummings
Some time ago i wrote some code where I used the now deprecated form of accessing characters in a string $string[x]... Would there be much of a performance gain for me to go take the time to update the code to the newer $string{x} style? Cheers, Rob. -- .-. | Robert Cummings

Re: [PHP] Re: Question about character acces, [] vs {}

2002-09-06 Thread Robert Cummings
the string in curly braces. Note: For backwards compatibility, you can still use the array-braces. However, this syntax is deprecated as of PHP 4. [block quote ends] Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP

Re: [PHP] Date(), adjusted for one year

2002-09-18 Thread Robert Cummings
. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] Date(), adjusted for one year

2002-09-18 Thread Robert Cummings
Jacob Miller wrote: With leap year adjustment... strtotime(+1 year, timestamp); will return a unix timestamp. Nice, don't think I've ever used that function :) Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer

Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Robert Cummings
://secure.web.com/index.html do I still have access to the same session variables? -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED

Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Robert Cummings
:) Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] Variables Case Sensitivity??

2002-09-19 Thread Robert Cummings
. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] Variables Case Sensitivity??

2002-09-19 Thread Robert Cummings
) { $lowerVars[strtolower( $key )] = $value; } Voila! HTH, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone

Re: [PHP] Is php even right for this design?

2002-09-20 Thread Robert Cummings
sense to do it this way? Best would be a PHP extension since it wouldn't need to be constantly reloaded :) Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer

Re: [PHP] Is php even right for this design?

2002-09-20 Thread Robert Cummings
your entries from your DB then loop through the result set with the same filtering mechanism. HTH, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer

Re: [PHP] Re: Cronjob

2002-09-25 Thread Robert Cummings
']['argc']; $argv = $GLOBALS['HTTP_SERVER_VARS']['argv']; HTH, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED

Re: [PHP] Re: Cronjob

2002-09-25 Thread Robert Cummings
, visit: http://www.php.net/unsub.php -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109

Re: [PHP] Re: Cronjob

2002-09-25 Thread Robert Cummings
']; $argv = $GLOBALS['HTTP_SERVER_VARS']['argv']; $test = $argv[1]; print $test; $demo = This Works; print $demo; ? Execute: php foo.php blah Output: X-Powered-By: PHP/4.1.2 Content-type: text/html blahThis Works Cheers, Rob. -- .-. | Robert Cummings

Re: [PHP] help with apache2.0.40 and php 4.2.3

2002-09-25 Thread Robert Cummings
, which I always find myself deleting. It might be you have it being included twice into your httpd.conf file. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer

Re: [PHP] coding standards - control structures

2002-09-27 Thread Robert Cummings
way for sure as I stand before God (if you believe in that) is as follows: if( $foo ) { // Do something. } else { // Do something else. } Of course you're welcome to disagree ;) Cheers, Rob. -- .-. | Robert Cummings

Re: [PHP] echo VS print : that's a cool behavior !

2007-10-23 Thread Robert Cummings
On Tue, 2007-10-23 at 17:34 +0200, Julien Pauli wrote: ?php echo coucou . print('v ' . print('u ' . print('toctoc ') . 'hihi ') ) . 'tata ' . print('zozo ' . print('pupu ')); That's not cool, that's a mess. Why doe sit happen the way it does? First off, print() is a function so nesting

Re: [PHP] echo VS print : that's a cool behavior !

2007-10-23 Thread Robert Cummings
On Tue, 2007-10-23 at 11:54 -0400, Andrew Ballard wrote: On 10/23/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-10-23 at 17:34 +0200, Julien Pauli wrote: ?php echo coucou . print('v ' . print('u ' . print('toctoc ') . 'hihi ') ) . 'tata ' . print('zozo ' . print('pupu

Re: [PHP] PHP Oracle Ebook Request.

2007-10-23 Thread Robert Cummings
On Tue, 2007-10-23 at 20:34 +0100, Stut wrote: Dare Williams wrote: Dear Pals, Please I need a book called : Oracle Database 10g Express Edition PHP Web Programming (Osborne Oracle Press Series): Books: by Michael McLaughlin. Please if anyone with the E-Book Version of

Re: [PHP] output-buffer and memory-issue

2007-10-24 Thread Robert Cummings
On Wed, 2007-10-24 at 21:07 +, Werner Schneider wrote: Hi, I got a strange problem: Using php 4.4.x, I capture the whole output for a webpage into the output-buffer by using ob_start and ob_get_clean, because I got to make some replacements in the html-code before sending the page to

Re: [PHP] CURL + Frames, fopen + remote sessions

2007-10-26 Thread Robert Cummings
On Fri, 2007-10-26 at 17:43 +0200, Jochem Maas wrote: jenix wrote: Hi, When using CURL to access a page with frames I get the Your browser does not appear to support frames error. How can get around this? Is there special header info that can be added? try spoofing the USer Agent

Re: [PHP] unable to find running php script

2007-10-26 Thread Robert Cummings
On Fri, 2007-10-26 at 18:20 +0200, Jochem Maas wrote: ah yes ... Dan said it better :) but then he is a bigger nerd than me ... he has a truck which is more dalek than pickup :-P *hehe* My favourite Dalek line... Dalek: Cyrbermen are only good for one thing! Cyberman: What is that?

Re: [PHP] unable to find running php script

2007-10-26 Thread Robert Cummings
On Fri, 2007-10-26 at 13:22 -0400, Daniel Brown wrote: On 10/26/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-10-26 at 18:20 +0200, Jochem Maas wrote: ah yes ... Dan said it better :) but then he is a bigger nerd than me ... he has a truck which is more dalek than pickup :-P

Re: [PHP] sessions (version 5.1 to 5.2 )

2007-10-28 Thread Robert Cummings
On Mon, 2007-10-29 at 11:15 +0800, Fritz Kuhlman wrote: Dear PHP gurus, I moved to PHP from asp around version 4.something. When i tried using sessions on my site, they just wouldn't work. No error messages, just wouldn't work. There was a session ID generated, but if i tried

Re: [PHP] moving over to php 5

2007-10-29 Thread Robert Cummings
On Mon, 2007-10-29 at 08:52 +, Hulf wrote: Hi, It is about time I made the jump to 5, however the only thing that is holding me back is the problem with hosts. How many hosts still run php 4 and am I going to have to spend hours and hours persuading them to upgrade before I can run

Re: [PHP] moving over to php 5

2007-10-29 Thread Robert Cummings
On Mon, 2007-10-29 at 09:42 -0500, Philip Thompson wrote: I think the real question is will listservs (like this one) stop supporting people running applications on PHP4 in 98 days ( http://gophp5.org/)? I'm not saying we should outcast *those people* who haven't transitioned, but will

Re: [PHP] moving over to php 5

2007-10-30 Thread Robert Cummings
On Tue, 2007-10-30 at 09:10 -0500, Larry Garfield wrote: On Tuesday 30 October 2007, Per Jessen wrote: Larry Garfield wrote: Here's a bigger question: When will people stop using mysql_ as their example API, when PDO is more standard in PHP 5 and more secure, and mysqli is available as

Re: [PHP] FW: Reaching the PHP mailing list owners

2007-10-31 Thread Robert Cummings
On Wed, 2007-10-31 at 06:53 -0700, John Moss wrote: I have no idea what I am doing - and I hate to think this message is actually going to be read by everyone in a general mailing list. But - since the attempt to reach a human 'owner' didn't work and the general-help doesn't yield results I

Re: [PHP] FW: Reaching the PHP mailing list owners

2007-10-31 Thread Robert Cummings
On Wed, 2007-10-31 at 06:53 -0700, John Moss wrote: I find a mailing list related to php - I think. Seems right - lists.php.net. I 'subscribe' (I think) to a 'General user list' which suggests This is a really high volume general list for PHP users. I think this is what I want - but I have no

Re: [PHP] while-do +array

2007-10-31 Thread Robert Cummings
On Wed, 2007-10-31 at 13:02 +0200, Steven Macintyre wrote: Hiya, I have the following code ... which only seems to result in one item ... which is incorrect ... can anyone spot my problem? Your subject line says while-do + array, following code contains a do-while loop. We can't debug the

RE: [PHP] while-do +array

2007-10-31 Thread Robert Cummings
On Wed, 2007-10-31 at 16:20 +0200, Steven Macintyre wrote: Your subject line says while-do + array, following code contains a do-while loop. Apologies :) We can't debug the script very well without a sample input since we don't know how many times the loop should run. To debug

Re: [PHP] RE: Reaching the PHP mailing list owners

2007-10-31 Thread Robert Cummings
On Wed, 2007-10-31 at 07:29 -0700, John Moss wrote: Thank you, Daniel Brown, Richard Buskirk, Robert Cummings, David Giragosian ~ and anyone else who may have jumped in to my message within the last minute or two, trying to help me. Below is the message I was writing to ask someone (who I

Re: [PHP] FW: Reaching the PHP mailing list owners

2007-10-31 Thread Robert Cummings
On Wed, 2007-10-31 at 11:19 -0400, Daniel Brown wrote: On 10/31/07, Jason Pruim [EMAIL PROTECTED] wrote: On Oct 31, 2007, at 10:07 AM, Daniel Brown wrote: On 10/31/07, Robert Cummings [EMAIL PROTECTED] wrote: The traffic here isn't overwhelming, maybe 10 to 50 emails a day

Re: [PHP] PHP Won't Access Files Outside Web Root (Leopard/MacOS X 10.5)

2007-11-01 Thread Robert Cummings
On Thu, 2007-11-01 at 09:06 -0400, Rahul Sitaram Johari wrote: Ave, Somehow my PHP won't access, won't even acknowledge the existence of a file that is outside the /Library/WebServer/Documents folder. This was never a a problem before in any Mac version - it just started with Leopard. I

Re: [PHP] Re: Function variables in classes

2007-11-01 Thread Robert Cummings
On Thu, 2007-11-01 at 16:10 +0100, Jochem Maas wrote: I've completely lost track of the state of the exact OO rules in any given version of php5) Haha, you too eh!? BTW, I finally bothered to download PHP 5.2.4 last night and checked it out. This is the first time I've seen a speed improvement

  1   2   3   4   5   6   7   8   9   10   >