[PHP] store pics on mysql db

2002-04-22 Thread mm fernandez
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 world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- PHP General Mail

[PHP] Re: From where was function called?

2002-04-22 Thread Adrian Ciutureanu
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

[PHP] TEST

2002-04-22 Thread kip
TEST -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Setting the name of a file in a download....

2002-04-22 Thread Brian White
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) )

Re[2]: [PHP] Interesting Links, can be not PHP

2002-04-22 Thread Mantas Kriauciunas
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

RE: [PHP] Interesting Links, can be not PHP

2002-04-22 Thread Martin Towell
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

Re: AW: [PHP] Re: Second opinion needed - javascript blocker

2002-04-22 Thread Justin French
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

[PHP] Interesting Links, can be not PHP

2002-04-22 Thread Mantas Kriauciunas
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

Re: [PHP] Can php support ttf??

2002-04-22 Thread Richard Archer
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

FW: [PHP] remove last character in a string

2002-04-22 Thread Jarrad Kabral
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) == ",") {

RE: [PHP] remove last character in a string

2002-04-22 Thread Matthew Walker
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

RE: [PHP] Can php support ttf??

2002-04-22 Thread Matthew Walker
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?

Re: [PHP] remove last character in a string

2002-04-22 Thread Tyler Longren
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

Re: [PHP] remove last character in a string

2002-04-22 Thread Tyler Longren
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

Re: [PHP] remove last character in a string

2002-04-22 Thread Rasmus Lerdorf
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

Re: [PHP] remove last character in a string

2002-04-22 Thread Evan Nemerson
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

Re: [PHP] Can php support ttf??

2002-04-22 Thread Rahul Bhide
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

RE: [PHP] remove last character in a string

2002-04-22 Thread Craig Westerman
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

[PHP] Can php support ttf??

2002-04-22 Thread zhaoxd
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

Re: [PHP] remove last character in a string

2002-04-22 Thread Tyler Longren
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

Re: [PHP] remove last character in a string

2002-04-22 Thread Rasmus Lerdorf
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

[PHP] remove last character in a string

2002-04-22 Thread Craig Westerman
I have a string that ends in a comma. What is best method to remove the comma? Craig ><> [EMAIL PROTECTED]

Re: [PHP] Why isn't this working? :( - I found my solution!

2002-04-22 Thread Leif K-Brooks
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

[PHP] Regex: catchall function to validate Last and First names

2002-04-22 Thread Carl E Shmidt
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

Re: [PHP] Why isn't this working? :(

2002-04-22 Thread Richard Archer
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

RE: [PHP] Re: ereg size limit???

2002-04-22 Thread SP
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]

RE: [PHP] Why isn't this working? :(

2002-04-22 Thread Martin Towell
> 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

[PHP] Why isn't this working? :(

2002-04-22 Thread Leif K-Brooks
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

Re: [PHP] Unsubscribe?

2002-04-22 Thread Miguel Cruz
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

RE: [PHP] Unsubscribe?

2002-04-22 Thread Martin Towell
[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

[PHP] Unsubscribe?

2002-04-22 Thread Josiah Wallingford
How do you unsubscribe to this mailing list?

Re: [PHP] LogiCreate: looking for resellers

2002-04-22 Thread Michael Kimsal
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. >

Re: [PHP] LogiCreate: looking for resellers

2002-04-22 Thread Richard Archer
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

[PHP] LogiCreate: looking for resellers

2002-04-22 Thread Michael Kimsal
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

RE: AW: [PHP] Re: Second opinion needed - javascript blocker

2002-04-22 Thread Martin Towell
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

RE: [PHP] From where was function called?

2002-04-22 Thread Martin Towell
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:

Re: [PHP] The so-called improvment in PHP 4.2.0

2002-04-22 Thread Miguel Cruz
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

Re: [PHP] Why does this not work??

2002-04-22 Thread Richard Archer
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??

[PHP] Re: Why does this not work??

2002-04-22 Thread CC Zona
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

Re: [PHP] PHP 4.1.2 problem with IE

2002-04-22 Thread Richard Archer
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

Re: [PHP] Attachments

2002-04-22 Thread Jason Soza
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

[PHP] Why does this not work??

2002-04-22 Thread Jeffrey Means
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

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-22 Thread Andre Dubuc
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

[PHP] Re: Not A PHP question but I need help in a big way...

2002-04-22 Thread Michael Kimsal
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

Re: [PHP] Not A PHP question but I need help in a big way...

2002-04-22 Thread Weston Houghton
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 >

Re: [PHP] header redirection

2002-04-22 Thread Norman Zhang
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

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-22 Thread Erik Price
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

Re: [PHP] PHP 4.1.2 problem with IE

2002-04-22 Thread Dave Sugar
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

[PHP] Re: ImageCreate v. ImageCreateTrueColor

2002-04-22 Thread pt8455568-14
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

Re: [PHP] The so-called improvment in PHP 4.2.0

2002-04-22 Thread Rodolfo Gonzalez
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

RE: [PHP] The so-called improvment in PHP 4.2.0

2002-04-22 Thread Rasmus Lerdorf
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

Re: [PHP] The so-called improvment in PHP 4.2.0

2002-04-22 Thread Leif K-Brooks
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]

Re: [PHP] The so-called improvment in PHP 4.2.0

2002-04-22 Thread Eugene Lee
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.

RE: [PHP] The so-called improvment in PHP 4.2.0

2002-04-22 Thread Alok K. Dhir
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,$_

Re: [PHP] The so-called improvment in PHP 4.2.0

2002-04-22 Thread Adam Voigt
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

[PHP] The so-called improvment in PHP 4.2.0

2002-04-22 Thread Leif K-Brooks
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

[PHP] Not A PHP question but I need help in a big way...

2002-04-22 Thread Chuck PUP Payne
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

[PHP] Re: PHP 4.2.0 Release Announcement

2002-04-22 Thread Manuzhai
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

[PHP] Base class for objects with get/set w/o overload

2002-04-22 Thread Barry Hoggard
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

[PHP] PHP 4.2.0 Release Announcement

2002-04-22 Thread Derick Rethans
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

Re: [PHP] PHP 4.1.2 problem with IE

2002-04-22 Thread Richard Archer
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

Re: AW: [PHP] Re: Second opinion needed - javascript blocker

2002-04-22 Thread Leif K-Brooks
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

Re: AW: [PHP] Re: Second opinion needed - javascript blocker

2002-04-22 Thread J Smith
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

Re: AW: [PHP] Regex

2002-04-22 Thread Miguel Cruz
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

Re: [PHP] Regex

2002-04-22 Thread Miguel Cruz
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

Re: [PHP] PHP 4.2.0?

2002-04-22 Thread Tyler Longren
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

RE: [PHP] Regex

2002-04-22 Thread Darren Gamble
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 >

AW: [PHP] Regex

2002-04-22 Thread Red Wingate
([[-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

Re: [PHP] MySQL query

2002-04-22 Thread Tyler Longren
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

AW: [PHP] Re: Second opinion needed - javascript blocker

2002-04-22 Thread Red Wingate
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

[PHP] PHP 4.2.0?

2002-04-22 Thread Sebastian A.
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

[PHP] Regex

2002-04-22 Thread James Taylor
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

[PHP] Re: Second opinion needed - javascript blocker

2002-04-22 Thread J Smith
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

[PHP] MySQL query

2002-04-22 Thread Lee P Reilly
Hi, Can someone tell me if there is a way to execute multiple MySQL statements by passing *one* query containing a number of individual statements to MySQL e.g. UPDATE sampcomp SET fg="N", pctd="69", maxpctd="69.1" WHERE sampcompid="3";UPDATE sampcomp SET fg="N", pctd="69.2", maxpctd="69.3" WHER

[PHP] PHP 4.1.2 problem with IE

2002-04-22 Thread Dave Sugar
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

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-22 Thread Andre Dubuc
On Monday 22 April 2002 09:50 am, you wrote: > On Friday, April 19, 2002, at 09:41 PM, Andre Dubuc wrote: > > Is there a way I can verify that (a) globals are off and (b) $_SESSION > > or > > $_POST are on? This probably what's happening -- I can't access the > > arrays at > > all -- so, I think

AW: [PHP] Second opinion needed - javascript blocker

2002-04-22 Thread Red Wingate
Maybe u should just strip all the javascript tags out Of the user-input (output page) with a script like this: $text = eregi_replace("< *script[^>]*>([^<]*)<[^>]*>","//1",$test); this should stip all the script-tags out of the text, but will keep the text between the tags. (the code was NOT tes

[PHP] Second opinion needed - javascript blocker

2002-04-22 Thread Leif K-Brooks
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 me a second opinion on whether it will work? function stopjavascript($text){ //Stop people from using &whatever; tags, in case they can smuggle javascript in with

Re: [PHP] How do remove WARNING message

2002-04-22 Thread Dennis Moore
I am not a LDAP expert, however I assume you can place a condition on your bind command to kill the script or go to your error reporting... - Original Message - From: "Jean-Rene Cormier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 22, 2002 1:03 PM Subject: [PHP] How

[PHP] Re: mod_rewrite

2002-04-22 Thread Philip Hallstrom
You could also do something like this: Configure Apache so that *every* request on a virtual host would be handled by a single PHP script. ServerName myserver.mydomain.org DocumentRoot /usr/local/www/myserver Action php-parse /path-to/script.php Action php-parse /path-to/script.php SetHan

Re: Re: [PHP] PHP editor for windows

2002-04-22 Thread DL Neil
> > "etc" (TM) is able to follow up the syntax coloring operation by making > > changes to the code to correct syntax errors, puts brackets in exactly > > the right place to indicate block structure within the code, imposes > > data type prefixes in strict convention, chooses better variable names

[PHP] ImageCreate v. ImageCreateTrueColor

2002-04-22 Thread Leotta, Natalie (NCI/IMS)
Hello, I'm making an Image and I was wondering what the difference is between these two Image constructors. I need to find a way to make dotted and dashed lines (according to different patterns I've been given) and I want the sections between the dots to be transparent. I'm planning on using t

[PHP] From where was function called?

2002-04-22 Thread Nico van der Dussen
Hi, I'm having a real problem: In a codeset of more than 5000 lines of code, I have a rogue call to a function. Is there a way I can determine in a function from where the call was made? (Filename, linenumber etc) Thanks Nico -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] How do remove WARNING message

2002-04-22 Thread Rasmus Lerdorf
Read the error handling chapter in the documentation. -Rasmus On Mon, 22 Apr 2002, Jean-Rene Cormier wrote: > Ok I'm trying to create a script that would allow users to bind to an > LDAP server and we all know there's gonna be some people mistyping their > password but when I try to bind and pu

RE: [PHP] PHP editor for windows

2002-04-22 Thread .ben
> > >>> Other than notepad, interdev, ultraedit, etc (which i currently > use > > >>> for > > >>> editing), does anyone know of a good editor for PHP for Windows, > > >>> ideally > > >>> with syntax colouring, etc? > > > >> You use etc for editing? Sounds pretty cool. > > This is a new product Er

Re: [PHP] $HTTP_POST_VARS vs _POST

2002-04-22 Thread Erik Price
On Monday, April 22, 2002, at 12:19 PM, [EMAIL PROTECTED] wrote: > HI ML > > Only one little question : > I know that _POST doesn't exists on php 4.0.6 but does $HTTP_POST_VARS > exist on php 4.1.2 ? Yes, but you would have had an answer to this question 45 minutes ago if you had just tried i

[PHP] How do remove WARNING message

2002-04-22 Thread Jean-Rene Cormier
Ok I'm trying to create a script that would allow users to bind to an LDAP server and we all know there's gonna be some people mistyping their password but when I try to bind and put the wrong password I always get a warning message like this: Warning: LDAP: Unable to bind to server: Invalid cred

Re: [PHP] script executeion problem - executes twice for no reason- help

2002-04-22 Thread Miguel Cruz
On Mon, 22 Apr 2002, Edward Bailey wrote: > if() > {$filename = "../includes/news.html"; This condition will always return true. What you are doing here is first executing the assignment: $filename = "../includes/news.html"; and then testing the outcome of that assignment (which is "../inc

Re: [PHP] adding numbers to a file

2002-04-22 Thread Rasmus Lerdorf
$lines = file('filename'); foreach($lines as line) { list($var,$val) = explode('=>',$line); if(trim($var)=="'total'") $val = trim($val); } $val = $new_value; $fp = fopen('filename','w'); fputs($fp,"{\n'total' => $new_value\n}"); fclose($fp); -Rasmus On

[PHP] Re: adding numbers to a file

2002-04-22 Thread Adrian Ciutureanu
"Craig Westerman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a simple count file named count_db that contains ONLY the following: > > { > 'total' => 3954 > } > > How do I open file, find numbers in the file, add $newnumbers to existing > number

[PHP] adding numbers to a file

2002-04-22 Thread Craig Westerman
I have a simple count file named count_db that contains ONLY the following: { 'total' => 3954 } How do I open file, find numbers in the file, add $newnumbers to existing numbers. Then write these new numbers over the original numbers and close the file. I'm just needing to do this once a day

[PHP] Re: deleting lines in a textfield

2002-04-22 Thread Adrian Ciutureanu
"Kris Vose" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... How would you go about deleting a specific line in a textfield via PHP? For example, I want to delete line 2 only and save the changes. How would I go about doing this using fopen and fwrite? Kris

Re: [PHP] Session Tutorial

2002-04-22 Thread Ornella Fasolo
Hi, I got a good start-tutorial from www.onlamp.com the complete URL is http://www.onlamp.com/pub/a/php/excerpt/webdbapps_8/index.html?page=2 if you had some problem, you can write me, so I could send you it as an attached file i found it very good regards Ornella >Recently I have been tryin

[PHP] $HTTP_POST_VARS vs _POST

2002-04-22 Thread DrouetL
HI ML Only one little question : I know that _POST doesn't exists on php 4.0.6 but does $HTTP_POST_VARS exist on php 4.1.2 ? Regards Laurent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP editor for windows

2002-04-22 Thread DL Neil
> I really hate to do this, but it's one of my pet peives. is that like a pet rock? BTW if we're exercising peevishness, at the same time as indulging in anally non-retentive breakfast habits, check out http://www.onelook.com/cgi-bin/cgiwrap/bware/afen.cgi?type=word_all&word =peeve > >>> Ot

RE: [PHP] deleting lines in a textfield

2002-04-22 Thread Christoph Starkmann
AFAIK, there are no lines in a textfield; Text is simply displayed as needed to fit in the area of the textfield. As soon as you can do anything with it in PHP, it is no longer in a textfield but simply one string; This string you may search with regular expressions or using PHP string functions

Re: [PHP] Re: PHP editor for windows

2002-04-22 Thread Kunal Jhunjhunwala
I have been using html-kit @ http://www.chami.com/html-kit/ works great.. and the only stable inbuilt FTP proggy i have seen to date.. does anyone have alternatives to this? :) Regards, Kunal Jhunjhunwala "Minds think with ideas, not information. No amount of data, bandwidth, or processing power

Re: [PHP] script executeion problem - executes twice for no reason - help

2002-04-22 Thread R'twick Niceorgaw
remove the To:$email from $headers. You have it already in the $to parameter. - Original Message - From: "Edward Bailey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 22, 2002 11:48 AM Subject: [PHP] script executeion problem - executes twice for no reason - help > P

[PHP] deleting lines in a textfield

2002-04-22 Thread Kris Vose
How would you go about deleting a specific line in a textfield via PHP? For example, I want to delete line 2 only and save the changes. How would I go about doing this using fopen and fwrite? š Kris

[PHP] Re: PHP + Microsoft Access

2002-04-22 Thread J Smith
AFAIK, there is no unix app for using Access databases. You could try WINE or some sort of virtual desktop running Windows and use Access through that, but that would probably be even less stable than Windows itself. Running Windows 2000 with service pack 2 for the db server should probably

  1   2   >