Re: [PHP] Using Logical OR operator in IF statement???

2001-10-21 Thread Christopher William Wesley
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

[PHP] delete html

2001-10-21 Thread jtjohnston
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

Re: [PHP] delete html

2001-10-21 Thread Christopher William Wesley
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

Re: [PHP] delete html

2001-10-21 Thread jtjohnston
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.

RE: [PHP] delete html

2001-10-21 Thread Matthew Loff
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,

[PHP] Why WAIT??? Refinance Now

2001-10-21 Thread duckquack
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

[PHP] Thank You For Your Interest..........

2001-10-21 Thread mini . atmbiz
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

Re: [PHP] Re: Annotated PHP Manual

2001-10-21 Thread Yasuo Ohgaki
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:

[PHP] Online Manual?

2001-10-21 Thread Ashley M. Kirchner
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

[PHP] enable truetype string function in gd

2001-10-21 Thread Brian Clark
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

[PHP] php.ini

2001-10-21 Thread Daniel Harik
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]

[PHP] Odd is_int() behaviour

2001-10-21 Thread Ashley M. Kirchner
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

[PHP] Arrays in form

2001-10-21 Thread Srinivasan Ranganathan
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

[PHP] Thick arc with PHP

2001-10-21 Thread Ville Mattila
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

[PHP] What is filerpos, filelen and subfile

2001-10-21 Thread Ben Edwards
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

[PHP] bug in str_replace() ?

2001-10-21 Thread Martin Lindhe
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

[PHP] Re: bug in str_replace() ?

2001-10-21 Thread Henrik Hansen
[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

[PHP] Re: bug in str_replace() ?

2001-10-21 Thread Christian Kuhtz
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

[PHP] Re: PHP/CGI problem: #!/path/php at top of CGI script appears in output

2001-10-21 Thread Philippe
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

[PHP] AW: PHP/CGI problem: #!/path/php at top of CGI script appears in output

2001-10-21 Thread Stefan Siefert
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-

[PHP] Download the whole directory

2001-10-21 Thread Mark Lo
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:

Re: [PHP] Download the whole directory

2001-10-21 Thread Tyler Longren
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:

[PHP] Tag {HEADER} not found in template loginform.inc.php

2001-10-21 Thread Ronald Weinrich
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

Re: [PHP] What is filerpos, filelen and subfile

2001-10-21 Thread Ben Edwards
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

Re: [PHP] Download the whole directory

2001-10-21 Thread Andrew Brampton
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

[PHP] Re: Download the whole directory

2001-10-21 Thread Christian Kuhtz
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

[PHP] Re: [PHP-DEV] What's wrong with my PHP

2001-10-21 Thread Markus Fischer
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

[PHP] Forms and Netscape -- spacing problem -- Help!

2001-10-21 Thread Jason Caldwell
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

Re: [PHP] Using Logical OR operator in IF statement???

2001-10-21 Thread Christopher William Wesley
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

[PHP] Re: Using Logical OR operator in IF statement???

2001-10-21 Thread James, Yz
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:

[PHP] Re: Using Logical OR operator in IF statement???

2001-10-21 Thread Brad Melendy
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

[PHP] Form Question

2001-10-21 Thread Chip Landwehr
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.

RE: [PHP] Form Question

2001-10-21 Thread Seb Frost
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

Re: [PHP] Form Question

2001-10-21 Thread Chip Landwehr
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

Re: [PHP] enable truetype string function in gd

2001-10-21 Thread speedboy
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

Re: [PHP] Form Question

2001-10-21 Thread Chip Landwehr
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:

Re: [PHP] Form Question

2001-10-21 Thread Christian Kuhtz
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:

Re: [PHP] PHP/CGI problem: #!/path/php at top of CGI script appears in output

2001-10-21 Thread Dave Goodrich
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,

Re: [PHP] enable truetype string function in gd

2001-10-21 Thread Brian Clark
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.

Re: [PHP] enable truetype string function in gd

2001-10-21 Thread Brian Clark
@ 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.

[PHP] Re: Using Logical OR operator in IF statement???

2001-10-21 Thread Brad Melendy
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

Re: [PHP] Form Question

2001-10-21 Thread AD
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

Re: [PHP] Form Question

2001-10-21 Thread Christopher William Wesley
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(

RE: [PHP] Form Question

2001-10-21 Thread Jack Dempsey
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.

[PHP] IDE for Linux

2001-10-21 Thread Christian Dechery
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,

[PHP] generating charts/graphics

2001-10-21 Thread Christian Dechery
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

[PHP] 4.2.0-dev+Apache/2.0.27-dev

2001-10-21 Thread [EMAIL PROTECTED]
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

RE: [PHP] IDE for Linux

2001-10-21 Thread Chris Bailey
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?

[PHP] Submit

2001-10-21 Thread Chip Landwehr
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

RE: [PHP] IDE for Linux

2001-10-21 Thread Christian Dechery
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.

RE: [PHP] Submit

2001-10-21 Thread Jack Dempsey
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

Re: [PHP] Submit

2001-10-21 Thread Chip Landwehr
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,

RE: [PHP] IDE for Linux

2001-10-21 Thread Chris Bailey
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

RE: [PHP] Submit

2001-10-21 Thread Jack Dempsey
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-

Re: [PHP] Submit

2001-10-21 Thread Chip Landwehr
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 :-)

RE: [PHP] Submit

2001-10-21 Thread Jack Dempsey
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

[PHP] php or perl bug when execing php scripts?

2001-10-21 Thread Chad Cunningham
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

Re: [PHP] Form Question

2001-10-21 Thread Jay
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

Re: [PHP] view *.php pages locally on NT?

2001-10-21 Thread John A. Grant
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,

[PHP] Why I wish PHP had Python's exception handling....

2001-10-21 Thread Brian White
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

[PHP] Single Form

2001-10-21 Thread Srinivasan Ranganathan
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

RE: [PHP] Single Form

2001-10-21 Thread Jack Dempsey
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

Re: [PHP] Why I wish PHP had Python's exception handling....

2001-10-21 Thread Matt McClanahan
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

[PHP] Re: Arrays in form

2001-10-21 Thread Yasuo Ohgaki
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

[PHP] Re: Odd is_int() behaviour

2001-10-21 Thread Yasuo Ohgaki
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('/',

RE: [PHP] Re: Arrays in form

2001-10-21 Thread Brian Tanner
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

Re: [PHP] generating charts/graphics

2001-10-21 Thread Mirek Novak
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

[PHP] Re:

2001-10-21 Thread 8
Æ߲ʹÈÁ¦ÍÆÐÂÆ·£ºÉñÏÉ·Û£¡¼ÛÓŵĺòúÆ·£¡ ÉñÏÉ·Û£­£­·þÓúóÊý·ÖÖÓ£¬¼´ÄÜÐË·ÜÅ®ÐÔ´óÄÔÉñ¾­£¬²úÉúºÃ¸ÐºÍ¿ÊÍû¡£ÎÞ¶¾¡¢ÎÞ¸±×÷Óá¢ÎÞñ«ÐÔ¡£ http://shop.7cv.com/shop/index.php?asstfrom=7cvtest34 ºÃÕ¾Äѵ㬿ì¿ì¼ÓÈëÊղؼÐÓ´£º£© ¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª ¸ü¶à³ÉÈËÓÃÆ·¡¢±£½¡Æ·¡¢ÇéȤÄÚÒÂ... ¾¡ÔÚ£º

Re: [PHP] Why I wish PHP had Python's exception handling....

2001-10-21 Thread Brian White
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

[PHP] PHP editing

2001-10-21 Thread Peter
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

RE: [PHP] PHP editing

2001-10-21 Thread Chris Bailey
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