[PHP] Rate to charge

2005-07-21 Thread timothy johnson
I have been asked to look in toprogramming a PHP system for someone, and while I have been programming for a while this will be the first time it will be for someone other then a friend. Just wanted to get some ideas on how much you charge for program PHP/Mysql. Any ideas on how to charge would be

[PHP] Re: Rate to charge

2005-07-21 Thread Jasper Bryant-Greene
timothy johnson wrote: I have been asked to look in toprogramming a PHP system for someone, and while I have been programming for a while this will be the first time it will be for someone other then a friend. Just wanted to get some ideas on how much you charge for program PHP/Mysql. Any ideas

Re: [PHP] Re: Rate to charge

2005-07-21 Thread Evert | Rooftop
Jasper Bryant-Greene wrote: timothy johnson wrote: I have been asked to look in toprogramming a PHP system for someone, and while I have been programming for a while this will be the first time it will be for someone other then a friend. Just wanted to get some ideas on how much you charge

Re: [PHP] Re: Rate to charge

2005-07-21 Thread Jasper Bryant-Greene
Evert | Rooftop wrote: Jasper Bryant-Greene wrote: I'm in New Zealand and charge NZ$50/hour as a base rate for PHP web development. I don't know what that is in your currency, try www.xe.com/ucc to find out. That's almost probably as cheap as india. True, but markets are different in

Re: [PHP] Re: Rate to charge

2005-07-21 Thread Evert | Rooftop
Jasper Bryant-Greene wrote: Evert | Rooftop wrote: Jasper Bryant-Greene wrote: I'm in New Zealand and charge NZ$50/hour as a base rate for PHP web development. I don't know what that is in your currency, try www.xe.com/ucc to find out. That's almost probably as cheap as india. True,

Re: [PHP] AJAX PHP

2005-07-21 Thread Paul Waring
On Thu, Jul 21, 2005 at 11:22:25AM +0530, balwant singh wrote: Have anybody tried PHP AJAX, may please share your experience. also pls. suggest good link of tutorial on this. I haven't tried it myself, but this looks rather good, article on how to implement Google Suggest in PHP:

Re: [PHP] AJAX PHP

2005-07-21 Thread Joe Harman
Yeah, AJAX is really going to change the way web applications are made... I've messed around with the tutorials with it... I've also seen it referred to as XMLHttpRequest .. I think the AJAX class transforms your PHP functions into javascript... seems like the class is just made to for people

[PHP] Re: how to check for a static call from an object

2005-07-21 Thread Sebastian Mendel
Sebastian Mendel wrote: Hi, how can i check if a method is called statically when called from inside another object? (without debug_bactrace()) class foo { function bar() { if ( isset( $this ) ) { return 'not static'; } return

[PHP] Howto connect to the internet using php

2005-07-21 Thread Steven
Is there any way for me to use php to make my windows xp pc connect to the internet, either by starting the windows dialer or by some other means? The windows machine uses a standard 56k dialup to connect to the internet. Thanks Steve -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Rate to charge

2005-07-21 Thread Matt Darby
timothy johnson wrote: I have been asked to look in toprogramming a PHP system for someone, and while I have been programming for a while this will be the first time it will be for someone other then a friend. Just wanted to get some ideas on how much you charge for program PHP/Mysql. Any

Re: [PHP] Howto connect to the internet using php

2005-07-21 Thread Cafer Simsek
Hi It may posible with .Net and COM functions, I think. see : http://www.php.net/manual/en/ref.com.php Best Regards -Cafer Prş, 2005-07-21 tarihinde 12:10 +0200 saatinde, Steven yazdı: Is there any way for me to use php to make my windows xp pc connect to the internet, either by starting

Re: [PHP] Howto connect to the internet using php

2005-07-21 Thread André Medeiros
On Thu, 2005-07-21 at 12:10 +0200, Steven wrote: Is there any way for me to use php to make my windows xp pc connect to the internet, either by starting the windows dialer or by some other means? The windows machine uses a standard 56k dialup to connect to the internet. Thanks Steve

RE: [PHP] gloabl reference behavior question?

2005-07-21 Thread Ford, Mike
On 20 July 2005 23:40, Surendra Singhi wrote: Hello, (1) When I try this code: ?php $var_global = stuff; function f1() { global $var_global; This is equivalent to creating a $var_global which is local to the function, and making it be a reference to the global

Re: [PHP] Howto connect to the internet using php

2005-07-21 Thread André Medeiros
On Thu, 2005-07-21 at 12:10 +0200, Steven wrote: Is there any way for me to use php to make my windows xp pc connect to the internet, either by starting the windows dialer or by some other means? The windows machine uses a standard 56k dialup to connect to the internet. Thanks Steve

Re: [PHP] Howto connect to the internet using php

2005-07-21 Thread Mikey
Steven wrote: Is there any way for me to use php to make my windows xp pc connect to the internet, either by starting the windows dialer or by some other means? The windows machine uses a standard 56k dialup to connect to the internet. Thanks Steve If you have your machine already set-up

[PHP] Re: still some problems with contact form

2005-07-21 Thread Mark Rees
Hello Mark An alternative (and more user-friendly) approach is to have the form's action as itself (i.e. the form on contact.php submits to contact.php). You can then identify which fields are incomplete and highlight them in the form. This will make it easier for users to see what they have done

Re: [PHP] Content Header

2005-07-21 Thread Chris Shiflett
Christopher J. Umina wrote: I currently have a script which streams data out of a MySQL database, and prints the content headers correctly, however, when I use the following line: header(Content-Disposition: attachment; filename=\. $filename .\); it prompts the user to download the file each

[PHP] Class/Function Query Call Problem

2005-07-21 Thread Chuck Brockman
I'm creating a psuedo mail/message app for users to send messages to one another. For this, I've created a parent class, class.members.php, and an extended class, class.mail.php. The problem I'm having is when I make page which calls the classes members and memberMail creates an infite loop;

Re: [PHP] AJAX PHP

2005-07-21 Thread Marco Tabini
We had a webcast on PHP and Ajax a while back--the recordings are still available for free at http://blogs.phparch.com/mt/index.php?p=49. Also you may want to try looking for Ajax here: http://beeblex.com/ajax (it's a new search engine I just put online, so I thought I'd take the opportunity for

[PHP] Character Encoding problem

2005-07-21 Thread Regine Velasquez
Whenever I switch the encoding of a page to UTF-8, the characters ñ, ë, ì, û, á, etc., automatically changes to question marks. I've originally set the encoding of a page to ISO-8859-1 using header () function. header ('Content-Type: text/html; charset=ISO-8859-1'); Does anybody know how to

Re: [PHP] AJAX PHP

2005-07-21 Thread Brent Baisley
Started playing with it about two months and have now integrated it into my project. Makes things a lot easier and much more dynamic. No more round trips to the server just to mark an action as completed or other simple things that normally required a refresh. You can do dynamic lookups

Re: [PHP] Character Encoding problem

2005-07-21 Thread Marco Tabini
On 7/21/05 8:32 AM, Regine Velasquez [EMAIL PROTECTED] wrote: Whenever I switch the encoding of a page to UTF-8, the characters ñ, ë, ì, û, á, etc., automatically changes to question marks. I've originally set the encoding of a page to ISO-8859-1 using header () function. header

RE: [PHP] objects destroyed in same order as created?

2005-07-21 Thread Shaw, Chris - Accenture
Jasper, I would have thought php would have called the destructors on each of the classes in a LIFO fashion, but if it doesn't, just use unset() as a workaround, where you can remove the classes in the order you want. C. -Original Message- From: Jasper Bryant-Greene [mailto:[EMAIL

[PHP] mail will not send attachment

2005-07-21 Thread Ross
Please help, I need the body of this email to be sent as HTML and have the attachment go with it (a pdf from my HD) but it doesn't want to send. R. ?php include ('connect.php'); global $mail_to, $mail_cc, $mail_bcc, $mail_from,

[PHP] GET form method and accessing its value into a cookie

2005-07-21 Thread Steve Turnbull
Hi I have a page which generates 'edit' links (used to edit user details). The code snippet on the 'list_user.php' page is; --- $print_rows .=tr class=\stdtablecells\ \n.    td{$details['name']}/td \n.    td{$details['mail']}/td 

[PHP] GET form method and accessing its value into a cookie

2005-07-21 Thread Steve Turnbull
Hi I have a page which generates 'edit' links (used to edit user details). The code snippet on the 'list_user.php' page is; --- $print_rows .=tr class=\stdtablecells\ \n. td{$details['name']}/td \n. td{$details['mail']}/td

Re: [PHP] AJAX PHP

2005-07-21 Thread Ben Liu
I've been tinkering with AJAX for a few weeks now. I've used it in a simple user registration system form. Instead of submitting a desired username and waiting for a round trip to the server to verify that the username is not already in use, I used AJAX to perform the DB query in the

Re: [PHP] mail will not send attachment

2005-07-21 Thread André Medeiros
Try http://phpmailer.sourceforge.net/ Works awesomelly great. I've been using it for quite some time now, and I don't want to look at mail() again :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] db insert question

2005-07-21 Thread JamesBenson
Im using mysql with PHP4, whats the best way to insert as many as 20 records at one time from a form? Currently im just assigning each one a variable but that is messy and takes ages, is their a way to loop over the array of form data then maybe do the same to enter it into a database?

RE: [PHP] db insert question

2005-07-21 Thread Jim Moseby
Im using mysql with PHP4, whats the best way to insert as many as 20 records at one time from a form? Currently im just assigning each one a variable but that is messy and takes ages, is their a way to loop over the array of form data then maybe do the same to enter it into a database?

Re: [PHP] GET form method and accessing its value into a cookie

2005-07-21 Thread Mark Cain
Cookies will not become visible until the next loading of a page. Assign the data to a variable at the same time it is assigned to a cookie and call the variable to make the data visible on the first page. Cookies must be deleted with the same parameters as they were set with. Check you new data

Re: [PHP] db insert question

2005-07-21 Thread JamesBenson
Thanks for your reply, your example demonstrates what i was doing but does that do a MySQL query for every piece of data? So 20 form values would be 20 db queries, would that not consume a lot of resources? Is their another way? Thanks, James Jim Moseby wrote: Im using mysql with PHP4,

RE: [PHP] db insert question

2005-07-21 Thread Jim Moseby
Jim Moseby wrote: Im using mysql with PHP4, whats the best way to insert as many as 20 records at one time from a form? Currently im just assigning each one a variable but that is messy and takes ages, is their a way to loop over the array of form data then maybe do the same to

Re: [PHP] db insert question

2005-07-21 Thread Duncan Hill
On Thursday 21 July 2005 15:02, Jim Moseby typed: As far as I know, there is no way to insert 20 unique rows of data into a MySQL table without executing 20 queries.  Maybe someone else here does(?). Perhaps drop a note over on the MySQL list, since this is really more an SQL question than

RE: [PHP] db insert question

2005-07-21 Thread Cafer Simsek
Hi You may try sending multiple query with one mysql_query() function call via seperating by ;. Regards. -Cafer Prş, 2005-07-21 tarihinde 10:02 -0400 saatinde, Jim Moseby yazdı: Jim Moseby wrote: Im using mysql with PHP4, whats the best way to insert as many as 20 records at one

RE: [PHP] db insert question

2005-07-21 Thread Jim Moseby
On Thursday 21 July 2005 15:02, Jim Moseby typed: As far as I know, there is no way to insert 20 unique rows of data into a MySQL table without executing 20 queries.  Maybe someone else here does(?). Perhaps drop a note over on the MySQL list, since this is really more an SQL

Re: [PHP] db insert question

2005-07-21 Thread Matthew Weier O'Phinney
* JamesBenson [EMAIL PROTECTED] : Thanks for your reply, your example demonstrates what i was doing but does that do a MySQL query for every piece of data? So 20 form values would be 20 db queries, would that not consume a lot of resources? Not necessarily. If you use a prepared statement

Re: [PHP] db insert question

2005-07-21 Thread Duncan Hill
On Thursday 21 July 2005 15:23, Jim Moseby typed: Yes, MySQL supports an extended insert syntax of insert into foo (...) values (...), (...), (...). Interesting! Consulting the manual, I see that you are correct. So the OP would do something like: $sql=insert into foo values ;

Re: [PHP] db insert question

2005-07-21 Thread James Benson
Thanks for all your help, ive got it working as i needed, my db query is built like this, works but probably not the best way of doing it:- $sqlStart = INSERT INTO `tester` (; $sqlMiddle = ) VALUES (; $sqlEnd = ); $keys = array(); $values = array(); foreach($formData as

[PHP] Attaching a PDF in email (no body text displays)

2005-07-21 Thread Ade Smith
I am attaching a PDF document to an email, this part works great, however to get this to work it prevents the text in the body of the message to be displayed, what am I doing wrong? Here is the code: $filename = confirmation.pdf; if(!($fp = fopen($filename, r))): $error =

RE: [PHP] Attaching a pdf in email (no body text displays)

2005-07-21 Thread Jay Blanchard
SOMEONE ANSWERED THIS FOR YOU I've attached some comments inline. Ade Smith wrote: I am attaching a PDF document to an email, this part works great, however to get this to work it prevents the text in the body of the message to be displayed, what am I doing wrong? Here is the code

RE: [PHP] Attaching a pdf in email (no body text displays)

2005-07-21 Thread Ade Smith
Unfortunately their suggestion did not work. -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 11:28 AM To: PHP - General Subject: RE: [PHP] Attaching a pdf in email (no body text displays) SOMEONE ANSWERED THIS FOR YOU I've attached

RE: [PHP] Attaching a pdf in email (no body text displays)

2005-07-21 Thread Jay Blanchard
[snip] Unfortunately their suggestion did not work. [/snip] Then, instead of just reposting your original message, let us know that it didn't work. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Attaching a pdf in email (no body text displays)

2005-07-21 Thread Jay Blanchard
[snip] Then, instead of just reposting your original message, let us know that it didn't work. [/snip] Forgot to say that there is a tutorial on http://www.zend.com by Coggershall telling how to do e-mail with attachements. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Howto connect to the internet using php

2005-07-21 Thread Angelo Zanetti
cant u use the exec() function to call system commands... Steven wrote: Is there any way for me to use php to make my windows xp pc connect to the internet, either by starting the windows dialer or by some other means? The windows machine uses a standard 56k dialup to connect to the

[PHP] iconv trouble on OS X

2005-07-21 Thread Marcus Bointon
I wrote this question then found out where the problem was, so this is just for the archives... == I've compiled PHP 5.0.4 successfully on OS X 10.4.2, but I'm getting a weird problem with iconv. I specified it in my configure line: --with-iconv and it seems to pick it up ok

[PHP] Re: gloabl reference behavior question?

2005-07-21 Thread Surendra Singhi
Ford, Mike [EMAIL PROTECTED] writes: On 20 July 2005 23:40, Surendra Singhi wrote: Thanks, for explaining it. (1) When I try this code: ?php $var_global = stuff; function f1() { global $var_global; This is equivalent to creating a $var_global which is local to the

Re: [PHP] Rate to charge

2005-07-21 Thread Philip Hallstrom
I have been asked to look in toprogramming a PHP system for someone, and while I have been programming for a while this will be the first time it will be for someone other then a friend. Just wanted to get some ideas on how much you charge for program PHP/Mysql. Any ideas on how to charge would

Re: [PHP] Attaching a PDF in email (no body text displays)

2005-07-21 Thread James Benson
Personally I use the MimeMail class, that works a treat, http://www.phpguru.org/static/mime.mail.html Their are two versions, one php4 one php5, or install via pear. JB Ade Smith wrote: I am attaching a PDF document to an email, this part works great, however to get this to work it

Re: [PHP] Attaching a PDF in email (no body text displays)

2005-07-21 Thread Joseph
Ade Smith wrote: I am attaching a PDF document to an email, this part works great, however to get this to work it prevents the text in the body of the message to be displayed, what am I doing wrong? Here is the code: $filename = confirmation.pdf; if(!($fp = fopen($filename, r))):

Re: [PHP] Attaching a PDF in email (no body text displays)

2005-07-21 Thread Joseph
sorry, i think i misunderstood his problem. I didn't get the replies to his original post until after I sent mine jzf Joseph wrote: Ade Smith wrote: I am attaching a PDF document to an email, this part works great, however to get this to work it prevents the text in the body of the

[PHP] gzuncompress mysql blob field

2005-07-21 Thread Christian Calloway
Heya guys, I've ran into a problem that I just can't seem to get around. Basically I am storing file contents in a compressed format (gzcompress -at 9) in my database -- why -- basically to affect a search of said content using keywords retrieved via an input source (it could be any, doesn't

[PHP] Loading dynamic extension

2005-07-21 Thread Mathieu Dumoulin
Hi, ive got two hard questions for you guys. 1. I'm trying to load an extension dynamically using DL(): if(!extension_loaded('gtk')){ dl('php_gtk.'.PHP_SHLIB_SUFFIX); } The problem with this is that i can't load the extension correctly since the software is running from a USBKEY.

[PHP] Re: gzuncompress mysql blob field

2005-07-21 Thread Christian Calloway
Still playing around.. if I remove the gzuncompress function.. it works perfectly. hmm.. it looks something like this $resultRecords = 2-dimensional set of associative records from database query (i use the pear db class) foreach ($resultRecords as $record) { $fileContent = gzuncompress

[PHP] Re: [PHP-DEV] $this availability inside static-functions

2005-07-21 Thread John LeSueur
Sean Coates wrote: how can i check if a method is called statically when called from inside another object? (without debug_bactrace()) plug type=ownhttp://blog.phpdoc.info/archives/4-Schizophrenic-Methods.html/plug Short answer: $isStatic = !(isset($this) get_class($this) ==

[PHP] Re: gzuncompress mysql blob field

2005-07-21 Thread Christian Calloway
Ahh I think I got it.. max field size reached Christian Calloway [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Heya guys, I've ran into a problem that I just can't seem to get around. Basically I am storing file contents in a compressed format (gzcompress -at 9) in my database

[PHP] Help with a home-grown function

2005-07-21 Thread Dan Trainor
Hello, all - I've been looking around for a function that would tell me if a $value in a $key=$value array was empty, and I could not find one. So I decided to make my own. Even if I am re-inventing the wheel, I thought that the practice might be good for me. However, my function doesn't

RE: [PHP] Help with a home-grown function

2005-07-21 Thread Mike Johnson
From: Dan Trainor [mailto:[EMAIL PROTECTED] Hello, all - I've been looking around for a function that would tell me if a $value in a $key=$value array was empty, and I could not find one. So I decided to make my own. Even if I am re-inventing the wheel, I thought that the practice

Re: [PHP] Help with a home-grown function

2005-07-21 Thread Dan Trainor
Mike Johnson wrote: From: Dan Trainor [mailto:[EMAIL PROTECTED] Hello, all - I've been looking around for a function that would tell me if a $value in a $key=$value array was empty, and I could not find one. So I decided to make my own. Even if I am re-inventing the wheel, I thought that

[PHP] Session help!?

2005-07-21 Thread Richard Baldwin
Hey, I have a site where I am using session_start() at the beginning of each page. The session id is passed transparently from the first page but after that it dissapears from the links and I lose all my session variables. Is there something elementary I'm missing? This is my first stab at

Re: [PHP] Help with a home-grown function

2005-07-21 Thread Dan Trainor
Dan Trainor wrote: Mike Johnson wrote: From: Dan Trainor [mailto:[EMAIL PROTECTED] Hello, all - I've been looking around for a function that would tell me if a $value in a $key=$value array was empty, and I could not find one. So I decided to make my own. Even if I am re-inventing the

Re: [PHP] objects destroyed in same order as created?

2005-07-21 Thread Jasper Bryant-Greene
Shaw, Chris - Accenture wrote: Jasper, I would have thought php would have called the destructors on each of the classes in a LIFO fashion, but if it doesn't, just use unset() as a workaround, where you can remove the classes in the order you want. I should add that this behaviour seems to

[PHP] Date Handling Recommendations

2005-07-21 Thread JM
Hi all, I need to manage some records with dates. mmdd I'm putting select options breaking the three up in numeric pull downs. no problem gathering and storing the data in my mysql db as integers then posting them for existing records etc. i know their is a datetime datatype but it doesnt

RE: [PHP] Help with a home-grown function

2005-07-21 Thread Chris W. Parker
Dan Trainor mailto:[EMAIL PROTECTED] on Thursday, July 21, 2005 2:03 PM said: I never see hi even if an array is set as such: $vars = array(one,two,three,four,five); That's because your function always returns true. If it finds a missing value it returns true. If it doesn't find a

[PHP] [install] [curl] cannot finish ./configure

2005-07-21 Thread How to Fill account
Hi guys, i tried to add curl support to my php-4.3.11, and now with new php-4.4.0, and i can't finish ./configure. i run debian woody with some backports (curl and libcurl are one of them). command line: ./configure --with-apxs=/usr/local/apache/bin/apxs --with-curl [and other --with] here is

Re: [PHP] Help with a home-grown function

2005-07-21 Thread Dan Trainor
Chris W. Parker wrote: Dan Trainor mailto:[EMAIL PROTECTED] on Thursday, July 21, 2005 2:03 PM said: I never see hi even if an array is set as such: $vars = array(one,two,three,four,five); That's because your function always returns true. If it finds a missing value it returns

Re: [PHP] Date Handling Recommendations

2005-07-21 Thread Philip Hallstrom
Hi all, I need to manage some records with dates. mmdd I'm putting select options breaking the three up in numeric pull downs. no problem gathering and storing the data in my mysql db as integers then posting them for existing records etc. i know their is a datetime datatype but it doesnt

RE: [PHP] Date Handling Recommendations

2005-07-21 Thread Jim Moseby
Hi all, I need to manage some records with dates. mmdd I'm putting select options breaking the three up in numeric pull downs. no problem gathering and storing the data in my mysql db as integers then posting them for existing records etc. i know their is a datetime datatype but it

[PHP] RE: [SPAM 6.0] [PHP] Session help!?

2005-07-21 Thread Programmer
The biggest gotcha that I have ran into concerning sessions is this: If your client's browser is I.E. and the domain is named with _(underscores), -(dashes), etc. I.E. discards the session and starts a new one. I don't know if this is fixed under SP2. Example: a domain name

[PHP] Detecting case change?

2005-07-21 Thread David Yee
Hi- how can I find the character postion in a string right before the first case change? Is there a function out there that already does this? E.g. passing the string WebApplication to this function would return the number 2. Thanks for any input. David -- PHP General Mailing List

Re: [PHP] Detecting case change?

2005-07-21 Thread Philip Hallstrom
Hi- how can I find the character postion in a string right before the first case change? Is there a function out there that already does this? E.g. passing the string WebApplication to this function would return the number 2. Thanks for any input. I can't think of a function that does this,

Re: [PHP] Detecting case change?

2005-07-21 Thread Robert Cummings
On Thu, 2005-07-21 at 18:30, Philip Hallstrom wrote: Hi- how can I find the character postion in a string right before the first case change? Is there a function out there that already does this? E.g. passing the string WebApplication to this function would return the number 2. Thanks

RE: [PHP] Detecting case change?

2005-07-21 Thread David Yee
That'll work- didn't realize you can compare strings like that in PHP- thanks guys. David -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 3:38 PM To: Philip Hallstrom Cc: David Yee; PHP-General Subject: Re: [PHP] Detecting case change?

Re: [PHP] Date Handling Recommendations

2005-07-21 Thread Edward Vermillion
Jim Moseby wrote: Hi all, I need to manage some records with dates. mmdd I'm putting select options breaking the three up in numeric pull [snip] For instance, what would you have to do to get the day of the week for a day 66 days prior to the stored date? If your date was stored in a

[PHP] More toroughly checking a script before execution

2005-07-21 Thread Markus Fischer
Hi, is there a way to have a more torough checking of PHP code before executing? I can't remember the number of times when I try to read a variable which hasn't assigned a value yet. This increases as projects are getting bigger and more files are used. I know that due it's loosely typed

[PHP] Rasmus' 30 second AJAX Tutorial - [was Re: [PHP] AJAX PHP]

2005-07-21 Thread Rasmus Lerdorf
I find a lot of this AJAX stuff a bit of a hype. Lots of people have been using similar things long before it became AJAX. And it really isn't as complicated as a lot of people make it out to be. Here is a simple example from one of my apps. First the Javascript: function

Re: [PHP] Date Handling Recommendations

2005-07-21 Thread JM
thanks all. i just made the changes and its working smooth. i remember having a bunch of drama trying to use DATE data type...oh well, i just needed something to get me off my butt haha thanks again On 7/21/05, Philip Hallstrom [EMAIL PROTECTED] wrote: Hi all, I need to manage some records

Re: [PHP] More toroughly checking a script before execution

2005-07-21 Thread Rasmus Lerdorf
Markus Fischer wrote: Hi, is there a way to have a more torough checking of PHP code before executing? I can't remember the number of times when I try to read a variable which hasn't assigned a value yet. This increases as projects are getting bigger and more files are used. I know

[PHP] Re: Rasmus' 30 second AJAX Tutorial - [was Re: [PHP] AJAX PHP]

2005-07-21 Thread Joe Harman
Hey Rasmus, Well said! Thanks for the example to... I am sure I am going to refer to it more than a few times... The AJAX/XMLHttpRequest was more an ephiphony for me than anything else Since the only references I have that are related to PHP or any other server side scripting languages is

[PHP] Affiliate Tracking [Management] program

2005-07-21 Thread Eugene Voznesensky
I' looking for free PHP/MySQL Affiliate Tracking [Management] program. Would appreciate any advice/idea fd. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Rasmus' 30 second AJAX Tutorial - [was Re: [PHP] AJAX PHP]

2005-07-21 Thread Richard Lynch
On Thu, July 21, 2005 3:50 pm, Rasmus Lerdorf said: I find a lot of this AJAX stuff a bit of a hype. Lots of people have been using similar things long before it became AJAX. And it really Call me silly, but... Didn't a LOT of us move a bunch of code to PHP instead of JS because JS was so

Re: [PHP] More toroughly checking a script before execution

2005-07-21 Thread Richard Lynch
On Thu, July 21, 2005 3:50 pm, Markus Fischer said: is there a way to have a more torough checking of PHP code before executing? Use E_ALL if you aren't already. Most people aren't because the default is E_ALL ~ E_NOTICE, which is a Big Mistake for a default, imnsho. -- Like Music?

Re: [PHP] RE: [SPAM 6.0] [PHP] Session help!?

2005-07-21 Thread Richard Lynch
On Thu, July 21, 2005 2:21 pm, Programmer said: The biggest gotcha that I have ran into concerning sessions is this: If your client's browser is I.E. and the domain is named with _(underscores), -(dashes), etc. I.E. discards the session and starts a new one. I don't know if this is fixed

Re: [PHP] Loading dynamic extension

2005-07-21 Thread Richard Lynch
On Thu, July 21, 2005 12:17 pm, Mathieu Dumoulin said: 2. Further more, i can't seem to find a way to know from which path or drive my usbkey is operating. There is maybe something i missed somewhere that's why im asking. Anyone ever found something about the CLI current run path in $_ENV or

Re: [PHP] db insert question

2005-07-21 Thread Richard Lynch
On Thu, July 21, 2005 6:52 am, JamesBenson said: Thanks for your reply, your example demonstrates what i was doing but does that do a MySQL query for every piece of data? So 20 form values would be 20 db queries, would that not consume a lot of resources? Is their another way? Test it on

Re: [PHP] Content Header

2005-07-21 Thread Richard Lynch
On Thu, July 21, 2005 4:55 am, Chris Shiflett said: Christopher J. Umina wrote: I currently have a script which streams data out of a MySQL database, and prints the content headers correctly, however, when I use the following line: header(Content-Disposition: attachment; filename=\.

Re: [PHP] Question about apache-php concurrent process control

2005-07-21 Thread Liang ZHONG
I now encounter a problem with flow control of my program with PHP. This is very crucial to the design of a pretty big project. This is what I want to do in the program: ?php do_A(); header(Location: .$result_of_do_A); do_B(); ? Since it takes do_B() quite a while to finish, so I want the

Re: [PHP] Question about apache-php concurrent process control

2005-07-21 Thread Robert Cummings
http://ca.php.net/manual/en/function.register-shutdown-function.php Cheers, Rob. On Thu, 2005-07-21 at 23:40, Liang ZHONG wrote: I now encounter a problem with flow control of my program with PHP. This is very crucial to the design of a pretty big project. This is what I want to do in the

Re: [PHP] adding ftp functionality into php

2005-07-21 Thread kalinga
On 7/21/05, Tom Cruickshank [EMAIL PROTECTED] wrote: Hello, My apologizes in advance if this is the wrong mailing list. I have a php module in apache which is missing ftp functionality (--enable-ftp was not used as an argument on compile time). However, recompiling php at this time does not

Re: [PHP] Question about apache-php concurrent process control

2005-07-21 Thread Richard Lynch
On Thu, July 21, 2005 8:40 pm, Liang ZHONG said: I now encounter a problem with flow control of my program with PHP. This is very crucial to the design of a pretty big project. This is what I want to do in the program: ?php do_A(); header(Location: .$result_of_do_A); Depending on the

Re: [PHP] Rasmus' 30 second AJAX Tutorial - [was Re: [PHP] AJAX PHP]

2005-07-21 Thread Duncan Hill
On Friday 22 July 2005 02:46, Richard Lynch wrote: If you NEED it to work, JS is simply not the right way to go, even with today's landscape. I think that depends on whether you have a closed environment, such as an intranet, or an open environment like a public web server. In the public

Re: [PHP] PHP and MySQL and resouce limits

2005-07-21 Thread Richard Lynch
On Wed, July 20, 2005 5:22 pm, John Hinton said: I don't get it... I have been upping my memory limit for PHP. 32megs now... and am making calls to a database on a different server. I see the loads run up on the other server as it cruches the numbers.. and PHP is in the process of creating a

Re: [PHP] gloabl reference behavior question?

2005-07-21 Thread Richard Lynch
On Wed, July 20, 2005 3:39 pm, Surendra Singhi said: Hello, (1) When I try this code: ?php $var_global = stuff; function f1() { global $var_global; $var_local = array(1,2); $var_global = $var_local; } f1(); print_r($var_global); ? I get the

[PHP] System specific information gathering

2005-07-21 Thread Vidyut Luther
Hello, I have a question on how to get Server side system specific information via PHP, or just general direction on how to parse some of the information found in /proc For example, I want to be able to display the system uptime.. number of users logged in, and load average. In the