[PHP] clearing cache contents

2005-08-19 Thread R. Ragunathan
hi, can anyone provide me a solution for clearing the cache contents on the clientside using javascript. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Week Days

2005-08-19 Thread [EMAIL PROTECTED]
I am trying to add 3 (or a user-defined amount) week days to a certain date.. An example is today 2005-08-18 then adding 3 week days to give me a date of 2005-08-23. I have tried searching online but cannot find an easy way of doing so.

Re: [PHP] Week Days

2005-08-19 Thread Jasper Bryant-Greene
[EMAIL PROTECTED] wrote: I am trying to add 3 (or a user-defined amount) week days to a certain date.. An example is today 2005-08-18 then adding 3 week days to give me a date of 2005-08-23. I have tried searching online but cannot find an easy way of doing so. $numDaysToAdd = 3; $s =

Re: [PHP] Week Days

2005-08-19 Thread Robert Cummings
On Fri, 2005-08-19 at 02:10, Jasper Bryant-Greene wrote: [EMAIL PROTECTED] wrote: I am trying to add 3 (or a user-defined amount) week days to a certain date.. An example is today 2005-08-18 then adding 3 week days to give me a date of 2005-08-23. I have tried searching online but

Re: [PHP] Week Days

2005-08-19 Thread Robert Cummings
On Fri, 2005-08-19 at 02:17, Robert Cummings wrote: This doesn't work since the value can be user defined and thus may span multiple weeks :) The following works but is dirty, I'm sure there's a better solution using modulus operator and adding and subtracting and a little voodoo... I'm just

Re: [PHP] How to show complete exception text?

2005-08-19 Thread Kevin Waterson
This one time, at band camp, Christopher J. Bottaro [EMAIL PROTECTED] wrote: Hi, When an exception propagates all the way up the stack frame and splatters itself on my webpage, most of the text is cut off! This is completely useless. I can see that there is an error, but I can't read the

[PHP] is it worth using apache2 with php 4.3.4

2005-08-19 Thread bala chandar
Hi, i am now using apache 1.3.x with php 4.3.4 is it worth upgrading to apache 2.x -- bala balachandar muruganantham Y!mbchandar Hotmail mbchandar blog lynx http://chandar.blogspot.com web http://www.chennaishopping.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] setting 'sendmail_from' on windows

2005-08-19 Thread George Pitcher
Hi, I am sending emails out from php using a variety of 'From addresses', depending on who is logged on. I would like bounced messages to go directly to the sender, but they are not. I suspect that this is because in php.ini, I have to set the 'sendmail_from' to a specific address. Can anyone

Re: [PHP] Catching all errors and redirecting

2005-08-19 Thread Mark Rees
Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] Is it possible to catch all parser errors (notices), and as that happens redirecting to a 'sorry-page-not-available-at-this-moment' page, whilst storing the error (or notice) message somewhere else (e.g. emailing it to

[PHP] Re: setting 'sendmail_from' on windows

2005-08-19 Thread Mark Rees
George Pitcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am sending emails out from php using a variety of 'From addresses', depending on who is logged on. I would like bounced messages to go directly to the sender, but they are not. I suspect that this is because in

[PHP] Re: Catching all errors and redirecting

2005-08-19 Thread Norbert Wenzel
Thomas Hochstetter wrote: Hi again, Is it possible to catch all parser errors (notices), and as that happens redirecting to a 'sorry-page-not-available-at-this-moment' page, whilst storing the error (or notice) message somewhere else (e.g. emailing it to the developer). thanks Thomas From

RE: [PHP] Re: setting 'sendmail_from' on windows

2005-08-19 Thread George Pitcher
Mark, Thanks, I'll have a look at that over the weekend. Cheers George -Original Message- From: Mark Rees [mailto:[EMAIL PROTECTED] Sent: 19 August 2005 9:42 am To: php-general@lists.php.net Subject: [PHP] Re: setting 'sendmail_from' on windows George Pitcher [EMAIL

Re: [PHP] php 5.04 register_globals aint acting right.

2005-08-19 Thread Jochem Maas
Richard Lynch wrote: On Wed, August 17, 2005 5:21 am, Jochem Maas wrote: Daniel Baughman wrote: Its simply a Boolean to indicate whether or not a query should be ran and displayed, and further more its for a small intranet. If it's that small a project/program, it should not be that

Re: [PHP] 'God' has spoken... :-)

2005-08-19 Thread Jochem Maas
Richard Lynch wrote: On Wed, August 17, 2005 2:05 am, Dotan Cohen wrote: On 8/15/05, Miles Thompson [EMAIL PROTECTED] wrote: The problem with PHP 5 is that the ISP's have to be so conservative. There's no tagging mechanism which says process these files with PHP5, use PHP 4 for everything

[PHP] Problem mit PEAR-Package Log

2005-08-19 Thread Sabine
Hello to all, I want to use the PEAR-package Log (now on 4.3.10). I just have a few lines of code, copied from the documentation. And always, that means with every logger I tried, get Call to undefined function-errors. I can't see what ist that wrong. Has anybody else an idea? I just

Re: [PHP] Differences with imap_headerinfo() between PHP 4.3.11 and 4.4.0?

2005-08-19 Thread Mike Walsh
Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Wrapping ob_start() / ob_get_contents() / ob_end_clean() around the IMAP calls MIGHT let you catch the output and throw it away... That is a good idea, I will give that a shot. Thanks, Mike -- Mike Walsh -

RE: [PHP] clearing cache contents

2005-08-19 Thread Jay Blanchard
[snip] can anyone provide me a solution for clearing the cache contents on the clientside using javascript. [/snip] 1. Go to http://www.google.com 2. Type in JavaScript mailing lists 3. join one 4. Ask this question there. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Re: setting 'sendmail_from' on windows

2005-08-19 Thread George Pitcher
Mark, Just to let you know that it did the trick. Cheers George -Original Message- From: Mark Rees [mailto:[EMAIL PROTECTED] Sent: 19 August 2005 9:42 am To: php-general@lists.php.net Subject: [PHP] Re: setting 'sendmail_from' on windows George Pitcher [EMAIL PROTECTED] wrote

RE: [PHP] Catching all errors and redirecting O T

2005-08-19 Thread Jay Blanchard
[snip] What is the point of taking this attitude with a poster who (I'm guessing from his name) is a non-native English speaker? He asks a perfectly polite, intelligible and on-topic question. Even if he isn't a good proportion of posters are non-native speakers, and I imagine they find this kind

[PHP] Unique user?

2005-08-19 Thread Gustav Wiberg
Hi there! Is there any way of doing this: 1. User may vote 1-10 on a joke on a site X. 2. Same User may NOT vote again dependent of the computer... I know this works if I check IP-adress, but because some users doesn't have a fixed ip-adress... it won't work correct. Thought of getting a

RE: [PHP] Re: previous + next buttons, no DB

2005-08-19 Thread Jim Moseby
Say the images are in a folder called /gallery/ Within that, I have an index.php that is manually coded to have thumbnails of the images displayed in a grid. Important to note: they're in a very specific (artistic) order. Each one of those thumbnails is linked to one and the

[PHP] [really O T] Re: [PHP] Catching all errors and redirecting O T

2005-08-19 Thread Jochem Maas
Jay Blanchard wrote: [snip] What is the point of taking this attitude with a poster who (I'm guessing from his name) is a non-native English speaker? He asks a perfectly polite, intelligible and on-topic question. Even if he isn't a good proportion of the question was VAGUE ... this is IT not

RE: [PHP] Unique user?

2005-08-19 Thread Jay Blanchard
[snip] Is there any way of doing this: 1. User may vote 1-10 on a joke on a site X. 2. Same User may NOT vote again dependent of the computer... I know this works if I check IP-adress, but because some users doesn't have a fixed ip-adress... it won't work correct. Thought of getting a

[PHP] upload large files troubles

2005-08-19 Thread curipin
hi! I have apache2 + php5. I need to upload large files. I found out, that file is uploaded always. But: - if the file is less than 167 MB all is OK, then I tryed larger files - from 191 MB up, files are uploaded, but php script, which handle the operation is like not executed. I always get

RE: [PHP] upload large files troubles

2005-08-19 Thread Jay Blanchard
[snip] I have apache2 + php5. I need to upload large files. I found out, that file is uploaded always. But: - if the file is less than 167 MB all is OK, then I tryed larger files - from 191 MB up, files are uploaded, but php script, which handle the operation is like not executed. I always get

RE: [PHP] upload large files troubles

2005-08-19 Thread Jay Blanchard
[snip] Sure, it looks: form enctype=multipart/form-data action=upload.php method=post input type=hidden name=MAX_FILE_SIZE value=10 / input type=file name=f size=30 /br input type=submit name=Send all works great, to 160 MB, larger files

Re: [PHP] Catching all errors and redirecting O T

2005-08-19 Thread John Nichel
Jay Blanchard wrote: snip I suppose that the good old days are long gone. The ones where newbies were whipped into shape with just a few keystrokes. I guess we need to be more politically correct and sensitive to the needs of others now. In the spirit of this I will refrain from answering the is

[PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] Install PHP in Linux

2005-08-19 Thread John Nichel
Mario Lacunza wrote: Hello, Im newbie in Linux and I need your help for install PHP5 in my Ubuntu 5.04 Linux distro, any links, manuals, etc How about a link _to_ *THE MANUAL*? http://www.php.net/manual/en/install.unix.php -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL

Re: [PHP] preg_match

2005-08-19 Thread John Nichel
Richard Lynch wrote: On Thu, August 18, 2005 2:50 pm, Jon wrote: preg_match_all(/Charges \s\s+ $total x (.+) /siU, $single, $from_invoice); I would recommend using \\s instead of \s -- While \s doesn't have any meaning in PHP strings, so PHP just figures you must have meant \\s snip But

Re: [PHP] preg_match

2005-08-19 Thread John Nichel
Jon wrote: preg_match_all(/Charges \s\s+ $total x (.+) /siU, $single, $from_invoice); You'll probably need to assemble that expression first. The regex may be seeing the dollar sign for your variable as an end of line delimiter. $match = /Charges\s{1,} . $total . \sx\s(.*)\s/siU;

RE: [PHP] upload large files troubles

2005-08-19 Thread Jay Blanchard
MAKE SURE TO HIT REPLY-ALL SO THAT THE MESSAGE GETS BACK TO THE LIST [snip] The code is pretty simple, i do not think, problem is bad syntax, as I said, everything works fine, when files are smaller then 160 MB. Larger files = blank page. ?php if(isset($_FILES['f'])) { copy

Re: [PHP] Unique user?

2005-08-19 Thread Jason Barnett
I'm going to agree with Jay... most users are lazy enough that if you just require them to have a user account then that will suffice. Since this is only for a joke site that would be my suggestion as well. However, if you really, really wanted to identify remote *computers* then you can try

[PHP] Re: is it worth using apache2 with php 4.3.4

2005-08-19 Thread Matthew Weier O'Phinney
* bala chandar [EMAIL PROTECTED]: i am now using apache 1.3.x with php 4.3.4 is it worth upgrading to apache 2.x Currently, no: http://ilia.ws/archives/32-Apache-1-vs-Apache-2-Performance.html -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP

Re: [PHP] Re: PHP MySQL insert

2005-08-19 Thread Ben Ramsey
Please always reply to the list so that others can benefit from the exchange. As it happens, I'm not exactly very knowledgeable about character sets, so someone on the list may be able to offer more help with regard to the problem you're experiencing. -Ben areguera wrote: On 8/19/05, Ben

Re: [PHP] is it worth using apache2 with php 4.3.4

2005-08-19 Thread John Nichel
bala chandar wrote: Hi, i am now using apache 1.3.x with php 4.3.4 is it worth upgrading to apache 2.x That depends on your needs. Does Apache2 provide you with some feature/functionality that Apache 1.3 does not? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] --

Re: [PHP] preg_match

2005-08-19 Thread Matthew Weier O'Phinney
* John Nichel [EMAIL PROTECTED] : Richard Lynch wrote: On Thu, August 18, 2005 2:50 pm, Jon wrote: preg_match_all(/Charges \s\s+ $total x (.+) /siU, $single, $from_invoice); I would recommend using \\s instead of \s -- While \s doesn't have any meaning in PHP strings, so PHP just

Re: [PHP] ob_start changed from php4 to php5?

2005-08-19 Thread Marten Lehmann
Hello! I'm also guessing that it's the LAST line of the file with the encodeDomain function in it that you include in your test.php I'm also guessing that there's a NEWLINE character after the final ? in that file on your 5.0.4 box, but that NEWLINE character is *NOT* there on your 4.0 box.

[PHP] Re: How to show complete exception text?

2005-08-19 Thread Christopher J. Bottaro
Kevin Waterson wrote: This one time, at band camp, Christopher J. Bottaro [EMAIL PROTECTED] wrote: Hi, When an exception propagates all the way up the stack frame and splatters itself on my webpage, most of the text is cut off! This is completely useless. I can see that there is an

[PHP] Call to Static Method PHP5

2005-08-19 Thread Adrian Cid Almaguer
Hi: I had the fallowing trouble while using a static method call on php5. Here's my solution, i will really apreciate if anyone else can find another way around.. The problem: I have a fuction wich get a parameter that's an objetc, and that objetc belongs to a class wich has a static method

Re: [PHP] Re: previous + next buttons, no DB

2005-08-19 Thread Ashley M. Kirchner
Jim Moseby wrote: If you use a naming convention for the files in /gallery/ that coincides with the artistic order in which they are to be displayed, then Greg's simple (yet elegant, and expertly coded) directory listing method would work like a charm. Unfortunately, they're not. This

Re: [PHP] Week Days

2005-08-19 Thread Jordan Miller
Yo, All you need is the mktime() command. do something like: $futureDate = date(Y-m-d, mktime(0, 0, 0, $month, $today+ $daysToAdd, $year)); Jordan http://www.php.net/mktime mktime() is useful for doing date arithmetic and validation, as it will automatically calculate the correct value

[PHP] Re: Call to Static Method PHP5

2005-08-19 Thread M. Sokolewicz
how about using: return call_user_func(array($object1, 'do_static')); I've also modified your code so it works with both an object and a class: ?php class Class1 { static function do_static() { echo 'ok'; } } function use_static($object1) {

[PHP] Error checking on file upload

2005-08-19 Thread Peppy
I've been working on a script for uploading a file to a Unix server. I'm testing the script and have it coded for error messages using a switch statement. One error that I am getting is case 2 The file is bigger than this form allows and I am wondering what might cause me to get the error for

Re: [PHP] Week Days

2005-08-19 Thread Robert Cummings
On Fri, 2005-08-19 at 11:17, Jordan Miller wrote: Yo, All you need is the mktime() command. do something like: $futureDate = date(Y-m-d, mktime(0, 0, 0, $month, $today+ $daysToAdd, $year)); Jordan http://www.php.net/mktime mktime() is useful for doing date arithmetic and

Re: [PHP] Error checking on file upload

2005-08-19 Thread Steve Slotnick
In your php.ini there are settings for upload_max_filesize and also post_max_size. These would be causes for case 2. More information: http://us3.php.net/features.file-upload On 8/19/05, Peppy [EMAIL PROTECTED] wrote: I've been working on a script for uploading a file to a Unix server. I'm

Re: [PHP] Error checking on file upload

2005-08-19 Thread Steve Slotnick
Sorry, I meant case 1. - Steve On 8/19/05, Steve Slotnick [EMAIL PROTECTED] wrote: In your php.ini there are settings for upload_max_filesize and also post_max_size. These would be causes for case 2. More information: http://us3.php.net/features.file-upload On 8/19/05, Peppy [EMAIL

Re: [PHP] Error checking on file upload

2005-08-19 Thread Peppy
Steve, Thanks a bunch. Must have been dead brain today. I knew that as well as could look it up using phpinfo(). Althea In your php.ini there are settings for upload_max_filesize and also post_max_size. These would be causes for case 2. More information: http://us3.php.net/features.file-upload

Re: [PHP] Week Days

2005-08-19 Thread Philip Hallstrom
All you need is the mktime() command. do something like: $futureDate = date(Y-m-d, mktime(0, 0, 0, $month, $today+ $daysToAdd, $year)); Jordan http://www.php.net/mktime mktime() is useful for doing date arithmetic and validation, as it will automatically calculate the correct value for

Re: [PHP] Week Days

2005-08-19 Thread Robert Cummings
On Fri, 2005-08-19 at 13:47, Philip Hallstrom wrote: All you need is the mktime() command. do something like: $futureDate = date(Y-m-d, mktime(0, 0, 0, $month, $today+ $daysToAdd, $year)); Jordan http://www.php.net/mktime mktime() is useful for doing date arithmetic and

Re: [PHP] Week Days

2005-08-19 Thread Robert Cummings
On Fri, 2005-08-19 at 13:47, Philip Hallstrom wrote: All you need is the mktime() command. do something like: $futureDate = date(Y-m-d, mktime(0, 0, 0, $month, $today+ $daysToAdd, $year)); Jordan http://www.php.net/mktime mktime() is useful for doing date arithmetic and

Re: [PHP] Week Days

2005-08-19 Thread Philip Hallstrom
Easy enough to change that date(...mktime(...)) command above to return the weekday and while the weekday is a weekend just add a day and repeat. Actually sorry to post again on the same post, but this is like the first solution posted and is invalid since it doesn't account for non-weekdays

[PHP] Re: Unique user?

2005-08-19 Thread A.W. Wright
Gustav Wiberg wrote: Hi there! Is there any way of doing this: 1. User may vote 1-10 on a joke on a site X. 2. Same User may NOT vote again dependent of the computer... I know this works if I check IP-adress, but because some users doesn't have a fixed ip-adress... it won't work correct.

[PHP] Re: is it worth using apache2 with php 4.3.4

2005-08-19 Thread Awright
bala chandar wrote: Hi, i am now using apache 1.3.x with php 4.3.4 is it worth upgrading to apache 2.x If it's not broken, don't fix it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php-windows Digest 19 Aug 2005 19:00:33 -0000 Issue 2754

2005-08-19 Thread JM
You are talking about a few issues. 1. turn on / uncomment the extensions in the php.ini (use phpinfo.php to figure out which php.ini you are using) 2. 404 means the requested doc or url is wrong or doesnt exist. this isnt your webserver or php's fault. fix the url. 3. make sure you tell IIS to

[PHP] Question about Windows Installation

2005-08-19 Thread JM
after you make changes restart iis. btw apache works fine in this scenario too. if the extensions still dont work then look for the dll's make sure they are even installed for php/webserver to use On 8/19/05, JM [EMAIL PROTECTED] wrote: You are talking about a few issues. 1. turn on /

Re: [PHP] Re: PHP MySQL insert

2005-08-19 Thread areguera
sorry...here is the message On 8/19/05, areguera [EMAIL PROTECTED] wrote: On 8/19/05, Ben Ramsey [EMAIL PROTECTED] wrote: Alain Reguera Delgado wrote: you could try: 1. get all form variables into an array fine 2. validate values Good, but do this step as you put the

Re: [PHP] 'God' has spoken... :-)

2005-08-19 Thread Dotan Cohen
On 8/19/05, Jochem Maas [EMAIL PROTECTED] wrote: actually he posted (an update?) a full on explanation (again!) just 5 days ago (on the 14th August 2005) on how to do it in reply to this thread! I had to read your post twice to understand to which _he_ you are referring. Then I reread the

[PHP] Re: Unique user?

2005-08-19 Thread Labunski
Simply ad some info to the Cookies (including date and time). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Document source code for PHP5

2005-08-19 Thread Markus Fischer
Hi, I'm currently using phpdoc.org to generated documentation of my code, but it doesn't seem to support PHP5. Interfaces are not recognized and function headers defined therein are parsed as public function. Can someone recommend a documentation tool which supports the new PHP5 syntax?

[PHP] Automated data upload for customers

2005-08-19 Thread Brian Dunning
I have a system where I'm trying to facilitate a process for customers to upload data to me (basically a list of people), and have it go into a database. I can give them certain parameters, like it has to be a CSV file, delimited in such a way, etc. but can't ask much more of them than

Re: [PHP] Automated data upload for customers

2005-08-19 Thread Jasper Bryant-Greene
Brian Dunning wrote: I have a system where I'm trying to facilitate a process for customers to upload data to me (basically a list of people), and have it go into a database. I can give them certain parameters, like it has to be a CSV file, delimited in such a way, etc. but can't ask much

Re: [PHP] Automated data upload for customers

2005-08-19 Thread Richard Lynch
On Fri, August 19, 2005 3:47 pm, Jasper Bryant-Greene wrote: Brian Dunning wrote: I have a system where I'm trying to facilitate a process for customers to upload data to me (basically a list of people), and have it go into a database. I can give them certain parameters, like it has to be

Re: [PHP] Automated data upload for customers

2005-08-19 Thread Jasper Bryant-Greene
Richard Lynch wrote: On Fri, August 19, 2005 3:47 pm, Jasper Bryant-Greene wrote: For CSV, it's as simple as explode() the data by \n (perhaps strip out any \r before you start) and then explode() by ,. Depending on the software they're using, you might also need to remove any delimiters on

Re: [PHP] Re: PHP MySQL insert

2005-08-19 Thread Richard Lynch
On Fri, August 19, 2005 12:56 pm, areguera wrote: could you suggest something about Latin characters and portability?. As I understand it, or not, more likely, you want to configure your MySQL server to use UTF-8, and your MySQL client to use UTF-8 and pretty much everything to use UTF-8, and

Re: [PHP] preg_match

2005-08-19 Thread Richard Lynch
On Fri, August 19, 2005 7:03 am, Matthew Weier O'Phinney wrote: * John Nichel [EMAIL PROTECTED] : Richard Lynch wrote: On Thu, August 18, 2005 2:50 pm, Jon wrote: preg_match_all(/Charges \s\s+ $total x (.+) /siU, $single, $from_invoice); I would recommend using \\s instead of \s --

Re: [PHP] preg_match

2005-08-19 Thread Richard Lynch
On Fri, August 19, 2005 6:35 am, John Nichel wrote: Jon wrote: preg_match_all(/Charges \s\s+ $total x (.+) /siU, $single, $from_invoice); You'll probably need to assemble that expression first. The regex may be seeing the dollar sign for your variable as an end of line delimiter. Not a

Re: [PHP] preg_match

2005-08-19 Thread Richard Lynch
On Fri, August 19, 2005 6:32 am, John Nichel wrote: Richard Lynch wrote: On Thu, August 18, 2005 2:50 pm, Jon wrote: preg_match_all(/Charges \s\s+ $total x (.+) /siU, $single, $from_invoice); I would recommend using \\s instead of \s -- While \s doesn't have any meaning in PHP strings, so

Re: [PHP] upload large files troubles

2005-08-19 Thread Richard Lynch
On Fri, August 19, 2005 5:47 am, curipin wrote: I have apache2 + php5. I need to upload large files. I found out, that file is uploaded always. But: - if the file is less than 167 MB all is OK, then I tryed larger files - from 191 MB up, files are uploaded, but php script, which handle the

[PHP] php explained in sql

2005-08-19 Thread John Taylor-Johnston
In php, if I wanted to know if $mydata-email contained something, I would do this, right? if ($mydata-email) {} How would I express this in SQL (MySQL)? Thanks. Sorry to be off-topic, if I am, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] upload large files troubles

2005-08-19 Thread Jasper Bryant-Greene
Richard Lynch wrote: I have a HUGE distrust of web browsers, so will go out on a limb and say: Web browsers are not reliable transport mechanisms for upload of monster files. Use FTP. That might be wrong, but that's my story, and I'm sticking to it. If somebody else wants to claim that

Re: [PHP] php 5.04 register_globals aint acting right.

2005-08-19 Thread Richard Lynch
On Fri, August 19, 2005 2:14 am, Jochem Maas wrote: true. I was just pointing out how easy it is to 'fake' register_globals personally all my code currently runs this on init - because I don't like reg.globals at all: function unRegisterGlobals() { if (ini_get('register_globals')) {

Re: [PHP] php explained in sql

2005-08-19 Thread Jasper Bryant-Greene
John Taylor-Johnston wrote: In php, if I wanted to know if $mydata-email contained something, I would do this, right? if ($mydata-email) {} How would I express this in SQL (MySQL)? That doesn't tell you if $mydata-email contains something. It tells you whether the value of $mydata-email,

Re: [PHP] Week Days

2005-08-19 Thread Richard Lynch
On Thu, August 18, 2005 10:57 pm, [EMAIL PROTECTED] wrote: I am trying to add 3 (or a user-defined amount) week days to a certain date.. An example is today 2005-08-18 then adding 3 week days to give me a date of 2005-08-23. I have tried searching online but cannot find an easy way of doing

Re: [PHP] Automated data upload for customers

2005-08-19 Thread Richard Lynch
On Fri, August 19, 2005 7:45 pm, Jasper Bryant-Greene wrote: If other file formats are possible as well as CSV, you might like to look at the PEAR File Formats packages[1]. Now TAB delimited is generally easier than CSV as it IS as simple as reading a line and explode() on \t Unless of course

[PHP] Hardware Detection

2005-08-19 Thread Saenal M
Hi, Can we get information about hardware on client's PC. (e.g. hard disk, processor, keyboard, etc).? And How? anyone knows? please reply back. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Week Days

2005-08-19 Thread Robert Cummings
On Sat, 2005-08-20 at 00:00, Richard Lynch wrote: On Thu, August 18, 2005 10:57 pm, [EMAIL PROTECTED] wrote: I am trying to add 3 (or a user-defined amount) week days to a certain date.. An example is today 2005-08-18 then adding 3 week days to give me a date of 2005-08-23. I have tried