Try looking at htmlspecialchars() and htmlentities() instead. They'll
convert things like < and > to > and < and ampersands to &.
J
Leif K-Brooks wrote:
> I am trying to block javascript from ares of my site that users can
> change.
> I am going to use the following code. Can someone give
I'm trying to come up with a regular expression that will match the TL
and Second Level domain names in someone's email address ONLY.
So, say someone's address is "[EMAIL PROTECTED]", I
need to match ONLY pacbell.net. It shouldn't matter what the address
looks like, I'm looking for any numbe
On PHP.net it says that version 4.2.0 of PHP is out, yet on the downloads
page, I can only find 4.1.2. If anyone has PHP 4.2.0 can you please provide
me the URL?
Thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
He might want to use this function but doing so no links or bold underline
Tags will be destroyed as well.
-Ursprungliche Nachricht-
Von: J Smith [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 22. April 2002 10:08 PM
An: [EMAIL PROTECTED]
Betreff: [PHP] Re: Second opinion needed - javascrip
I'm not sure how PHP would handle this, but have you tried this:
mysql_query("UPDATE sampcomp SET fg='N', pctd='69', maxpctd='69.1' WHERE
sampcompid='3';UPDATE sampcomp SET fg='N', pctd='69.2', maxpctd='69.3'
WHERE sampcompid='2'");
??
I doubt you can put multiple queries in one execution of mysq
([[-a-zA-Z0-0_]*)\.([a-zA-Z]{2,4}$
should fit ur needs :P
-Ursprungliche Nachricht-
Von: James Taylor [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 22. April 2002 10:17 PM
An: [EMAIL PROTECTED]
Betreff: [PHP] Regex
I'm trying to come up with a regular expression that will match the TL
an
Good day,
Just off the top of my head, try:
/.+\@.*([^\.]*\.[^\.]*)$/
Might not have the exact syntax, but, you get the idea.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
>
Give em a few minutes. They probably just put the "PHP 4.2.0 has been
released" announcement up on the index page. They may not have put the
files up yet.
Tyler Longren
Captain Jack Communications
www.captainjack.com
[EMAIL PROTECTED]
- Original Message -
From: "Sebastian A." <[EMAIL P
On Mon, 22 Apr 2002, James Taylor wrote:
> I'm trying to come up with a regular expression that will match the TL
> and Second Level domain names in someone's email address ONLY.
Whatever you're planning on doing with that, I hope you're ready for
addresses that end with .ac.uk and so on; tryin
On Mon, 22 Apr 2002, Red Wingate wrote:
> ([[-a-zA-Z0-0_]*)\.([a-zA-Z]{2,4}$
Underscores are not permitted in domain names...
miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A client of ours has recently upgraded from PHP 4.0.6 to PHP 4.1.2 and now
they are receiving complaints from users of their website that they
frequently are getting 'Page Not found' errors when going to the website.
The Website was developed under PHP 4.0.6. And the index.html file is
just
Then I'd suggest using the strip_tags() function and define which tags you'd
like to leave untouched.
J
Red Wingate wrote:
> He might want to use this function but doing so no links or bold underline
> Tags will be destroyed as well.
>
--
PHP General Mailing List (http://www.php.net/)
To
Thynks, but I don't want to block html, I want to block javascript! And
since onmouseover and similar events can be put in any tag, I'm trying to
block them.
on 4/22/02 4:44 PM, J Smith at [EMAIL PROTECTED] wrote:
Then I'd suggest using the strip_tags() function and define which tags you'd
like
At 3:35 PM -0400 22/4/02, Dave Sugar wrote:
> A client of ours has recently upgraded from PHP 4.0.6 to PHP 4.1.2 and now
>they are receiving complaints from users of their website that they
>frequently are getting 'Page Not found' errors when going to the website.
Can you post a complete error
I'm implementing a web site at an ISP (like many it seems) that has
not enabled overload().
I'm accustomed to the Perl world, where I use a base class to do
get/set methods by inserting them into the symbol table. From what
I've read, the way to do this in PHP is to use overload().
My other alt
Hi,
I just got finish will a meeting from HELL, I need to ask can some one tell
me is there an Apache Mailing List like this. I have to ask if I can do ASP
page on Apache, I know I know please don't flame me, I kept trying to get
them to switch to PHP, but I been told to shut my mouth and just fi
I use $formvar for form processing, I don't use the arrays. This is how I
was taught to do it. If my host upgrades to 4.2.0, my website is as good as
gone! What am I supposed to do?!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Umm, use $_POST or $_GET or $_REQUEST from now on.
Adam Voigt
[EMAIL PROTECTED]
On Mon, 22 Apr 2002 17:10:34 -0400, Leif K-Brooks <[EMAIL PROTECTED]> wrote:
> I use $formvar for form processing, I don't use the arrays. This is how I
> was taught to do it. If my host upgrades to 4.2.0, my websi
Change your scripts. It's relatively easy to cause variables in the
superglobal arrays to be set in the global namespace. Code samples for
this appear in various places in the the user contributed notes in the
PHP documentation.
A quick and dirty working example:
foreach (array_merge($_POST,$_
On Mon, Apr 22, 2002 at 05:10:34PM -0400, Leif K-Brooks wrote:
:
: I use $formvar for form processing, I don't use the arrays. This is how I
: was taught to do it. If my host upgrades to 4.2.0, my website is as good as
: gone! What am I supposed to do?!
Learn the new method. Or RTFM.
The only problem with that is that I have at least 50 scripts that are using
the old thing!
on 4/22/02 5:14 PM, Adam Voigt at [EMAIL PROTECTED] wrote:
Umm, use $_POST or $_GET or $_REQUEST from now on.
Adam Voigt
[EMAIL PROTECTED]
Also see extract() and import_request_variables()
Although, an upgrade to PHP 4.2.0 is not going to automatically disable
register_globals. Upgrading PHP does not overwrite the existing php.ini
file, so unless you ISP specifically changes this php.ini setting, nothing
will change.
-Rasmus
On M
On Mon, 22 Apr 2002, Leif K-Brooks wrote:
> The only problem with that is that I have at least 50 scripts that are using
> the old thing!
You could auto_prepend the file which has the code for "backwards
compatibility" of the variables.
--
PHP General Mailing List (http://www.php.net/)
To un
ImageCreate() creates a palette based image. The numbers of colors is thus
limited to 256. Where as the function name suggests ImageCreateTrueColor()
creates a true color image.
You will have to test out the functions you want to use with these two.
There is no better solution.
good luck
Parado
The error page being shown is IE's 'Page Nout Found' error, not an error 404
returned from the server. The error sounds very similar to an error posted
to bugs.php.net here (http://bugs.php.net/bug.php?id=15794). It also has
the feel of this error, but the same solution does not seem to make a
d
On Monday, April 22, 2002, at 03:47 PM, Andre Dubuc wrote:
> I tried what you suggested, and indeed globals are off. Perhaps my
> problem
> stems from my use of the $_GET[] with $vars. I guess I don't really
> understand what I'm doing. If you would take a peek at this code [I
> think
> I've
Hi,
My codes are as follows,
login.php
// This is my default header that I want to include on every page.
Support Center
SupportCenter
upload download
Logout
// End of my default header that I want t
Check out ChiliSoft:
http://www.chilisoft.com/
Wes
> Hi,
>
> I just got finish will a meeting from HELL, I need to ask can some one tell
> me is there an Apache Mailing List like this. I have to ask if I can do ASP
> page on Apache, I know I know please don't flame me, I kept trying to get
>
Chuck Pup Payne wrote:
> Hi,
>
> I just got finish will a meeting from HELL, I need to ask can some one tell
> me is there an Apache Mailing List like this. I have to ask if I can do ASP
> page on Apache, I know I know please don't flame me, I kept trying to get
> them to switch to PHP, but I bee
On Monday 22 April 2002 05:34 pm, you wrote:
> On Monday, April 22, 2002, at 03:47 PM, Andre Dubuc wrote:
> > I tried what you suggested, and indeed globals are off. Perhaps my
> > problem
> > stems from my use of the $_GET[] with $vars. I guess I don't really
> > understand what I'm doing. If yo
In using the setcookie function I can not set a cookie if I specify a time
period. ie. setcookie("Cookie_Name", "Cookie_Value", time()+30); will not
set a cookie, but setcookie("Cookie_Name", "Cookie_Value"); does work. What
am I dooing wrong??
Jeffrey D. Means
CIO for PicoTech
Fort Collin
I actually was using other scripts I'd found, written by different
authors. I did this to try to save time, but this hasn't been the case.
All I was looking to do was have someone fill out a form, hit submit,
and I would have the contents of the form e-mailed to me, and any
attachments would b
At 5:30 PM -0400 22/4/02, Dave Sugar wrote:
>The forward page is using the HTTP meta tag, as follows:
>
>I don't see any errors in the Apache logs regarding this (in error.log). I
>also don't see the page sent to the client (in server.log).
Hi Dave,
This implies Explorer is failing to interpr
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Jeffrey Means) wrote:
> In using the setcookie function I can not set a cookie if I specify a time
> period. ie. setcookie("Cookie_Name", "Cookie_Value", time()+30); will not
> set a cookie, but setcookie("Cookie_Name", "Cookie_Value"); does
At 10:28 PM + 22/4/02, Jeffrey Means wrote:
>In using the setcookie function I can not set a cookie if I specify a time
>period. ie. setcookie("Cookie_Name", "Cookie_Value", time()+30); will not
>set a cookie, but setcookie("Cookie_Name", "Cookie_Value"); does work. What
>am I dooing wrong??
On Mon, 22 Apr 2002, Leif K-Brooks wrote:
> I use $formvar for form processing, I don't use the arrays. This is how I
> was taught to do it. If my host upgrades to 4.2.0, my website is as good as
> gone! What am I supposed to do?!
Fix them! This direction was first announced in 4Q1999; 2.5 yea
um - (unix) grep (windows) find files
That's something that I've been wanting for a while - a function call stack
that the php script can look at.
-Original Message-
From: Nico van der Dussen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 3:04 AM
To: [EMAIL PROTECTED]
Subject:
What about:
1. getting rid of anything between ""
2. get rid of any attributes that start with " on" and end with a
quotes or space
Maybe I'm forgetting about some valid attributes that start
with "on", you might have to cater for them
Does this work?
HTH
Martin
Hello all!
My company, Tap Internet, has launched the latest
version of our development platform - LogiCreate. The basic
info can be found at http://www.logicreate.com, but I'm writing
here specifically to solicit product resellers from
the PHP developer community.
The product itself has been t
At 7:57 PM -0400 22/4/02, Michael Kimsal wrote:
> you won't find a stronger combination of a solid development
>framework and professional support anywhere else.
In a word: Bollocks.
This obviously an untrue claim for all but one company in the world.
And I find it very hard to believe that you
Richard Archer wrote:
> At 7:57 PM -0400 22/4/02, Michael Kimsal wrote:
>
>
>>you won't find a stronger combination of a solid development
>>framework and professional support anywhere else.
>
>
> In a word: Bollocks.
>
> This obviously an untrue claim for all but one company in the world.
>
How do you unsubscribe to this mailing list?
[snip from bottom of msgs]
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[end snip]
-Original Message-
From: Josiah Wallingford [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 10:38 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Unsub
On Mon, 22 Apr 2002, Josiah Wallingford wrote:
> How do you unsubscribe to this mailing list?
Instructions are provided in the header of each list message.
miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have a site where users can sign up. I have had huge problems with people
using auto-signups, so I tried to stop them with an authentication image.
Someone has since gotten around that. I highly doubt he is using OCR. Can
someone try to figure out what's wrong with my code? Here it is:
Conte
> Can someone try to figure out what's wrong with my code?
What are you expecting, and what are you seeing?
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 11:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Why isn't this working? :(
I have a
Hey James, yeah you're right that was a typo, ereg was what I meant. Thanks
your suggestion worked and plus I think preg is much faster then ereg so
that's cool.
-Original Message-
From: liljim [mailto:[EMAIL PROTECTED]]
Sent: April 22, 2002 4:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP]
At 9:11 PM -0400 22/4/02, Leif K-Brooks wrote:
At 9:11 PM -0400 22/4/02, Leif K-Brooks wrote:
>I have a site where users can sign up. I have had huge problems with people
>using auto-signups, so I tried to stop them with an authentication image.
>Someone has since gotten around that. I highly
I have a guest book , and I want to make sure that those people who sign the
guest book can't impersonate a member of the web site. the code below
checks the input string, which is the guestbook signer's name, against a
list of defined web site members. Is there any way to circumvent the code
as
Thanks for everyone's help. I just figured out was wrong. I wasn't
checking if a code was being returned. So all he had to do was chenge the
codeid field to a non-existant code. Lol.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have a string that ends in a comma. What is best method to remove the
comma?
Craig ><>
[EMAIL PROTECTED]
read php.net/substr
On Mon, 22 Apr 2002, Craig Westerman wrote:
> I have a string that ends in a comma. What is best method to remove the
> comma?
>
> Craig ><>
> [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
First, you'll need to get the length of the str with the str_len() function.
After you have that, use the substr() function like Rasmus mentioned.
Tyler Longren
Captain Jack Communications
www.captainjack.com
[EMAIL PROTECTED]
- Original Message -
From: "Craig Westerman" <[EMAIL PROTECTE
hello all:
:)
My version of gd is 1.8.4,my php is 4.1.2,which works on apache server whose version
is 1.3.24 and my OS is linux7.2.
When I compiled gd ,I used some libraries,such as
libpng-1.2.0,zlib-1.1.4,freetype-2.1.0,I want my gd can support ttf besides png
image,is it enough?
Can p
Wouldn't it be better to check to see if charicater is indeed a comma before
removing it?
I was guessing eregi_replace would be the way to go.
Am I thinking wrong?
Craig ><>
[EMAIL PROTECTED]
First, you'll need to get the length of the str with the str_len() function.
After you have that, use
Hi,
You need freetype-1.* library . You can get it at www.freetype.org . Then compile
php --with-ttf=/usr/local assuming you have the library in
/usr/local/lib .
I struggled a lot getting the TTF fonts to work in my env . Now I conclude that
only specific combinations of versions of php
Why get strlen involved???
$string = substr("$string", 0, -1);
--
He is richest who is content with the least, for content is the wealth of
nature.
Socrates
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
No you don't. You should go read the substr() docs as well:
substr($str,0,-1);
-Rasmus
On Mon, 22 Apr 2002, Tyler Longren wrote:
> First, you'll need to get the length of the str with the str_len() function.
> After you have that, use the substr() function like Rasmus mentioned.
>
> Tyle
Yeah, I thought about that and said to myself "That's not right". But I had
already clicked the "Send" button and the message was no longer in my
outbox. :)
tyler
- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Tyler Longren" <[EMAIL PROTECTED]>
Cc: "Craig Westerma
Because I'm kinda stupid. :)
tyler
- Original Message -
From: "Evan Nemerson" <[EMAIL PROTECTED]>
To: "Tyler Longren" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 10:53 PM
Subject: Re: [PHP] remove last character in a string
> Why get strlen involved???
>
> $s
Also, non-Unicode TTF fonts will /not/ work with PHP.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Rahul Bhide [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 9:45 PM
To: zhaoxd
Cc: php mailling list
Subject: Re: [PHP] Can php support ttf?
Actually, if he uses a negative index in substr(), he doesn't need to
know the length of the string.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 9:29 PM
To: Craig Westerman; ph
its my understanding that you wish to strip the last character of the string
not return it. Putting -1 in the length parameter will just return the last
character, it wont get rid of it
$string = "This is the string,";
$str_length = strlen($string);
if (substr($string,0,-1) == ",") {
At 11:29 AM +0800 23/4/02, zhaoxd wrote:
>When I compiled gd ,I used some libraries,such as
>libpng-1.2.0,zlib-1.1.4,freetype-2.1.0,I want my gd can support ttf
>besides png image,is it enough?
>
>Can php support ttf?I hava just compiled gd in php,but I found it can
>not use some functions like I
The PHP Group is happy to announce the immediate
availability of PHP 4.2.0, the latest version of the widely-used,
general-purpose scripting language that is especially well-suited for Web
development.
This latest release contains over one hundred changes, bug fixes and
improvements over the
You need to post to php.announce... :D
"Derick Rethans" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> The PHP Group is happy to announce the immediate
> availability of PHP 4.2.0, the latest version of the widely-used,
> general-purpose scripting language t
Hey PHP General List,
Well i have seen some strange links last few months earlyer i
didn't look at them because i didn't care... and now i am curious...
how to understand link like this Http://www.foo.com/# and thats
it... links ends and as it sayes for example it links to Our Works
on 23/04/02 1:59 PM, Martin Towell ([EMAIL PROTECTED]) wrote:
> would become
>
> =foo
> ="foo"
> = "foo"
> ='foo'
> ='foo'
>
> which the browser would just ignore
In theory, yes. I don't think I'd trust it here -- this is potentially
malicious content added by unknown people. I'd be taking
it's a "bookmark"
basically, it's telling the browser to scroll the page down until it finds
the named bookmark
eg
Top of page
blah...
...
go to top
clicking on that link will scrol the page to "top"
in your case, it's a "no-name" bookmark, and most browsers treat this as
either "don't move" o
Hey PHP General List,
Got your email on:Monday, April 22, 2002, 10:29:52 PM writing:
:
MT> it's a "bookmark"
MT> basically, it's telling the browser to scroll the page down until it finds
MT> the named bookmark
MT> eg
MT> Top of page
MT> blah...
MT> ...
MT> go to top
MT> clicking on that
I am using the following code to create a downloader. It works, except
that IE will just dump the contents to it's browser and Netscape 4
asks if I want to save it in a file called "blah.php".
// File: blah.php
if ( ! $fp = fsockopen ("www.steptwo.com.au", 80, $errno, $errstr, 30) )
TEST
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You can use the 'magic constants' __FILE__ and __LINE__
For example, if you have an editor that can replace the newline "\n"
character, you can replace all "\n" with
"\nerror_log(__FILE__ . '[' . __LINE__ . ']');"
"Nico Van Der Dussen" <[EMAIL PROTECTED]> wrote in message
3CC45EB5.6064.19C3129@l
hi...is it possible to store pics (jpeg/gif) on the mysql database? if so,
how and what type should that field be?
thanks.
_
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--
PHP General Mail
101 - 174 of 174 matches
Mail list logo