Re: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread chris herring
forgot to mention that ascii/binary is auto in cuteftp - Original Message - From: "chris herring" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 19, 2001 1:51 AM Subject: Re: [PHP] Newbie Help!! Please Look! > right up my alley... I use cuteftp, and it usually does all

Re: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread chris herring
right up my alley... I use cuteftp, and it usually does all this stuff for you. all you have to do is right click on the file you want to edit, and it opens it up in notepad, or the editor you choose. just make sure you save the file before you close it. after that cuteftp will have a window that

Re: [PHP] HTMLSpecialchars

2001-04-18 Thread Brian Clark
Hi Dddogbruce, @ 1:06:08 AM on 4/19/2001, Dddogbruce (@home.com) wrote: > I'm having a problem with HTMLspecialchars and nl2br interfearing with > each other. Obviously, I'm trying to stop malicous HTML/scripts from > being entered into my guestbook, but I'm also trying to add spacing. > nl2br

[PHP] Weird Ordering & Queries

2001-04-18 Thread Chris Aitken
Ive come up with a curly problem and im wondering if anyone can shed some lights on it. I looked under the SELECT part of Mysql but it didnt seem to cover this and I didnt know how to phrase it. What I have is a displayed list on the site. This data that makes up the list comes from 2 tables.

Re: [PHP] global sessions

2001-04-18 Thread CC Zona
In article <9bjvo1$irv$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Ben") wrote: > i'm trying to use sessions with my project, but it seems that registered > variables in a session aren't global by default. They should be. Can you show an example of the code that leads you to believe they're not?

RE: [PHP] HTMLSpecialchars

2001-04-18 Thread Jason Murray
> I'm having a problem with HTMLspecialchars and nl2br interfearing with > each other. Obviously, I'm trying to stop malicous HTML/scripts from > being entered into my guestbook, but I'm also trying to add spacing. > nl2br adds , but HTMLspecialchars tells it to not show that. > > Anyways, I'm s

Re: [PHP] HTMLSpecialchars

2001-04-18 Thread David Robley
On Thu, 19 Apr 2001 14:36, [EMAIL PROTECTED] wrote: > I'm having a problem with HTMLspecialchars and nl2br interfearing with > each other. Obviously, I'm trying to stop malicous HTML/scripts from > being entered into my guestbook, but I'm also trying to add spacing. > nl2br adds , but HTMLspecial

[PHP] HTMLSpecialchars

2001-04-18 Thread Dddogbruce \(@home.com\)
I'm having a problem with HTMLspecialchars and nl2br interfearing with each other. Obviously, I'm trying to stop malicous HTML/scripts from being entered into my guestbook, but I'm also trying to add spacing. nl2br adds , but HTMLspecialchars tells it to not show that. Anyways, I'm sure there is

[PHP-CVS] cvs: php4 /ext/odbc php_odbc.c

2001-04-18 Thread Andi Gutmans
andiWed Apr 18 21:16:28 2001 EDT Modified files: /php4/ext/odbc php_odbc.c Log: - \r\n -> \n Index: php4/ext/odbc/php_odbc.c diff -u php4/ext/odbc/php_odbc.c:1.79 php4/ext/odbc/php_odbc.c:1.80 --- php4/ext/odbc/php_odbc.c:1.79 Wed Apr 18 19:31

Re: [PHP-CVS] cvs: php4 /ext/odbc php_odbc.c

2001-04-18 Thread Andi Gutmans
Why do you need that SEPARATE_ZVAL()? You seem to be using pv_row as read-only. Also can you please try not to commit \r\n but only \n? Thanks, Andi At 02:31 AM 4/19/2001 +, Dan Kalowsky wrote: >kalowskyWed Apr 18 19:31:23 2001 EDT > > Modified files: > /php4/ext/odbc

Re: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread Brian Clark
Hi Tony, @ 11:24:30 PM on 4/18/2001, Tony Daniels wrote: > I used notepad and it shows some weird symbols like darkened in > squares. That is why I was wondering if there was a specific > program. Is there any way to get rid of the squares? Those are 'end of line characters' that your Operating

[PHP-CVS] cvs: php4 /ext/iconv iconv.c

2001-04-18 Thread Andi Gutmans
andiWed Apr 18 21:02:03 2001 EDT Modified files: /php4/ext/iconv iconv.c Log: - WS Index: php4/ext/iconv/iconv.c diff -u php4/ext/iconv/iconv.c:1.10 php4/ext/iconv/iconv.c:1.11 --- php4/ext/iconv/iconv.c:1.10 Thu Mar 29 01:37:09 2001 +++ php4/ext/ico

Re: [PHP] Creating UTF-8 characters from scratch

2001-04-18 Thread Yasuo Ohgaki
My mail client converted invalid char code for the original post to '?'. Anyway, PHP works well with multi-byte chars and it works well with UTF-8/EUC at least. Not sure if PHP work well with KOI, though. This works. $value = 'ABCDabcd日本語文字列12341234'; (This mail's char code must be UTF-8 if it'

Re: [PHP] Different Question??

2001-04-18 Thread Tony Daniels
Thanks once again!! Jason Murray wrote: > > $recipient = $email; > > $headers = "From: Sirplus.tv <[EMAIL PROTECTED]>\n"; > > $headers .= "X-Sender: <[EMAIL PROTECTED]>\n"; > > > > This grabs the email address out of MySql and send them the email that > > would be following. However, I want

[PHP] special thanks to Chis Fry, this is great list!!

2001-04-18 Thread Jacky
As the title say, I would like to make a special thanks to one of our member Chris Fry and to say this is great list!! Thank for all help :-) Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself"

RE: [PHP] Different Question??

2001-04-18 Thread Jason Murray
> $recipient = $email; > $headers = "From: Sirplus.tv <[EMAIL PROTECTED]>\n"; > $headers .= "X-Sender: <[EMAIL PROTECTED]>\n"; > > This grabs the email address out of MySql and send them the email that > would be following. However, I want a copy to go to me as well. What > line of code to

[PHP] Different Question??

2001-04-18 Thread Tony Daniels
Hello, Thank you for the quick help on the apparant easy question. Here is another easy one. Here is a portion of the code of one of my files. $recipient = $email; $headers = "From: Sirplus.tv <[EMAIL PROTECTED]>\n"; $headers .= "X-Sender: <[EMAIL PROTECTED]>\n"; This grabs the email addr

[PHP] SESSIONS, a weird, funny yet strange error happens to wrong people...

2001-04-18 Thread Maxim Maletsky
hello guys... On one of our websites, where we use sessions, a funny error have happened. Warning: open(/tmp/sess_b5ad1e0878dee63fa8a780df44af3ea7, O_RDWR) failed: File exists (17) in page.japaninc.inc on line 109 The funny side of it is that no one has ever seen it except our manager (what

Re: [PHP] Creating UTF-8 characters from scratch

2001-04-18 Thread Yasuo Ohgaki
I don't know about "Cyrillic", but anyway, Why not just assign UTF-8 char codes to variables? (It would be nice if there is hex2bin(), though. You can use sprintf() assign sort of binary value, but it would not work well to assign multi-byte char values since it interpret as integer) I think PHP

RE: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread Jack Dempsey
its not so much learning "telnet" as learning unix or linux...but as far as editing text files, its easy...here're some basic commands to get you started: telnet www.yourhost.com login: password: prompt$ pico yourfile.php i find pico to be the quickest and easiest (and probably the "weakest")

[PHP] No more help needed! I get the picture!!

2001-04-18 Thread Tony Daniels
Thanks Everyone!! That was quick and painless! Tony Daniels wrote: > Hello, > > I need to know if there is a program out there that I can use to edit > the PHP files. I use CuteFTP to download the files from my server as I > need to change some wording around from time to time. Does anyone kn

Re: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread Tony Daniels
Ah, that helps tons. Thank you!! Jason Murray wrote: > > I used notepad and it shows some weird symbols like darkened > > in squares. That is why I was wondering if there was a specific > > program. Is there any way to get rid of the squares? > > The squares are characters Notepad doesn't rec

RE: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread Jason Murray
> I used notepad and it shows some weird symbols like darkened > in squares. That is why I was wondering if there was a specific > program. Is there any way to get rid of the squares? The squares are characters Notepad doesn't recognise. If you see them in anything, not just PHP files, open

RE: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread Jason Lotito
> -Original Message- > From: Tony Daniels [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 18, 2001 8:18 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Newbie Help!! Please Look! > > > Hello, > > I need to know if there is a program out there that I can use to edit > the PHP files. Any

Re: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread Tony Daniels
I wish I knew how to use Telnet. Maybe I'll search and learn. Thank you for your help! Jack Dempsey wrote: > PHP files are text files, thus you can use any text editor to make your > changes. On Windows, the simplest way would be to use notepad or wordpad to > edit and save your changes. On ot

Re: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread Tony Daniels
I used notepad and it shows some weird symbols like darkened in squares. That is why I was wondering if there was a specific program. Is there any way to get rid of the squares? Thank for your help. Jason Murray wrote: > > I need to know if there is a program out there that I can use to edit

RE: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread Jack Dempsey
PHP files are text files, thus you can use any text editor to make your changes. On Windows, the simplest way would be to use notepad or wordpad to edit and save your changes. On other platforms like unix/linux you could use pico, vi, or emacs to name a few. If you have telnet access to the server

RE: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread Jason Murray
> I need to know if there is a program out there that I can use to edit > the PHP files. I use CuteFTP to download the files from my server as I > need to change some wording around from time to time. Does anyone know > the correct procedure for downloading a php file with CuteFTP and then a > p

[PHP] Newbie Help!! Please Look!

2001-04-18 Thread Tony Daniels
Hello, I need to know if there is a program out there that I can use to edit the PHP files. I use CuteFTP to download the files from my server as I need to change some wording around from time to time. Does anyone know the correct procedure for downloading a php file with CuteFTP and then a pro

[PHP] best way to include html?

2001-04-18 Thread Duke
I'm setting up an html "shell" for my webpage that I include with my php code so I don't have to see html crap and whatnot. I'm wondering what the best way is to insert the html "shell" into my code? Should I just echo the file, should I include(), require(), include_once(), or require_once()?? On

[PHP-CVS] cvs: php4 /ext/odbc php_odbc.c

2001-04-18 Thread Dan Kalowsky
kalowskyWed Apr 18 19:31:23 2001 EDT Modified files: /php4/ext/odbc php_odbc.c Log: corrects bug #7488, patch supplied by submitter ([EMAIL PROTECTED]). quick local tests show it to work. Index: php4/ext/odbc/php_odbc.c diff -u php4/ext/odb

Re: [PHP] PHP for Apache 2.0

2001-04-18 Thread August Zajonc
I've got PHP up and running partially under Apache 2.0 quite some time ago, however despite the sweetness of Apache 2, this is probably not something you want to do. Looking forward to PHP coming out more fully for Apache 2.0, if there is anything we can do to help it along I'm all ears. August

[PHP] Re: thank you very much

2001-04-18 Thread [EMAIL PROTECTED]
Chris Apologise for sending you message directly, just one last thing about what I have tried to to do, basically after I got list of string from HTTP_POST_VAR, it will be like 12154, how do I make it to be 1,2,1,5,4 so that I can put that in variable to put it in query? I tried connect it like th

[PHP-CVS] Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / TODO-4.1.txt

2001-04-18 Thread Stig Sæther Bakken
["Sean R. Bright" <[EMAIL PROTECTED]>] > To continue a tangent... I don't like the idea of having the PEAR > fetching/installation mechanism written in PHP (already some base code in > PEAR to do this). It seems to me that it forces the user to download/build > PHP and then download and rebuild P

Re: [PHP] PUT Method using PHP4/Apache ...

2001-04-18 Thread The Hermit Hacker
Is there maybe somethign in php.ini or in the php compile that has to be enabled, that I'm not find/cluing into? On Wed, 18 Apr 2001, The Hermit Hacker wrote: > > I've read through: > > http://php.net/manual/pt_BR/features.file-upload.put-method.php > > I added: > > Script PUT /put.php > > to m

Re: [PHP] Global variables

2001-04-18 Thread Philip Olson
> At 1:16 AM + 4/19/01, Philip Olson wrote: > > > > > > > > don't do that, at least I think it will recursively traverse the > $GLOBALS arrary (since $GLOBALS itself is $GLOBAL) and you will never > end. This is true with print_r($GLOBALS) up until 4.0.4 where it was fixed, whi

Re: [PHP] XML - simple get data from elements

2001-04-18 Thread Manuel Lemos
Hello, Mark Bean wrote: > > I have a valid XML file that all I want to do is assign to variables the > data in the elements and . I know nothing about XML and > am not a programmer. Are there any good tutorials out there to do something > as simple as what I'm looking for? Will expat do what

Re: [PHP] Global variables

2001-04-18 Thread Aaron Tuller
At 1:16 AM + 4/19/01, Philip Olson wrote: > > > don't do that, at least I think it will recursively traverse the $GLOBALS arrary (since $GLOBALS itself is $GLOBAL) and you will never end. -aaron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL P

Re: [PHP] Global variables

2001-04-18 Thread Philip Olson
Have a look at the enormous $GLOBALS array, something like : As previously mentioned, phpinfo() provides some pretty information and it may be more what you want. Regarding $GLOBALS, (as quoted from the manual) : "The $GLOBALS array is an associative array with the name of the gl

[PHP-CVS] RE: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / TODO-4.1.txt

2001-04-18 Thread Sean R. Bright
To continue a tangent... I don't like the idea of having the PEAR fetching/installation mechanism written in PHP (already some base code in PEAR to do this). It seems to me that it forces the user to download/build PHP and then download and rebuild PHP with any extensions that don't come in the

RE: [PHP] Global variables

2001-04-18 Thread Jason Murray
> I know there is a way to do it in Perl, but is there anyway > in PHP to display all of the global variables. Such as OS, > browser, date/time, that sort of thing > > I know I could print each one seperately, but are they all > stored in an array somewhere? That should show you everything

[PHP] Global variables

2001-04-18 Thread JCampbell
I know there is a way to do it in Perl, but is there anyway in PHP to display all of the global variables. Such as OS, browser, date/time, that sort of thing I know I could print each one seperately, but are they all stored in an array somewhere?

RE: [PHP] Add data to three tables at once from one form

2001-04-18 Thread Jason Murray
> Add two more sets of statements like those you have for the > first query. That's it. There's nothing special to do. MySQL also lets you stack insert statements: $sql="INSERT INTO t1 ('A'); INSERT INTO t2 ('B'); INSERT INTO t3 ('C');" This would work (but if you get an error, you'll have tr

Re: [PHP] Add data to three tables at once from one form

2001-04-18 Thread Steve Werby
"Fates" <[EMAIL PROTECTED]> wrote: > I know how to add data to one table but how do I add data to three > tables from one form? > > I want to do this with just one form and on one web page so it doesn't > post to another page. > > How do I set up the insert statement? > >$query = "INSERT INTO

Re: [PHP] how to scale down image using ImageMagick?

2001-04-18 Thread Noah Spitzer-Williams
morgan, this is starting to work! the 175x175 does resize it to a width of 175 while retaining the aspect ratio. however when i tried using the less than sign, the windows nt command prompt is treating it as saving the output to a file: c:\progra~1\imagem~1\mogrify.exe -geometry 175x

[PHP] Add data to three tables at once from one form

2001-04-18 Thread Fates
I know how to add data to one table but how do I add data to three tables from one form? I want to do this with just one form and on one web page so it doesn't post to another page. How do I set up the insert statement? $query = "INSERT INTO $table VALUES ('$menu_id', '$server', '$menunumbe

Re: [PHP] `AM_PROG_LIBTOOL' not found in library

2001-04-18 Thread Kelly Cochran
Do a 'which libtool' and I'd hazard a guess that it'll find the one in /usr/local/bin first. As it's using that libtool (dir: /usr/local/bin) and your normal automake (dir: /usr/bin), the dirs don't match and aclocal fails, as the warning mentions. Either switch your path around to move

Re: [PHP] `AM_PROG_LIBTOOL' not found in library

2001-04-18 Thread Pablo Sabatino
Hello!! I am using php4-cvs on Linux Suse 6.4. I issued the command ./buildconf and got a message: pablo@pablito:~/php4 > ./buildconf buildconf: checking installation... buildconf: autoconf version 2.13 (ok) buildconf: automake version 1.4 (ok) buildconf: libtool version 1.3.5

[PHP] 2. run: PHP4 parsing canceled

2001-04-18 Thread Norbert Pfeiffer
Hello generals, I work since version 3.0.3 with PHP and had until today no problems with it. In this week, three Interpreter have adjusted her service to three same computers, with Win98 and OmniHTTPd, one after the other. I have tested all versions of PHP4, no one works more, also the newest not

[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/mcrypt mcrypt.c

2001-04-18 Thread Derick Rethans
derick Wed Apr 18 15:15:39 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/mcryptmcrypt.c Log: - MFH (bug #8839 again) Index: php4/ext/mcrypt/mcrypt.c diff -u php4/ext/mcrypt/mcrypt.c:1.45.2.2 php4/ext/mcrypt/mcrypt.c:1.45.2.3 --- php4/ext/mcrypt/

[PHP-CVS] cvs: php4 /ext/mcrypt mcrypt.c

2001-04-18 Thread Derick Rethans
derick Wed Apr 18 15:14:07 2001 EDT Modified files: /php4/ext/mcryptmcrypt.c Log: - Fixed some more problems with keys being chopped off (fix for bug #8839) Index: php4/ext/mcrypt/mcrypt.c diff -u php4/ext/mcrypt/mcrypt.c:1.48 php4/ext/mcrypt/mcrypt.c:1

RE: [PHP] Password Generator?

2001-04-18 Thread Nathan Cassano
Random Pronounceable Password Generator This function generates random pronounceable passwords. (ie jachudru, cupheki) http://www.zend.com/codex.php?id=215&single=1 -Original Message- From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 1:20 PM To: PHP-Gene

Re: [PHP] where to get info on developing web e-mail

2001-04-18 Thread Plutarck
Check out PHPost at webgadgets.com for some non-IMAP email tips. -- Plutarck Should be working on something... ...but forgot what it was. "Henrik Hansen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > "Szeto" <[EMAIL PROTECTED]> wrote: > > > Hello, > > >

Re: [PHP] stripslashes() equivalent when magic_quotes_sybase = on?

2001-04-18 Thread Rasmus Lerdorf
stripslashes() sees the magic_quotes_sybase setting and behaves accordingly. -Rasmus On Wed, 18 Apr 2001, Johnson, Kirk wrote: > With magic_quotes_sybase = on, a single quote in Get/Post/Cookie data gets > escaped with another single quote. Is there a function analagous to > stripslashes that w

Re: [PHP] regex and mysql - looking for opinions.

2001-04-18 Thread Plutarck
I use a special function just for reforming input, but they use the following bits with PCRE: $replace_wordwhite = '/[^\w\s]/'; $replace_word = '/\W/'; $replace_num = '/\D/'; $replace_email = '/[^\w\-\.@]/'; Works pretty well and it's quite useful for killing useless input without returning

Re: [PHP] how to scale down image using ImageMagick?

2001-04-18 Thread Morgan Curley
according to the docs use -geometry 175x175> picture.jpeg man mogrify: -geometry x{+-}{+-}{%}{!}{<}{>} preferred width and height of the image. See X(1) for details about the geometry specification. By default, the width and height are maximum values. That is,

Re: [PHP] Password Generator?

2001-04-18 Thread Plutarck
I believe there is an article on phpbuilder.com on "pronouncable passwords", which is probably what you'll want to actually do. Using real words would just be way too resource intensive. I'd give you the direct link to the article, but it seems my internet connection only works for NNTP and ftp d

Re: [PHP] Graphic process within PHP

2001-04-18 Thread Matt McClanahan
On Wed, Apr 18, 2001 at 02:37:00PM -, SED wrote: > Hi, > > Recently I noticed e-mails on this list about Imlib2 and GD2 extensions > which I was not aware of. So I started to wander if there are more > extensions working with PHP which allows graphic process (the only one I > knew was GD). I

Re: [PHP] XML - simple get data from elements

2001-04-18 Thread Joe Stump
I wrote an article for PHPBuilder.com - I would start there - I made it as easy as possible. --Joe On Wed, Apr 18, 2001 at 04:58:28PM -0400, Mark Bean wrote: > I have a valid XML file that all I want to do is assign to variables the > data in the elements and . I know nothing about XML and

Re: [PHP] Finding the records that are NOT linked

2001-04-18 Thread Joe Stump
On your join instead of doing ID=ID do ID!=ID --Joe On Wed, Apr 18, 2001 at 09:55:05PM +0100, Simon Kimber wrote: > Hi all, > > I have written a PHP/MySQL "top-sites" program. It has two tables, > link_sites, which contains the details of all the sites signed up > (ID,url,title,description) a

Re: [PHP] Characters counting

2001-04-18 Thread Joe Stump
look into the substr() function in PHP --Joe On Tue, Apr 18, 2000 at 09:23:39PM +0200, Jorn van Eck wrote: > Hi there, > > Does someone know how to display for example150 characters from a $ set by > MySQL? > -- > Jorn van Eck > Student Information Engineering > Almere > Tel: +31 614430902 > E-

Re: [PHP] Regular Expression

2001-04-18 Thread Martín Marqués
On Jue 19 Abr 2001 00:23, Andrew Braund wrote: > LinuxSA http://www.linuxsa.org.au/ meeting a couple of days ago was > on regex, some notes are at; > http://www.fornax.net/regex2/ > or part 1 at; > http://www.fornax.net/regex/ Isn't there a place with printable versions? Saludos... :-) -- El

RE: [PHP] Regular Expression

2001-04-18 Thread Andrew Braund
LinuxSA http://www.linuxsa.org.au/ meeting a couple of days ago was on regex, some notes are at; http://www.fornax.net/regex2/ or part 1 at; http://www.fornax.net/regex/ HTH Andrew Braund > -Original Message- > From: Jeroen Geusebroek [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 19 Apri

Re: [PHP] Password Generator?

2001-04-18 Thread David VanHorn
At 02:20 PM 4/18/01 -0600, Ashley M. Kirchner wrote: > Is there an easy way to generate generic passwords based on >(combined) dictionary words? (ej: take two different words and put them >together) Would be huge, and vulnerable to dictionary attack (of course) You'd have to have a file con

[PHP] stripslashes() equivalent when magic_quotes_sybase = on?

2001-04-18 Thread Johnson, Kirk
With magic_quotes_sybase = on, a single quote in Get/Post/Cookie data gets escaped with another single quote. Is there a function analagous to stripslashes that will strip off the escaping quote? TIA Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE

Re: [PHP] PHP Enabled Web Hosts

2001-04-18 Thread Philip Olson
Some places to look : General web hosts : http://hosts.php.net/ Free web hosts: http://www.faqts.com/knowledge-base/view.phtml/aid/4058/fid/27 Other discussions : http://marc.theaimsgroup.com/?l=php-general&s=web+host Regards, Philip On Wed, 18 Apr 2001, Corin Rathbone wrote: > Hi

Re: [PHP] PHP and Double?

2001-04-18 Thread Larry Hotchkiss
There are prolly a few ways to do it, using split() may be easiest. Jason Caldwell wrote: > > how can i separate the digits in a Double number? > > for example: > > if i have 3.2 i would like to separate the digits into 3 and 2 and assign > each to its own variable, like so > > numb1

Re: [PHP] PHP and Double?

2001-04-18 Thread Augusto Cesar Castoldi
Take a look here: http://www.php.net/manual/en/ref.math.php regards, Augusto On Wed, 18 Apr 2001, Jason Caldwell wrote: > how can i separate the digits in a Double number? > > for example: > > if i have 3.2 i would like to separate the digits into 3 and 2 and assign > each to its own variab

[PHP] XML - simple get data from elements

2001-04-18 Thread Mark Bean
I have a valid XML file that all I want to do is assign to variables the data in the elements and . I know nothing about XML and am not a programmer. Are there any good tutorials out there to do something as simple as what I'm looking for? Will expat do what I'm looking for? I think that

Re: [PHP] Regular Expression

2001-04-18 Thread Jeroen Geusebroek
>oops. The expression should read '/\[([^\]]+)\]/' Thanks all, i used this code and it works: preg_match("/\[(.+)\]/",$msg_array[$i],$segments); $title = trim($segments[1]); $description = ereg_replace("\[ $title \]", "", $msg_array[$i]); Does anyone know a good regex

Re: [PHP] PHP and Double?

2001-04-18 Thread Steve Werby
"Jason Caldwell" <[EMAIL PROTECTED]> wrote: > how can i separate the digits in a Double number? > > for example: > > if i have 3.2 i would like to separate the digits into 3 and 2 and assign > each to its own variable, like so > > numb1 = 3 > numb2 = 2 Use explode() to explode on the "." and save

Re: [PHP] ACSII in PHP

2001-04-18 Thread Frank M. Kromann
You can use $temp = ord("A"); And you will then see that it's 65 end not 99 :-) - Frank > Is there any function in PHP that I could use to know the number of the > ASCII table of letter "A" for example? > > > something like: $tmp=function_name("A"); > > $tmp==99 ("A" is 99 in ASCII table).

Re: [PHP] php + apache.src.rpm

2001-04-18 Thread Martín Marqués
Have a look at this: http://www.jasons.org/modssl.php You might find it usefull. Saludos... :-) On Mié 18 Abr 2001 23:18, Robert Mena wrote: > Hi, I've donwloaded apache_1.3.12.src.rpm from > RedHat's site and I am trying to build it. > > Unfortunately it keeps giving me error > > + adding sel

Re: [PHP] ACSII in PHP

2001-04-18 Thread Steve Werby
"Augusto Cesar Castoldi" <[EMAIL PROTECTED]> wrote: > Is there any function in PHP that I could use to know the number of the > ASCII table of letter "A" for example? It's chr() or ord(). I don't recall which (one is the inverse of the other) so check the online manual. -- Steve Werby President

Re: [PHP] Finding the records that are NOT linked

2001-04-18 Thread Steve Werby
"Simon Kimber" <[EMAIL PROTECTED]> wrote: > I have written a PHP/MySQL "top-sites" program. It has two tables, > link_sites, which contains the details of all the sites signed up > (ID,url,title,description) and link_stats in which a new record is inserted > every time a visitor links in from one

[PHP] PHP and Double?

2001-04-18 Thread Jason Caldwell
how can i separate the digits in a Double number? for example: if i have 3.2 i would like to separate the digits into 3 and 2 and assign each to its own variable, like so numb1 = 3 numb2 = 2 thanks. jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PRO

[PHP] ACSII in PHP

2001-04-18 Thread Augusto Cesar Castoldi
Is there any function in PHP that I could use to know the number of the ASCII table of letter "A" for example? something like: $tmp=function_name("A"); $tmp==99 ("A" is 99 in ASCII table). regards, Augusto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PRO

[PHP] Creating UTF-8 characters from scratch

2001-04-18 Thread Dennis Gearon
I want to try inserting a UTF-8 string into a varchar field. I'd like to try something like cyrillic, which I know uses multiple byte characters mixed with single byte characters. Anyone know how to create binary values as an argument to insert into a field? -- PHP General Mailing List (http://w

[PHP] how to scale down image using ImageMagick?

2001-04-18 Thread Noah Spitzer-Williams
I have a bunch of pictures all in ranging filesizes and dimensions. I want to resize the ones that over 175 pixels wide to a 175 pixel wide picture however i want the height to scale down (ie. i dont want a really thin picture, i just want it to be what it would be if it were resized). i have this

[PHP] PHP Enabled Web Hosts

2001-04-18 Thread Corin Rathbone
Hi all, I am a student and with little money, I am trying to find a low-cost or preferably free web host with PHP and if possible MySQL. Any suggestions would be most helpful. Regards, Corin Rathbone [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

[PHP] Password Generator?

2001-04-18 Thread Ashley M. Kirchner
Is there an easy way to generate generic passwords based on (combined) dictionary words? (ej: take two different words and put them together) AMK4 -- W | | I haven't lost my mind; it's backed up on tape somewhere. |__

[PHP] php + apache.src.rpm

2001-04-18 Thread Robert Mena
Hi, I've donwloaded apache_1.3.12.src.rpm from RedHat's site and I am trying to build it. Unfortunately it keeps giving me error + adding selected modules o rewrite_module uses ConfigStart/End disabling DBM support for mod_rewrite (perhaps you need to add -ldbm, -lndbm or -lgdbm

[PHP] Finding the records that are NOT linked

2001-04-18 Thread Simon Kimber
Hi all, I have written a PHP/MySQL "top-sites" program. It has two tables, link_sites, which contains the details of all the sites signed up (ID,url,title,description) and link_stats in which a new record is inserted every time a visitor links in from one of those sites (ID,siteID,clientIP,dates

[PHP] regex and mysql - looking for opinions.

2001-04-18 Thread Larry Hotchkiss
Im working on a site utilizing apaches/mysqp and of course php. Im working through the basic framwork creating forms to collect user input and do various searches etc. I was curious as to what most people find the best way keep thier mysql queries from getting messed up by user entered dat

Re: [PHP] Characters counting

2001-04-18 Thread Johannes Janson
Hi, to get the first 150 chars of a mysql filed do this: SELECT LEFT(YourField, '150') FROM YourTable WHERE YourCondition=true; This does it in MySQL and for PHP follow the mentioned substr-method. cheers Johannes ""Jorn van Eck"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 9bkpd8$r77$[EMAIL PRO

Re: [PHP] where to get info on developing web e-mail

2001-04-18 Thread Henrik Hansen
"Szeto" <[EMAIL PROTECTED]> wrote: > Hello, > > * i wondering where to get ifo on developing web e-mail > * what standard should i use to deveping to software look at the imap functions in the php manual they are what you need to develop what you need. -- Henrik Hansen -- PHP General M

RE: [PHP] Characters counting

2001-04-18 Thread Jack Dempsey
What exactly do you need? If you have a variable that contains a string, you can do echo substr($var,0,150) to print the first 150 characters... or, are you trying to limit the amount in the mysql query? I believe you have to get the whole result then limit it in php, but others might know better

[PHP] Characters counting

2001-04-18 Thread Jorn van Eck
Hi there, Does someone know how to display for example150 characters from a $ set by MySQL? -- Jorn van Eck Student Information Engineering Almere Tel: +31 614430902 E-mail: [EMAIL PROTECTED] Website: http://www.iie.nl/~eck13 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] New problem with PHP "odbc_exec".

2001-04-18 Thread Scott Fletcher
The table in the SQL have primary key already and I get this error message. So, I'll try your recommendation to disable part of the PHP script and recompile. Sometime it is better to move on than to struggle over it because no one seem to have the answer to the problem. Thanks, Scott ""Andrew

php-general Digest 18 Apr 2001 19:05:01 -0000 Issue 635

2001-04-18 Thread php-general-digest-help
php-general Digest 18 Apr 2001 19:05:01 - Issue 635 Topics (messages 49133 through 49246): mySQL - select column 49133 by: Julian Wood Re: Is it possible to parse a variable by character? 49134 by: CC Zona 49143 by: Sean Coyle 49144 by: Sean Coyle 49

RE: [PHP] New problem with PHP "odbc_exec".

2001-04-18 Thread Andrew Hill
Scott, This error indicates that there is no index/primary key on a table that the result set is coming from - and PHP has told the driver read the result set into a into a cursor (which requires a primary key). Adding a primary key to the table will fix this, or passing a different cursor type

[PHP] Reynolds & Reynolds - php use

2001-04-18 Thread Jerry Lake
Has anyone here ever had to work with a Reynolds and Reynolds system ? they make auto dealer management software. It is a closed system, but apparently sites like autotrader.com access them from various dealers to extract inventory data...autotrader appears to use jsp, so I assume that I can use p

[PHP] array_count_values

2001-04-18 Thread Matthew Luchak
can someone give a quick hint as to why this does not work: $array = split ("\n", $contents); $stuff = array_count_values ($array); echo $stuff[nuts]; or even: $array = array (split ("\n", $contents)); $stuff = array_count_values ($array); echo $stuff[nuts]; thnx... matthew -- PHP

Re: [PHP] mySQL Question....

2001-04-18 Thread Toby Miller
How about actually using distinct? SELECT DISTINCT(email_addr) FROM myTable WHERE x = 1 --Toby - Original Message - From: "Jason Caldwell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 18, 2001 1:47 AM Subject: [PHP] mySQL Question > if i perform a SELECT que

Re: [PHP] SSL SSL SSL SSL -- READ THIS!!!!!!

2001-04-18 Thread Toby Miller
- Original Message - From: "phpman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 17, 2001 4:55 PM Subject: [PHP] SSL SSL SSL SSL -- READ THIS!! > How do I establish an SSL socket connection with PHP? > I have PHP compiled in an Apache Mod_SSL server. Do I need to

[PHP] a different type of mail problem

2001-04-18 Thread Joe Sheble (Wizaerd)
I am using the following function to send out emails via PHP: function SendEMail( $to, $subject, $body ) { $additionalHeaders = "MIME-Version: 1.0\n"; $additionalHeaders .= "Content-type: text/html; charset=\"iso-8859-1\"\n"; $additionalHeaders .= "Content-Transfe

[PHP] PUT Method using PHP4/Apache ...

2001-04-18 Thread The Hermit Hacker
I've read through: http://php.net/manual/pt_BR/features.file-upload.put-method.php I added: Script PUT /put.php to my apache config file ... everything as far as Netscape Composer is concerned looks right, but it isn't working. I changed my put.php script so that it output all ENV variables

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Yasuo Ohgaki
I got reply from core developer implementing new syntax. The implementation of syntax $var{index} is not finished yet. So PHP programmers are NOT supposed to use it yet. If you are curious, take a look at php-lang list archive. Again $var{index} is NOT supposed to used. (yet) -- Yasuo Ohgaki "

Re: [PHP] PHP Polls in popup window

2001-04-18 Thread Seung-woo Nam
Hi: You can use JavaScript for a popup window. Look up for window.open() function. You can pass the result to that output from PHP script. Seung-woo Nam Mohamedou wrote: > > Hello all, > > I have integrated a simple text based poll script in my homepage. > But I want get the survey results in

[PHP] PHP Polls in popup window

2001-04-18 Thread Mohamedou
Hello all, I have integrated a simple text based poll script in my homepage. But I want get the survey results in a popup window, if somebody votes. How can I make that? Moh _ Do You Yahoo!? Get your free @yahoo.com address at http://

  1   2   3   >