Re: [PHP] PHP Mailer and SMTP = SPAM?

2006-10-10 Thread David Giragosian

-- Forwarded message --
From: Roman Neuhauser <[EMAIL PROTECTED]>
Date: Oct 10, 2006 5:11 PM
Subject: Re: [PHP] PHP Mailer and SMTP = SPAM?
To: David Giragosian <[EMAIL PROTECTED]>

# [EMAIL PROTECTED] / 2006-10-10 12:49:11 -0500:

Do you realize how many Vietnam war veterans you're offending with what I
guess is supposed to be a joke?


  Surely not. How could I know how many of those who spilled blood in
  Vietnam, Cambodia or Laos cannot reflect on their deeds almost 40
  years later?

  I know it's easy for the older parts of our behavioral equipment to
  take hold esp. in difficult situations, and 18-20 years old guys
  aren't exactly known as a group with the closest obedience of
  so-called moral norms (that's quite natural and I would have to damn
  myself if I weren't forgiving about it). But don't complain it was
  tough if you were there to murder other people.

  Sure, we (humans) are weaklings, and easily fall prey to whatever
  bullshit any drunkard and/or Hitler-wannabe says if they repeat it
  long enough, but if those Americans who fought in Vietnam didn't
  elect the government that sent them there then it was their parents,
  and grandparents. If you get agitated by a joke referring to the US
  movie and TV cliche they fed us with for 20 years or so, complain to
  those Americans who voted for the war. The "GM" children born today
  in Vietnam, mutilated by defoliants sprayed on their parents 35
  years ago are shame of those who elected Nixon.


You're in the Czech Republic, I'm guessing by your country code, so maybe

I

should have cut you some slack, but it isn't funny to those of us who went
to war or lived through it.


  Yes, I'm a citizen of a country that takes part in the running US
  raid on Middle East. I'm living through a war myself, mind you.
  Although much closer to the shit than you I'm much calmer these days
  than when the US Army was raging full-auto all over Europe (the
  bombing of Bulgaria[!] during the deathmatch in Yugoslavia in the
  92-4 or so). Back then it could also have been /my/ roof.

  If I wanted to have a combative signature I'd be using something
  like "How many American soldiers does it take to kick a tied-up POW
  to death in Guantanamo?" or perhaps "American cars run on blood of
  Iraqi people.", "Operation Enduring Oil" or a variant.  But it's
  just a joke.

  I freely admit you're not the first to bitch about this signature.
  You're second.  I'm surprised that you're only the second guy to
  whine!  Given how much the situation in Iraq reminds the 1968
  invasion of Czechoslovakia by the "brother" armies of several
  communist countries led by the USSR, how devastated the soldiers
  were when they realized they weren't the saviors their /politruks/
  made them believe... I'm quite surprised the morale is so high.

  So much for the topic of my signature. It will stay there of course,
  at least until your country, which BTW recently passed a bill that
  basically negates the Geneva conventions, attacks my country. Czech
  republic is lucky enough to have no large amounts of strategic
  minerals, but will probably be one of the last pieces of land when
  the US industry and DMCA-controlled SUV-driving consumers unbound by
  the Kyoto protocol produce enough smog to melt the Antarctida, and
  land becomes more important than oil. Until then...


Boomers, as in Baby Boomers, were the generation of Americans who fought

in

Vietnam. The folks your closing lines refer to.  Do you get it now?


  Yeah, Baby Boom is a term known to me. I'm was born in 1975, during
  a baby boom in Czechoslovakia, predecessor of Czech rep. I'm not
  used to the capitalization though, and wasn't sure if Boomer wasn't
  meant as the surname of a person relevant to the rest of your
  message. Thanks for the clarification.


Re: [PHP] mysqldump problem from PHP

2006-10-23 Thread David Giragosian

Angelo, as Brad says, you can pass user and password args to mysqldump from
an include file.

I run a php backup script via cron every night, then tar and compress and
store in various dirs out of the web tree.

I have the script if you'd like. It came from someone on the php-db list
years ago, and I'm not in any way claiming credit for it.

David


On 10/23/06, Brad Bonkoski <[EMAIL PROTECTED]> wrote:


Edward Kay wrote:
> hi all,
>
> Im doing the following dump through PHP:
>
> $output = shell_exec('mysqldump '. $db_database .' > '.
> $backup_path.$filename);
>
> It doesnt seem to work but when I run the exact same command (with
> appropriate values) in the command line it creates the dump file.
What
> could be the reason for this?
>
> Thanks in advance.
>
> regards
>
>
>
>
 It appears that it could be because the user that runs the scripts is
 not allowed to. When I run them on the commandline, I run them as the
 root user. Is this a common problem? What would the best way be to
sort
 this out keeping in mind security on the server?



>>> If you are trying to automate backups of you database, set up a
>>>
>> cron job. I
>>
>>> have a shell script that dumps my databases, zips them and then
>>>
>> sends them
>>
>>> via FTP to a remote server. This is automatically run every 12 hours
by
>>> cron.
>>>
>>> See http://en.wikipedia.org/wiki/Crontab for more info.
>>>
>>> Edward
>>>
>>>
>>>
>>>
>>>
>> hi Edward,
>> yes I know of CRONtabs but wont this still leave us with the user
>> permission of running mysqldump? because essentially it will still be a
>> PHP file to run the shell command to create the dump file?
>>
>> thanks
>>
>>
> No, cron will typically run as root. You don't need to involve PHP.
>
> It looks to me as if you are trying to use web scripting (PHP) to do the
> sysadmin on your server, for which other methods are more suitable.
>
> Edward
>
>
#1. You can run mysqldump with the same flags a the mysql command
line... i.e. -u= --password=
#2. Crons run as the user that owns the crontab, not always root.
#3. Edward is right, PHP is a wonderful tool, not sure the tool was
meant to do the types of things you are trying to do...unless you could
fill us in with more details of what the purpose is, then we might be
able to give more insight into how.

-B

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Job postings?

2006-10-24 Thread David Giragosian

I've seen PHP/programming job postings on Craig's List. I was kind of
shocked by it, but nonetheless...

David


Re: [PHP] exec("mysql -h hhh -u uuu -pppp

2006-10-25 Thread David Giragosian

What is the SQL you are running in test.php?

David


On 10/25/06, Gert Cuykens <[EMAIL PROTECTED]> wrote:


i do not get any output from mysql except form echo $bin that displays 1 ?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] exec("mysql -h hhh -u uuu -pppp

2006-10-25 Thread David Giragosian

What do you get if you run:

echo exec("mysql -h hhh -u uuu -  wrote:


actually something like 'asdadsuiashdiasdh' :) test.php is just some
text file i maybe should have renamed it to test.txt sorry.

But the thing is i dont get any feedback like 'cant connect to host'
or 'invalid sql' etc.

exec(mysqldump...) works but exec(mysql...) doesnt

On 10/25/06, David Giragosian <[EMAIL PROTECTED]> wrote:
> What is the SQL you are running in test.php?
>
> David
>
>
> On 10/25/06, Gert Cuykens <[EMAIL PROTECTED]> wrote:
> >
> > i do not get any output from mysql except form echo $bin that displays
1 ?
> >  > exec("mysql -h hhh -u uuu - < test.php",$out,$bin);
> > print_r($out);
> > echo $bin;
> > ?>
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>



Re: [PHP] exec("mysql -h hhh -u uuu -pppp

2006-10-25 Thread David Giragosian

Can't say why you're not getting an error message, but when I have a valid
user, password, host, and sql in a .txt file, I get the last record from the
select statement I run output in the browser. Maybe start with getting it to
work with everything used correctly, then work backwards.

HTH,


On 10/25/06, Gert Cuykens <[EMAIL PROTECTED]> wrote:


when i do echo exec... i get a blank screen

(print_r $out i get Array() echo $bin i get 1)

On 10/25/06, David Giragosian <[EMAIL PROTECTED]> wrote:
> What do you get if you run:
>
> echo exec("mysql -h hhh -u uuu - 
>
>
>
>
> On 10/25/06, Gert Cuykens <[EMAIL PROTECTED]> wrote:
> > actually something like 'asdadsuiashdiasdh' :) test.php is just some
> > text file i maybe should have renamed it to test.txt sorry.
> >
> > But the thing is i dont get any feedback like 'cant connect to host'
> > or 'invalid sql' etc.
> >
> > exec(mysqldump...) works but exec(mysql...) doesnt
> >
> > On 10/25/06, David Giragosian < [EMAIL PROTECTED]> wrote:
> > > What is the SQL you are running in test.php?
> > >
> > > David
> > >
> > >
> > > On 10/25/06, Gert Cuykens <[EMAIL PROTECTED] > wrote:
> > > >
> > > > i do not get any output from mysql except form echo $bin that
displays
> 1 ?
> > > >  > > > exec("mysql -h hhh -u uuu - < test.php",$out,$bin);
> > > > print_r($out);
> > > > echo $bin;
> > > > ?>
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > > >
> > >
> > >
> >
>
>



Re: [PHP] Changing the Action attribute of Form

2006-11-01 Thread David Giragosian

Wasn't there a thread recently about a webpage having multiple forms on it,
each of course with its own action attribute? Might be another solution
here.

David


On 11/1/06, Dave Goodchild <[EMAIL PROTECTED]> wrote:


Example HTTP redirect:

header('Location: http://www.google.com";);




Re: [PHP] Time-Zone juggling

2006-11-08 Thread David Giragosian

On 11/8/06, tedd <[EMAIL PROTECTED]> wrote:


At 12:48 AM -0500 11/8/06, Travis Doherty wrote:
>This can be a big problem to some apps, and others might be fine with
>the workaround like we've done where you loose a tiny bit of data (It's
>08:00 on the day after the timechange, is this ticket from 01:30:00  6.5
>or 7.5 hours old? who cares.. just reply.)

and

At 9:53 PM -0600 11/7/06, Richard Lynch wrote:
>This time zone stuff always gets me head all spun around, I admit freely.

You're not alone.

What about just using what we did in the service, namely Zulu?

http://www.grc.nasa.gov/WWW/MAEL/ag/zulu.htm

At least that points to a common datum for all time related issues.

I just wonder how they came up with the acronym of "UTC" for
Coordinated Universal Time?

Best,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



tedd,

Does Daylight Savings alter Zulu time? (I'm guessing "yes"). How did the
military deal with that?

I use a date-time field as a primary key in db tables that get an insert a
minute. I had to jump through a number of hoops to turn off DST on the (RH
Linux) server.

David


Re: [PHP] Time-Zone juggling

2006-11-09 Thread David Giragosian

On 11/8/06, Travis Doherty <[EMAIL PROTECTED]> wrote:


David Giragosian wrote:

> Does Daylight Savings alter Zulu time? (I'm guessing "yes"). How did the
> military deal with that?
>
> I use a date-time field as a primary key in db tables that get an
> insert a
> minute. I had to jump through a number of hoops to turn off DST on the
> (RH
> Linux) server.
>
> David
>
UTC (or GMT, or Zulu, or Z) does not observe Daylight Savings Time.  In
any database that you store timestamps and need to know exactly what
that timestamp means you should use UTC, then use application logic to
translate to the users time zone.

Another option would be to store epoch time (seconds since the OS's
epoch) and work the same result from that, I prefer storing
human-readable timestamps even if you have to do the datemath in your
head to read them in your own timezone.  Epoch does not count
leap-seconds like UTC so it can be off by a tiny bit at any given time.
Epoch time also differs on different operating systems - Unix is
1970-01-01 at 00:00:00 UTC, Windows seems to use 1601-01-01 at 00:00:00
UTC... I don't know if that would ever matter though - I imagine the
database server would mask this and the application would port to
windows without problems (no idea.)

UTC has no DST from: http://en.wikipedia.org/wiki/Time_zone
>>
Due to daylight saving time, UTC is local time at the Royal Observatory,
Greenwich <http://en.wikipedia.org/wiki/Royal_Observatory%2C_Greenwich>
only between 01:00 UTC on the last Sunday in October and 01:00 UTC on
the last Sunday in March. For the rest of the year, local time there is
UTC+1 <http://en.wikipedia.org/wiki/UTC%2B1>, known in the United
Kingdom <http://en.wikipedia.org/wiki/United_Kingdom> as British Summer
Time <http://en.wikipedia.org/wiki/British_Summer_Time> (BST). Similar
circumstances apply in many places.
<<
**
Travis Doherty
TixTime



We are using now() in the MySQL db to insert current time. Database version
is 4.0.24.

I see that in 4.1.* there is utc_timestamp().
Anybody know if this function avoids DST? Might be worth the hassle of
upgrade and possible code changes in the PHP scripts to obtain this feature.
<< Shudder >>

Thanks,

David


Re: [PHP] Time-Zone juggling

2006-11-09 Thread David Giragosian

On 11/9/06, M.Sokolewicz <[EMAIL PROTECTED]> wrote:


David Giragosian wrote:
> On 11/8/06, Travis Doherty <[EMAIL PROTECTED]> wrote:
>>
>> David Giragosian wrote:
>>
>> > Does Daylight Savings alter Zulu time? (I'm guessing "yes"). How did
>> the
>> > military deal with that?
>> >
>> > I use a date-time field as a primary key in db tables that get an
>> > insert a
>> > minute. I had to jump through a number of hoops to turn off DST on
the
>> > (RH
>> > Linux) server.
>> >
>> > David
>> >
>> UTC (or GMT, or Zulu, or Z) does not observe Daylight Savings Time.  In
>> any database that you store timestamps and need to know exactly what
>> that timestamp means you should use UTC, then use application logic to
>> translate to the users time zone.
>>
>> Another option would be to store epoch time (seconds since the OS's
>> epoch) and work the same result from that, I prefer storing
>> human-readable timestamps even if you have to do the datemath in your
>> head to read them in your own timezone.  Epoch does not count
>> leap-seconds like UTC so it can be off by a tiny bit at any given time.
>> Epoch time also differs on different operating systems - Unix is
>> 1970-01-01 at 00:00:00 UTC, Windows seems to use 1601-01-01 at 00:00:00
>> UTC... I don't know if that would ever matter though - I imagine the
>> database server would mask this and the application would port to
>> windows without problems (no idea.)
>>
>> UTC has no DST from: http://en.wikipedia.org/wiki/Time_zone
>> >>
>> Due to daylight saving time, UTC is local time at the Royal
Observatory,
>> Greenwich <http://en.wikipedia.org/wiki/Royal_Observatory%2C_Greenwich>
>> only between 01:00 UTC on the last Sunday in October and 01:00 UTC on
>> the last Sunday in March. For the rest of the year, local time there is
>> UTC+1 <http://en.wikipedia.org/wiki/UTC%2B1>, known in the United
>> Kingdom <http://en.wikipedia.org/wiki/United_Kingdom> as British Summer
>> Time <http://en.wikipedia.org/wiki/British_Summer_Time> (BST). Similar
>> circumstances apply in many places.
>> <<
>> **
>> Travis Doherty
>> TixTime
>>
>
> We are using now() in the MySQL db to insert current time. Database
version
> is 4.0.24.
>
> I see that in 4.1.* there is utc_timestamp().
> Anybody know if this function avoids DST? Might be worth the hassle of
> upgrade and possible code changes in the PHP scripts to obtain this
> feature.
> << Shudder >>
>
> Thanks,
>
> David
>

you don't quite understand what UTC is, do you :)
UTC doesn't have DST. It just doesn't, at all.
If it returns a timestamp in UTC offset, it will "avoid" DST for you...

- tul




We use now() to do timestamp inserts in the MySQL db. "now()" in MySQL is
based upon the OS time, which is obviously affected by timezone setting as
an offset from UTC. When I've set the RH server to use UTC, the OS time was
still affected by the "rule" which altered UTC to the timezone setting (I'm
in the process of moving my office or else I'd be able to find the document
describing how to alter the RH OS to not obey DST changes). My question is
based upon this experience.

If "select utc_timestamp() in MySQL truly returns the UTC with timezone
offset and without any adjustments for DST, that would be just peachy.

Thanks,

David


Re: [PHP] Staff log-in

2006-11-11 Thread David Giragosian

On 11/11/06, John Nichel <[EMAIL PROTECTED]> wrote:


Paul Novitski wrote:
> At 11/10/2006 07:09 AM, tedd wrote:
>> Lastly, I think we all know that "non-profit" simply means that at the
>> end of the year you get to roll your profits over to the next year
>> without incurring taxes on the excess. Nothing more.
>>
>> Plus, there's no limit or requirements as to the amount/percentage you
>> pay yourself as compared to what amounts you apply to your "cause".
>> So, mentioning "non-profit" to me is like saying you're just another
>> scam -- and one, who's trolling for free php services.
>

> In the meantime, I suppose it is emblematic of my own innocence that it
> always surprises me when someone asks a naive question and is answered
> by insults and jeers in a listserve composed of bright and knowledgeable
> people who have purportedly come together for mutual education.

The OP didn't ask a 'naive question' about why his register globals
isn't working or something like that...he asked us to do his work for
him.  No 'mutual education' there.

> There
> may be no such thing as a stupid question, but the same cannot be said
> of the range of possible answers.
>

It's naive to think there are no stupid questions.

> Had the original poster known enough about our field to ask for
> recommendations of open source solutions, would he have been treated so
> roughly?
>

Nope.

> He didn't, by the way, ask for anything for free.  He said,
>> I unfortunately can't make it myself because I don't have the
>> knowledge, can
>> anyone of you do this for me?
>
> When no mention of remuneration has been made, why do you assume none
> will be forthcoming?  Is this how you greet all prospective clients,
> non-profit or otherwise, who approach you asking for help?  Are we to
> assume that this indicates your innate curiosity, your desire to gain
> clients, your ability to negotiate, your willingness to devote yourself
> to a good cause, or your capacity for politeness?
>

If you followed the thread, you would have read that the OP got his
panties in a knot when I posted him my rates for doing the job for him.

> On the surface you appear defend your right to be paid for your work (as
> though anyone had demanded otherwise!), but I would be very surprised if
> the OP considered for a moment hiring any self-proclaimed professional
> who replied so harshly to his query.
>

His loss.

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]




Paul Novitski previously wrote:


My, aren't we grumpy!  What big bad non-profit organization rained on
your parade?


I agree with Paul. No need to jump to conclusions when it would have been
just as easy for anyone on this list to ask a clarifying question of the OP.

David


[PHP] Re: backing up a database

2006-11-29 Thread David Giragosian

On 11/28/06, Warren Vail <[EMAIL PROTECTED] > wrote:


I think it becomes an issue only if the database structure is complex
with multiple related tables, and have lots of update activity.  I think
most people design applications that don't require anything so complex,
and most queries are of the select variety.

Warren Vail

-Original Message-
From: Chris [mailto: [EMAIL PROTECTED]
Sent: Tuesday, November 28, 2006 2:50 PM
To: James Tu
Cc: PHP General List
Subject: Re: [PHP] backing up a database

James Tu wrote:
> Thanks Brad:
>
> I'm just surprised that when people mention mysqldump, most of the
time
> they don't talk about locking the tables at all.
> I'm curious why this is the case.

Because you don't need to. More of a mysql-mailing list question to be
honest.

C:\>mysqldump  --help


--opt   Same as --add-drop-table, --add-locks, --create-options,
--quick, --extended-insert, --lock-tables,
--set-charset,
and --disable-keys. *Enabled by default *, disable with
--skip-opt.

If you use the --opt flag, all is well...

David


Re: [PHP] Maybe an HTML prob?

2006-11-29 Thread David Giragosian

On 11/29/06, Frank Reichenbacher, Bio-Concepts, Inc. <[EMAIL PROTECTED]>
wrote:


I am trying to pass the results of a form to a simple php mail() routine.
Everything works except the checkbox, Permission". No matter what state
the
checkbox is in, the php says it is whatever the "value" is set to on the
form. I must not be trying to pull the checkbox state correctly.

I've tried several different means of evaluating $Permission, including
using empty() and isset(), but no matter what, $Permission always returns
whatever value is set in "value" on the form. In the case below, echo
$Permission returns "Yes" whether the box is checked or not.

Here is the relevant code slightly doctored so as not to give a way a site
in early development:

FORM:



I grant permission to include the
   above information on the website


ACTION:



Frank,

You are hardcoding $Permission ($_POST["Permission"]) to be "Yes" in your
code:


Google "PHP checkbox example"...

An early hit : http://www.globalissa.com/articles/articleCheckbox.php

David


Re: [PHP] file uploads Q?

2006-12-12 Thread David Giragosian

On 12/12/06, Jochem Maas <[EMAIL PROTECTED]> wrote:


Stut wrote:
> Jochem Maas wrote:
>> and say what *you* mean.
>
> I LIKE MARMITE!!

you have my condolences.

>
> Damn, that does feel better.

see, just let it out... (said in soothing psychoanalyst's voice)

>
> -Stut
> (fairly bored today)

really!? ;-)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



And someone wonders why the traffic on this site has slowed to a crawl...?
If I wanted to be misunderstood, I'd talk with my wife.

David


Re: [PHP] upload max error

2006-12-22 Thread David Giragosian

On 12/22/06, ibanex22 <[EMAIL PROTECTED]> wrote:



Hey all,

I am new to PHP and have been having issues on max filesize uploads.  I
can
currently upload small files but I wish to make my max upload size huge.
Here is what I have configured in php.ini:

max_execution_time = 3000
max_input_time = 6000
memory_limit = 8000M
post_max_size = 8000M
file_uploads = On
uplad_max_filesize = 5000M
default_socket_timeout = 600

I have also edited the upload script as well.
I am running Apache on OpenBSD, the PHP packages are hardened.
Any help or direction would be great!

Thanks,
Erik
--
View this message in context:
http://www.nabble.com/upload-max-error-tf2872630.html#a8028989
Sent from the PHP - General mailing list archive at Nabble.com.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Keep trying larger and larger file uploads, checking Apache and PHP error
logs when you hit a size or timeout limit.

David


Re: [PHP] Help me about detect client screen resolution!!!

2007-01-02 Thread David Giragosian

On 1/2/07, Stut <[EMAIL PROTECTED]> wrote:


Le Phuoc Canh wrote:
> Can we use php to detect client screen resolution? Please help me ?
>

No "we" can't. "You" need Javascript or another "client"-side technology
for that.

-Stut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





var thisSize;
function showStats() { thisSize = 'Screen resolution is ' + screen.width + '
x ' + screen.height;
if (thisSize) {
 document.getElementById("output").innerHTML = thisSize;
}
}





Screen Resolution







I think this should work.



David


Re: [PHP] Some advice / points / help

2007-01-05 Thread David Giragosian

So the question is...

How to grab data from the DB and create a jpg from it, looking pretty like
http://steven.macintyre.name/arb/showlineups.jpg (I added the colon ;-) ) ??

David


Re: [PHP] Re: Still problem with file reading

2007-01-05 Thread David Giragosian


Why don't you start by running file_exists() on another file in the same
directory:



if (file_exists("./findMe.php"))
echo "It's here";

then, directory by directory, move towards where you want the real file to
be read. If a move fails, check permissions as already suggested ( and
capitalization, also, if on a *nix system ). Once you can accomplish this,
fopen() should work just fine.

David


Re: [PHP] Please Help with simple Noob problem

2007-01-11 Thread David Giragosian


Well, actually I don't see anything.  Nothing at all (in the case of the
phpinfo() page.  All the page has in it is just .
It was saved as test.php.  How can I tell if something is broken and
where do I look for the files?  I haven't done any dorking around with
the links, etc.  Just done the complete install, etc.  Then wanted to
play around with things to to get the feel of everything.  And I get
nothing.

Thanks!




Scott,

Have you restarted the server (or the machine), as Miles has suggested?

David


Re: [PHP] Variance Function

2007-01-12 Thread David Giragosian

Richard,

I think you are looking for data about both the variance and the standard
deviation of the array of dates. This would yield, for example, a
bell-shaped curve, like one gets when administering an intelligence test to
a sample population. Two thirds of the dates fall within +/- 1 standard
deviation of the mean date, ~95% of the dates fall within 2 standard
deviations, and so on.

I think this site does a good job of making the calculations and
equations understandable --> http://davidmlane.com/hyperstat/A16252.html .

hth,

David


Re: [PHP] Hello

2007-01-13 Thread David Giragosian

On 1/13/07, John Meyer <[EMAIL PROTECTED]> wrote:


Edward wrote:
> How do I create a php document so that people in my nonprofit can vote
> on issues online through the organization's website?
>
> Thanks,
>
> Edward
>
Start with PHP, add MySQL or your database of choice, mix and prepare.
Serves 500+.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Edward,

Maybe start by telling the group your level of experience with PHP, MySQL,
(Javascript), ...

Just a thought.

David


Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-16 Thread David Giragosian

On 1/16/07, Nuno Oliveira <[EMAIL PROTECTED]> wrote:


Hi,

I'm working on a website and one of the features that I've implemented
so far is the user timeout.

Every time that a user browses to a different page, the variable named
$_SESSION['user']['lastactive'] is updated to the current time.

However, before that, my PHP scripts check if the session for this user
had timed out or not...

The script that checks that is named "session.php" and it is included in
every file. If it detects a timeout, it sets a variable
$_SESSION['form']['errors'] to a string ('Your session has expired...
Bla, bla, bla...') and then redirects to the login.php and the user will
see that he his being asked to login again for the reason displayed.

Everything works great except in one situation... If the timeout period
happens when the user is filling a form, the action that it executes
(process.php) will also include session.php and it sets the error string
but when it redirects to login.php the $_SESSION['form']['errors']
variable is empty...



You must be unsetting the individual $_SESSION['form']['errors']  variable
or the entire $_SESSION array somewhere in there.

David


Re: [PHP] Denver PHP opportunity - Senior Software Engineers

2008-04-21 Thread David Giragosian
On 4/21/08, Nick Gasparro <[EMAIL PROTECTED]> wrote:
> Hey Richard,
>
> Not sure how to respond to your question other than to say yes they are
> profitable.  They are an established organization that has been around since
> 2003, they have upwards of 60 million users and tons of traffic.  They are
> the market leader in their space.  Please let me know if you have some
> interest and I would be happy to set up a time to talk.
>
> Best,
>
> Nick Gasparro
> Managing Partner, REMY Corp.
> Denver, CO 80202
> 303-539-0448 Direct
> 303-547-7469 Cell
> [EMAIL PROTECTED]
> www.remycorp.com
>
> Come visit our booth!!!
> Web 2.0 Expo San Francisco 2008 http://www.web2expo.com/sf
> San Francisco, CA April 22 - April 25, 2008
>
> -Original Message-
> From: Richard Heyes [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 21, 2008 11:22 AM
> To: Nick Gasparro
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Denver PHP opportunity - Senior Software Engineers
>
> Web 2.0 *and* profitable? Surprising.
>
> --
> Richard Heyes

The commute would be a killer, Richard. LOL.

-- 

-David.

When the power of love
overcomes the love of power,
the world will know peace.

-Jimi Hendrix

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: php framework vs just php?

2008-04-23 Thread David Giragosian
At the risk of extending this already looong thread...

Ah, screw it.

I actually read all of the Radicore documentation on Monday following
someone's suggestion last week about module access control. That was
before this thread got started, BTW. Now I'm not a Framework guy at
all, and I don't know nor have ever communicated with Tony, but I was
very impressed with the level of sophistication and conceptual
richness of the Radicore Framework, his insight and solutions for
common issues such as users hitting the 'browser back button' and
having multiple, open instances of a web page, differentiation in
usage of GET and POST, and session management in particular.

I'm happy to entertain and play along with threads that drift into
meta-topic struggles, but honestly, let's not lose the forest for the
trees. There's good stuff in Radicore, as I'm sure there are in some
other frameworks.

-- 

-David.

When the power of love
overcomes the love of power,
the world will know peace.

-Jimi Hendrix

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: how to use passthru ()

2008-04-24 Thread David Giragosian
On 4/24/08, M. Sokolewicz <[EMAIL PROTECTED]> wrote:
> J. Manuel Velasco - UBILIBET wrote:
> > Hello,
> >
> > I have two perl scripts that runs fine in the shell. But when I build a
> page with them, only in one case the results are shown in the other case i
> see a blank page.
> >
> > I have done different test and I don't understand this issue. I don't know
> what i am doing wrong.
> >
> > Follows the link to the code:
> > EURID script: http://pastebin.com/m3d6cbffe
> > ESNIC script: http://pastebin.com/m40755f40
> > PAGINA: http://pastebin.com/m5f8e1043
> >
> > Thanks in advance to help me with this.
> >
>
>
> So you're basically asking for help with your perl scripts on a PHP-only
> mailinglist?! Well... flame away...
>
> - Tul

The subject line "suggests" he's trying to call a perl script from
within a PHP page.

Maybe something in here will be of help:

http://www.google.com/search?sourceid=gmail&q=passthru%20perl%20function

David

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: how to use passthru ()

2008-04-24 Thread David Giragosian
On 4/24/08, Eric Butera <[EMAIL PROTECTED]> wrote:
> On Thu, Apr 24, 2008 at 9:14 AM, J. Manuel Velasco - UBILIBET
> <[EMAIL PROTECTED]> wrote:
> >
> >  No friend,
> >
> >  I said, the perl scripts work fine. The problem is to show the result in
> > the site.
> >
> >  One of them the result is shown and in the other one, not.
> >
> >  What is strange to me is that both scripts are almost the same, only
> > changes the query, in one case is to Eurid and the other case is to Eurid.
> > But I repeat, execute the scripts from command line show the right result in
> > both cases.
> >
> >  So I was asking if I was doing something wrong that i couldn't see in my
> > passthru() function use.
> >
> >  Please, read, think and them if you can say something to help, do it. In
> > this case you just make grow your EGO.
> >
> >  M. Sokolewicz escribió:
> > J. Manuel Velasco - UBILIBET wrote:
> >
> > Hello,
> >
> >  I have two perl scripts that runs fine in the shell. But when I build a
> > page with them, only in one case the results are shown in the other case i
> > see a blank page.
> >
> >  I have done different test and I don't understand this issue. I don't know
> > what i am doing wrong.
> >
> >  Follows the link to the code:
> >  EURID script: http://pastebin.com/m3d6cbffe
> >  ESNIC script: http://pastebin.com/m40755f40
> >  PAGINA: http://pastebin.com/m5f8e1043
> >
> >  Thanks in advance to help me with this.
> >
> >
> >  So you're basically asking for help with your perl scripts on a PHP-only
> > mailinglist?! Well... flame away...
> >
> >  - Tul
> >
> >
> >
> > --
> >
>
> Could be something to do with your ENV setup.

>It's also going to be running as
> a different user, maybe that has something to do with it also?

Maybe add the second parameter to the passthru call to catch the
return status of the call to the perl script. If it fails because it
is running as 'nobody',  you should have some feedback in there.

David

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Where to start!

2008-05-09 Thread David Giragosian
I doubt this will have any sway on the contributors to this thread,
but I ran across a db normalization "rule of thumb" yesterday in a
tutorial for another language: "Normalize until it hurts; De-normalize
until it works."

I lean towards finding a middle ground, so this makes sense to me.

--David.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Semi-OT: PHP Login with client security

2008-05-19 Thread David Giragosian
On 5/19/08, Tim Thorburn <[EMAIL PROTECTED]> wrote:
> Wolf wrote:
> >  Tim Thorburn <[EMAIL PROTECTED]> wrote:
> >
> > > Hi all,
> > >
> > > Having a slight problem with a demo I gave at a clients last week -
> looking for a little advise.  Part of my demo involved a password protected
> area - the simplified process is: client enters password on login page > if
> login/password match encrypted database, PHP session is created, form
> forwards to a secured area > secured area checks to make sure PHP session is
> valid > if valid display content, if not, return to login screen.
> > >
> > > This procedure is what I've used for many years, tested on a variety of
> servers and connections.  It works.  During the demo with my client, I was
> able to enter login/password info, the PHP session was created - however the
> screen would not forward to the secured area.  Instead I was pretended with
> a blank screen (client only has an outdated/non-updated version of IE6).  If
> I were to type in the URL to the secured area, it would display content
> properly.  As a test, I logged out, closed my browser and started again,
> this time entering an incorrect login/password - again it would not forward
> to the next screen properly, however this time when I typed in the full URL,
> it would not display as the session hadn't been created.
> > >
> > > I've spoken briefly with my clients IT person, however he's unwilling to
> share any firewall information or really anything regarding their security
> setup - which I understand as I'm not an employee and just a contractor.
> > >
> > > So, after long winded description - does anyone with network security
> experience have any idea either a) what I would need to ask the IT person to
> allow for their site only, or b) have any suggestions for alternate password
> authentication that may work given the above conditions?
> > >
> > > TIA
> > > -Tim
> > >
> > >
> >
> > It sounds like your code is hokey, since IE is more stringent then other
> browsers, the code looks to be at fault.
> >
> > What browsers did you test this with before taking it to the client?
> > Firewalls shouldn't be any type of issue at all in this case, unless your
> browser is trying to redirect to another port, in which case, that should be
> something that the firewall won't affect internally anyways.
> > So all roads point back to code failure.
> >
> > Wolf
> >
> >
> The code has been tested on Win2k, XP, Vista, Linux and OSX - IE5.x, IE6.x,
> IE7, Netscape 9, Firefox 2, Firefox 5 beta 5, and Safari.  Works on a
> variety of connections and locations outside of the clients office - does
> not work inside the clients office.
>

Someone suggested looking at the error logs. That still seems like a good idea.

David

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Avoid object twice

2008-06-04 Thread David Giragosian
On 6/4/08, Yui Hiroaki <[EMAIL PROTECTED]> wrote:
> Uhmm!
>
> It is sure that function can call from other file.
> But it is NOT EXECUTE mail() function.
>
> How mail function be execute!
>
> Please do more advice.
> You may tire of this mail.

Yes.

David

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Canvas examples

2008-06-15 Thread David Giragosian
On 6/15/08, Richard Heyes <[EMAIL PROTECTED]> wrote:
>
> Does anyone have any more examples of the new canvas element they've
> written?
>
> FF only: http://www.phpguru.org/canvas.html
>
> --


That's very cool, Richard.

--David.


Re: [PHP] mkdir() Cannot Create Directories

2008-06-17 Thread David Giragosian
On 6/17/08, Daniel Brown <[EMAIL PROTECTED]> wrote:
>
> On Tue, Jun 17, 2008 at 2:43 PM, Wei, Alice J. <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> [snip!]
> >
> > This is my PHP code:
> >
> > mkdir("C:/Inetpub/wwwroot/TPU/test/$id, 0755) or die ("Cannot create
> directory C:/Inetpub/wwwroot/TPU/test/$id");
> >
> >  What is strange is that I don't get permission denied errors, but I
> still cannot create the directories. Can anyone provide me some tips on why
> I am getting these errors?
>
>Does 'C:\Inetpub\wwwroot\TPU\test\' exist on the server, and is it
> writable?  Maybe you're just missing a directory up to that point
> (such as 'test'), or maybe it's not on your C:\ drive.


Alice, that's a default IIS path to the web root, so I assume you _might_ be
using IIS. Maybe the IIS manager is locking you out somehow.

--David.


Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread David Giragosian
 My favorite vi command:

e! Damn it. e!


Re: [PHP] PHPExcel

2008-07-03 Thread David Giragosian
On 7/3/08, Shawn McKenzie <[EMAIL PROTECTED]> wrote:

> Richard Heyes wrote:
>
>>  Happy 4th of July!

>>>
>>> How did you know it was my sisters birthday today? Been an exciting
>>> week, first Canada's birthday was on Monday, now my sister's birthday
>>> today. What a thrill ride.
>>>
>>
>> Isn't it the 3rd?
>>
>> It is in the great Republic of Texas.
>
> -Shawn


It is even in the sub-tropical part of Texas known as Houston.

But this isn't a day of celebration for you guys, Richard, to be sure.

Do you all just ignore the day, or do you hold some kind of
anti-celebration?

David


Re: [PHP] Multiple words str_shuffle

2008-07-06 Thread David Giragosian
On 7/6/08, Ron Piggott <[EMAIL PROTECTED]> wrote:
>
>
> I am trying to scramble individual words and/or phrases.
>
> When it is a phrase I would like to keep the letters of each word
> together, with a space between each one.  The code I have so far is
> below.  I use PHP 4.4.7.  The code below is fine for a single word; it
> is phrases that I am now trying to accommodate.
>
>
> An example:
>
> rise and shine
>
> Desired output:
>
> I S R E  N A D   E H I S N
>
> Thanks for your help,
>
> Ron
>
>
>
> $keyword might be
>
> $keyword = str_shuffle(strtoupper($keyword));
>
> $buffer = "";
>
> for ($count = 0; ($count < strlen($keyword)); $count++) $buffer .=
> $keyword{$count}." ";
>
> $keyword = trim($buffer);
>
> unset($buffer);


Once the individual words have had their letters shuffled, explode the
sentence on a space, then use the shuffle function (
http://us3.php.net/manual/en/function.shuffle.php) to, um, shuffle the
array.

David


Re: [PHP] zippidity do duh!

2008-07-09 Thread David Giragosian
On 7/9/08, tedd <[EMAIL PROTECTED]> wrote:

> Hi gang:
>
> I'm trying to do some zip stuff, but on server [1] my script hangs on:
>
> $zip = new ZipArchive();
>
> No errors, no anything, it just hangs -- I assuming that ZipArchive is not
> available.
>
> ---
>
> However, on server [2] (Daniel Brown's most excellent service, btw),
> everything works great -- as is usual (every time I say something like this
> he gives me another month of free service). :-)
>
> I've done phpinfo's on both servers, but don't see any obvious differences.
>
> Outside of running my script on different servers to see if it works, is
> there anyway I can tell beforehand if ZipArchive is available or not?


Maybe something like
http://us2.php.net/manual/en/function.get-loaded-extensions.php
 or http://us2.php.net/manual/en/function.extension-loaded.php ?

David


Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-12 Thread David Giragosian
 Todd Boyd recently offered:

> Haven't taken a distributed computing class just yet, but I've still got
> a bit until I graduate, and these elective credits are burning a hole in
> my pocket...


The cost of public colleges and universities, as well as community colleges,
are truly astounding these days. I for one am quite happy learning from
books, web tutorials and the occasional ( ;-g ) mailing list thread.

--David.


Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-12 Thread David Giragosian
On 7/12/08, tedd <[EMAIL PROTECTED]> wrote:
>
> At 9:13 AM -0500 7/12/08, David Giragosian wrote:
>
>>  Todd Boyd recently offered:
>>
>>  Haven't taken a distributed computing class just yet, but I've still got
>>>  a bit until I graduate, and these elective credits are burning a hole in
>>>  my pocket...
>>>
>>
>> The cost of public colleges and universities, as well as community
>> colleges,
>> are truly astounding these days. I for one am quite happy learning from
>> books, web tutorials and the occasional ( ;-g ) mailing list thread.
>>
>> --David.
>>
>
> Yes, but college degrees are the bill of goods we've been sold. We are lead
> to believe that if our children (and us) go to colleges and get that
> sheepskin then everything will be great for the rest of our lives. But
> unfortunately, that's not true.
>
> In the meantime, academia and politician still demand more funding waving
> the same banner of yesteryear -- "Your children's education needs improving"
> -- while continuing to fail miserably in the global arena.
>
> Like with everything else, you really don't realize the problem until you
> bounce off the bottom. We just haven't reached that yet, but we're doing our
> level best to get there.
>
> Cheers (I guess),
>
> tedd


We had an article in our local paper yesterday about the guy that made and
'starred' in the video that Daniel posted about here a couple of weeks ago
(Matt of 'Where in the World is Matt', fame). Seems his father didn't think
he was mature enough to be able to benefit from college, and he was advised
to do some traveling instead. That apparently led to an early version of the
current 15-minutes-of-fame video. When I read that, I thought, not everybody
is buying into the college degree to 'success' route. But that I'm sure is
the exception rather than the rule. I think the bigger problem, for
education and the USA at least, is that there are few middle-class jobs to
be prepared for, despite what you might learn in school. Learning for the
sake of learning is wonderful, and yes, I think it does benefit society by
broadening one's perspective, but as a path to financial success, defined
here as being able to support yourself and raise a family, I agree that a
college degree is a dicey undertaking for the expense.

(And to be clear, I've completed 10 years of post high school education.)

--David.


Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-12 Thread David Giragosian
On 7/12/08, Daniel Brown <[EMAIL PROTECTED]> wrote:
>
> On Sat, Jul 12, 2008 at 11:36 AM, David Giragosian
> <[EMAIL PROTECTED]> wrote:
> >
> > We had an article in our local paper yesterday about the guy that made
> and
> > 'starred' in the video that Daniel posted about here a couple of weeks
> ago
> > (Matt of 'Where in the World is Matt', fame).
>
>That was actually something I sent to just a few people directly.
> However, if anyone wants to see it --- and I recommend it, because
> it's "geekily-neat" --- you can view the video, entitled "Dancing
> 2008", at this link:
>
>http://www.wherethehellismatt.com/


Oops. My mistake.

--David.


Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??

2008-07-17 Thread David Giragosian
On 7/17/08, Stut <[EMAIL PROTECTED]> wrote:
>
> On 17 Jul 2008, at 14:10, tedd wrote:
>
>> At 10:28 PM +0100 7/16/08, Stut wrote:
>>
>>> Oh, and you'd be working for me so bear that in mind ;)
>>>
>>> -Stut
>>>
>>
>> It's no wonder why you haven't found anyone.  :-)
>>
>
> Thanks for that tedd.
>
> Seriously though, I'm wondering if my expectations are too high... I expect
> them to know that addslashes is not adequate protection against SQL
> injection. I even had one tell me "SQL injection? I can't remember but I'm
> sure I've used it before". And I won't even go into the guy who asserted
> that he's always worked with DB administrators who've dealt with security
> issues so he'd never needed to learn about it.
>
> Am I expecting too much?!?
>
> -Stut


Surely you're being rhetorical, Stut, but no, you're not expecting too much.
However the guy(s) who worked in a larger organization likely did have a
very clear delineation of roles and responsibilities, as I am experiencing
in a new position, and therefore may not be current on best practices in
areas outside of their role. When my group leader instituted the current
policy regarding job functions, a number of the open source guys decided
their unused skills were eroding and/or they were not being exposed to new
learning, and they left the company.

--David.


Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??

2008-07-17 Thread David Giragosian
On 7/17/08, Stut <[EMAIL PROTECTED]> wrote:
>
>
> On 17 Jul 2008, at 15:31, David Giragosian wrote:
>
> On 7/17/08, Stut <[EMAIL PROTECTED]> wrote:
>>
>>>
>>> On 17 Jul 2008, at 14:10, tedd wrote:
>>>
>>> At 10:28 PM +0100 7/16/08, Stut wrote:
>>>>
>>>> Oh, and you'd be working for me so bear that in mind ;)
>>>>>
>>>>> -Stut
>>>>>
>>>>>
>>>> It's no wonder why you haven't found anyone.  :-)
>>>>
>>>>
>>> Thanks for that tedd.
>>>
>>> Seriously though, I'm wondering if my expectations are too high... I
>>> expect
>>> them to know that addslashes is not adequate protection against SQL
>>> injection. I even had one tell me "SQL injection? I can't remember but
>>> I'm
>>> sure I've used it before". And I won't even go into the guy who asserted
>>> that he's always worked with DB administrators who've dealt with security
>>> issues so he'd never needed to learn about it.
>>>
>>> Am I expecting too much?!?
>>>
>>> -Stut
>>>
>>
>>
>> Surely you're being rhetorical, Stut, but no, you're not expecting too
>> much.
>> However the guy(s) who worked in a larger organization likely did have a
>> very clear delineation of roles and responsibilities, as I am experiencing
>> in a new position, and therefore may not be current on best practices in
>> areas outside of their role. When my group leader instituted the current
>> policy regarding job functions, a number of the open source guys decided
>> their unused skills were eroding and/or they were not being exposed to new
>> learning, and they left the company.
>>
>
> There's no way I would ever hire anyone who says "security was somebody
> else's responsibility". I don't care what their previous managers have said,
> that's never a valid statement in my book. When you then add the fact that
> no DB admin no matter how good they are can implement adequate security to
> prevent SQL injection you get a developer who doesn't care about security
> issues much less know anything about them.
>
>-Stut


Saying security was someone else's responsibility is not the smartest
statement to make in a job interview. Whether that correlates to someone not
caring about security is a different matter, I think. Of course, if the
applicant said, "Security was somebody else's responsibility" in a flip
and/or arrogant manner and clearly showed no concern about it, then sure, on
to the next candidate. But I can imagine an exchange where somebody said
that, but then followed up with, "But here's how I would handle it..."

It sounds like the guy you interviewed was in the former category.

--David.


Re: [PHP] Stumped I Tell You!

2008-07-25 Thread David Giragosian
On 7/25/08, Daniel Brown <[EMAIL PROTECTED]> wrote:
>
> On Fri, Jul 25, 2008 at 3:07 PM, Jay Blanchard <[EMAIL PROTECTED]>
> wrote:
> >
> > *slaps forehead soundly* I found that there was a missing greater than
> > sign in a greater than or equal to requirement in an earlier query.
>
>The most minuscule errors cause the greatest harm.
>
>By the way, I didn't mean to insinuate that your use of the if()
> condition was incorrect, though I admit that, re-reading it, it
> absolutely sounds that way.  I just meant that it was my preferred
> method.  I also realized that I jumped the gun on the "Send" button
> before sending the contents of the second message I sent.  Someone
> needs to whack me upside the head every so often.  In my case, that
> might be a patentable invention.



Already patented. It's called "The Spouse".

--David.


Re: [PHP] phpguru.org back up

2008-08-13 Thread David Giragosian
On 8/13/08, Richard Heyes <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> You'll be pleased to know (I'm sure) that phpguru.org is back up and
> working (for the most part I would imagine).


Congratulations, Richard.

Server crashes, data loss, and downtime are concerns for all of us.

--David.


Re: [PHP] Google Chrome

2008-09-02 Thread David Giragosian
On 9/2/08, Bastien Koert <[EMAIL PROTECTED]> wrote:
>
> On Tue, Sep 2, 2008 at 10:52 AM, Richard Heyes <[EMAIL PROTECTED]> wrote:
>
> > > If MS doesn't, then why on Earth should we? ;)
> >
> > Because there aren't enough high horses to go around... :-)
> >
> > --
> > Richard Heyes
> >
> > HTML5 Graphing for IE7, FF, Opera and Safari:
> > http://www.phpguru.org/RGraph
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> Just when things were getting dull with IE8 claiming better standards
> support


The tech writer in our local newspaper reviewed IE8 this morning.

http://www.chron.com/disp/story.mpl/business/silverman/5978053.html

Interesting read.

David


Re: [PHP] Confused

2008-09-02 Thread David Giragosian
On 9/2/08, Dan Shirah <[EMAIL PROTECTED]> wrote:
>
> >
> > Your script is dying then. What does the error log say? Are you sure PHP
> > is using the php.ini you think it's using? Double check by using
> > phpinfo().
> >
> > Cheers,
> > Rob.
>
>
> It is VERY strange!  phpinfo() shows that it is using C:\Windows\php.ini
>
> phpinfo() also shows display_errors = Off but when I go to the
> C:\Windows\php.ini file it says display_errors = On...
>

Have you restarted the server since changes were made?

David


<    1   2