RE: [PHP] need for $_POST[''] changed after server upgrade

2005-12-11 Thread Matt Babineau
Register globals is no longer ON I believe. That is why it happened. To fix this: Foreach($_POST as $key = $value) ${$key} = $value; That will convert all of your post variables to local variables. :) Thanks, Matt Babineau Criticalcode 858.733.0160 [EMAIL PROTECTED] http

RE: [PHP] Re: R: [PHP] Date Function Questions

2005-12-11 Thread Matt Babineau
System Time Is the system time through Linux, Apache or through the php.ini file? On 12/11/05, Sebastian En3pY Zdrojewski [EMAIL PROTECTED] wrote: afaik it's the system time. Cheers En3pY Sebastian Konstanty Zdrojewski URL:

RE: [PHP] Select and $_POST

2005-11-09 Thread Matt Babineau
$query = SELECT * FROM login WHERE username = '.$_POST['username'].' AND pass = '. $_POST['pass'].'; What is the correct syntax for $query = SELECT * FROM login where username='$_POST['username']' AND pass ='$_POST['pass']'; Thought this would work. R. -- PHP General Mailing

RE: [PHP] HTML - PDF PHP Package

2005-07-15 Thread Matt Babineau
, Matt Babineau Criticalcode 858.733.0160 [EMAIL PROTECTED] http://www.criticalcode.com -Original Message- From: Christian Calloway [mailto:[EMAIL PROTECTED] Sent: Friday, July 15, 2005 10:56 AM To: php-general@lists.php.net Subject: [PHP] HTML - PDF PHP Package Hi Everyone, I am looking

[PHP] Some CLASS file help, should be a quick answer...

2005-07-11 Thread Matt Babineau
explain this very wellanyone have any thoughts? Thanks, Matt Babineau Criticalcode 858.733.0160 [EMAIL PROTECTED] http://www.criticalcode.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP vs. ColdFusion

2005-06-27 Thread Matt Babineau
have to even think about the server. I spend about 1 hr a month messing around with the server (daemon restarts or php config changes). That's where LAMP's value really shines through I think you will find. Thanks, Matt Babineau Criticalcode 858.733.0160 [EMAIL PROTECTED] http

RE: [PHP] Something is messing up the php output

2005-06-22 Thread Matt Babineau
I bet if you connect using the IP directly it will solve your problem. Thanks, Matt Babineau Criticalcode 858.733.0160 [EMAIL PROTECTED] http://www.criticalcode.com -Original Message- From: Jonathan Duncan [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 22, 2005 6:27 PM To: php

RE: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-09 Thread Matt Babineau
on this? Everything I have read so far has been very helpful and I thank you for that. Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Marcus Bointon [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 5:02 AM To: PHP General

RE: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-09 Thread Matt Babineau
to print a copy. I've looked into PDFing the invoice but its just a bit easier to hit the print button and be done since Adobe PDF usually crashes your browser :( Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Warren

RE: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-09 Thread Matt Babineau
right now - unless I convert the bg images to foreground image which would really suck...but could be done. Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Leif Gregory [mailto:[EMAIL PROTECTED] Sent: Thursday, June

[PHP] Php.net/pdf - Making a PDF from the invoice

2005-06-09 Thread Matt Babineau
. Thx- Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Kristen G. Thorson [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 2:05 PM To: php-general@lists.php.net Subject: Re: [PHP] Beautiful HTML Invoice

RE: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-09 Thread Matt Babineau
Yikeshas anyone got a url for a good Make PDF From HTML Class that uses my newly installed PDFlib library? Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Leif Gregory [mailto:[EMAIL PROTECTED] Sent: Thursday

RE: [PHP] Three queries. One Form.

2005-06-09 Thread Matt Babineau
Well after the first query you could do this: $art_id = mysql_insert_id(); There is your new unique art_id you just created. Do this for the next table, the do the insert on your 3rd table. Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED

[PHP] Beautiful HTML Invoice - Prints like crap! I need some suggestions!

2005-06-07 Thread Matt Babineau
? I'm on a linux box and have php 4.3.10. Thanks for the help! Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED]

RE: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-07 Thread Matt Babineau
on the server to do the convert work. Thanks, Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Jack Jackson [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 07, 2005 3:21 PM To: php-general@lists.php.net Subject: Re: [PHP

[PHP] Php + flash, need some help making a small .FLA

2005-04-17 Thread Matt Babineau
, Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED]

RE: [PHP] Preorder Modified Tree Traversal

2005-03-24 Thread Matt Babineau
Yeah, I read this article, and it works, but it doesn't set you up for a drill down scenario... Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24

[PHP] Preorder Modified Tree Traversal

2005-03-23 Thread Matt Babineau
in the methods you used to achieve your success. Thanks All! PS- Thanks to those who suggested the Linux command line HTML 2 PDF package!! Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED]

[PHP] HTML - to - PDF

2005-03-22 Thread Matt Babineau
Hi All, I have some reports I need converted from HTML to PDF, I'm on a LAMP box, so does anyone have any free suggestions? Thanks, Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED]

[PHP] RE: Problem with SELECT SQL_CALC_FOUND_ROWS

2005-02-01 Thread Matt Babineau
Ok I installed PHP 4.3.10 and it still has not fixed the problem. If I remove the SQL_CALC_FOUND_ROWS from the query, it works no problems! This is very strange behavior! Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message

[PHP] Sigh....regex - need to search/replace string for anything but numbers

2005-01-25 Thread Matt Babineau
Ahh so the regex gods are pissed at me. This is simple (I think), but I need to figure out how to strip out everything in a string that is not a number. Any takers? Thanks, Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED]

[PHP] Multiple select boxes - select in one box, populate from DB in second with no refresh!

2005-01-21 Thread Matt Babineau
refresh. I have thought about the Iframe solution - does this work in Mozilla? Are there non-iFrame solutions? Thanks, Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED]

RE: [PHP] Multiple select boxes - select in one box, populate from DB in second with no refresh!

2005-01-21 Thread Matt Babineau
;-) Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, January 21, 2005 12:41 PM To: Matt Babineau Subject: Re: [PHP] Multiple select boxes - select in one box

RE: [PHP] Re: Installing GD library

2004-05-07 Thread Matt Babineau
Installing GD for Linux can be a little more challanging: If you are running red had here are a few things you will probably need: RPMS: Zlib Zlib-devel Libjpeg Libjpeg-devel GD (comes with php 4.3.0) I think that was all I needed. Then when you compile php try something like this:

RE: [PHP] SCP a file from my server to another using PHP

2004-05-05 Thread Matt Babineau
Its getting run from PHP with the User of nobody:nobody in Apache -Original Message- From: Vail, Warren [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 5:45 PM To: 'Matt Babineau'; [EMAIL PROTECTED] Subject: RE: [PHP] SCP a file from my server to another using PHP Matt, Question

[PHP] SCP a file from my server to another using PHP

2004-05-04 Thread Matt Babineau
Hey All: Interesting problem that I haven't been able to solve using google. I want to move a file from my system using php, and I want to SCP it to another system. I setup the 2 keys and I can SCP files w/o using a password from the command line with no problem. When I take the same string that

[PHP] mysql_list_fields() bug?

2003-11-10 Thread Matt Babineau
Hey All - just wanted to check in with anyone who has used this function. I currectly have a function that I created, and inside it I have this function. Outside of my custom function I have a mysql_pconnect() statement and a mysql_select_db() statement. I also have another custom function that

RE: [PHP] mysql_list_fields() bug?

2003-11-10 Thread Matt Babineau
On Mon, 2003-11-10 at 16:43, Jay Blanchard wrote: [snip] Outside of my custom function I have a mysql_pconnect() statement and a mysql_select_db() statement. So the end result being if I take the connect statement out of the function one(), it fails, but function two() still works! Am I

RE: [PHP] mysql_list_fields() bug?

2003-11-10 Thread Matt Babineau
Ok, this ended up working well. I'm still wondering why in my example function two() works, without needing to provide the resource identifier to mysql_query(), how can mysql_query() pick up the resource identifier automatically while mysql_list_fields does not? Thx- Matt On Mon, 2003-11-10 at

Re: [PHP] w3c-compliant form-action parameters

2003-10-24 Thread Matt Babineau
All this aside what about using the ASCII value of the symbol. (I think its ASCII). You know how sometimes links with spaces in them are %20 instead of the actual space? I'm not sure what it is but I am pretty sure there is a %something for and ampersand symbol. That may workif its not

[PHP] Weird problem when creating a db connection and trying to reference it in a function

2003-10-24 Thread Matt Babineau
Hey all- I found another strange problem. I am creating a mysql database connection like this: @ $db = mysql_pconnect(host, user, pass); mysql_select_db(dbname); Now, I have a function that inside uses mysql_list_fields() function getFields($table, $dbname) { $fields =

Re: [PHP] cURL Authorize.Net Super slow processing times!!

2003-10-15 Thread Matt Babineau
Khalid wrote: Matt Babineau wrote: Hey All- Just built a cart, and I want to connect it to Authorize.net with cURL and I am able to do that fine. The problem is, it takes a while to process the transaction. Sometimes the user's browser just sits there for 5, 10 or even 30 seconds before

Re: [PHP] header() refresh vs location

2003-10-14 Thread Matt Babineau
In this example, index.php would be a violation i think. however you don't need to provide an absolute URL, you could provide / or ever /index.php I say this because the header specifying the Host had already been sent. so you could do Location: Host + Relative_URL or Location: Relative_URL

[PHP] cURL Authorize.Net Super slow processing times!!

2003-10-14 Thread Matt Babineau
Hey All- Just built a cart, and I want to connect it to Authorize.net with cURL and I am able to do that fine. The problem is, it takes a while to process the transaction. Sometimes the user's browser just sits there for 5, 10 or even 30 seconds before the page finishes processing and they are

Re: [PHP] anyone have any idea as to how to display a messageafter a page has started loading??

2003-08-22 Thread Matt Babineau
Perhaps you wrap a table around your image and set the background= of the table to an image of the same size that says Loading Thumbnails, then when the image loads, it loads over the background. Matt On Fri, 2003-08-22 at 15:08, Jeffrey D. Means wrote: I am looking for a way to say please wait

[PHP] Need help with GD installation on RH9

2003-08-21 Thread Matt Babineau
Hey All- If anyone has some experience getting GD setup on RH9, I could really use some. Please email me off list if you are willing to answer a few questions. Thanks! Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Stripping out and URL hacking characters from a URL

2003-08-19 Thread Matt Babineau
Hi All-- Does anyone have a function or something they have already written to remove any URL hacking characters, mainly the single quote, but I'm looking for a nice function to filter my _GET variables against. Gotta protect the database...ya know :) TIA- Matt -- PHP General Mailing List

[PHP] Stripping out and URL hacking characters from a URL

2003-08-19 Thread Matt Babineau
Hi All-- Does anyone have a function or something they have already written to remove any URL hacking characters, mainly the single quote, but I'm looking for a nice function to filter my _GET variables against. Gotta protect the database...ya know :) TIA- Matt -- PHP General Mailing List

[PHP] is the list getting virus spammed?

2003-08-19 Thread Matt Babineau
Hmmwondering why I keep receiving email sent to the list, that has this stupid attachment...anyone else getting these? Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Checkboxes

2003-08-15 Thread Matt Babineau
You could try this: input type=hidden name=box1 value=0 input type=checkbox name=box1 value=1 So basically when it get submitted, you'll have either a 0 or 1 response to know whether or not it has been checked. Does this help? Matt On Fri, 2003-08-15 at 14:25, Cesar Aracena wrote: Hi all,

Re: [PHP] If you ever had a Vic20

2003-08-15 Thread Matt Babineau
mysql_num_rows($news) On Fri, 2003-08-15 at 17:42, John Taylor-Johnston wrote: OK, I tried this, but am getting this error: Warning: Wrong parameter count for mysql_num_rows() in /.../testals.php on line 189 189 if (mysql_num_rows() == 1) What's up? John $myconnection =

Re: [PHP] OT - my apologies

2003-08-14 Thread Matt Babineau
No problems :-) It sounds like Outlook was working like a charm? On Wed, 2003-08-13 at 13:48, [EMAIL PROTECTED] wrote: Aloha all, I just wanted to apologize for some of the Out of Office alerts some of you may have gotten from me yesterday. I had thought I had disabled the function, but it

Re: [PHP] LAMP

2003-08-14 Thread Matt Babineau
I have RH9, Apache 2.0.47 running in SAPI compiled with apxs2, PHP 4.3.2, and MySQL 4.0.14-standard I compiled all of these as doing it the rpm was too annoying. On Tue, 2003-08-12 at 14:54, Rankin, Randy wrote: I am setting up a new Redhat Linux 9 box for use as a non-production test server.

Re: [PHP] how do I spoof a get request

2003-08-14 Thread Matt Babineau
Take a look at cURL: http://www.php.net/manual/en/ref.curl.php On Tue, 2003-08-12 at 20:13, Dan Anderson wrote: I have noticed that sometimes I cannot fopen($web_address,'r') or use any similar files if the web address contains a form get in it. (i.e. ends in a ?var1=xxxvar2=xxx...). I was

[PHP] How to Authenitcate using PHP (RH9, PHP 4.3.2, MySQL 4)

2003-08-14 Thread Matt Babineau
Hi All- I was wondering if anyone had any suggestions on how to properly authenticate users using redhat php and mysql. Currently we are using .htaccess files, but I was thinking it may be easier to manage this via a php/mysql admin interface... I imagine plenty of authentication schemes have

[PHP] LAMP I need a good tutorial on how to install and configure GD2

2003-08-14 Thread Matt Babineau
Anyone have a good place to help with this... Google was seeming a bit light on good help. I tried to get it going but there seemed to be some dependant libraries tha tI could not build myself, they were erroring out..blah blah. Is there any easier way to do this? Thanks, Matt -- PHP General

Re: [PHP] how do I spoof a get request

2003-08-14 Thread Matt Babineau
Yeah, I believe on Apache/Linux, it needs to be compiled in, and on windows there is just some configuration and file moving to do. cURL will do what you need it to, there is even code on the PHP site for making the POST happen. Matt On Tue, 2003-08-12 at 20:27, Dan Anderson wrote: Doesn't

[PHP] Make an MDB File on the Fly

2003-02-03 Thread Matt Babineau
I have a client that currently gets MDB exports of their database to run reports and mail merges with. Has anyone heard of or have any idea of how to make an MDB (Access Data File) on the file from PHP or any other scripting language? Thx- Matt

[PHP] re: ini_set() / Jason Wong / dynamically setting this?

2002-12-02 Thread Matt Babineau
Hi everyone: I just read the reply from Jason Wong pretty much just about my question. Using the ini_set() command at the top of all my pages I think would work out ok, but when I upload my pages to the server, how can I dynamically set the include path to match the root of my web folder on

RE: [PHP] HTML issue... spaces in between images

2002-08-12 Thread Matt Babineau
TABLE TR TDIMG SRC=/images/image.gif/TD TDIMG SRC=/images/image.gif/TD TDIMG SRC=/images/image.gif/TD TDIMG SRC=/images/image.gif/TD /TR /TABLE Matt Babineau MCWD / CCFD - e: [EMAIL PROTECTED] p: 603.943.4237 w: http

[PHP] PHP Hosting

2002-08-02 Thread Matt Babineau
If any PHP hosts are out there I have a question: How do you keep users from erasing / altering files out side of their web folder with PHP? Doesn't PHP run in the system user context? Is is possible to prevent a user from using PHP to alter anything but in their Web folder? Matt Babineau

RE: [PHP] Problem with ?xml .... inside the PHP code, due to ?

2002-08-01 Thread Matt Babineau
?php $XML = \?xml version='1.0' encoding='UTF-8'\?ProductApple/Product; echo $XML; ? Try this? Matt Babineau MCWD / CCFD - e: [EMAIL PROTECTED] p: 603.943.4237 w: http://www.criticalcode.com PO BOX 601 Manchester, NH 03105 -Original Message

RE: [PHP] Browser Javascript capabilities

2002-07-31 Thread Matt Babineau
could work. Matt Babineau MCWD / CCFD - e: [EMAIL PROTECTED] p: 603.943.4237 w: http://www.criticalcode.com PO BOX 601 Manchester, NH 03105 -Original Message- From: Dennis Gearon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 12:12 PM

RE: [PHP] Browser Javascript capabilities

2002-07-31 Thread Matt Babineau
Yeah probably, you might need to add a 1 or 2 second delay to the meta refresh... Matt Babineau MCWD / CCFD - e: [EMAIL PROTECTED] p: 603.943.4237 w: http://www.criticalcode.com PO BOX 601 Manchester, NH 03105 -Original Message- From: Chris

RE: [PHP] Patch 4.2.2

2002-07-29 Thread Matt Babineau
Did you restart Apache? I am an Apache Newbie, but I would think you would need to simple restart apache to take the old PHP out of memory so it can load the new one? Matt Babineau MCWD / CCFD - e: [EMAIL PROTECTED] p: 603.943.4237 w: http

[PHP] PHP Consulting Quote Format (fro mprevious discussion)

2002-07-29 Thread Matt Babineau
the thread, I can't seem to find it. Matt Babineau MCWD / CCFD - e: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] p: 603.943.4237 w: http://www.criticalcode.com/ http://www.criticalcode.com PO BOX 601 Manchester, NH 03105

[PHP] Sessions, how they exist and die

2002-07-25 Thread Matt Babineau
but I have had experiences in other languages in the past where this is the case. The session cookie stayed in the users browser, so they kept getting the same session and not a new session if they left and came back a day later. Matt Babineau MCWD / CCFD - e

RE: [PHP] Paying Job...

2002-07-25 Thread Matt Babineau
When first speaking with a client, would you charge an initial constation fee for lets say conference calls? How would you invoice stuff like this? on a monthly basis? Or every two weeks? Matt Babineau MCWD / CCFD - e: [EMAIL PROTECTED] p: 603.943.4237 w

RE: [PHP] GD Library

2002-07-25 Thread Matt Babineau
Not only the solution just posted, but I was using this before and needed to set the dll used to php_gd2.dll, I am pretty sure it got renamed in one of the more recent releases of PHP. Matt Babineau MCWD / CCFD - e: [EMAIL PROTECTED] p: 603.943.4237 w

RE: [PHP] PHP Security Advisory: Vulnerability in PHP versions4.2.0 and 4.2.1

2002-07-22 Thread Matt Babineau
Heh ASP. Hehehehehe Matt Babineau MCWD / CCFD - e: [EMAIL PROTECTED] p: 603.943.4237 w: http://www.criticalcode.com PO BOX 601 Manchester, NH 03105 -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Monday

[PHP] What does register_globals do?

2002-07-22 Thread Matt Babineau
I have never had a clear understanding about what this does, the php.ini has an explanation but being newer to PHP I don't understand it very well. Could someone prodive a human explanation about what register_globals does and why it is so important? Matt Babineau MCWD / CCFD

[PHP] $_SESSION - autostart, or session_start() ?

2002-07-17 Thread Matt Babineau
If I set the SESSION autostart = 1 in the PHP config, would that eliminate my need to use session_start() in my code? I have some PHP inline with some HTML, and the PHP is telling me: Warning: Cannot send session cookie - headers already sent Any ideas how to remedy this? Matt Babineau MCWD

[PHP] exec() function question on Solaris

2002-07-16 Thread Matt Babineau
execution space so that I can get the results from the first becaus eI think it is running them separately so when I try to pull the results, it has no results to pull. Does this make sense? any suggestions? Thanks, Matt Babineau MCWD / CCFD - e: mailto