RE: [PHP] PEAR DB Questions

2001-09-26 Thread Matthew Walker
Thanks. That will work quite nicely. -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 1:20 PM To: Matthew Walker; [EMAIL PROTECTED] Subject: RE: [PHP] PEAR DB Questions don't know about pear, but in case you can't do it,

[PHP] ereg

2001-09-30 Thread Matthew Delmarter
How do I use ereg to check for MSIE 5.5 and above. eg: eregi("(MSIE.[56])",$HTTP_USER_AGENT) This only gets version 5 and 6 ... but I want 5.5 and above. Any ideas? Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROT

[PHP] Restrict where PHP is Usable?

2001-10-02 Thread Matthew Walker
hat most users can't use PHP. They'll have to pay a (very small) monthly fee to have access to it. This is partly as a very loose security measure, so that not everyone has access to PHP. -- Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified Virus F

RE: [PHP] fprintf

2001-10-02 Thread Matthew Loff
The lack of fprintf() has been discussed on this list before, but I'm not sure what the status is on the PHP development side... http://bugs.php.net/bug.php?id=1027 -Original Message- From: Bill Rausch [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 7:08 PM To: [EMAIL PROT

Re: [PHP] php & javascript

2001-10-03 Thread Matthew Armsby
Leave the name as email. If you really want to call it email[], you should be able to reference this in JavaScript as the object document.myform["email[]"] If you leave it as email, you can then convert the email variable into an array using explode() or split() as so: Matt > Hey all! >

Re: [PHP] php & javascript

2001-10-03 Thread Matthew Armsby
> document.myform["email[]"] seems to give me a syntax error. Check if your already using "" you'll need to use single quotes as so: (tested on IE 5.5 and NS 4.08, works) >> If you leave it as email, you can then convert the email variable into an array using explode() or split() as so: > On

Re: [PHP] Parsing a CSV file

2001-10-03 Thread Matthew Armsby
Example "; } ?> Please note, empty elements will not be handled btw Any Australian employers want a programmer for awhile? - Original Message - From: Sharat Hegde <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 03, 2001 9:55 PM Subject: [PHP] Parsing a CSV fil

RE: [PHP] associative array syntax question - got it!

2001-10-03 Thread Matthew Loff
Have you tried using curly brackets? print "$a[B]{$quotes[$a[B]]}" Does that work? Just cuious... -Original Message- From: Job Miller [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 03, 2001 8:44 PM To: Maxim Maletsky (PHPBeginner.com); [EMAIL PROTECTED] Subject: Re: [PHP] assoc

[PHP] check if file is already in use before fopen

2001-10-04 Thread Matthew Luchak
Title: Blank Is there a way to verify if a file is in use by another user before fopening it?  Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED]  

[PHP] RE: check if file is already in use before fopen

2001-10-04 Thread Matthew Luchak
Title: Blank damn... RTFM.  I just now discovered flock.  Sorry 'bout that.   ps.  Don't flame me for being rude to the original poster.  I am the original poster   ________ Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Messag

RE: [PHP] Re: Submitting variables via /'s

2001-10-05 Thread Matthew Walker
So, can someone give me the spot to look in the documentation to find out how to make this switch? -Original Message- From: Chris Hobbs [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 4:50 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Submitting variables via /'s Joao Prado

RE: [PHP] Tar and GZIP functions

2001-10-05 Thread Matthew Loff
Last time I checked, there is a class for creating tar files in PEAR... Check your PHP installation... Once you create a tar file, I'm sure you can filter it through zlib to create a .tar.gz file. -Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Sent: Friday, October

Re: [PHP] Using Post like Get

2004-07-23 Thread Matthew Sims
riables' for different > tabs or windows in a browser. > > www.scotttrade.com does it somehow, and I see no GET variables on the URL. > What about $_SESSION variables? You can use the $_SESSION to keep the same identity from page to page and still require a different login

Re: [PHP] Array help

2004-07-23 Thread Matthew Sims
rnd = array("1"=> "bkgrnd-default.gif", "2" => "bkgrnd-positive.gif", "3" => "bkgrnd-negative.gif"); http://us2.php.net/manual/en/function.array.php -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array help

2004-07-23 Thread Matthew Sims
quot;1"=> "bkgrnd-default.gif", "2" => > "bkgrnd-positive.gif", "3" => "bkgrnd-negative.gif"); > $imgNeeded = table['field']; > $imgName = $imgBkgrnd[$imgNeeded]; > Yup, just like that. You can even get

Re: [PHP] Re: Trouble with Apache, PHP, pear

2004-07-23 Thread Matthew Sims
to have both. I'm using both on a server I have. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] which user is a script executing as?

2004-07-23 Thread Matthew Sims
with which user's permissions PHP scripts are executing. > If you chown the PHP script to the web server's userid, that should be good enough. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Code elegance and cleanliness

2004-07-23 Thread Matthew Sims
orter code block but is harder to debug later. Should I be striving for > the shortest most compact code utilizing the fewest possible variables. > Or, > can I code in a style which is easier to read and debug? > > -- > Robb Kerr It depends. But in this case probably not. If I had sever

Re: [PHP] Nested If...Else...

2004-07-24 Thread Matthew Sims
} else { > $vBkgrndImage = "Bkgrnd-Body-Correct.jpg"; > } > } > > Thanx > -- > Robb Kerr I can't see anything wrong. What's the error you're receiving? -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Nested If...Else...

2004-07-24 Thread Matthew Sims
"Bkgrnd-Body-Correct.jpg"; >> } >> } >> >> Thanx >> -- >> Robb Kerr Yes, see what the vars are, maybe something like this: if ($vBkgrndImage == "AnswerPage") { echo "1: $vAnswerID_RS_PageContent"; echo "2:".$row_RS_Pag

Re: [PHP] exec works with some, but not all commands

2004-07-24 Thread Matthew Sims
> exec("/usr/bin/gpg --homedir /home/testdir/.gnupg --armor --output e.gpg > -e -r uid_someuser sf.txt"); > > if I run it from the command line, it works fine... > I'm not sure but what if you defined an absolute path for your output files (e.gpg and sf.txt).

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Matthew Sims
> > The object is not destroyed!? How do I destroy it without calling > unset($b)? > Not sure if this is your solution but have you looked in to destructors? Half down this page it explains: http://us4.php.net/migration5.oop -- --Matthew Sims --<http://killermookie.org>

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Matthew Sims
/* make 2 references but delete object, 2 variable > * references still exits */ > $a = new foo(); > $b = &$a; > $a = null; > var_dump($a); /* NULL */ > var_dump($b); /* NULL */ > > /* proof that references still exists */ > $b = new foo(); > var_dump($a); /* Object #1

[PHP] html text area and mysql text fields

2004-07-27 Thread Matthew Oatham
Hi, If I have a html textarea for inputting text into a database text field how can I keep the formatting of the entered text? i.e. on the html textarea if the user enters carriage returns i.e. a new paragraph I want that to go into the database then when I retrieve it and display it on a norma

Re: [PHP] html text area and mysql text fields

2004-07-27 Thread Matthew Sims
ata from the DB for a textarea use this before displaying: $_POST["textarea"] = str_replace("","\n",$_POST["textarea"]); -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] html text area and mysql text fields

2004-07-27 Thread Matthew Sims
o convert it back >> again before populating the text area. >> >> Suppose it just comes down to personal preference... Or is there a >> specific >> benefit to doing it this way? >> >> Regards >> >> Enda >> On 27/07/2004 22:55, "Mat

Re: [PHP] html text area and mysql text fields

2004-07-27 Thread Matthew Sims
erting with nl2br supposedly takes up more CPU. Doing many nl2br conversions can run your site/program slow. In some cases, it's better to convert before injection since disk space is more abundent than CPU cycles. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing L

[PHP] How do I return the error

2004-07-28 Thread Matthew Oatham
Hi I have this function below - if it reurns false I want to also return the error so I can print it in my calling function. Can I do this? Cheers Matt function fileUpload($file) { if ($file['type'] == "image/gif" || $file['type'] == "image/pjpeg"){ if (@copy ($file['tmp_name'], "images/

Re: [PHP] How do I return the error

2004-07-28 Thread Matthew Oatham
what about returning the error the copy function would have thrown ? Thanks - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 28, 2004 3:00 PM Subject: Re: [PHP] How do I return the error > Matthew Oa

Re: [PHP] Browser reload problem

2004-07-29 Thread Matthew Sims
re any HTML output. At the end of the DB injection simply add: header("Location:your_php_page.php"); exit; This will reload that page and all the $_POST data will be removed. THen you can hit refresh all you want. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] list($bar['CompanyCode'], $CompanyDB) = mysql_fetch_row($sth) fails.

2004-07-29 Thread Matthew Sims
mysql_fetch_row($sth); And then work with the $result array? If your DB indexes are listed as CompanyCode and CompanyDB, then use: $result = mysql_fetch_array($sth); Then you have your variable names like you want: $result['CompanyCode'] and $result['CompanyDB'] -- --Matth

RE: [PHP] Server's clock gone funny, maybe?

2004-07-29 Thread Matthew Sims
> > [smartass mode to full power - nothing personl] > [/smartass mode] Is that W3C HTML 4.01 compliant? -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Matthew Sims
ofanity? > > Just my two cents. Read the Fscking Manuel -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail() function not working

2004-07-31 Thread Matthew Sims
tp server? > > Thanks in advance > > Robin First things first...can you send mail from this server? The server needs to have some sort of MTA installed (sendmail,Qmail,Exim,etc) before you can use the mail() function. -- --Matthew Sims --<http://killermookie.org> -- PHP Gen

Re: [PHP] Re: Sending E-mail From Mail

2004-07-31 Thread Matthew Sims
is a lot easier to setup than receiveing mail. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Should I wait for PHP 5.1?

2004-08-01 Thread Matthew Sims
Object Oriented Model. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] javascript type cast

2004-08-03 Thread Matthew Sims
od. > Unless it's about PEAR. ;) -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] First day of the month

2004-08-03 Thread Matthew Sims
he week the first day of the month > lands on. I can take the info pulled with date() and use several > switch() and if statements, but that's ugly. Anyone have any > suggestions? > > Thanks! > ~ David > You mean like: $firstWkDay = date("l", mktime(0,0,0

Re: [PHP] [Q] Converting SQL Datetimes to timestamps

2004-08-03 Thread Matthew Sims
ot;-mm-dd hh:ii:ss" just prior to converting them to a unix timestamp with strtotime(). This will ensure you get a valid GMT result for times during daylight savings. EXAMPLE: -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] First day of the month

2004-08-03 Thread Matthew Sims
mktime(0,0,0,$m,1,$y)); A little more simpler. BTW, "D" or "l" pretty much do the same thing. It depends on whether you wan Mon or Monday. D = abbrviated name l = full name -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] running a script

2004-08-03 Thread Matthew Sims
script. I am guessing, but I would do: > "SELECT * FROM temp_users WHERE ID=$id" > > Thanks again. > > Aaron > More like: "SELECT * FROM temp_users WHERE ID=\"".$_GET["id"]."\""; Use $_GET to access variables from the url. --

Re: [PHP] Location header does not work?

2004-08-03 Thread Matthew Sims
27; and $id == 159 and $Itemid == 162) { echo "It works! Yay me! Gimme a cookie, dammit!"; } If you don't get that echo statement, then you should look into your if statement. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Location header does not work?

2004-08-03 Thread Matthew Sims
> The latest message I got was 'Redirection limit for this URL exceeded. > Unable to load the requested page.This may be caused by cookies that are > blocked.'. > > Bing > Correct me if I'm wrong but I think this is an Apache error. -- --Matthew Sims --&

Re: [PHP] MySQL Result Handling

2004-08-06 Thread Matthew Sims
lidated the question/answer to one line rather than having two indexes in the MySQL table. Probably a preference. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] WYSIWyG

2004-08-08 Thread Matthew Sims
my code or on something on the server or the > javascript > i didn't know what part of my code to include here > so can anyone tell me where is the problem ? > code is available for discuss And how does this relate to PHP?? -- --Matthew Sims --<http://killermookie.org>

Re: [PHP] ImageColorTransparent Problem

2004-08-08 Thread Matthew Runo
Have you tried it in other browsers? IE 6 / windows PNG support leaves much to be desired, even more so when we want them to be transparent. Try it in Firefox, or some other similar browser. Same results? Matthew Runo http://www.quabbo.com Quabbo Internet Services The only host with the Zend

Re: [PHP] locate PID & Kill

2004-08-08 Thread Matthew Runo
's not what you expect. I'm not sure if you'd be able to restart it with a given PID. Matthew Runo http://www.quabbo.com Quabbo Internet Services The only host with the Zend Performance Suite! On Aug 8, 2004, at 11:25 PM, Curlys wrote: pe -ef * 19282 pts/300:00:00 abc.pl my perl

Re: [PHP] WYSIWyG

2004-08-09 Thread Matthew Sims
> Matthew Sims wrote: > >>And how does this relate to PHP?? >> >> >> > Matthew, > you are now sure to be flamed by all those who believe off topic > maililngs by those who do not read the newby guide should be allowed and > encouraged. > > > &g

Re: [PHP] PHP/MySQL based webmail?

2004-08-09 Thread Matthew Sims
; > The message size limit is controlled by your mailer. (postfix, sendmail, > qmail, etc). > > Squirrelmail is a nice php-based interface. > > -Robby I second that. Squirrelmail is solid. And the plugin features is great. -- --Matthew Sims --<http://killermookie.org> -- PH

Re: [PHP] PHP/MySQL based webmail?

2004-08-10 Thread Matthew Sims
re your web server app and that the web server has plenty of resources to handle your requests. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP5 OOP

2004-08-10 Thread Matthew Sims
> Hello, I'm trying to get the hang of OOP here but can't quite figure > out how to relate these classes. I've got one for the main project, > one for the database, and one for a user. Somehow I need to get the > user access to the database, without cumbersome constructor calls > involving a copy

Re: [PHP] Re: php tools

2004-08-10 Thread Matthew Sims
o get suggestions for emacs, as well, and I'd be very >surprised if one or more commercial editors weren't offered. VIM! Emacs! VIM! Emacs! VIM! KWrite! KWrite?! Real men write code using a chisel and hammer on granite stone. You bet your ass you'll learn how to write small, ti

RE: [PHP] PHP performance

2004-08-10 Thread Matthew Sims
> [snip] > Any recommendations on how to make PHP run faster? > [/snip] > > A multiple CPU box. (It's a legitimate answer!) I usually add more gerbils to my spinning wheel. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.n

Re: [PHP] Re: php tools

2004-08-10 Thread Matthew Sims
> BBEdit is the tool of the Gods. > > Jon Zeus would be proud of you. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP performance

2004-08-10 Thread Matthew Runo
This is a great tip. Thanks! I've added it to my folder of "tips to speed up PHP". Matthew Runo http://www.quabbo.com Quabbo Internet Services The only host with the Zend Performance Suite! On Aug 10, 2004, at 3:07 PM, Curt Zirzow wrote: * Thus wrote Ed Lazor: Any recommendations

Re: [PHP] PHP performance

2004-08-10 Thread Matthew Runo
aching code to a PHP driven site, but people just don't want to do it when they can get a decent boost from just being under the Zend Performance Suite's umbrella effects. Matthew Runo http://www.quabbo.com Quabbo Internet Services The only host with the Zend Performance Suite! On Aug

Re: [PHP] updating a frame from within php...

2004-08-10 Thread Matthew Sims
hts... > > thanks > > -bruce I think javascript would be your cup of tea...getting the browser to reload a frame. Google is your friend: http://www.google.com/search?q=javascript%20reload%20frame&hl=en&lr=&ie=UTF-8&sa=N&tab=gw -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP/MySQL based webmail?

2004-08-11 Thread Matthew Sims
This is probably getting a little offtopic (okay, a lot and my last for today) but I'll answer what I can. Now I can't speak for Horde but I can't see how Horde would be any different than what Squirrelmail provides. > "Matthew Sims" <[EMAIL PROTECTED]> write

Re: [PHP] Re: Date and time

2004-08-11 Thread Matthew Sims
>> I have this date in timestamp format: >> >> $a= 20040810114155; >> >> I want to add 7 days to this date. How can i do that? >> >> Thanks >> >> Isn't it considered faster to let the database do the conversion to Unix Timestamp? -- --Matthew Sims

Re: [PHP] redirecting to another frame using php header function

2004-08-11 Thread Matthew Sims
er-side instructions. A header simply sends, well, HTTP headers. You're asking the browser to reload a frame which is different. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] updating a frame from within php...

2004-08-11 Thread Matthew Sims
> On Wed, 2004-08-11 at 00:13, Matthew Sims wrote: >> > hi... >> > >> > this probably doens't belong here.. but i'll try! >> > >> > i have a two frame window. when the user logs into the 'main' window, >> i >> > wa

RE: [PHP] updating a frame from within php...

2004-08-11 Thread Matthew Sims
. Now picture PHP as the guy to writes the HTML and sends it to the browser and stands there waiting for a request to send more HTML to the browser. "Frame? I don't know where this frame is. You'll have to ask the javascript guy where that is." (that's my bad rendition of P

Re: [PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread Matthew Sims
> raditha dissanayake wrote: >> I vote this list be renamed as >> >> php-general-apache-mysql-imap-iis discussion list. >> >> all those not in favour please flame. >> >> > > We could just move this list to a Yahoo! group, then we can answer > questions for any topic, and have the trolls too. ;) > >

[PHP] string manipulation

2004-08-12 Thread Matthew Oatham
Hi I am trying to track down a method for transferring a database id such as 5 into a nice formatted order id such as ORD0005 - where the format for the order id is "ORD" + 5 digits made up of the database id Thanks Matt

RE: [PHP] [discuss] Rename this list

2004-08-12 Thread Matthew Sims
> >> Imagine all the people that'll want to post to a John Holmes list!!! > > People would be wide open for that list. > > Sorry.., I couldn't resist... Just had to take the low road... > > > > alex hogan Damn, that was pretty good. :) -- --Matthe

[PHP] odd results with database string comparisons

2004-08-12 Thread Matthew Oatham
I have a database table with the column described as address_line_2 varchar(255) NOT NULL default '', when I do a select I want to see if there is anything in that column if there is text I will display it in a html table if there is nothing (the table default) I will write   However the follow

[PHP] Kerberos authentication

2004-08-12 Thread Matthew Runo
against a Kerberos server, and found very little. Does anyone have any ideas? I'd bow down and be very, very, excited if someone did... Matthew Runo http://www.quabbo.com Quabbo Internet Services The only host with the Zend Performance Suite! -BEGIN PGP SIGNATURE- Version: PGP 8.1

Re: [PHP] forum suggestions

2004-08-14 Thread Matthew Runo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'd suggest Phorum.. http://www.phorum.org It works great for us. You can see an example here: http://resnet.ucsc.edu/phorum/ Matthew Runo http://www.quabbo.com Quabbo Internet Services The only host with the Zend Performance Suite! On A

Re: [PHP] SSH Authentication using php

2004-08-16 Thread Matthew Sims
security somewhat, by > enacting strict controls (with authpf) and then routing around them with > an insecure web login. > > -mike. Adding SSL to the mix would probably fix the insecure login part. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Techniques for doing story

2004-08-17 Thread Matthew Sims
passed through $_GET to pull up the cooresponding story. Learn HTML and CSS and you can make a website look however you want it to look. PHP simply makes the pages change depending on user events. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Techniques for doing story

2004-08-17 Thread Matthew Sims
#x27;s not really different from any other dynamic website. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Techniques for doing story

2004-08-17 Thread Matthew Sims
> Yea, But then I took his advice and found this > http://www.catb.org/~esr/faqs/smart-questions.html#keepcool so I was > not so offended :) > > I had all the other links, but that one and did not think my question > was that "out there" for the list... oh well. > > > On Aug 17, 2004, at 12:31 PM,

Re: [PHP] FW: Help with PHP 5 - code not working since upgrade

2004-08-17 Thread Matthew Sims
27;t have to look much further than this. You have a class that was designed in PHP3 and suddenly you're wondering why it work in PHP5? The OO model in PHP has been vastly revamped. It's closer to what OO is suppose to be. So my guess is that all your classes are now invalid. You'll

RE: [PHP] FW: Help with PHP 5 - code not working since upgrade

2004-08-17 Thread Matthew Sims
> Okay - I apologize but I'm a systems admin - not a programmer - would I > even need those classes now? > > -Original Message- > From: Matthew Sims [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 17, 2004 3:40 PM > To: [EMAIL PROTECTED] > Subject: Re: [PH

RE: [PHP] FW: Help with PHP 5 - code not working since upgrade

2004-08-17 Thread Matthew Sims
ll languages will be a cinch to learn. They're all the same, just different syntax. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: mysql_fetch_array()

2004-08-17 Thread Matthew Sims
> $row = mysql_fetch_array($sql, MYSQL_BOTH); >> >> Thank you. >> TR As Tony shows, anything between the [] is optional. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php question

2004-08-17 Thread Matthew Sims
emove the frames? Where would the image load then? If you want it to load on the same page, just have the link refresh the page to load the larger image. Not sure what you're really asking. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mkdir() permissions

2004-08-18 Thread Matthew Sims
tever UID the web server runs as (nobody, www, etc). If you're running it through a stand alone script, well then, if you don't own the directory or you're not root, that's probably the problem. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP/PearDB works on commandline but not via http....

2004-08-18 Thread Matthew Sims
s? >> > > Can't help you unless you give us an error... > And check to see that PostgreSQL is accepting network connections rather than localhost. Is it listening to a port? -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail functions help

2004-08-25 Thread Matthew Sims
, first thing to do is to get to know what it is. You can't send mail without one. First thing: http://www.webopedia.com/TERM/S/SMTP.html I'm not too familiar with what MTA's are out there for windows that are free. All I know is Exchange for windows and I don't

Re: [PHP] Browser back button

2004-08-27 Thread Matthew Sims
ave your vars sitting in $_SESSION. Web page is index.php: ...webpage stuff here... -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Matthew Sims
*** Automated Message - Do Not Reply *** Hello, I am currently out on vacation on a warm sunny beach, suckin' down an alcoholic beverage or something and will reply to your message when I return...or not. -- --Matthew Sims --<http://killermookie.org> *** End *** > Another thi

Re: [PHP] mail functions help

2004-08-31 Thread Matthew Sims
er (your ISP *has* to have one) or install one yourself on your computer. I have no clue what your OS is but if you're using Linux/Unix, go search for sendmail, Qmail or Exim. For windows, Exchange. I think this isn't the place to ask about setting up an SMTP server. -- --Matthew Sims --&l

[PHP] gzip

2004-09-07 Thread Matthew Oatham
Hi, I have a file on my server that I want to compress in a php page i.e take file.txt and add it to the archive file.zip. How the hell do I do it using gzip cant understand the manual, or is there another way to create a zip file or other compressed file. cheers matt

[PHP] create a zip file

2004-09-07 Thread Matthew Oatham
Hi, I have been trying to find a way of creating a zip file. I have a file on my server that I want to compress I have had a look at gzip but cant work out what to do. Can someone point me to a function or an example of how to do this. thanks matt

[PHP] Assigning one var to multiple vars

2004-09-09 Thread Matthew Sims
Just mostly curious but is there a way to assign one variable to multiple variables in one single line? Rather than do this: $var2 = $var1; $var3 = $var1; Is there a method to perform a: ($var2,$var3) = $var1; -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List

RE: [PHP] Assigning one var to multiple vars

2004-09-09 Thread Matthew Sims
> How about: > > $var1 = $var2 = $var3 = 5; > echo $var1 . '' . $var2 . '' . $var3 . ''; > ?> > > Regards, > > Justin > I had something stuck in my head between what Python does and PHP's list function. Not sure why I c

[PHP] XML parser for PHP5

2004-09-15 Thread Matthew Sims
Anyone know any good XML parsers that work with PHP5? Most of what I can find on freshmeat are still using PHP4 classes and Google isn't turning up much either. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: XML parser for PHP5

2004-09-15 Thread Matthew Sims
> Matthew Sims wrote: > >> Anyone know any good XML parsers that work with PHP5? Most of what I can >> find on freshmeat are still using PHP4 classes and Google isn't turning >> up >> much either. > > What do you want to do? This parses xml pretty

Re: [PHP] Re: XML parser for PHP5

2004-09-15 Thread Matthew Sims
> Matthew Sims wrote: > >> My fault, I should have been more specific. An RSS reader. :) I was >> using >> xmlParser-0.3 and feedParser-0.5 to display news sites. Since I've >> converted to PHP5, they no longer work for me. > > definitely a combination o

Re: [PHP] split behaviour differences in perl and php

2004-09-16 Thread Matthew Sims
', 'a,'))."\n"; >> ?> >> >> [EMAIL PROTECTED] sql]$ php -q s1.php >> 2 >> 2 > > split in php isn't the same as perl's split, there is preg_split() > which you can use: > > $results = preg_split('/,/','a,', -1, PREG_SPLIT_NO_EMPTY); > print(count($results)); // outputs: 1 > > > Curt Would explode() provide the same technique? $var = "a,"; $results = explode(",", $var); $results[0] = a; -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Secret Codes in Spam and PHP

2004-09-16 Thread Matthew Sims
decipher?" Hmm.. interesting. > > Now that they know that we know, we're all in danger. Be on the look out > for assassins. > I'm immune from assassins. Gunslingers, hatchet men and thugs, on the other hand, still present a problem. -- --Matthew Sims --<http://killermo

Re: [PHP] Secret Codes in Spam and PHP

2004-09-17 Thread Matthew Sims
> On Thu, 2004-09-16 at 18:33, Matthew Sims wrote: >> I'm immune from assassins. >> >> Gunslingers, hatchet men and thugs, on the other hand, still present a >> problem. > > When I first read this I read "thongs" instead of "thugs". It stil

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Matthew Sims
lt. http://support.microsoft.com/default.aspx?kbid=842242 A lot of programs are affected by this...possibly MySQL, too? Anyways, I'm telling my friends and family to steer clear of SP2 upgrade till the dust settles and the kinks are worked out. -- --Matthew Sims --<http://killermookie.or

Re: Fw: [PHP] mysql_connect does not connect

2004-09-17 Thread Matthew Sims
by name but you will be getting your letters of > termination shortly. > >> >> ---John Holmes... >> > > > -- > Raditha Dissanayake. I still haven't received my (small) paycheck for last week. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Matthew Sims
> > "[PHP} Can't get NULL to output anything!" > > hehe > Andre > > Check your firewall. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: mysql_connect does not connect

2004-09-17 Thread Matthew Sims
;> > versions greater than 4.1.0. For that, use MySQLi. >> > >> > mysqli: >> > The mysqli extension is designed to work with the version 4.1.3 or >> > above of MySQL. >> >> What the manual says (as quoted) is either not relevant or is not c

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Matthew Sims
> HAHAHA, this thread is awsome though, you all must admit the humor > involved here. I hope this thread continues for a couple more days. > or here is an idea for a thread > {PHP} globals.asp wont set my php vars Firewall. -- --Matthew Sims --<http://killermookie.org>

Re: [PHP] PHP5 Book Recommendation?

2004-09-19 Thread Matthew Sims
finally* all made sense! This book > is *so* well-written, that you really understand the whole OOP mindset > after just the first 3 chapters. > Thanks for the tip. I just ordered the book through Amazon. :) -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing Lis

Re: [PHP] very basic php mysql question

2004-09-20 Thread Matthew Sims
#x27;t execute query"); > > while ($row = mysql_fetch_array($result)); > > { > > extract($row); > > echo $company; > > } > > ?> > Your while statment has a ; at the end of it. while ($row = mysql_fetch_array($result)) { echo $row["company"]; } -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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