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

Re: [PHP] printer_draw_text

2002-08-17 Thread robert mischke
inter_draw_text($handle, "+", 100, $y); robert > When i put my text in a string, and try to print the string > it will print nice squares, but it will not print multiple lines. > > I have read the manual, but no help there. > > This works for one line: > $ha

Re: [PHP] Re: Upgraded to PHP 4.2.2 and completely lost all GET and POST variables

2002-08-17 Thread robert mischke
turned on > for that application. (I think a variant of PHP directive in > Apache also achieves this effect. But not sure though). > [EMAIL PROTECTED] Please correct me, but AFAIK turn register_globals ON with ini_set() is to late, you have to use .htaccess: php_value "registe

AW: [PHP] array's

2002-08-17 Thread robert mischke
RelicType[$this->i]." : ".$this->RelicRealm[$this- i].":"$this-RelicOwner[$this->i].""; echo and print functions obviously don't get along with class variable in quotes. greetings robert > > function SetName($name) { > $this->

[PHP] variables not behaving as expected

2002-08-19 Thread ROBERT MCPEAK
We've recently upgraded to PHP version 4.2.2 running on SuSE 7.2 with the 2.4.4 kernel and I'm seeing variables behave in a way I didn't expect. With the prior configuration http post variables were freely available on the receiving page, but now, for some reason, they aren't. This code: forea

AW: [PHP] Can i send post variable thur header?

2002-08-20 Thread robert mischke
pclasse.org a lot of dealing with http. robert > -Ursprüngliche Nachricht- > Von: NoWhErEMan [mailto:[EMAIL PROTECTED]] > Gesendet: Dienstag, 20. August 2002 07:54 > An: [EMAIL PROTECTED] > Betreff: [PHP] Can i send post variable thur header? > > > Hi all, > &

[PHP] flaking out on foreach

2002-08-27 Thread ROBERT MCPEAK
Why is this code: "; } ?> Rendering only "6". That's it. Just "6". What am I missing here? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] resizing an image

2002-08-29 Thread ROBERT MCPEAK
Could someone show me some php that proportionally resizes an image? I'm collecting user sumbitted images and need them all to be within certain size constraints. What's the simplest, best way to do this? Sample code would be a huge help, as I'm a newbie and have not done anything with PHP imag

Re: [PHP] resizing an image

2002-08-29 Thread Robert Cummings
ROBERT MCPEAK wrote: > > Could someone show me some php that proportionally resizes an image? > I'm collecting user sumbitted images and need them all to be within > certain size constraints. What's the simplest, best way to do this? > > Sample code would be a hu

Re: [PHP] resizing an image

2002-08-29 Thread ROBERT MCPEAK
Sheesh, I will. Thanks. >>> Robert Cummings <[EMAIL PROTECTED]> 08/29/02 09:47AM >>> ROBERT MCPEAK wrote: > > Could someone show me some php that proportionally resizes an image? > I'm collecting user sumbitted images and need them all to be within &

RE: [PHP] Print page

2002-08-29 Thread Collins, Robert
yes, but that is a browser function not php goto file -> page setup -> then remove the header and footer data Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Fax: (504) 248-3866 Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -

Re: [PHP] Writing Files

2002-08-30 Thread Robert Cummings
es written to the directory inherit group ownership. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTE

AW: [PHP] Excel sheets

2002-09-01 Thread robert mischke
hi take a look at http://phpclasses.org as far as I remember there are some excel classe robert > > Hey, > sorry if this has already been answered somewhere, but I cant > find a clear answer to this question. > > I have multiple xls files with 4 sheets a piece. I need to

AW: [PHP] Q:Making an 'expired event' for sessions

2002-09-01 Thread robert mischke
hi in php.ini you can control behavior of sessions, for example (take a look for you self;) -> session.gc_maxlifetime = 1440, in script you you may use ini_set for "dynamic control" hope this is the right direction .. robert > Von: Mehran Ziadloo [mailto:[EMAIL PROTECTED]]

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Robert Cummings
27;t see the code that's >generated when i send post 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

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Robert Cummings
; Also, would the fact that I 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... > &

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Robert Cummings
Mozilla *grin*. Of course it didn't reload either like the other post suggest with the CTRL-r Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--:

Re: [PHP] LOC counters

2002-09-04 Thread Robert Cummings
Todd Pasley wrote: > > Hi, > > Firstly, please resist the opportunity to flame > > I'm looking for a PHP (among other things) Line Of Code counter. Has anyone > used any descent ones? I was thinking of writing one myself, but, if there > are others available, I might as well save the time.

[PHP] php mysql error

2002-09-04 Thread ROBERT MCPEAK
Our box recently went down and after reconfiguring it we're left with a semi-operation mySQL. One error I'm getting is this: mysql> select region from clip_art where region is not null and released = 'yes' group by region; ERROR 1: Can't create/write to file '/tmp/#sqld0e_76_1.MYI' (Errcode: 13)

Re: [PHP] multiple keywords in search boxes

2002-09-04 Thread Robert Cummings
s $word ) { $qString .= "zz LIKE '%".addSlashes( $word )."% AND "; } // // Trim the extraneous AND. // $qString = substr( $qString, whatever goes here to trim AND ); // // Perform query. // } -- .-. | Robert Cum

Re: [PHP] replacing \n with

2002-09-06 Thread Robert Cummings
; :-D > -- > David T-G * It's easier to fight for one's principles > (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie > (work) [EMAIL PROTECTED] > http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! > >

Re: [PHP] replacing \n with

2002-09-06 Thread Robert Cummings
eers, Rob. David T-G wrote: > > Rob, et al -- > > ...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(

Re: [PHP] replacing \n with

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

Re: [PHP] replacing \n with

2002-09-06 Thread Robert Cummings
close($newfile); > ... > > Although I've solved the problem for now, the next version will probably > end the data with a @@ and so I can just read another line if I don't > have a closer. Ignore me if this has already crossed your mind... but why not use XML? You forma

[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
after 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 | :-`. | Webdeploye

[PHP] random array sort

2002-09-10 Thread ROBERT MCPEAK
Could someone show me a quick and simple way to randomly sort array elements? I can't seem to pinpoint the correct parameters in the docs. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] random array sort -- array() selection quant??

2002-09-10 Thread ROBERT MCPEAK
* 1000); $input = $the_exploded_ids; $rand_keys = array_rand ($the_exploded_ids, 2); $this_key=$input[$rand_keys[0]]; $this_key=trim($this_key); >>> "ROBERT MCPEAK" <[EMAIL PROTECTED]> 09/10/02 10:22AM >>> Could someone show me a quick and simple way to randomly so

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

2002-09-18 Thread Robert Cummings
time() + 60 * 60 * 24 * 365 ); HTH, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTE

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

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

Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Robert Cummings
d then I call the page https://secure.web.com/index.html > <https://secure.web.com/index.html> do I still have access to the same > session variables? -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java P

Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Robert Cummings
y use a shared database :) Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone

[PHP] Cannot Redeclare Function

2002-09-19 Thread Robert Miller
error: Cannot redeclare compname() in ../tbl2array.inc on line 35 Function Table 2 Array: -- Robert J. Miller Internet Support Specialist Department of Government Services and Lands P.O. Box 8700, St. John's, NF., A1B-4J6 (709) 729-4520 (phone) (709)

[PHP] usort will not take variable

2002-09-19 Thread Robert Miller
result, "compdesc"); } elseif ($sortby == "filename") { usort ($result, "compfile"); } What Works in Theory: function mysort ($a, $b, $c) { return strcmp ($a["$c"], $b["$c"]); } usort ($result, "$mysort, $s

Re: [PHP] Variables Case Sensitivity??

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

Re: [PHP] Variables Case Sensitivity??

2002-09-19 Thread Robert Cummings
h( $_POST as $key => $value ) { $lowerVars[strtolower( $key )] = &$value; } Voila! HTH, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--:

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

2002-09-20 Thread Robert Cummings
. > > I've never done this myself. It's just a suggestion -- does it make > 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 | :---

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

2002-09-20 Thread Robert Cummings
n php. Sounds like a DB issue. Select your entries from your DB then loop through the result set with the same filtering mechanism. HTH, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer -

[PHP] replacing literal " in string

2002-09-25 Thread ROBERT MCPEAK
Could somebody help me with the correct syntax for an ereg_replace to replace literal occurences of the quote character in a string. I can't seem to get it right. In other words, I have a form input variable -- that literally may look like this: "some_value", and I want it to literally look lik

[PHP] replacing literal " in string

2002-09-25 Thread ROBERT MCPEAK
Could somebody help me with the correct syntax for an ereg_replace to replace literal occurences of the quote character in a string. I can't seem to get it right. In other words, I have a form input variable -- that literally may look like this: "some_value", and I want it to literally look lik

Re: [PHP] Re: Cronjob

2002-09-25 Thread Robert Cummings
ng two arguments, both $argc and $argv are > > blank. Is this a php.ini setting I need to change or > > somethign? > > I'm think you're all forgetting about register_globals being off by default these days... The following may help:

Re: [PHP] Re: Cronjob

2002-09-25 Thread Robert Cummings
ow on* > > -J > > Jason Young wrote: > > Correction.. isn't it $_SERVER and not $SERVER > > > > Jason Young wrote: > > > >> Daren, > >> > >> This post from Robert explains why you're having trouble :) > >> > >&

Re: [PHP] Re: Cronjob

2002-09-25 Thread Robert Cummings
oo.php blah Output: X-Powered-By: PHP/4.1.2 Content-type: text/html blahThis Works Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | M

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

2002-09-25 Thread Robert Cummings
inserts it's own module include line, which I always find myself deleting. It might be you have it being included twice into your httpd.conf file. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdepl

[PHP] php mysql fulltext search min word length = 3

2002-09-27 Thread ROBERT MCPEAK
Much to my dismay, I've learned that the mySQL minimum indexable/searchable word length is 3 characters. This is a real problem for me. Anybody know a workaround, or how to tweak mySQL to allow for matches of words 3 chars or less. >From the online mysql docs (http://www.mysql.com/doc/en/Fullte

Re: [PHP] coding standards - control structures

2002-09-27 Thread Robert Cummings
) > -Kevin The best 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. -- .-

Re: [PHP] Quick question.

2002-10-01 Thread Robert Cummings
my/data.txt' ) ); if( ($fp = fopen( '/tmp/myFile.txt', 'w+' )) !== false ) { fputs( $fp, $rContents ); fclose( $fp ); } -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :

Re: [PHP] Quick question.

2002-10-01 Thread Robert Cummings
nberra ACT > www.canberra-wx.com > - > Member of: > Australian Severe Weather Association. > www.severeweather.asn.au > - > This email is virus free. > Scanned

Re: [PHP] Quick question.

2002-10-01 Thread Robert Cummings
!== false ) > > > > But, where do i put the file name and directory to write? > > > > -- > > Cheers > > - > > Simon Angell > > Canberra ACT > > www.canberra-wx.com > >

Re: [PHP] Re: submitting a form to multiple places!!!

2002-10-01 Thread Robert Cummings
Henry wrote: > > No takers? > > Is this such a difficult problem? Sounds like greek to me... and I don't speak greek :l Cheers, Rob. -- .-----. | Robert Cummings | :-`. | Webdeployer - Chief PHP an

Re: [PHP] Date Arithmetic

2002-10-01 Thread Robert Cummings
ng you are not at the beginning > of the month. Or in the first six days. There's a few ways to do this. The following may work (I didn't test). $query = "SELECT " ."* " ."FROM " .

Re: [PHP] Quick question.

2002-10-02 Thread Robert Cummings
Simon Angell wrote: > > Thanks for that Robert *it works*, now i have 1 more problem, after > uploading to my web server i get this... > Warning: fopen("wtest.txt", "wb+") - Permission denied in > /home/canberra/public_html/bomonster/canberra.php on line 6 >

Re: [PHP] Quick question.

2002-10-02 Thread Robert Cummings
Member of: > Australian Severe Weather Association. > www.severeweather.asn.au > - > This email is virus free. > Scanned before leaving my mailbox > using Norton Antivirus 2002 for Win2k > Scanned with the latest definition Fi

Re: [PHP] no errors ?

2002-10-02 Thread Robert Cummings
http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--

Re: [PHP] Copying array segments

2002-10-04 Thread Robert Cummings
; Is there a special function for this? > > None needed. You just did it. *giggle* That's +1 for having a zen for the obvious ;) Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdep

Re: [PHP] Chat with php

2002-10-07 Thread Robert Cummings
; wanted. But I didn't know how to do it differently. Is there another > way? I heard something about flush()? > Kind regards, -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :-

Re: [PHP] String Help PLEASE!

2002-10-08 Thread Robert Cummings
27;, 1001223003 ); echo $foo."\n"; $fee = substr( $foo, 0, 4 ).'-' .substr( $foo, 4, 2 ).'-' .substr( $foo, 6, 4 ); echo $fee."\n"; Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeplo

Re: [PHP] parts of sentences

2002-10-09 Thread Robert Cummings
I do that? $y = ereg_replace( '^[[:space:]]*[[:alpha:]]+[[:space:]]+', '', $x ); Unless you had more exotice needs. There may even be a word chop function since I didn't bother to look :) Cheers, Rob. -- .-. | Robert Cummings | :---

[PHP] Redhat 8.0 / php-cvs - /usr/lib/httpd/build/instdso.sh: No such file or directory

2002-10-10 Thread Robert Mena
Hi, I've reinstalled my devel machine with RedHat 8.0. After a cvs update of php I've decided to recompile and install since the mod-php (which I did not install) from RedHat is a little outdated :) I've removed the config.cache, make clean and make. The compilation was ok, but while trying to

Re: [PHP] class variable shared by all objects

2002-10-16 Thread Robert Cummings
] ) ? $values[$name] : null; } function getClassVar( $name ) { return $this->getSetClassVar( $name ); } function setClassVar( $name, $value ) { return $this->getSetClassVar( $name ); } HTH, Rob. -- .-. | Robert Cummings | :-`.

Re: [PHP] class variable shared by all objects

2002-10-16 Thread Robert Cummings
Robert Cummings wrote: > > christophe barbe wrote: > > > > I guess the answer is obvious but can't find it in the manual. > > > > Is it possible to have a variable in a class that is shared by all > > instances. I thought 'static' would do it b

Re: [PHP] HTML filtering

2002-10-25 Thread Robert Cummings
esn't get any simpler... string strip_tags ( string str [, string allowable_tags]) Beers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail

[PHP] Validating E-mail Accounts

2002-10-31 Thread Robert Miller
Is it possible, or (even better) do you have a sample script that can take a user-submitted e-mail address, contact the host, and verify that the account exists? Thanks, Rob

Re: [PHP] search

2002-11-01 Thread Robert Cummings
hough I'm sure it > doesn't match. > > Thanks for your answers. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- .-. | Robert Cummings | :-`--

[PHP] randomly select file

2002-11-04 Thread ROBERT MCPEAK
Could someone suggest some php for randomly selecting a file from a directory and then displaying the contents of the file? Thanks in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] randomly select file

2002-11-05 Thread ROBERT MCPEAK
Thanks guys & gals, for clueing me in. >>> "rija" <[EMAIL PROTECTED]> 11/04/02 05:31PM >>> Why don't you cope with opendir / readdir () and array_rand () I tried it and I look ok- But, I wonder if there are noble another way to do it? - Original

[PHP] session cache limiter

2002-11-05 Thread ROBERT MCPEAK
Could somebody shed some light on this error message I'm getting. Could you point me at the appropriate docs or clue me in somehow. PHP Warning: Cannot send session cache limiter - headers already sent (output started at /usr/local/httpd/htdocs/mmc/results.php:79) in /usr/local/httpd/htdocs/m

[PHP] publishing php > mysql website on cd-rom

2002-11-06 Thread ROBERT MCPEAK
My organization has a need to publish some of our web content on a CD-ROM. I'm in search of suggestions on how to publish our dynamic content (php/mysql templates) in some sort of "runtime" configuration that would let users browse the site from cd. What's involved with this? Is there such a t

Re: [PHP] publishing php > mysql website on cd-rom

2002-11-06 Thread ROBERT MCPEAK
-- Maxim Maletsky [EMAIL PROTECTED] "ROBERT MCPEAK" <[EMAIL PROTECTED]> wrote... : > My organization has a need to publish some of our web content on a CD-ROM. I'm in >search of suggestions on how to publish our dynamic content (php/mysql templates) in >some sort of &

Re: [PHP] sprintf

2002-11-07 Thread Robert Cummings
I've tried escaping the meaning of the % in the > example above and still > get errors > > Thanks > TYler > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- .-. | Robert Cummings |

[PHP] dynamic variable headache

2002-11-08 Thread ROBERT MCPEAK
My newbie brain is maxed out on this, and I'm sure one of you more experience guys can quickly straighten me out. I've got a variable: $_mmdd = a_date_value; Later, I've got four variables; $foo= _; $bar=; $bleh=mm; $doh=dd; I want to stick these variables together on the fly to get

[PHP] newbie: help with date arithmetic

2002-11-12 Thread ROBERT MCPEAK
I'm trying to add/subract two dates. I think I need to use mktime() but I can't quite figure out how. I'd like to do something like this: (2002-11-15)-(2002-11-10)=5 or (2002-12-10)-(2002-11-10)=20 Obviously taking into account number of days in a given month. Does somebody have some code

RE: [PHP] newbie: help with date arithmetic[Scanned]

2002-11-12 Thread ROBERT MCPEAK
This is a great help. Thanks ya'll. And I will continue to, and do regulary RTFM 8-) I find that it generally sucks for a newbie. >>> "Michael Egan" <[EMAIL PROTECTED]> 11/12/02 10:42AM >>> Robert, I've been looking at this myself over

[PHP] interpreting variables containing in another variable

2002-11-20 Thread ROBERT MCPEAK
I've got a variable - $email_body, that contain's other variables. For example, echo "$email_body," might look like this: $name, $address, $phone, $blah I want those variables to interpreted with corresponding values set earlier in the script. So, in effect, where name=bob, address=101 east

Re: [PHP] interpreting variables containing in anothervariable

2002-11-20 Thread ROBERT MCPEAK
Duh!!! Thanks! Being a newbie hurts sometimes. >>> Chris Shiflett <[EMAIL PROTECTED]> 11/20/02 01:50PM >>> --- ROBERT MCPEAK <[EMAIL PROTECTED]> wrote: > I've got a variable - $email_body, that contain's other variables. > For example, echo &

[PHP] run from telnet...like PERL?

2002-06-05 Thread Robert Packer
this fashion? Thanks for any advice.. Robert Packer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] eregi not working

2002-06-07 Thread Robert Packer
Can someone tell me why this isn't working? To me it say open the file, read it, stick into a variable, close the file. Then search that variable (the file) and look for the eregi statements. Can someone tell me why this only gets the first instance of what I'm searching for? Thanks a bunch. #!/u

[PHP] Unable to restart httpd after upgrading PHP

2002-07-01 Thread Robert Tan
ciate your help. Thank you. Regards, Robert *E-MAIL DISCLAIMER** This document should only be read by those persons to whom it is addressed and is not intended to be relied upon by any person without subsequent written confirmation of its contents. A

[PHP] Broken Cookies

2002-07-04 Thread Robert Wray
Hiyas :) I'm having a problem with the code copied below not creating the cookies that it should do; setcookie("loggedInUID",$_POST['uname'],ms_cookie_time((time()+120)),'/', $cookie_base); setcookie($_POST['site_id'],$_POST['ucaps'],ms_cookie_time((time()+120)),'/' , $cookie_base); Basically

RE: [PHP] Dual Server...

2002-07-09 Thread Collins, Robert
I have Apache and IIS coexisting on my intranet server and the way I set them up was to put each on a different port. (Apache serves http://intranet and IIS serves http://intranet:8080) this appears to work fine. Hope this helps Robert W. Collins II Webmaster New Orleans Regional Transit

RE: [PHP]Erik Hegreberg

2002-07-09 Thread Collins, Robert
Erik just got his own personal email filter strait to the deleted items folder. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Fax: (504) 248-3866 Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -Original Message- From: Jeff

RE: [PHP] Dual Server...

2002-07-09 Thread Collins, Robert
Matt, I dont know if this helpped Brian but it just saved me a huge headache with some of the presonal settings on my intranet THANKS! Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Fax: (504) 248-3866 Email : [EMAIL PROTECTED] <mailto:[EM

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

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

2002-07-11 Thread Robert Cummings
lp. Cheers, Rob. -- .-----. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613

[PHP] rfc1867.c.diff-4.0.6 for php-4.0.4pl1

2002-07-12 Thread Robert Covell
Does a patch exist for php-4.0.4pl1? If not, can I use rfc1867.c from 4.0.6 with 4.0.4pl1? -Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] out of office test

2002-07-12 Thread Collins, Robert
sorry to do this but need to make sure my out of office response isint going to spam you guys. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Fax: (504) 248-3866 Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -Original Message

RE: [PHP] out of office test

2002-07-12 Thread Collins, Robert
Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Fax: (504) 248-3866 Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -Original Message- From: Collins, Robert [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 5:24 PM To:

Re: [PHP] mysql LIMIT

2002-07-14 Thread Robert Cummings
could be answered with a 10 second test query! Cheers, Rob. -- .-----. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone

RE: [PHP] PHP Interview questions

2003-08-26 Thread Robert Cummings
This smells like a trick question... Are the switches connected to the same light bulb? You've only mentioned one light bulb? 8) Cheers, Rob. On Tue, 2003-08-26 at 12:35, Jay Blanchard wrote: > Also ask a couple of other questions that require thought, but have > nothing else to do with code. su

Re: [PHP] Re: IS THIS A BUG?

2003-08-28 Thread Robert Cummings
This functionality is a feature and is commonly called variable variables. http://www.php.net/variables.variable Cheers, Rob. On Wed, 2003-08-27 at 16:42, DvDmanDT wrote: > Considering the manual has examples using that method (or at least had), and > many tutorials, I think you can use it..

Re: [PHP] var static

2003-08-28 Thread Robert Cummings
Globals!? YUCK :) A better solution IMHO that maintains encapsulation, is to use a static var in a function: function &getClassVar( $name ) { return getAndSetClassVar( $name, false ); } function &setClassVar( $name, $value ) { return getAndSetClassVar( $name, true, $value ); } function &

Re: [PHP] LWP::Parallel in PHP

2003-08-28 Thread Robert Cummings
This isn't the best solution but it might help bring down the total time. Can you set up a shell script to retrieve the content from a URL (in PHP if you wish) and then from your web app spawn 5 processes, with destination temporary files for the data which you can then poll for completion (microsl

Re: [PHP] suggestion: recursive calls

2003-09-04 Thread Robert Cummings
I've accidentally had infinite recursion at times. Under Linux if configured, you can get a core dump which can be loaded in GDB to see the stack. I usually know Its infinite recursion when GDB shows a backtrack in the 10s of thousands. Cheers, Rob. On Thu, 2003-09-04 at 06:04, Ronald van Raapho

Re: [PHP] multiple select box

2003-09-04 Thread Robert Cummings
Did you remember the [] on the select field's name? Otherwise it will treat data as a scalar and constantly overwrite until the last selected entry is reached. Cheers, Rob. On Thu, 2003-09-04 at 16:39, Steve Goodman wrote: > Hey all, > I'm curious if anyone else has ever come across this problem

Re: [PHP] Using rand() for 10 digit numbers????

2003-09-05 Thread Robert Cummings
It probably wraps the standard C rand() function which only takes an unsigned integer which is usually 16 bits. Cheers, Rob. On Fri, 2003-09-05 at 12:34, Scott Fletcher wrote: > Hi! > > I looked at the rand() at php.net which spoke about min and max random > number. So, I use rand(0,999

RE: [PHP] str_replace question

2003-09-09 Thread Robert Cummings
I think (and don't quote me on this, and feel free to correct me :) that preg_replace() is fast being based on perl regular expressions. ereg_replace() however, follows the POSIX standard for regular expression matching. Cheers, Rob. On Tue, 2003-09-09 at 17:36, Wouter van Vliet wrote: > $String

Re: [PHP] Multiple Forms

2003-09-09 Thread Robert Cummings
You can have two different forms posted to two different URLs. Not sure if you can in a single submit post two different forms to two different URLs except maybe with Javascript. Cheers, Rob. On Tue, 2003-09-09 at 20:11, Dan Anderson wrote: > Is it possible to tell a browser to send form a to URL

Re: [PHP] Escaping the " ' " character

2003-09-10 Thread Robert Cummings
I believe the general posting guidelines discourage posting HTML to mailing lists, and to be quite honest many of us pay for our bandwidth and don't need your 8k image eating up resources. 2 cents, Rob. On Wed, 2003-09-10 at 13:27, Todd Cary wrote: > I need to print the following: > > onClick="

Re: [PHP] Do you really still pay for bandwidth?

2003-09-10 Thread Robert Cummings
respect for the ENTIRE community. Cheers, Rob. On Wed, 2003-09-10 at 20:06, DougD wrote: > Do you really still pay for bandwidth? > > "Robert Cummings" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I believe the general posting guidelines disc

Re: [PHP] Escaping the " ' " character

2003-09-10 Thread Robert Cummings
Funny, I could swear I made a comment about bandwidth not topic. You should go read my original message, then read the guidelines, then wonder to yourself if you are all alone in this world -- if you by chance find that you're not in your own little world, perhaps you see why guidelines posted for

<    1   2   3   4   5   6   7   8   9   10   >