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
How can I delete html from an input type=text ?
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
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
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.
The main manual seems to be down right now, probably being rebuilt...
Take a look at:
http://www.php.net/manual/en/html/
strip_tags() is under String Functions, and has been around for a
while.
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21,
We can help!
Mortgage Rates have been slashed again!
*Lower your monthly payment!
*Shorten the term of your loan!
*Reduce your interest rate!
SAVE MONEY!!!
NOW is the time to refinance... rates have
NEVER been lower!
We CAN assist everyone, even if you've
been turned down before!
Take just
Everyone uses ATM machines at one time or another,
and if you are seriously looking for a way to generate
income in a secure and consistent manner,
the ATM business might be what you are looking for.
We can show you how to Profit daily and be a part of
this $ 375 Billion dollar industry.
Our
DL Neil wrote:
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:
What happened with the online annotated manual? Going to /manual/en
(from docs.php) just returns the index to the directory with manual.php
in it (and some others). Something's broken I think.
I can no longer hit http://www.php.net/function and get the
annotated page returned. All it
Greetings,
Does anyone know what it's going to take to get access to the function
imagettftext() in PHP 4.0.6?! My eyes are bloodshot right about now.
Seems like I have everything but the kitchen sink enabled, but no
matter what I do I can't get ttf+gd+php functioning together.
% egrep
pane teda c:/php voi c:/windows
--
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]
I have the following snippet in my file:
if ($PATH_INFO == ) { $PATH_INFO = /; }
echo PATH_INFO: $PATH_INFObr\n;
// All we want is the fist element, call it $section
list($section) = explode('/', substr($PATH_INFO,1));
if (is_int($section)) {
echo
Hi all
How can i implement a hotmail-inbox like checkbox
functionality?
thanks in adv
Regards
Srinivasan Ranganathan
Do You Yahoo!?
Send a newsletter, share photos files, conduct polls, organize chat events. Visit
Hi there,
How it would be possible to draw a thich arc with PHP GD? You can see a picture
here about thing I mean:
http://www.pilotmedia.fi/xfiles/circle.jpg
ImageArc -function is just what I need, but it makes all arcs only 1 pixel width.
Any ideas?
Cheers,
- Ville
--
PHP General
This is really strange, found this function someware (cant remember where)
and it works. What I cant find is any reference to filerpos, filelen or
subfile on the php website! They are not functions I define in any inc
files. Anyone know where these are documented?
Ben
function
Bug in str_replace(), PHP 4.0.6
$text = hello world;
$out = str_replace( , ,$text);
echo $out;
Expected output:
hello world
Actual output:
hello world
Of course, this is what happens if str_replace() does replacements on input,
but not on the
[EMAIL PROTECTED] (Martin Lindhe) wrote:
Bug in str_replace(), PHP 4.0.6
$text = hello world;
$out = str_replace( , ,$text);
echo $out;
Expected output:
hello world
Actual output:
hello world
Of course, this is what happens if
Martin Lindhe wrote:
Bug in str_replace(), PHP 4.0.6
$text = hello world;
$out = str_replace( , ,$text);
echo $out;
Expected output:
hello world
Actual output:
hello world
Of course, this is what happens if str_replace() does
Hi,
Thanks Stefan for your answer
First, I'll explain why I want to use php in cgi
I'ts a simple reason, some users want to use php without safemode (which is
required with Apache due to safety problems). So I want to use php in cgi
mode with suexec.
I've tryed your solution, it works in
Hi,
well I do understand your needing.
First a question. What are your compile options, e.g. your configure call?
Do you use --enable-discard-path ? If not, try this. You need this option to
run Phpscripts from cgi-bin folders!!!
Greetings,
Stefan Siefert
-Ursprüngliche Nachricht-
Hi,
I know I can use the following code to download a single file, but how
can I download the whole directory by using the following code. Please
help.. (I am using PHP Apache)
?php
Header(Content-disposition: attachment; filename=\Quickstep.doc\);
Header(Content-type:
Hi Mark,
I don't think you can download an entire directory at once. You'll probably
have to get a directory listing, and download each file in that directory.
I'm not sure though.
Good luck,
Tyler
- Original Message -
From: Mark Lo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Hi All,
Tag {HEADER} not found in template loginform.inc.php.
What could be the error of this error-message.
The tag exist in row 1 loginform.inc.php of like:
div align=center b{HEADER}/b
TIA
Ron
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Forget this one, i'me being stupid.
At 04:26 P 21/10/01, Ben Edwards wrote:
This is really strange, found this function someware (cant remember where)
and it works. What I cant find is any reference to filerpos, filelen or
subfile on the php website! They are not functions I define in any
U can either use something to zip the whole directory up, and then download
that 1 zip file.
OR
You could use some JScript or something to make X number of windows popup,
each with a file to be saved...
Other than that I'm not sure what u can do... Unless you generate GRX files
or similar things
No. You cannot initiate multiple transactions that way (at least not without
considerable glue outside of PHP, such as JavaScript etc to cause the browser
to initiate multiple transactions; but it cannot be done directly from the
server side as the client only asked for one file).
You could
Please ask support questions at [EMAIL PROTECTED]
And, check what type '$this-a' is. It's probably not an array.
- Markus
On Sun, Oct 21, 2001 at 05:33:25PM +0800, fatbobman wrote :
when i try to open add a record to my db..
php tell me
Warning: Cannot use a scalar value as an array in
I have wrapped around my web page, my form tag -- my pages are
auto-expanding -- that is, always flush with the left, right, top and bottom
of the users browser... in IE - the form tag (wrapped around the page)
doesn't cause a problem -- however, in NS (4x - 6x) there is some additional
space at
That's odd ... the code I gave you I tested prior to pasting into my
email, and it worked fine ... and still does. I'm not aware of any bugs
with logical or in any versions of PHP. If this doesn't work for you,
I'm not sure where to go. (It works on my server ... PHP 4.0.6-5 ...
and my
Hi Brad,
This worked for me:
?
if ((substr($sString, 0, (strlen($sString)-1) == -)) || (substr($sString,
0, 1) == -)) {
echo you can't have a dash at the beginning or end of your string.;
}
?
.. but I'd tend to go for a regex as a solution to what you're after,
which involves less code:
Thanks James,
I tried a regular expression comparison first, but it was eluding me. I'm
new to PHP (trying to convert form ASP) and part of this is me trying to
convert my ASP/VBSCRIPT to PHP. ;-) I actually have a FOR loop evaluated
when the conditions of the IF statement are met, and I
I got a form that a user fills out. When they hit submit they are
transfered to a PHP page that verifies their data. If a problem is found
(They forgot to enter an e-mail address) the PHP sends them back to the
original form with the field they forgot to fill out highlighted in red.
well all of the entries are passed via post or get to your form handler
(obviously). So just pass them back when you re-call the form.
then put in
input type=text name=firstname value=?=$firstname? in the form
or something like that anyway.
- seb
-Original Message-
From: Chip
I got that but the passing back I'm having a problem with. This is waht I
got:
if ($T3==){header (Location: new_narrative.php?FilledName=No);}
How do I change this to include a Post?
Seb Frost [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
well all of the
Does anyone know what it's going to take to get access to the function
imagettftext() in PHP 4.0.6?! My eyes are bloodshot right about now.
http://database.sourceforge.net/documentation/installing_apache_with_gd_zlib_png_jpg_tiff_pdf_support.html
--
PHP General Mailing List
I can't do that because the form is to big and there is a limit to how much
data you can send via the URL bar. Any other ideas?
Seb Frost [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
if ($T3==){header (Location:
Chip Landwehr wrote:
I can't do that because the form is to big and there is a limit to how much
data you can send via the URL bar. Any other ideas?
Use cookies.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Nope it fails when he removes the line. It fails on me as well, I tried
it. Also note I did say that the ouput of phpinfo() was correct. The
output showed the page had been handled by the php cgi binary, not the
module.
The module has a large config line and several extensions
configured in,
Hi speedboy,
@ 4:24:56 PM on 10/21/2001, speedboy wrote:
Does anyone know what it's going to take to get access to the function
imagettftext() in PHP 4.0.6?! My eyes are bloodshot right about now.
@ 5:33:52 PM on 10/21/2001, Brian Clark wrote:
Does anyone know what it's going to take to get access to the function
imagettftext() in PHP 4.0.6?! My eyes are bloodshot right about now.
Ok, it works!! Thanks to everyone for their suggestions and answers. This
group is a great resourse. Thanks again
...Brad
Brad Melendy [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Thanks James,
I tried a regular expression comparison first, but it
Why not just post to the same script, then you don't have to worry about
this?
Hth,
-AD
Chip Landwehr [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I can't do that because the form is to big and there is a limit to how
much
data you can send via the URL
On Sun, 21 Oct 2001, Chip Landwehr wrote:
if ($T3==){header (Location: new_narrative.php?FilledName=No);}
How do I change this to include a Post?
You can put it back on as a query string (kinda dirty, but you can't POST
it back).
?php
$myQueryString = FilledName=No;
while(
ok, several different solutions, best being:
1. use sessions. this is probably the simplest, most robust way of doing it,
after you've become familiar with sessions.
2. as someone mentioned before, use one page that posts to itself. this
would be easier than using sessions, but not as powerful.
Can you guys give me some hints of IDEs for programming PHP in Linux?
thanks
_
. Christian Dechery
. . Gaita-L Owner / Web Developer
. . http://www.webstyle.com.br
. . http://www.tanamesa.com.br
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
I'm working on (actually I'm almost finished) on a very nice ad management
system.
It has a script that generates a very informative report, in HTML. But I
wanted something more... like some comparative chart... or pie chart...
can anyone give some hints, where can I find info on this? Is
Hi all.
i tried to compile new
Apache/2.0.27-dev
PHP 4.2.0-dev
(both get from CVS)
On FreeBSD-stable 4.4 (CVS)
when i start apache with php module , i get this:
Cannot load /usr/local/apache2/modules/libphp4.so into server:
/usr/local/apache2/modules/libphp4.so: Undefined symbol
You can try ActiveState's Komodo.
http://www.activestate.com/Products/ASPN_Komodo/
It supports PHP, Perl, Python, etc., has a debugger, pretty cool editor,
etc. It's only a 1.0 (at least the last time I used it), but was pretty
solid for a 1.0.
What are you looking for in an IDE?
I got a form (form.php) that recalls itself when you hit submit to verify
all the fields. If all the fields are good, I need it to automatically post
to a new page. Anyway to do this?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
At 17:20 21/10/01 -0700, you wrote:
You can try ActiveState's Komodo.
http://www.activestate.com/Products/ASPN_Komodo/
It supports PHP, Perl, Python, etc., has a debugger, pretty cool
editor,
etc. It's only a 1.0 (at least the last time I used it), but was pretty
solid for a 1.0.
sure, have to states for your script, one is the normal blank form, the
second is the check.
in your check, validate the data. if its not good, print the form out again
with those values already filled in if they apply.
if it is good, redirect to a new page using header(); http://php.net/header
But won't using a header kill all the form data? Thought you had to use
post for that?
Jack Dempsey [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
sure, have to states for your script, one is the normal blank form, the
second is the check.
in your check,
Visual SlickEdit is available on Linux, Win32, and about a dozen other
platforms (except MacOS). I use it on both Windows and Linux (was one of
the reasons I chose it, although now that I've used it, I have many others
:) It's a great editor, worth every penny I spent on it. Komodo has a
Win32
sorry chip, i'm so used to using sessions, i just kind of assumed you would
:-)
sessions will carry the data around.if you can't/won't use them, you
could use curl to post the values along, but sessions are much more elegant
for this kind of thing
my $.02
jack
-Original Message-
lol NP--actually I am using sessions-Will I have to declare each form
variable as a session variable to do this?
Jack Dempsey [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
sorry chip, i'm so used to using sessions, i just kind of assumed you
would
:-)
you could just declare one multidimensional array as a session var, then
carry that aroundthat's easiest way i've found.
jack
-Original Message-
From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21, 2001 8:43 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Submit
I saw another post on this that got no response, I figure I should try
again before filing another bug report. I've got some perl cgi scripts
that I have to keep, and I need them to do some things in php that are
already done in php, it's not really practical to rewrite either of these
so it's
For me, using FastTemplate calling back the same script is the best idea.
Using flags, you can have a different response by using a different
template, yet retain all the POST data.
HTH,
At 03:49 AM 10/22/2001, Chip Landwehr wrote:
I got a form that a user fills out. When they hit submit
Reductor [EMAIL PROTECTED] wrote in message
news:003a01c15654$4d89c280$eb00a8c0@mum...
How do I view these *.php pages locally. I'm using Windows
NT and I have both MSIE (preferred) Netscape.
http://miniserver.wxs.org Is the URL to the Miniserver Site Its a great
little web server,
I am just doing something at the moment in PHP, which is naturally
suited to managing via a try,catch kind of structure which just isn't
in PHP and means I am having to be very, very careful. I just
thought I might use it to put the case for some exceptions.
Basically, I have a whole bunch of
Hi
Instead of using a html and a php page, how can i use
a single php page to process data?
thanks in advance
Srinivasan Ranganathan
*NEW* Connect to Yahoo! Messenger through your mobile phone *NEW*
Visit
make a php page that prints out the html, and direct the form's action to
$PHP_SELF.
then have some sort of test to determine if there's been a post, process the
data, etc, and you're set.
-Original Message-
From: Srinivasan Ranganathan [mailto:[EMAIL PROTECTED]]
Sent: Monday, October
On Mon, Oct 22, 2001 at 02:57:44PM +1000, Brian White wrote:
Preface to these ramblings: Exception handling is planned for the next
version of the Zend engine. For details, see
http://www.zend.com/zend/future.php
The nasty thing then comes in that if any task fails, I have to stop. So I
Use JavaScript.
Read PHP Manul if you need to pass array form vars.
There is a section for that.
Srinivasan ranganathan wrote:
Hi all
How can i implement a hotmail-inbox like checkbox
functionality?
thanks in adv
Regards
Srinivasan Ranganathan
--
Yasuo Ohgaki
--
PHP General
This is expected behaviour.
Ashley M. Kirchner wrote:
I have the following snippet in my file:
if ($PATH_INFO == ) { $PATH_INFO = /; }
echo PATH_INFO: $PATH_INFObr\n;
// All we want is the fist element, call it $section
list($section) = explode('/',
You don't need to use javascript unless you're lookin for select all
functionality.
I think what you are looking for might just be to have many checkboxes that
can be selected at a time?
You can look in the manual, but the trick is just to name your form fields
with a [] at the end. So, it
Try this http://www.aditus.nu/jpgraph/
M.N.
---
Christian Dechery wrote:
I'm working on (actually I'm almost finished) on a very nice ad management
system.
It has a script that generates a very informative report, in HTML. But I
wanted something more... like some comparative chart... or
Æ߲ʹÈÁ¦ÍÆÐÂÆ·£ºÉñÏÉ·Û£¡¼ÛÓŵĺòúÆ·£¡
ÉñÏÉ·Û££·þÓúóÊý·ÖÖÓ£¬¼´ÄÜÐË·ÜÅ®ÐÔ´óÄÔÉñ¾£¬²úÉúºÃ¸ÐºÍ¿ÊÍû¡£ÎÞ¶¾¡¢ÎÞ¸±×÷Óá¢ÎÞñ«ÐÔ¡£
http://shop.7cv.com/shop/index.php?asstfrom=7cvtest34
ºÃÕ¾Äѵ㬿ì¿ì¼ÓÈëÊղؼÐÓ´£º£©
¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
¸ü¶à³ÉÈËÓÃÆ·¡¢±£½¡Æ·¡¢ÇéȤÄÚÒÂ...
¾¡ÔÚ£º
If that happens it would be great.
At 00:33 22/10/2001 -0500, Matt McClanahan wrote:
On Mon, Oct 22, 2001 at 02:57:44PM +1000, Brian White wrote:
Preface to these ramblings: Exception handling is planned for the next
version of the Zend engine. For details, see
Hi,
I was wondering are there any editor programs for PHP?
Right now, I am using RedHat Linux 6.2 and I have to type everything by
telneting into the server and using Pico.
Thanks.
Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
If you're on RedHat, then you could also use vi/vim/gvim, Emacs/XEmacs, and
I think RH 6.2 probably also had Glimmer, NEdit, and some others. You could
also search the archives of this list since this topic gets asked a lot :)
Try Active State's Komodo (http://www.activestate.com), which is an
71 matches
Mail list logo