Nuno Oliveira wrote:
Sometimes in my code I use the Header('Location: index.php?var=value');
and I've found out (I think) that when one of these headers are executed
by PHP, the rest of the script gets executed.
I'm thinking that this is the problem because I've eliminated all the
occurrences
Frank M. Kromann wrote:
Hi Eli,
Check variable_order in php.ini
(http://us2.php.net/manual/en/ini.core.php#ini.variables-order) if the E is
missing you will not get any environment variables.
- Frank
Thanks, Frank.. That worked! :-)
-thanks, Eli
--
PHP General Mailing List (http://www.php.
> $formerror = array();
>
> ... do your validation here which may/may not add to the array.
>
> if (!empty($formerror)) {
>echo "Something went wrong!";
>print_r($formerror);
> } else {
>echo "Everything is ok!";
> }
As I said the problem is that a value is being returned, how I ch
ANZOLA Silvio wrote:
Hi; I'm e newbie in PHP. I have to reda data from an AS400 system; I use
an ODBC connection and I have to read data from a table with
This the SQL Statement "
$query_stm = "SELECT * " .
"FROM cordo.plavt " .
"where atcdim = ? " .
"and atdtvf = 9
Beauford wrote:
This is a bad way to test for a value also, unless you
expecting only TRUE or FALSE and you are sure that it will
always be set.
Otherwise you should do something like this
if ( isset($formerror) && $formerror != '' ) {
// Display Error
}
The problem here is this. for
Beauford wrote:
>
...
>>> function invalidchar($strvalue)
>>> {
>>> if(!ereg("^[[:alpha:][:space:]\'-.]*$", $strvalue)) {
>> That regexp matches if $strvalue consists of zero or more
>> ocurrences of a letter, a whitespace character, and any
>> character whose numeric value lies between
Curt Zirzow wrote:
> On 1/16/07, Jochem Maas <[EMAIL PROTECTED]> wrote:
>> ...
>> if ($cacheState) {
>> $headers = getallheaders();
>> if (isset($headers['If-Modified-Since']) &&
>> ($headers['If-Modified-Since'] == $lastModified)) {
>
> I was waiting for this to be
On 1/16/07, Jochem Maas <[EMAIL PROTECTED]> wrote:
...
if ($cacheState) {
$headers = getallheaders();
if (isset($headers['If-Modified-Since']) &&
($headers['If-Modified-Since'] == $lastModified)) {
I was waiting for this to be mentioned...
I would use a more de
Jason Pruim wrote:
>
> On Jan 16, 2007, at 4:10 PM, Jochem Maas wrote:
>
>> generating/resampling image data is a relatively heavy job for a script
>> to perform. there maybe optimizations available in the script itself but
>> generally caching the results the generation/resampling action is the
blackwater dev wrote:
> Thanks for all the insights. It appears that it might have thought my
> email
> was spam as I sent it from another server and it worked fine.
which makes it even more likely that the 'bad' server doesn't have it's
relevant MX DNS records setup properly - I can't really tel
Thanks for all the insights. It appears that it might have thought my email
was spam as I sent it from another server and it worked fine.
Thanks!
On 1/16/07, Jochem Maas <[EMAIL PROTECTED]> wrote:
also consider that there maybe a reverse lookup being done on the sending
MTA
that the sms gatew
On Jan 16, 2007, at 4:10 PM, Jochem Maas wrote:
generating/resampling image data is a relatively heavy job for a
script
to perform. there maybe optimizations available in the script
itself but
generally caching the results the generation/resampling action is
the way to
increase performance
At 1/16/2007 12:54 PM, Jason Pruim wrote:
First off, thanks to everyone who helped me get started with a
thumbnail gallery that would display info you could just copy/paste
into a weblog (Or any webpage) and have the picture display.
I am moving along with a few additions and seem to be running
On 2/14/06, Paul Scott <[EMAIL PROTECTED]> wrote:
I am busy porting/rewriting our framework
(http://avoir.uwc.ac.za/projects/nextgen & http://kngforge.uwc.ac.za)
from PHP4 to PHP5, and would like to know if there are any additional
mailing lists that anyone knows of that are specifically focused
generating/resampling image data is a relatively heavy job for a script
to perform. there maybe optimizations available in the script itself but
generally caching the results the generation/resampling action is the way to
increase performance ... you need a mechanism to check/store/retrieve cached
also consider that there maybe a reverse lookup being done on the sending MTA
that the sms gateway doesn't consider kosher .. and/or that the IP of the
sending MTA is grey-listed/black-listed.
also a check may be being done to see if the sender's account exists
on the sender's [your servers] domai
Hello,
First off, thanks to everyone who helped me get started with a
thumbnail gallery that would display info you could just copy/paste
into a weblog (Or any webpage) and have the picture display.
I am moving along with a few additions and seem to be running into a
problem. The script I
> This is a bad way to test for a value also, unless you
> expecting only TRUE or FALSE and you are sure that it will
> always be set.
> Otherwise you should do something like this
>
> if ( isset($formerror) && $formerror != '' ) {
> // Display Error
> }
The problem here is this. formerr
Maybe phpMailer isn't sending the correct headers either. Sometimes all it
takes is one missing header that a system is looking for and it may filter it
as spam or something.
Again, I encourage you to examine the headers from your Thunderbird "good"
email and compare it to your PHP and/or phpM
David Giragosian wrote:
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
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2007-01-16 15:37:09 +0100:
Im using DomDocument currently and i realy want to prevent it from adding
the !DOCTYPE and mabye even and etc..
Is this possible and how?
Doesn't DOMDocument *require* DTD? I thought it's either that or a
"document fra
On Tuesday 16 January 2007 03:27, Dave M G wrote:
> PHP Users,
>
> I'm creating a PHP based forum, and what I'd like to do is have it work
> so that people can view and read the information via email, just like a
> mailing list
The mailing part just need some kind of user list... with particulary
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.
Ho
Beauford wrote:
Obviously I'm not quite understanding, maybe a further explanation is needed
to help me understand.
This is how I see it from what you said - am in in the right ballpark.
The function is returning a null value if there is no error, and I guess PHP
sees 'null' or "" as a value. S
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 ses
I'm guessing the SMS system is rejecting the email because it's lacking some
headers that mail programs tend to use... and spammers sometimes forget.
You might send your email from Thunderbird.. CC yourself on it. Verify that it
went through as a text message, then open the CC'd copy and look a
Has anyone been able to successfully send a text message using php and the
mail function?
It works fine if I open up thunderbird and send a message to
[EMAIL PROTECTED] but if I use the mail function:
mail("[EMAIL PROTECTED]", "test", "test");
It doesn't work. I've tried several different appr
Obviously I'm not quite understanding, maybe a further explanation is needed
to help me understand.
This is how I see it from what you said - am in in the right ballpark.
The function is returning a null value if there is no error, and I guess PHP
sees 'null' or "" as a value. So how do I get aro
Hi Eli,
Check variable_order in php.ini
(http://us2.php.net/manual/en/ini.core.php#ini.variables-order) if the E is
missing you will not get any environment variables.
- Frank
> Hi,
>
> System:
> Win32
> PHP 5.2.0
> Apache 2.0.54 (PHP in CGI mode)
>
> CGI vars are not automat
First.. I apologize for power-reading your message and not really grasping
everything you're trying to do. From the responses, it sounds like my vote
would be for PDF as well, being a very universal format and very easy to work
with and makes small enough for your needs. If a file is still to
George Pitcher wrote:
>
>> I'm guessing a bit but it sounds like inserting a stack of RAM will make
>> the problem go away for the foreseable future.
>>
> I will ask.
>
...
>>
> I do a lot of PDF building and that was my first suggestion, before we
> looked at Word. My colleague rejected this o
> I'm guessing a bit but it sounds like inserting a stack of RAM will make
> the problem go away for the foreseable future.
>
I will ask.
> >> isn't it cheaper to install a dedicated server for your app?
> >> (rather than making you jump thru hoops, I mean AFAICT this is
> >> a core business act
George Pitcher wrote:
> Jochem,
>
>> -Original Message-
>> From: Jochem Maas [mailto:[EMAIL PROTECTED]
>> Sent: 16 January 2007 3:31 pm
>> To: George Pitcher
>> Cc: php-general@lists.php.net
>> Subject: Re: [PHP] running exec() on client
>>
>>
>> George Pitcher wrote:
>>> Hi,
>>>
>>> I am
Roman,
> -Original Message-
> From: Roman Neuhauser [mailto:[EMAIL PROTECTED]
> Sent: 16 January 2007 4:53 pm
> To: George Pitcher
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] running exec() on client
>
>
> # [EMAIL PROTECTED] / 2007-01-16 15:18:50 -:
> > > You do not need to
# [EMAIL PROTECTED] / 2007-01-16 15:37:09 +0100:
> Im using DomDocument currently and i realy want to prevent it from adding
> the !DOCTYPE and mabye even and etc..
> Is this possible and how?
Doesn't DOMDocument *require* DTD? I thought it's either that or a
"document fragment" (which is prob
# [EMAIL PROTECTED] / 2007-01-16 15:18:50 -:
> > You do not need to have apache installed to run PHP you just need
> > PHP-CLI (Command Line Interface)
>
> Yes, I do know that, but what I want is for my colleague to follow a
> link on her web page that will trigger the php command, passing any
Jochem,
> -Original Message-
> From: Jochem Maas [mailto:[EMAIL PROTECTED]
> Sent: 16 January 2007 3:31 pm
> To: George Pitcher
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] running exec() on client
>
>
> George Pitcher wrote:
> > Hi,
> >
> > I am looking for a solution to a server
# [EMAIL PROTECTED] / 2007-01-16 16:01:39 +0100:
> could you point me at the svn web view that shows the utility code in
> question?
> it might give me some ideas.
I don't think it's relevant, but here you go:
http://svn.sigpipe.cz/viewvc/view/trunk/testilence/src/Testilence/util.php?view=markup
George Pitcher wrote:
> Hi,
>
> I am looking for a solution to a server problem. I am part of a 2-person
> team - I look after document scanning, OCR (by outside agencies) as well as
> all development.
>
> My colleague is responsible for obtaining copyright permission from
> publishers (for what
Roman Neuhauser wrote:
> # [EMAIL PROTECTED] / 2007-01-16 13:56:01 +0100:
>> my gut says that it would be easiest to just keep to seperate copies of
>> the utility class(es) one for each project, although it kind of depends
>> on how large & complicated the utlity is ... this would remove all the
Miguel,
>
> You do not need to have apache installed to run PHP you just need
> PHP-CLI (Command Line Interface)
>
Yes, I do know that, but what I want is for my colleague to follow a link on
her web page that will trigger the php command, passing any required
parameters.
Cheers
George
--
PHP G
At 5:16 PM -0800 1/15/07, Brian Dunning wrote:
I want to make sure that a jpg uploaded by the user is unique. I was
thinking about storing a hash code for each image in its MySQL
record (got a db record for each uploaded image already). Is there
an easy way to generate such a string?
I do a s
El Tue, 16 Jan 2007 15:07:36 -
"George Pitcher" <[EMAIL PROTECTED]> escribió:
> Hi,
>
> I am looking for a solution to a server problem. I am part of a
> 2-person team - I look after document scanning, OCR (by outside
> agencies) as well as all development.
>
> My colleague is responsible fo
Hi,
I am looking for a solution to a server problem. I am part of a 2-person
team - I look after document scanning, OCR (by outside agencies) as well as
all development.
My colleague is responsible for obtaining copyright permission from
publishers (for what I do). Part of her process is sending
At 10:52 PM +0100 1/15/07, Otto Wyss wrote:
When values are entered on one of my page I submit the result back
to the same page (form action=same_page). Unfortunately each submit
adds an entry into the history, so history back doesn't work in a
single step. Yet if the count of submits were know
Martin Alterisio wrote:
> Forgot to mention that calling a non-static function this way should
> generate an E_STRICT warning.
and IIRC it will eventually be made a fatal error in php6, somebody
please correct me if I'm wrong!
>
> 2007/1/16, Martin Alterisio <[EMAIL PROTECTED]>:
>>
>> Backward c
Cheseldine, D. L. wrote:
Hi
I'm stuck on The Basics page of the php5 Object Model:
http://uk.php.net/manual/en/language.oop5.basic.php
The top example has the code:
A::foo();
even though foo is not declared static in its class. How does it get
called statically without being declared static
Forgot to mention that calling a non-statical function this way should
generate an E_STRICT warning.
2007/1/16, Martin Alterisio <[EMAIL PROTECTED]>:
Backward compatibility with PHP4, where member functions couldn't be
declared as static. Any member function could be called statically providing
Backward compatibility with PHP4, where member functions couldn't be
declared as static. Any member function could be called statically providing
a static context instead of an object instance.
2007/1/16, Cheseldine, D. L. <[EMAIL PROTECTED]>:
Hi
I'm stuck on The Basics page of the php5 Object
[snip]
http://uk.php.net/manual/en/language.oop5.basic.php
The top example has the code:
A::foo();
even though foo is not declared static in its class. How does it get
called statically without being declared static?
[/snip]
foo() is a function and would not be static, it can be public (defau
Hello there,
Im using DomDocument currently and i realy want to prevent it from adding the !DOCTYPE and
mabye even and etc..
Is this possible and how?
Thx in advance.
Mathijs.
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 000703-1, 01/15/2007
Tested on: 1/16/2007 3:37:
Hi
I'm stuck on The Basics page of the php5 Object Model:
http://uk.php.net/manual/en/language.oop5.basic.php
The top example has the code:
A::foo();
even though foo is not declared static in its class. How does it get
called statically without being declared static?
regards
dave
--
PHP Gen
Beauford wrote:
> Thanks, a little confusing there. You would think though that once the info
> is transmitted by the browser it would be forgotten by the browser. Anyway,
> I do have a work around, and since PHP can't do anything about what the
> browser does, this will have to suffice.
But a ref
# [EMAIL PROTECTED] / 2007-01-16 13:56:01 +0100:
> my gut says that it would be easiest to just keep to seperate copies of
> the utility class(es) one for each project, although it kind of depends
> on how large & complicated the utlity is ... this would remove all the
> described
> problems and l
ok, I'm starting to grok it now :-)
Roman Neuhauser wrote:
...
>> from looking at runkit it would seem using runkit_import() would work,
>> it would mean you simply 'include' the utility class(es) in both Testilence
>> and
>> Amock using runkit_import() and that would simply cause the second 'i
# [EMAIL PROTECTED] / 2007-01-16 11:41:08 +0100:
> Roman Neuhauser wrote:
> > # [EMAIL PROTECTED] / 2007-01-14 20:47:02 +0100:
> >> Roman Neuhauser wrote:
> > The goal is to make a successful run of the test suite a prerequisite of
> > the utility installation... Think RPM or similar: if X.rpm dep
Hello all, give this a try Beauford.
Place that up in the head of the documement. It's not PHP but it used to
work. I haven't used it in a few years.
""Beauford"" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> Hi,
>
> How do I stop contents of a form from being readded to the
Hi; I'm e newbie in PHP. I have to reda data from an AS400 system; I use
an ODBC connection and I have to read data from a table with
This the SQL Statement "
$query_stm = "SELECT * " .
"FROM cordo.plavt " .
"where atcdim = ? " .
"and atdtvf = 999";
This is the prepa
Roman Neuhauser wrote:
> # [EMAIL PROTECTED] / 2007-01-14 20:47:02 +0100:
>> Roman Neuhauser wrote:
>>> I have a circular dependency, and am looking for thoughts on breaking
>>> the cycle without (much) redundancy or hard to automate procedures.
>>>
>>> I'm developing two programs, Testilence, a un
# [EMAIL PROTECTED] / 2007-01-15 19:22:24 -0500:
> > From: 'Roman Neuhauser' [mailto:[EMAIL PROTECTED]
> > # [EMAIL PROTECTED] / 2007-01-15 18:33:31 -0500:
> > > > From: Roman Neuhauser [mailto:[EMAIL PROTECTED] #
> > > > [EMAIL PROTECTED] / 2007-01-15 16:31:32 -0500:
> > > > > I have file which
I believe that only two things could be messing up your validation:
a) input data
b) your function
a) Do a var_dump on your input data. Is there any white space
characters or anything else that do not belong there in the string?
b) Rewrite your function/rethink what you are doing. You said tha
61 matches
Mail list logo