php-general Digest 14 May 2008 08:46:23 - Issue 5458
Topics (messages 274267 through 274289):
Re: validating textarea using php
274267 by: Iv Ray
274275 by: Shawn McKenzie
274276 by: Richard Heyes
274277 by: Dotan Cohen
274281 by: Robert Cummings
hi
i need to validate a field in a form where a user enters their lodgement
number as part of a registration form. this lodgement number can have
letters, numbers, spaces and special characters. i do not know exactly what
those special characters are, so do i have to define the type of special
Chris wrote:
Rob Gould wrote:
I am creating a touch-screen kiosk application, using a full-screen version of Safari 3.1, and was wondering if there's a way I can force Safari to cache a large background image JPEG.
What I'm finding is that Safari 3 will sometimes cache my large 1.1 MB
A lot of people think that
Can't fault them.
until their host upgrades php.
Any host that upgrades the PHP version (a major upgrade considering it
would be 5 - 6) without notifying Customers isn't a very good hosting
company, and you really should change to a better one (Rackspace are
Per Jessen a écrit :
René Leboeuf wrote:
I'm running a large website. I have some mailing scripts that take
days to run.
I noticed these scripts slow down with time, sometimes going to an
almost complete stop (no mail sent for several minutes).
The source code is trivial and can't contain a
Peter Ford a écrit :
René Leboeuf wrote:
Hi.
I'm running a large website. I have some mailing scripts that take days
to run.
I noticed these scripts slow down with time, sometimes going to an
almost complete stop (no mail sent for several minutes).
The source code is trivial and can't
2008/5/14 Chris W [EMAIL PROTECTED]:
A lot of people think that, until their host upgrades php. Have you
seen how many things are being removed for php6?
From the article I read, that isn't one of them.
That issue specifically, no. However, portable code is desirable even
if your code is
All,
not really PHP related, but I figured someone here would already
have solved this problem.
I've got a page with a single img. I change the src attribute
dynamically using javascript. Although the images being served all
have long expiry times, Firefox still does a conditional get to
2008/5/14 Per Jessen [EMAIL PROTECTED]:
All,
not really PHP related, but I figured someone here would already
have solved this problem.
I've got a page with a single img. I change the src attribute
dynamically using javascript. Although the images being served all
have long expiry
Thank you all.
I have made it working excellent for me now.
The solution is here: http://phparch.cn
On Tue, May 13, 2008 at 1:34 PM, Robert Cummings [EMAIL PROTECTED]
wrote:
On Tue, 2008-05-13 at 01:27 -0400, Robert Cummings wrote:
On Tue, 2008-05-13 at 12:28 +0800, Shelley wrote:
Maybe I
Robin Vickery wrote:
2008/5/14 Per Jessen [EMAIL PROTECTED]:
The issue is - I'd like this page to appear to be as real time as
possible, and the occasional delay caused by the conditional get is
a nuisance. My images are clearly cached, so how do I prevent
Firefox from doing the
Thank you all.
Maybe you didn't get what I meant.
I have made it working excellent for me.
I have summarized the solution: http://phparch.cn
On Wed, May 14, 2008 at 11:10 AM, Nathan Nobbe [EMAIL PROTECTED]
wrote:
On Tue, May 13, 2008 at 7:29 PM, Waynn Lue [EMAIL PROTECTED] wrote:
Ok, thanks
René Leboeuf wrote:
The user sending emails is trusted by sendmail, and the sending
program is located on the sendmail machine.
No need to use SMTP then. You should just be calling sendmail to drop
the emails into the queue. And that should not be slowing down.
Mail is sent via
Hi,
How to get user IP address in a PHP server?
Thank you.
Jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, May 14, 2008 at 8:06 AM, hce [EMAIL PROTECTED] wrote:
Hi,
How to get user IP address in a PHP server?
Thank you.
Jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$_SERVER[REMOTE_ADDR]
--
PHP General Mailing List
-Original Message-
From: hce [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 14, 2008 2:07 PM
To: php-general@lists.php.net
Subject: [PHP] How to get user IP address
Hi,
How to get user IP address in a PHP server?
Thank you.
Jim
--
PHP General Mailing List (http://www.php.net/)
To
2008/5/14 Richard Heyes [EMAIL PROTECTED]:
Any host that upgrades the PHP version (a major upgrade considering it
would be 5 - 6) without notifying Customers isn't a very good hosting
company, and you really should change to a better one (Rackspace are good).
Even 1and1 don't do that and
Dotan Cohen wrote:
2008/5/14 Richard Heyes [EMAIL PROTECTED]:
Any host that upgrades the PHP version (a major upgrade considering it
would be 5 - 6) without notifying Customers isn't a very good hosting
company, and you really should change to a better one (Rackspace are good).
Even 1and1
Sudhakar wrote:
if( strlen(trim($name) == 0 ) || !preg_match('/^[a-zA-Z ]+$/x', $name) )
{
$error.=Name is blank or has special characters ;
}
You have messed up the brackets. This -
strlen(trim($name) == 0 )
should be -
strlen(trim($name)) == 0
Then the script does what you want.
Iv
I never heard of such extension. You should report this bug :)
And you're welcome ;)
Atenciosamente,
www.softpartech.com.br
Thiago Henrique Pojda
Desenvolvimento Web
+55 41 3033-7676
[EMAIL PROTECTED]
Excelência em Softwares Financeiros
-Mensagem original-
De: Balpo [mailto:[EMAIL
On Tue, May 13, 2008 at 8:39 AM, Per Jessen [EMAIL PROTECTED] wrote:
Yannick Warnier wrote:
That would probably work out if it wasn't too dependent on the locales
to work. I'm developing an open-source product which could end up on a
server without the locales for French but be used by
On Tue, May 13, 2008 at 9:02 AM, tedd [EMAIL PROTECTED] wrote:
At 2:44 PM -0700 5/12/08, milt wrote:
I have a form that will be filled in by the user, I want to have access to
the content of one of the fields in that form, in order to fill in an
another variable that is not part of the form.
On Wed, May 14, 2008 at 9:47 AM, Thiago Pojda
[EMAIL PROTECTED] wrote:
I never heard of such extension. You should report this bug :)
And you're welcome ;)
I agree, Balpo. You should submit the details of your findings at
http://bugs.php.net/ and let us check it out.
--
/Daniel P.
On Wed, 2008-05-14 at 18:50 +0800, Shelley wrote:
Thank you all.
I have made it working excellent for me now.
The solution is here: http://phparch.cn
Ah, there you go... show_body_only. I was too lazy when I used tidy a
while back to look through every option, so a quick preg stripping
On May 11, 2008, at 12:06 AM, admin wrote:
[snip!]
Safe mode has _got_ to be there for some good reason.
Read on about PHP6
http://www.ibm.com/developerworks/opensource/library/os-php-future/?ca=dgr-lnxw01PHP-Future
Scroll down to where the title is Things removed - notice that
On Tue, May 13, 2008 at 4:07 AM, James Dempster [EMAIL PROTECTED] wrote:
http://htmlpurifier.org/
--
/James
This is the only real solution.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hce [EMAIL PROTECTED] wrote:
Hi,
How to get user IP address in a PHP server?
Thank you.
Jim
RTFM, Google, PHP.net are GREAT resources
What part of the code are you having an issue with?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On May 13, 2008, at 6:35 AM, Sanjeev N wrote:
fetchAll() works if php version is greater than 5.
As Wang suggested, we should write our own function.
its easy... i have done so many times for larger database.
Store earch rows of the resultset in the array (multidimensional ie.
2). and
then
On Wed, 2008-05-14 at 11:18 -0400, Eric Butera wrote:
On Tue, May 13, 2008 at 4:07 AM, James Dempster [EMAIL PROTECTED] wrote:
http://htmlpurifier.org/
--
/James
This is the only real solution.
That depends... if I'm the webmaster and I want to input arbitrary HTML,
then
Purifier will not only remove all malicious code (better known as XSS)
with a thoroughly audited, secure yet permissive whitelist, it will also
make sure your documents are *standards compliant.*
Set it up how you want it.
--
/James
On Wed, May 14, 2008 at 4:38 PM, Robert Cummings [EMAIL
Hello all,
I am just trying to see if I can connect up with my internal FTP server from
our website. The server is accessible from the outside world, as we can log
in using a client, etc. I am not really sure how to troubleshoot this, but
below is the script that I have. I found it on the net (and
Steven Perez wrote:
ext/openssl/openssl.o: In function `zif_openssl_sign':
/home/sperez/php-5.2.6/ext/openssl/openssl.c:3525: undefined reference
to `EVP_MD_CTX_cleanup'
ext/openssl/openssl.o: In function `zif_openssl_verify':
/home/sperez/php-5.2.6/ext/openssl/openssl.c:3565: undefined
On Wed, May 14, 2008 at 11:38 AM, Robert Cummings [EMAIL PROTECTED] wrote:
On Wed, 2008-05-14 at 11:18 -0400, Eric Butera wrote:
On Tue, May 13, 2008 at 4:07 AM, James Dempster [EMAIL PROTECTED] wrote:
http://htmlpurifier.org/
--
/James
This is the only real
Afternoon,
Just had word of a freelance project on for the next 4 weeks, start
immediately, basically 1 static site (design already done) - an easy
job, and 1 static site + a bit of PHP, breadcrumb, site search - it's
£200 GBP a day (so about £4k for the next 4 weeks), ideally for somebody
2008/5/14 Richard Heyes [EMAIL PROTECTED]:
That really should be expected. You can't expect something to last forever
without tweaking it on occassion. And in the case of going from PHP 5 - 6,
the tweaking required may well be major, becxcause it's a major version
change.
Exactly. That's why
Hi,
I have this HTML/JS page that switches images clicking on the radio
buttons and call template.php with the image ID as parameter:
http://portulan-online.net/einstein.html
Now, I need to make it a PHP page, because it is going to receive a
parameter from the URL that calls it and pass it
On Wed, May 14, 2008 at 2:31 PM, Mário Gamito [EMAIL PROTECTED] wrote:
Hi,
I have this HTML/JS page that switches images clicking on the radio buttons
and call template.php with the image ID as parameter:
http://portulan-online.net/einstein.html
Now, I need to make it a PHP page, because
2008/5/14 Bastien Koert [EMAIL PROTECTED]:
Why should the server folder name matter? Make it a hash and store the user
provided name in a db. Then when presenting the data to the user just show
the user provided name as the folder name. This would also handle multiple
users trying to use the
I am trying to use array's to populate a group of check boxes for a form. I
am getting the checkboxes to print OK, but when the form is posted I am only
getting part of the array.
Form Page:
$vars = array(Main Classroom = Main Classroom, Break Out Classroom =
Break Out Classroom, Gym =
Try:
echo tdinput name=.urlencode($key). type=checkbox
value=.urlencode($value)./tdtd. $value./td;
On Wed, May 14, 2008 at 4:02 PM, Mark Bomgardner [EMAIL PROTECTED]
wrote:
I am trying to use array's to populate a group of check boxes for a form.
I
am getting the checkboxes to print OK,
I have a class that is throwing the error:
syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM ...
It is appearing in the constructor of a parent class
abstract class parent
{
protected $titles = array('title1','title2','title3');
protected $a;
function
On Wed, May 14, 2008 at 4:02 PM, Mark Bomgardner [EMAIL PROTECTED] wrote:
I am trying to use array's to populate a group of check boxes for a form. I
am getting the checkboxes to print OK, but when the form is posted I am only
getting part of the array.
[snip!]
Looks like someone's
At 7:31 PM +0100 5/14/08, Mário Gamito wrote:
Hi,
I have this HTML/JS page that switches images
clicking on the radio buttons and call
template.php with the image ID as parameter:
http://portulan-online.net/einstein.html
Now, I need to make it a PHP page, because it is
going to receive a
Mark Bomgardner wrote:
When I submit the form I am only getting the following having checked the
boxes for Mail Classroom and Break Out Classroom. If I eliminate the spaces
between the words, I get everything, but when I put the spaces between the
words in the array, it cuts off the second
[snip]
I have a class that is throwing the error:
syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM ...
[/snip]
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM (Hebrew)
It means there's an unexpected double colon where there shouldn't have
been.
self::$this-titles =
On Wed, May 14, 2008 at 4:05 PM, Tyson Vanover [EMAIL PROTECTED] wrote:
I have a class that is throwing the error:
syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM ...
You're using a Hebrew version of PHP?
That means something along the lines of two times the two marks in
Just wondering if the mailing list is working. I have not received anything
from this list today.
--
Jim Lucas
Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them.
Twelfth Night, Act II, Scene V
by William Shakespeare
--
PHP
I've got that before and I am not using a Hebrew version of PHP :)
On 5/14/08, Daniel Brown [EMAIL PROTECTED] wrote:
You're using a Hebrew version of PHP?
That means something along the lines of two times the two marks in
Hebrew.
--
PHP General Mailing List (http://www.php.net/)
To
At 1:50 PM -0700 5/14/08, Jim Lucas wrote:
Just wondering if the mailing list is working. I have not received
anything from this list today.
--
Jim Lucas
If you don't receive this, please let me know.
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com
On Wed, May 14, 2008 at 4:56 PM, tedd [EMAIL PROTECTED] wrote:
At 1:50 PM -0700 5/14/08, Jim Lucas wrote:
Just wondering if the mailing list is working. I have not received
anything from this list today.
--
Jim Lucas
If you don't receive this, please let me know.
Cheers,
tedd
--
In your code, it appears you forgot to close a pair of parentheses:
---
foreach($set as $key=value)
{
if (array_key_exists($key,$this-titles)
{
$this-a[$key] = $value;
}
}
---
It looks like that 3rd line should be:
---
if
On Wed, May 14, 2008 at 4:51 PM, mike [EMAIL PROTECTED] wrote:
I've got that before and I am not using a Hebrew version of PHP :)
Yeah, just a joke. I forgot to put the Trademark ;-P in its place.
The etymology of that message could be attributed to the fact that
Zeev and Andi are
On Wed, May 14, 2008 at 4:50 PM, Jim Lucas [EMAIL PROTECTED] wrote:
Just wondering if the mailing list is working. I have not received anything
from this list today.
I saw a response from you come through to the elusive thread.
So it looks like it's working both ways for you now.
--
Daniel Brown wrote:
?php
foreach($set as $key = $value) { // You just missed the $ before value.
?
This seems to be the culprit.
Also, check this line:
?php
if (array_key_exists($key,$this-titles)
?
You're missing a ')' to close the if() statement. It's not
causing
I am trying to get a child class to pass an array of valid keys to it's
parent when the constructor is run, and the parent appends the data to
one of it's array of valid keys. Then it walks through an array pulling
out values that have valid keys, and putting them in an array for
processing
tedd wrote:
At 1:50 PM -0700 5/14/08, Jim Lucas wrote:
Just wondering if the mailing list is working. I have not received
anything from this list today.
--
Jim Lucas
If you don't receive this, please let me know.
Cheers,
tedd
Wait... the recursive not testing of that statement just
Yeah, you are right, friend. Because users' input should be in body tag
only.
On Wed, May 14, 2008 at 11:06 PM, Robert Cummings [EMAIL PROTECTED]
wrote:
On Wed, 2008-05-14 at 18:50 +0800, Shelley wrote:
Thank you all.
I have made it working excellent for me now.
The solution is here:
I was wondering what others think of my approach to form validation. I
know many use Java script to do various validation. However, since
there is no way to be sure the data sent to the server is actually
valid, you have to check it in your php code on the server anyway.
Granted you don't
Can anyone provide some code that can't be stripped by strip_tags?
On 5/15/08, Eric Butera [EMAIL PROTECTED] wrote:
On Wed, May 14, 2008 at 11:38 AM, Robert Cummings [EMAIL PROTECTED] wrote:
On Wed, 2008-05-14 at 11:18 -0400, Eric Butera wrote:
On Tue, May 13, 2008 at 4:07 AM,
client validation is a way to provide quick response to the user for
whether their input is correct or not. It doesn't guarantee
correctness of the posted data. Because everything from client can't
be trusted.
On 5/15/08, Chris W [EMAIL PROTECTED] wrote:
I was wondering what others think of my
On Wed, May 14, 2008 at 10:48 PM, Chris W [EMAIL PROTECTED] wrote:
I was wondering what others think of my approach to form validation. I
know many use Java script to do various validation. However, since there is
no way to be sure the data sent to the server is actually valid, you have to
On Wed, May 14, 2008 at 5:43 PM, Daniel Brown [EMAIL PROTECTED] wrote:
On Wed, May 14, 2008 at 4:05 PM, Tyson Vanover [EMAIL PROTECTED] wrote:
I have a class that is throwing the error:
syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM ...
You're using a Hebrew version of PHP?
Hey all,
Apologies ahead of time if this isn't the appropriate forum for my
inquiry. I'm evaluating Zend Studio for Eclipse and it's certainly
making some features that I'd hope would be trivial, extremely
onerous. I'm simply trying to take an existing project which I started
in TextMate and
On Wed, 2008-05-14 at 21:48 -0500, Chris W wrote:
I was wondering what others think of my approach to form validation. I
know many use Java script to do various validation. However, since
there is no way to be sure the data sent to the server is actually
valid, you have to check it in
tyson
i never saw
self::$this-vkeys
doing this you actually are callig the var inside $this-vkeys
do self::$vkeys as static or $this-vkeys as object don't mix
regards
On Wed, May 14, 2008 at 7:33 PM, Tyson Vanover [EMAIL PROTECTED] wrote:
I am trying to get a child class to pass an array
Gabriel Sosa wrote:
this one
strip_tags('%3C%68%31%3E%68%65%6C%6C%6F%20%77%6F%72%6C%64%3C%2F%68%31%3E');
aka h1hello world/h1 using urlencode from http://ha.ckers.org/xss.html
take care the possible xss
saludos
gabriel
On Wed, May 14, 2008 at 11:56 PM, Yi Wang [EMAIL PROTECTED] wrote:
Can I install a newer version of php over an older version ?
I am new to php and am in the process of installing it and reading various
tutorials.
I installed version php-5.2.5-win32-installer.msi
I have just downloaded php-5.2.6-win32-installer.msi
can I install over the first one or must I
67 matches
Mail list logo