Here is my script. The file is not uploading. In my orignal script it is
$_FILES['userfile']['tmp_name'][$i]; that gets uploaded as I have an array
of images and it loops through. It must be something to do with this line
$tmpName = imagecopyresampled($image_resized, $image, 0, 0, 0, 0,
$new_wi
At 3:19 PM +0100 6/13/07, Richard Davey wrote:
$filter['flags'] = 0;
> if( $allow_fraction )
{
> $filter['flags'] |= FILTER_FLAG_ALLOW_FRACTION;
}
> if( $allow_thousand )
{
> $filter['flags'] |= FILTER_FLAG_ALLOW_THOUSAND;
}
> if( $allow_scientific )
{
>
At 1:08 AM +0100 6/16/07, Stut wrote:
tedd wrote:
At 12:45 PM +0100 6/14/07, Stut wrote:
Hi All,
I've been asked to be a judge in a PHP competition, and I thought
I'd let you all know about it. Zend have donated some prizes,
including a copy of Zend Studio Professional with 1 year of
suppor
I'm using this code to check if a cookie has a value :
If(!IsSet($HTTP_COOKIE_VARS["LoggedIn"]))
In case that this cookie is not set, how can i avoid the
Undefined index: line in the error log?
berber
At 12:55 PM -0600 6/11/07, Ashley M. Kirchner wrote:
But I also hate JavaScript. So if I can avoid it and use PHP, then
I will. Hence me asking here first to see if I can get it
accomplished with PHP. :)
Don't hate it -- Javascript is just another cool language. You can do
some amazing thi
At 8:57 PM +0200 6/11/07, Tijnema wrote:
On 6/11/07, Ashley M. Kirchner <[EMAIL PROTECTED]> wrote:
Tijnema wrote:
But Javascript != PHP, so if this is what you want, you're on the
wrong list...
Ik weet dat meneer. But I also hate JavaScript. So if I can avoid
it and use PHP, then I will
At 2:37 PM +0200 6/16/07, WeberSites LTD wrote:
I'm using this code to check if a cookie has a value :
If(!IsSet($HTTP_COOKIE_VARS["LoggedIn"]))
In case that this cookie is not set, how can i avoid the
Undefined index: line in the error log?
berber
berber:
Try this:
$loggedIn = i
Hey!
I have a pal who has a pretty interesting domain, he wants to offer emails @
his_domain_name.com (example) which gets forwarded to thier normal email
address.
eg:
i make an account at x.com with username genphp and give my real email
address of genphp AT yahoo.com
all em
At 12:38 PM -0600 6/11/07, Ashley M. Kirchner wrote:
I have a page containing two drop down lists. I need to figure
out a way to populate/update the second drop down list based on a
selection of the first one (the data for both drop down lists is in
a MySQL database). Is this something I n
On Saturday 16 June 2007 22:00, Ryan A wrote:
> This is already possible via cpanel but rather than enter each
> address by hand in cpanel... is there anyway to do this via a php
> script so that as the user creates a userid and specifies his real
> address the forward is created?
Yeah, find ou
In news: [EMAIL PROTECTED] - Ryan A wrote :
>> Hey!
>>
>> I have a pal who has a pretty interesting domain, he wants to offer
>> emails @ his_domain_name.com (example) which gets forwarded to thier
>> normal email address.
>>
>> eg:
>> i make an account at x.com with username genphp and give my
kvigor wrote:
if (in_array(strtolower($value), $profanity))
{
$profanity[$field] = "bad";
}
on php.net I haven't seen any example on using strtolower w/ arrays.
I tried this an I get the following output:
Please REMOVE the profanity in the following fields. Immediately!
Notice: Undefined
WeberSites LTD wrote:
I'm using this code to check if a cookie has a value :
If(!IsSet($HTTP_COOKIE_VARS["LoggedIn"]))
In case that this cookie is not set, how can i avoid the
Undefined index: line in the error log?
The isset function does not give an error if you pass it a non-
if(@sizeof($profanity) > 0)
{
echo "Please REMOVE the profanity in the
following fields. Immediately!";
foreach($profanity as $field => $value)
{
echo " {$label_array[$field]}"; //line 114
}
}
- Original Message -
From: "Stut" <[EMAIL PROTECTED]>
To: "kvigor" <[EMAIL PROTEC
My problem:
I have a form for that the users register indicating a user's name and
password and other data.
Previously to add the user in the data base I verify that user's name
doesn't already exist. In that case I show an error message and I ask him to
attempt it again.
But, when the user re
On Sat, 2007-06-16 at 12:47 -0300, Tom wrote:
> How can I make in simple way that, the data in the fields don't get lost
> when the user returning to the form?
You can add the field data to a session:
$field1 = $_GET['field1'];
$_SESSION['field1'] = $field1;
// then to get them back again
if(
There is obviously something else wrong. That's the purpose of isset();
Comment out your line and see what happens.
I'd guess the real problem is later in your code when you are trying to do
something with $HTTP_COOKIE_VARS["LoggedIn"] even though your isset() test said
it didn't exist.
Web
I wanna know that is there a way to forge someone's IP address? for example, I
have a client with an static ip address, and she is a superuser. Can i rely on
her IP address? or somebody else can forge her IP? I don't want her to enter a
username and a password..
Cheers,
Daniel
On 6/16/07, PHP Developer <[EMAIL PROTECTED]> wrote:
I wanna know that is there a way to forge someone's IP address? for example, I
have a client with an static ip address, and she is a superuser. Can i rely on
her IP address? or somebody else can forge her IP? I don't want her to enter a
user
On Sat, 16 Jun 2007, PHP Developer wrote:
I wanna know that is there a way to forge someone's IP address? for
example, I have a client with an static ip address, and she is a
superuser. Can i rely on her IP address? or somebody else can forge her
IP? I don't want her to enter a username and a
Hi tedd,
Saturday, June 16, 2007, 1:18:58 PM, you wrote:
> How about?
> switch (1)
> {
> case $allow_fraction:
> $filter['flags'] = FILTER_FLAG_ALLOW_FRACTION;
> break;
> case $allow_thousand:
> $filter['flags'] = FILTER_FLAG_ALLOW_THOUSAND;
>
At 12:47 PM -0300 6/16/07, Tom wrote:
My problem:
I have a form for that the users register indicating a user's name and
password and other data.
Previously to add the user in the data base I verify that user's name
doesn't already exist. In that case I show an error message and I ask him to
att
Hi,
I want to catch any request of the form http://www.abcd.com/somereq.php
without creating the somereq.php file.
Thanks in advance.
--Gautam
http://www.funnydomainnames.com/
--
View this message in context:
http://www.nabble.com/How-to-catch-any-url-request-tf3934596.html#a11159190
Sent fro
On Sat, 2007-06-16 at 16:52 -0700, gd007 wrote:
> Hi,
>
> I want to catch any request of the form http://www.abcd.com/somereq.php
> without creating the somereq.php file.
> Thanks in advance.
You can either use mod_rewrite in Apache, or set a 404 handler. Probably
similar things for webservers o
hi, can some body help me, how to start php framwork for large site?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Did anyone experience this?
I am working on a script that compresses the output, thus relying on
$_SERVER['HTTP_ACCEPT_ENCODING'] to figure out how to encode it. The
problem is 'http_accept_encoding' is missing from $_SERVER. I realize
the value may not be available all the time, but it seems
I have been googling this to death and have many references to this, but all
solutions seem to either
1 not apply
2 result in parse error
The code:
mail ($to, $subject, $message, $header);
The error
Email is sent to recipient as [EMAIL PROTECTED] (fqdn = fully qualified
domain name)
I have rea
BSumrall wrote:
> I have read about a -f function.
> I tried
> mail ($to, $subject, $message, -f$header);
> mail -f($to, $subject, $message, $header);
>
> both result in parse error.
Boy did you not read the documentation carefully!
mail($to, $subject, $message, $headers, '[EMAIL PROTECTED]');
PS
mail ($to, $subject, $message, $header, '-f
[EMAIL PROTECTED]');
doesn't work either.
Still have nobody to deal with.
As per being RFC compliant!
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 17, 2007 12:15 AM
To: BSumrall
Cc: php-general@lists.php.net
Su
Hi Folks,
RE: Appending to an Array
Here is my code:
# PREVIOUS
MONTH -
$days = array(
10=>array("/weblog/archive/2004/Jan/02","linked-day"),
12=>array("/weblog/archive/2004/Jan/03","linked-day"),
25=>array(
Well, I am now 1 step closer
The php file do nor reference the importance of "having no spaces" between
the -f and email address.
[EMAIL PROTECTED] is key!
But, still can't get rid of nobody.
How do I make nobody disappear?
Here is my message header now.
Nobody [EMAIL PROTECTED]
Using:
mail
Let's take it one step further for arguments sake.
What is I wanted to change "nobody" as the sender to, let's just say Larry
or Curly, or Moe?
Making message header as;
Larry Shmuckatelli [EMAIL PROTECTED]
Or
Curly Shmuckatelli [EMAIL PROTECTED]
Or
Moe Shmuckatelli [EMAIL PROTECTED]
What is t
"." is the concatenation operator, usually applies only to strings
try:
$days[] = array($this_day=>array("#","today-day"));
or actually:
$days[$this_day] = array("#","today-day");
since it looks like you're indexing based on the day
Keith Spiller wrote:
Hi Folks,
RE: Appending to an Array
The last paragraph of the page
Go figure!
The appropriate code is;
mail ($to, $subject, $message, $header = 'From: "Larry, Curly and Moe"
<[EMAIL PROTECTED]>');
-Original Message-
From: BSumrall [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 17, 2007 12:39 AM
To: php-general@lists.php.n
Can't you just set the "From" and "Reply-to" headers?
BTW, if you look at Stut's post, and you're response, you've placed the
"parameters" parameter in the "headers" parameter location, thus totally
borking the purpose of setting the "parameters" parameter >:)
Cheers,
Rob.
On Sun, 2007-06-17
Awesome Vlad. You fixed it with your second example perfectly! Thank you
so much.
Keith
- Original Message -
From: "Vlad Vlasceanu" <[EMAIL PROTECTED]>
To:
Sent: Saturday, June 16, 2007 10:43 PM
Subject: [PHP] Re: Appending to an Array
"." is the concatenation operator, usually
Hi,
RE: Previous and Next Month and Year
This is my code:
$next_month = date('F Y', time()+$month);
$prev_month = date('F Y', time()-$month);
echo "$prev_month \n"; #Result "June 2007"
echo "$next_month \n"; #Result "June 2007"
What I am trying to do is get the month and year
ba
time() returns a unix timestamp of the current moment in time (now), so
in effect you are adding or subtracting 6 seconds to that.
calling:
date('m/d/Y', time());
is the same as calling:
date('m/d/Y');
On the other hand:
mktime(hour, minute, second, month, day, year) generates a timestamp
such
38 matches
Mail list logo