A fella could get converted real quick from Perl.
Is there anything else I need to learn :)
Is it that new that I can't find it on the function menu at www.php.net?
Thanks,
John
Christopher William Wesley wrote:
> use the strip_tags() function to remove HTML tags from strings.
>
> http://www.
use the strip_tags() function to remove HTML tags from strings.
http://www.zend.com/manual/function.strip-tags.php
~Chris /"\
\ / September 11, 2001
X We Are All New York
How can I delete html from an ?
Signed Perl user converted :)
An email post & reply would come in ral handy.
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrato
I'm a bit confused by the logic used (your conditionals are looking for
NOT -, but then the printed statement indicates you were looking for the
-), but anywho ... try these on for size.
if (substr($sString,-1,1)=="-") {
print "You can't have a dash at the end of your string.";
}
if (substr($sSt
Hello,
Ok, this works:
if (substr($sString,(strlen($sString)-1)!="-")) {
print "You can't have a dash at the end of your string.";
}
and this works:
if (substr($sString,0,1)!="-") {
print "You can't have a dash at the beginning of your string.";
}
But, this doesn't work for any case:
if ((subst
Move include("class.jm_sms.php") outside of the loop.
--
Justin Garrett
"Sagar" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> I'm using jm_sms class in mysql
> dowhile($myrow=mysql_fetch_array($result)) loop.
> the class is running fine for t
Hi all,
I'm using jm_sms class in mysql
dowhile($myrow=mysql_fetch_array($result)) loop.
the class is running fine for the first time. But when it is called for the
second time i'm
getting an error saying "cant redeclare the class". How to make this class
work within
a loop.
i'm attaching
Hi all,
I'm using jm_sms class in mysql
dowhile($myrow=mysql_fetch_array($result)) loop.
the class is running fine for the first time. But when it is called for the
second time i'm
getting an error saying "cant redeclare the class". How to make this class
work within
a loop.
i'm attaching
Oops, I spoke too soon. I wasn't getting the results I thought I was until
I used "==" instead of "=" at the very end of my IF statement. Thanks very
much for pointing that out.
Brad
"Brad Melendy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> H...
Dear fellow marketer
A few months back I joined a program and then...promptly forgot
about it. You may have done this yourself sometime...you intend
to work the program but then get caught in your day-to-day
activities and it's soon forgotten.
The program was free to join so maybe I just didn't
Oops, while I was trying to get the version of Apache I tested the
httpd.conf file and I got the following messages:
params.c:Parameter() - Ignoring badly formed line in configuration file:
params.c:Parameter() - Ignoring badly formed line in configuration file:
LoadModule php_module modules/mod
Give us some info about the machine running this. OS, PHP version,
Apache? Is this your own box? Remote server that you have a shared
account on?
Cheers
Casey
-Original Message-
From: Evan Panagiotopoulos [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 20, 2001 7:19 PM
To: [EMAIL
Thanks for the quick reply. I tried your suggestion and it shows the three
lines with the tags:
I know php is installed and a few days ago I had the same silly program
working!
HELP!
Mini2 wrote:
> Dump all the extra html tags and just put
> phpinfo();
> ?>
>
> in the file
Thanks for the suggestion, but this has no effect on the script. And the
script runs fine as is on the other host, so I don't think this is the route
of the problem.
"Chris Lee" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> create the variable then register
Dump all the extra html tags and just put
in the file and see if that works.
Cheers
Casey
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 20, 2001 7:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Super newbie question with "Hello world!" stat
I have been trying for several hours to get this going but I can't. Any
suggestions?
Also I have this extremely complex program:
In both cases the programs are named something.php
Thanks for your help.
Evan P.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
What type of hosting you looking for? Shared? Dedicated? I'm assuming
you mean shared. I don't have any particular recommendations, but if
you goto www.webhostingtalk.com (forum dedicated to web hosting) you
will get A LOT of feedback from different people and their experiences
with different ho
HI - I've been using http://www.tierranet.com/services/ for several years.
Good tech support.
Lots of extras.
>Anybody know of good reliable hosting that supports
>php, and has a control panel to go with it?
>thanks,
>Heidi
>
>=
>Heidi Belal
>ICQ# 32127109
>
>A bus stops at a bus station.
>
I was on Hurricane Electric for a very short while. They have great
facilities and such, but their pricing can be much higher than others
depending on your setup. I'm now using Pro Hosters (www.prohosters.com).
The differences I found important were:
- HE requires you to have a separate account
On Sat, 20 Oct 2001 11:29:19 -0700 (PDT)
Heidi Belal <[EMAIL PROTECTED]> wrote:
> Anybody know of good reliable hosting that supports
> php, and has a control panel to go with it?
Don't know what you mean by a control panel, but http://he.com/ is an excellent host.
Very inexpensive, and you get
> if i understand you correctly, perhaps this:
>
> select * from categories a,category_user_rights b where
a.name!=b.username;
>
> jack
When i do something like that I get loads of duplicate records including the
ones that should be there! so if i do a group the result just looks like
i've selec
[EMAIL PROTECTED] (Chip Landwehr) wrote:
> Is there a PHP IRC channel?
#php on most networks
--
Henrik Hansen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-
php-general Digest 20 Oct 2001 20:32:09 - Issue 946
Topics (messages 71674 through 71702):
PHP and Unicode
71674 by: indrek siitan
71676 by: indrek siitan
Re: Re:Date->TimeStamp
71675 by: James, Yz
71677 by: Daniel Harik
XSLT error functions
71678 b
if i understand you correctly, perhaps this:
select * from categories a,category_user_rights b where a.name!=b.username;
jack
"categories" contains:
ID,
parent_ID,
name
"users" contains:
username,
password,
name,
etc
"category_user_r
Hi All,
Are there any MySQL "gurus" who can help me solve this problem?
I have three tables... users, categories and category_user_rights
"categories" contains:
ID,
parent_ID,
name
"users" contains:
username,
password,
name,
etc
once you get the data in your update.php file, do this
$stripped = strip_tags($data_field_name);
you can also specifiy tags to be left in.read the website page for more
info
jack
-Original Message-
From: Gary [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 20, 2001 3:49 PM
To: [E
In <[EMAIL PROTECTED]>, Vikram Vaswani
wrote:
> Hi all,
>
> Am working with the XSLT functions in PHP. I'm trying to trap errors
> with the xslt_error() functions - however, the function generates no
> output even if I deliberately introduce errors into the XSLT sheet.
>
> Same goes for the ope
Thanks James:
I had figured that part out (should of said so). What is happening is
a form is passing the stuff to another page that does the DB UPDATE. The
form action is
.
Where I am lost is where to put the strip_tags() like
action=strip_tages("update.php");
Gary
Yz James wrote:
> T
Anybody know of good reliable hosting that supports
php, and has a control panel to go with it?
thanks,
Heidi
=
Heidi Belal
ICQ# 32127109
A bus stops at a bus station.
A train stops at a train station. On my desk
I have a work station...
__
D
H. dunno about that. It's returning the results I'd expect as it is
now. If I pass a string with characters that don't match the IF's criteria,
I'm getting the ELSE statement's results. Thanks though.
Brad
"~~~I Leonid ~~" <[EMAIL PROTECTED]> wrote in message
3bd15547.14743496@loc
The easiest way would be to use strip_tags(), though you could craft your
own regular expression.
http://www.php.net/strip_tags
James
"Gary" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello All,
> How would I strip all HTML before the info in inserted
If you mean use PHP to download a directory of your choosing...
You could send the url to wget or lynx. This would make it easy to pass
flags as well such as dir level to get, follow links, recursive Y/N, etc.
Never done it but I think exec is what you want.
DAve
On Sun, Oct 21, 2001 at 12:
Hello there...
The problem is that I can only add one value into the array...
Anyone knows what I'm doing wrong here(First project by the way!!)
=
'', 'pname' => '', 'pqty' => ''));
$nrItems = 0;
}
// Get variables from products.php
$pro
Hi @all..
I'm not sure if this can fix (or explain) your problem (cause I didn't tried
it in lack of time) but theoretical it could be :).
I think you only need the #!/usr/local/bin/php if you would like to run
scripts from the bash, or as a "real" cgi. But I think, there could be
another soluti
Hello All,
How would I strip all HTML before the info in inserted to MySQL? The
info is sent with a form. We Have one person that insist on using HTML.
TIA
Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
On Sun, 21 Oct 2001, Mark Lo wrote:
> I have been asking this for so many times, and I never get a reply
> for this !!! Please help me. I would like to know how to download the
> whole directory using PHP. Can anyone supply me some sources code for this.
I see a few reasons why you w
Sorry,
wrong list
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi Sir,
I have been asking this for so many times, and I never get a reply
for this !!! Please help me. I would like to know how to download the
whole directory using PHP. Can anyone supply me some sources code for this.
I am greatly appreciate for your help.
Best Regards,
Hi,
I have been toying with my php builds (on linux), and upgraded my mcrypt
library
and subsequently killed php.
make[1]: Entering directory `/usr/src/1/php4/Zend'
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main -I../TSRM -g -O2 -prefer-non-pic -s
tatic -c
On Fri, 19 Oct 2001 21:46:29 -0700 impersonator of [EMAIL PROTECTED] (Brad
Melendy) planted &I saw in php.general:
>arrh! I don't think I can say much else. Thanks so
>much for pointing that out David. ;-)
>
>.Brad
>
>
>"David Pearson" <[EMAIL PROTECTED]> wrote in mess
It's not you. I just built a bare cgi version of php, nothing but
'./configure' and got the same result.
I used this simple script to be sure I was in fact running the cgi binary
and it showed I was.
info.cgi
#!/usr/local/bin/php
I got the correct info page, but with the #!/usr/local/bin/php a
Our ISP is trying to upgrade php and mysql versions on our website. The
current site works fine using MySQL 3.22.20a and PHP3.
We are able to upload, modify and create new database records with no
problem using webforms to enter test and html.
Now that we are trying to upgrade to MySQL 3.23.36
Hello All
I try to implement a authsystem like.
1.) in php.ini I call prepend.php to initial db_mysql.inc ct_sql.inc
session.inc auth.inc perm.inc user.inc
local.inc.php page.inc.php
2.) in local.inc.php I have the class My_Auth where I create a
$tpl new EasyTemplate("loginform.inc.php")
in the
Hi,
I'll synthetize the problem with the response I have givven to Curt.
I've FreeBSD 4.2/Apache 1.3.9/PHP 4.0.6
I've installed PHP in Apache, it works very well
I need to have too PHP 4.0.6 in CGI mode (With Suexec but I don't think it's
the problem) but I've a problem.
In CGI mode, the path
> Khalid Hazmi wrote:
> > How I can download the current Annotated PHP Manual???
> There is no such thing... AFAIK.
=> Yasuo Ohgaki
Yasuo: Yes there is (and VERY useful it is too), check out the range of PHP
documentation available from
http://www.php.net/docs.php
Khalid: Unlike some other p
Sorry, for this message in Italian. It should have been addressed to the
Italian Php newsgoup.
Daniele
"Daniele Baroncelli" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Salve,
>
> Vorrei cominciare il nuovo sviluppo del mio sito in XML.
>
> C'e' qualcuno
Salve,
Vorrei cominciare il nuovo sviluppo del mio sito in XML.
C'e' qualcuno che mi sa dire la reale differenza in velocita' tra i parser
Expat e DOM?
Inoltre, e' davvero rischioso sviluppare in DOM, considerando che il modulo
e' sperimentale e in teoria potrebbe cambiare?
Saluti
Daniele
Hi all,
Am working with the XSLT functions in PHP. I'm trying to trap errors with
the xslt_error() functions - however, the function generates no output even
if I deliberately introduce errors into the XSLT sheet.
Same goes for the openlog() function. Any one have any ideas how I can use
these t
Thank You
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi,
> has anyone seen any Unicode support routines available anywhere for PHP?
disregard the question. found iconv support right after sending this mail :)
Rgds,
Indrek
--
For technical support contracts, goto https://order.mysql.com/
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /
Hi Daniel,
Try this:
Should work ok.
James
"Daniel Harik" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I've tried this code:
>
> $timea = explode(" ",$timepostsed);
> $timea1 = explode("-",$timea[0]);
> $timea2 = explode(":",$timea[1]);
> $timestamp =
>
Hi,
has anyone seen any Unicode support routines available anywhere for PHP?
the manual only documents utf8_encode() and utf8_decode(), that by
the documentation convert ISO-8859-1 strings to UTF8 and back.
but i also need support for other codepages (ISO-8859-*, KOI8-R
and others). I only need
> Is there a PHP IRC channel?
efnet (http://www.irchelp.org/irchelp/networks/efnet.txt)
The channel is #php
Run by a bunch of children though *troll bait away*
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
On Saturday 20 October 2001 02:35, you wrote:
> Hi guys,
>
> Also, is it really risky to develop in DOM, considering the module
> is experimental, and in theory it could change ?
We are working with dom for about a year. Our project depends on it,
so I hope it won't change much :))
By the way we
54 matches
Mail list logo