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

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

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] 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] 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. ;) > >

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

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

[PHP] simplexml and xpath

2004-09-21 Thread Matthew Sims
item) { echo $item->xpath('dc:date'); } ?> I just want to get the date. Am I doing xpath incorrectly or does xpath not currently work properly in PHP5? -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using foreach() to capture multiple selections

2004-09-21 Thread Matthew Sims
Goals as $value) > > { > > print "$value "; > > } > > ?> Not to do all the work for you but do you mean: You are interested in: -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] simplexml and xpath

2004-09-22 Thread Matthew Sims
T18:15:00+00:00 > > > My sample of my PHP code is: > > $library = simplexml_load_file('file.rss'); > foreach ($library->item as $item) { > echo $item->xpath('dc:date'); > } > ?> > > I just want to get the date. Am I doing xpath incorrectly or d

RE: [PHP] Does PHP need another mailing list???

2004-09-22 Thread Matthew Sims
t; > -- How about php-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] creating a folder in php

2004-10-12 Thread Matthew Sims
his needs to work on Mac and PC. > > thx in advance > Adil.. > What's wrong with: This isn't even 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] creating a folder in php

2004-10-12 Thread Matthew Sims
> Matthew Sims wrote: >>>Here's what i'm trying to do in php and using a mySQL database: >>> >>>I want a button on a page that if clicked it launches the browser's or >>>OS's >>>"Save As" window, allowing me to specify

Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread Matthew Sims
onfigure the local server's sendmail program to relay mail to the remote server. /var/mail is where users mail boxes are stored when using to old mail format mbox. Qmail uses the newer format Maildir which resides in user's home directory. So it looks like you have a user by the nam

Re: [PHP] php err msg/issue...

2004-10-13 Thread Matthew Sims
ith php4, but i'm not > certain. > > any thoughts/opinions/comments would be helpful... > > thanks > > -bruce > Without seeing your classes, PHP4 classes will not work with PHP5. The OO model has been completely revamped. So if the code works in PHP4 but not in PHP5, my g

Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread Matthew Sims
IL PROTECTED] And do you receive it? Does 'which sendmail' return you the path to where the sendmail binary is? You should be contacting the admin of this server and be asking these questions. We can't answer them since we don't own/have access to the machine. -- --Matthew

Re: [PHP] .htaccess and .htpasswd

2004-10-13 Thread Matthew Sims
? > > Can I use as AuthUserFile ".htpasswd" since they are in the same > directory? > > I know its not smart but let's get this working and I'll move .htpasswd > later to "upper level" :) > > > > -afan Dude...do you know what mailing lis

Re: [PHP] SF Project: In Need of PHP & MySQL Developers

2004-09-28 Thread Matthew Sims
m a true 3D environment model to a...well, an SSI language with a database is quite a drastic change. With today's advance editors (Doom 3, Unreal, Half-Life 2 soon...) I would think using these would produce better and quicker results. And you don't even have to know how to code. J

Re: [PHP] Function declaration failing on return value

2004-10-04 Thread Matthew Sims
> When I run the php page, I get > > Parse error: parse error, unexpected T_RETURN in /var/www/html/afi/sq.php > on > line 12 > -- > Whil > function square($num) { $result = $num * $num; return $result; } -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread Matthew Sims
> Hi guys, > > I have this code Javascript code: > > if (document.images) { > > img1on = new Image(); img1on.src = " ?>Graphics/"; > img2on = new Image(); img2on.src = " ?>Graphics/"; > > Regards, > > Aaron > When you mix PHP and javascript together in an external file, the file needs

RE: [PHP] Newsgroups Space

2004-10-06 Thread Matthew Sims
> [snip] > i know this isn't completely related to php but i am creating a web > based > news reader in php, how much disk space do you think i need to run my > own > local news server? > [/snip] > > I'd go with a 1TB RAID > Better go with 2TB. You know ho

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Matthew Sims
le.com/failed.php> And guess what! The guy who wrote PHP, Rasmus Lerdorf, works at Yahoo! http://lerdorf.com/resume/ An article about the PHP scalability myth: http://www.onjava.com/pub/a/onjava/2003/10/15/php_scalability.html Anything else? :) -- --Matthew Sims --<http://killermoo

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Matthew Sims
s/companies do rely on using PHP. Does your PHB consider the list I provided "hobbyists"? -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Matthew Sims
e tool. If you boss is so in love with Windows, why not PHP on Windows? http://news.netcraft.com/archives/2003/08/30/php_growing_surprisingly_strongly_on_windows.html -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Matthew Sims
> Matthew Sims wrote: > >> The following sites have been known to use PHP: > >> www.insight.com (is a publicly traded fortune 1000 company. The site is >> 90% PHP) > > > Insight now uses CF. It was a political change, not one agreed on by > the techie

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Matthew Sims
uld just take a moment to READ. Managers don't want to read, they want someone to hold their hand. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] general research question(thanks!)

2004-10-07 Thread Matthew Sims
with your boss is to show the similarities between Sharepoint and PHP rather than showing what Sharepoint can't do. That would put your boss on the defensive and make him/her resent you. Then after you show the similarities, show the costs/savings of Sharepoint/PHP. Does that make sense? -- --Ma

Re: [PHP] xpath and SimpleXML

2004-10-07 Thread Matthew Sims
> So, using xpath, I have constructed the following function. The problem is > the quotes "" around the number. xpath is treating it as a string, I > believe. Would sprintf() work for this? Something like: $num = sprintf("%d", $xpathNum); I haven't tested

Re: [PHP] code not working...help?

2004-10-07 Thread Matthew Sims
gt; zero. $countRow is returning 0 or empty? What does print_r($countRow) show you? Also, try running your query from the mysql prompt, substituting the PHP with real values. See if mysql complains about your query. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sending mail

2004-10-07 Thread Matthew Sims
> > > Do I need to have sendmail configured on my linux box to send mail via > PHP? > Thanks! Sendmail or any MTA will do. So yes, you need to have a working mail server. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] sending mail

2004-10-07 Thread Matthew Sims
> > I'm sorry, I don't know what and MTA is. Can I configure PHP to use any > smtp > server? > MTA = Mail Transfer Agent http://us4.php.net/manual/en/ref.mail.php For unix/linux, PHP ignores the smtp settings in php.ini which means you'll need to setup sendmail fo

Re: [PHP] Re: code not working...help?

2004-10-07 Thread Matthew Sims
-MM-dd HH:mm:ss, like: $lastmonth = date("Y-m-d H:i:s", mktime(date("H"), date("i"), date("s"), date("m")-1, date("d"), date("Y")); MySQL will suck it up much better that way. -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >