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
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
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"
>
>
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
>
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,
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
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 uploadi
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: http://www.php.net/un
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 handl
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
>> meani
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.
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
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 t
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
o
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
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 m
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 that
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?
th
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
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 sub
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 t
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 / unc
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
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
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.
Th
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 tha
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 f
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 f
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 out-o
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
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, Pe
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 serv
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 arithmet
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
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:
Adrian Cid Almaguer wrote:
Hi:
I had the fallowing trouble while using a static method call on php5. Here's
my solution, i will really apreciate if
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
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 mig
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 (
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 tha
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
* 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 stri
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]
--
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 Ra
* 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/
--
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 trac
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.
Back to upload";
}
else
echo "Go away!";
?>
[/snip]
You
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";
preg
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
But in p
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 PROTECTED
Jay Blanchard wrote:
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 it
[snip]
Sure, it looks:
all works great, to 160 MB, larger files are uploaded but php script not
executed. Hmm.
[/snip]
Then can you send us the code from the processing script? That way we
may see where it fails.
--
PHP General Mailing Lis
[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 ge
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 ge
[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 mac-adres
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 s
> 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 t
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 mac
[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 o
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 PROT
[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, visit:
""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
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 install
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
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 tricky
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"" <[EMA
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 yo
""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 beca
""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 i
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 sug
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
70 matches
Mail list logo