Re: [PHP] Does PHP work with Sybase ASA?

2001-09-07 Thread Rasmus Lerdorf
Perhaps people expected you to check the docs or the code yourself. If you go to php.net/sybase you will find the functions you need. If you read the user comments on that page you will even find urls to tutorials/faqs on how to install and configure things for PHP to talk to Sybase ASA. eg.

[PHP] Newbie Question.. (MySQL/PHP)

2001-09-07 Thread nate
Hey guys, I have a mysql database of articles, and what i'd like to do is make 1 page that shows a brief sneak peak of each article, so what I would do is, show the first 50 or so words of each article and then add an elipses at the end. I'm sure it can be done but I wouldn't have a clue

[PHP] Re: PHP4 Session Handling

2001-09-07 Thread Richard Lynch
1) Added this line into the .htaccess file: php_value session.save_handler user I would have expected this to work, since it happens before PHP gets involved... 2) session_module_name(user); 3) ini_set(session.save_handler, user); Speculation: These would not work *if* the php.ini had

[PHP] Re: Executing a CGI script from a PHP script

2001-09-07 Thread Richard Lynch
Try using virtual instead of exec, I think... Otherwise, I'm guessing you want to walk through all of $HTTP_ENV_VARS and build up a command line with each one being set followed by a ; and then your actual CGI to run. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL

[PHP] Re: Assigning PHP Session ID's as cookie with a time set to it?

2001-09-07 Thread Richard Lynch
Read php.ini Also read http://php.net/session -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message -

Re: [PHP] Newbie Question.. (MySQL/PHP)

2001-09-07 Thread David Robley
On Fri, 7 Sep 2001 16:49, [EMAIL PROTECTED] wrote: Hey guys, I have a mysql database of articles, and what i'd like to do is make 1 page that shows a brief sneak peak of each article, so what I would do is, show the first 50 or so words of each article and then add an elipses at the end.

RE: [PHP] Newbie Question.. (MySQL/PHP)

2001-09-07 Thread Jack Dempsey
sure, am actually doing this right now ;-) It depends on how fancy you want to get...if you don't mind slicing off in the middle of a word, you can just do this: $preview_text = substr($text,0,200) . '. . .'; //gets the first 200 characters and adds an ellipsis afterwards if you want to make

[PHP] Re: Regular Expressions - A relatively simple search...

2001-09-07 Thread _lallous
? $str = /home/mike/test.txt; if (preg_match(/[^\.]+$/, $str, $matches)) $ext = $matches[0]; else $ext = no extension; echo extension=$ext; ? Mike Gifford [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I'm trying to replace a couple of lines of

[PHP] Re: PHP regexp powerful?

2001-09-07 Thread _lallous
Are they powerful? Well they are compatible with PERL's Regular expressions...you should use the 'preg_' functions... Check the manual anyway...: http://www.php.net/manual/en/ref.pcre.php Jeff Lewis [EMAIL PROTECTED] wrote in message

RE: [PHP] Grabbing dynamic pages

2001-09-07 Thread Joseph Blythe
thanks again all, The data will be the whole web page and I have to extract out the current share pricing etc, probaly grab thier sexy chart as well (was told you can take what you want as long as you use thier guidlines which they provide apon contact) I suppose I could use imlib or gd to

Re: [PHP] UD4 PhAkt Users?

2001-09-07 Thread John Monfort
PHAKT will reduce your development time, but you'll still need to customize the code. That is, unless your doing something relatively simple. You're best bet is to learn the code. That's invaluable. -john __John Monfort_ _+---+_

[PHP] ldap

2001-09-07 Thread Alain ROMERO
Version php 4.0.6 Win32 I get : Unable to load './extensions/php_ldap.dll'. Witch dlls must be copied in /winnt/system32 (dlls are all in /php/dlls ?). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] For the RegExps gurus!

2001-09-07 Thread * RzE:
Original message From: ~~~i LeoNid ~~ [EMAIL PROTECTED] Date: Thu, Sep 06, 2001 at 05:30:44PM + Message-ID: 3b97b222.78196206@localhost Subject: Re: [PHP] For the RegExps gurus! You can keep improving:) or you can use piece of my working (except for $Harlem, to which i am not going:) code

Re: [PHP] Netscape Cookies

2001-09-07 Thread Tom Carter
then it should probably be SetCookie(bilderanzeige,\$bilderanzeige\,time()+3600*24*30,/,,0); as a general rule, only numerics can get away without being surrounded in quotes - Original Message - From: Jochen Kaechelin [EMAIL PROTECTED] To: PHP General List [EMAIL PROTECTED] Sent: Friday,

Re: [PHP] Sending Broadcast Email - will a large loop cause a crash?

2001-09-07 Thread Tom Carter
Also remember PHP has a maximum execution time (normally 30 seconds) so you will need to overwrite when running the script. - Original Message - From: Kath [EMAIL PROTECTED] To: Fotwun [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, September 07, 2001 12:39 AM Subject: Re: [PHP]

[PHP] How to use environment variables in php.ini?

2001-09-07 Thread Yaroukh
Hi there Is there any way to use in php.ini previously set environment variables? I mean when I set doc_root to C:/Documents and Settings/zaruba/My Documents/My Webs and several lines below I need to set session_save_path to C:/Documents and Settings/zaruba/My Documents/My Webs/.sessions is it

[PHP] ordering a query

2001-09-07 Thread nate
Me again :) I have a query that orders by id#, the problem is I have 17 items and I get an output like so: 1,10,11,12,13,14,15,16,17,2,3,4,5,6,7,8,9 So it thinks 1 and 10 are the same, and it thinks 11 is less than 2 and so on and so forth. Remedy please? (I'd rather not rename the items 01,

Re: [PHP] ordering a query

2001-09-07 Thread George Pitcher
It is simply ordering them as type data rather than as type integer. Change your data type in the db. George, a newbie - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 07, 2001 9:16 AM Subject: [PHP] ordering a query Me again :) I have a query

Re: [PHP] ordering a query

2001-09-07 Thread Tom Carter
Just to expand slightly on this answer... think back to days at school, you order works as so aardvark, abbey, accoustic, ie you compare rightmost letters, if they match then compare the next letter along until you find a difference... this is what your sort is doing. It doesn't think 1 and 10

[PHP] warning on Installation of PHP on windows 98

2001-09-07 Thread Balaji Ankem
Hi, while installing php on my windows 98 machine i got the following warning this came when i execute this C:\phpphp.exe -i Unable to load dynamic library 'c:\php/mysql.dll'-one of the library files needed to run this application can not be found (that error is java script dialog warning).

[PHP] Session variables

2001-09-07 Thread Ing. Lalka Peter
Hi! I want to know how many users are currently online at my site. How can I get this info from php? Can I? Thank you for answer. Barno -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] Session variables - Users online

2001-09-07 Thread Aniceto Lopez
put this code in the home web page ?php $timeoutsecs = 900; $timestamp = time(); $caduc = $timestamp+$timeoutsecs; $conexion = @mysql_connect(localhost, user, password) or die (No db CONEXION); mysql_select_db (yourdb, $conexion); mysql_query(INSERT INTO uonline SET . caduc='$caduc', .

[PHP] Re: configuring curl with php

2001-09-07 Thread Bob
Hey Richard, you are right but I got someone that suggested an easier way to do it. tar xvzf php-4.0.5.tar.gz cd php-4.0.5 # need to make sure -lssl is before -lcrypto in configure for curl to work correctly sed 's/-lcrypto/-lssl -lcrypto/g' configure c2 rm -f configure cp c2 configure chmod

[PHP] use of mysql_free_result and unset

2001-09-07 Thread Tobias Strauß
When do I have to use mysql_free_result($res). Is it good to use it with every query or only if the result is very big (what's the size of the result I shoud use mysql_free_result?). What's about the use of unset($var). Is this good to save RAM to make my script run faster? Do I have to do this

[PHP] how to pass authentication info to SMTP server

2001-09-07 Thread Balaji Ankem
Hi friends, I would like to implement sending an e-mail through SMTP server. Here my SMTP server needs authentication. How to pass the username and password to SMTP server?? Thanks and regards -Balaji

Re: [PHP] Does PHP work with Sybase ASA?

2001-09-07 Thread Krzysztof Kocjan
I suppose You have ASA 6.0 or later version installed on Your machine with Linux. If it is true, then You can install Open Client for ASE 11.0.3 (it is free) and You can communicate via Open Client to ASA. It works only with ASA 6.0 and higher. Then You need to compile PHP with Sybase Open

[PHP] Save As doesnt always work

2001-09-07 Thread Jens Kisters
Hello all, i tried to make the browser save a file by setting headers In this case the Browser (IE 5.5 W2K) just displays the content, http request T4 09/07 11:03:17 Server Data: GET http://iwonttell/ T4 09/07 11:03:17 Server ausgabe/auswertung.php HTTP/1.0{0D}{0A}Accept: T4 09/07

[PHP] extending array

2001-09-07 Thread Kristofer Thorssell
Hi, I want to extend an existing array. the array is $shoplist[$pid] = $units; and i want to have $ price in it too. How do I do? /Kristofer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] YOUR OFFSHORE MONEY

2001-09-07 Thread offshore investments
Hello there Our company is located in the offshores, we specialise in helping our clients to setup offshore Banks, IBC's, asset protection, Bank accounts and other offshore services. We can offer you a Class I bank located in the Caribbean with a holding Swiss Trust Company with an

[PHP] PHP 4.0.6 + GD

2001-09-07 Thread Jean-Arthur Silve
Hi ! I used PHP 4.0.3pl1 with gd lib (1.6) and used the PNG functions. Everything was ok. I have changed to PHP 4.0.6 , i installed it with gd support, but now PHP says that there are no support for PNG files... In phpinfo(), GD support is well enaled. I search the mailing lists in the

RE: [PHP] extending array

2001-09-07 Thread Niklas Lampén
If you wish $shoplist[$pid] have $price in it with $units, you have to make $shoplist a multidimensional array which is simpple: ? $shoplist = array(); $shoplist[$pid][$units] = 1; $shoplist[$pid][$price] = 100; print_r($shoplist); ? Try that out, it should give you the idea. You can make it

[PHP] Re: Regular Expressions - A relatively simple search...

2001-09-07 Thread Robin Vickery
[EMAIL PROTECTED] (Mike Gifford) writes: Hello, I'm trying to replace a couple of lines of code: $dotpos = 1 - (strlen($userfile_name) - strpos($userfile_name, '.')); $extension = substr($userfile_name, $dotpos); with a simpler regular expression: $extension =

[PHP] Warning - how serious, how to eliminate

2001-09-07 Thread Bart Verbeek
Hello people, I've got a question regarding the follwing scripts that gives an error. When I execute the scripts below I get an warning-message: - Warning: Division by zero in ./scripts/fasen_include.php on line 47... This is the script I use. When the vars are set the value has to be added to

[PHP] How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe
I need to solve the following problem, but I can't figure out how: Let's assume we have a server called www.test.com When a user access http://www.test.com/path/username, I want a php script to execute, as if the url entered was http://www.test.com/path.php?value=username. I'm running PHP 4.0.6

Re: [PHP] Warning - how serious, how to eliminate

2001-09-07 Thread Tom Carter
ichange that line to if($weight[$i]) $percentage[$i] = $totaal[$i] / $weight[$i]; All tho this does mean that if $weight[$i] is zero then $percentage will be as well HTH, Tom - Original Message - From: Bart Verbeek [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Friday,

Re: [PHP] How to pass variables to php functions from url's?

2001-09-07 Thread Krzysztof Kocjan
Try method=GET in Your form to submit if You want to url be like url?var=value. Or php function header( 'Location: ' .rul . 'var=value' ); That's all You need I hope. Sorry but Your question is not good explained. Krzysztof Kocjan Martin Lindhe wrote: I need to solve the following problem,

SV: [PHP] How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe
Try method=GET in Your form to submit if You want to url be like url?var=value. Or php function header( 'Location: ' .rul . 'var=value' ); No, i'm not using a form, and i cant execute any php scripts whatsoever if there are no php script specified to execute. That's all You need I hope.

[PHP] URGENT: imap_fetchbody CRLF trouble

2001-09-07 Thread Daniel Reichenbach
Hy there, I've got serious problems with the imap_fetchbody function and need help urgent. When using $atty = imap_fetchbody($mbox, $i, $b, FT_INTERNAL); to fetch a base64 encoded attachment, imap_fetchbody replaces CRLF although it shouldn't. I did RTFM and it says: --- snap --- FT_INTERNAL -

[PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen
Hi Martin, Take a look at the Apache mod_rewrite docs. http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html I added this to my httpd.conf: ---snip--- RewriteEngine on RewriteCond %{HTTP_HOST}^nu\.osd\.dk$ RewriteRule ^.*$http://www.osd.dk/main.php?m=nu [R=301,L]

[PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen
Note: The example I wrote is only 3 lines, each starting with RewriteX! Beware of unintended line breaks caused by newsposting. :) -- Tais M. Hansen Tais M. Hansen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ---snip--- RewriteEngine on RewriteCond

RE: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe
Hi Martin, Take a look at the Apache mod_rewrite docs. http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html Thanks alot! I made a similar solution which works RewriteEngine on RewriteRule ^/x/(.*) http://www.server2.com/users/$1; takes www.server1.com/x/martin to

Re: [PHP] Releasing Your Code

2001-09-07 Thread Christian Reiniger
On Thursday 06 September 2001 23:20, James wrote: 1) Have you released full or partial code to any of your projects? Yep. http://lgdc.sunsite.dk/ (http://lgdc.sunsite.dk/source/ for the code) 2) What kind of program was it (web mail, groupware, bulletin board, website template etc)?

[PHP] newbie ? :)

2001-09-07 Thread Caleb Carvalho
hello all, i am trying to install Loadrunner for in linux, am not sure where is my LD_LIBRARY_PATH linux rhat7.1 can some pls point me out many thanks, kind regards caleb _ Get your FREE download of MSN Explorer at

[PHP] session.auto_start = 1

2001-09-07 Thread Yaroukh
Hi there I have set session.auto_start to 1, but without Session_Start() the session handling doesn't work. But I think it definetely should - am I wrong? /:o) Or what else should I change in PHP.INI to make this work properly. Bye Yaroukh -- PHP General Mailing List

Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen
I think I remember doing it a while ago. But I think you need to use mod_alias instead. Take a look here: http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirect The Redirect/RedirectMatch/RedirectTemp might do it. -- Tais M. Hansen Martin Lindhe [EMAIL PROTECTED] wrote in message

RE: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe
I think I remember doing it a while ago. But I think you need to use mod_alias instead. Take a look here: http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirect The Redirect/RedirectMatch/RedirectTemp might do it. RedirectMatch permanent ^/x/(.*)

RE: [PHP] PHP 4.0.6 + GD

2001-09-07 Thread Jeff Lewis
As far as I can tell, it's a bug. I posted it on here and the only reply I got was from someone having the same problem. I logged it as a bug and then wasn't able to add more information as I hadn't set a password when I first entered the bug. Then I emailed trying to be able to change it and

Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread Robin Vickery
[EMAIL PROTECTED] (Martin Lindhe) writes: Hi Martin, Take a look at the Apache mod_rewrite docs. http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html Thanks alot! I made a similar solution which works RewriteEngine on RewriteRule ^/x/(.*)

RE: [PHP] PHP 4.0.6 + GD

2001-09-07 Thread speedboy
As far as I can tell, it's a bug. I posted it on here and the only reply I got was from someone having the same problem. I logged it as a bug and then wasn't able to add more information as I hadn't set a password when I first entered the bug. Then I emailed trying to be able to change it

RE: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe
useful link: http://www.apache.org/docs-2.0/misc/rewriteguide.html RewriteEngine on RewriteRule ^/x/(.*)http://www.server2.com/users/$1 [P] Hm, what does the [P] do? I played around a bit and figured that a [T] does the trick for me, thanks! /Martin -- PHP General Mailing List

Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen
I think if you use RedirectMatch temp ... it'll work... -tais Martin Lindhe [EMAIL PROTECTED] wrote in message 831D8A28AF18D5119EAA00E018C5B81C23BA11@MAIL1">news:831D8A28AF18D5119EAA00E018C5B81C23BA11@MAIL1... I think I remember doing it a while ago. But I think you need to use mod_alias

Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen
AFAIR it's [P]ermanent and [T]emporary... But I could be wrong!! -tais Martin Lindhe [EMAIL PROTECTED] wrote in message 831D8A28AF18D5119EAA00E018C5B81C23BA13@MAIL1">news:831D8A28AF18D5119EAA00E018C5B81C23BA13@MAIL1... useful link: http://www.apache.org/docs-2.0/misc/rewriteguide.html

Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen
I am wrong! ;) Tais M. Hansen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... AFAIR it's [P]ermanent and [T]emporary... But I could be wrong!! -tais -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] a bug???

2001-09-07 Thread hassan el forkani
hi, i'm recently observing a strange behaviour of php when using a combination of ob_start() and ignore_user_abort() in the same page, php hangs (after the script is executed) and is unable to create/write to /destroy sessions!! i'm observing this on my win98 machine with apache 1.20 and php

[PHP] gd-library

2001-09-07 Thread Gert Mellak
hi! How can I find out if gd-library is installed on my server and if not, how can I install it please email me if you want to help me. TIA, gert. email: [EMAIL PROTECTED] http://www.mellak.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] code troble

2001-09-07 Thread Nikola Veber
Hi I'm having trobles with this code. Can you take a look at it? Parse error: parse error in C:/XITAMI/webpages/index.php on line 34 is the error msg. thanx html head titleExample 2.01/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body ?php if (emty(provera))

Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen
This is what they mean: (from http://www.apache.org/docs-2.0/mod/mod_rewrite.html) *** 'proxy|P' (force proxy) This flag forces the substitution part to be internally forced as a proxy request and immediately (i.e., rewriting rule processing stops here) put through the proxy module.

Re: [PHP] How to pass variables to php functions from url's?

2001-09-07 Thread Doug Granzow
Let's assume we have a server called www.test.com When a user access http://www.test.com/path/username, I want a php script to execute, as if the url entered was http://www.test.com/path.php?value=username. I'm running PHP 4.0.6 on Apache 1.3.20. Step 1: Rename path.php to

Re: [PHP] PHP complains when using similar_text() as documented.

2001-09-07 Thread Jason Stechschulte
On Thu, Sep 06, 2001 at 11:04:09PM -0500, Peter Hutnick wrote: http://www.php.net/manual/en/function.similar-text.php states that the third argument should be a reference. PHP 4.0.6 complains Warning: Call-time pass-by-reference has been deprecated - argument passed by value; etc. But that

Re: [PHP] code troble

2001-09-07 Thread * RzE:
I just gave a very quick look... so maybe there are some things that I've overlooked. But I hope this solves your problem... html head titleExample 2.01/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body ?php if (emty(provera)) {pokazi();} I'd use $

Re: [PHP] code troble

2001-09-07 Thread * RzE:
Well... I've already found something I overlooked. You call emty() io empty(); see below... html head titleExample 2.01/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body ?php if (emty(provera)) {pokazi();} ^^ ^^

[PHP] Re: Problems with Sessions?

2001-09-07 Thread Doug Granzow
On the first page of a session, PHP attempts to set a PHPSESSID cookie. It won't get that cookie back until you reload the page or load another page, so it has no way of knowing on the first page whether or not the browser accepted the cookie. So, it adds the PHPSESSID string to all of your

Re: [PHP] code troble

2001-09-07 Thread _lallous
RZe soundex(emty) = soundex(empty) maybe someday parser will consider that ;) * RZe: [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Well... I've already found something I overlooked. You call emty() io empty(); see below... html head

[PHP] Re: mysql timestamp field

2001-09-07 Thread Doug Granzow
The timestamp data type is a special MySQL type that automatically updates whenever you add or update a row in a table. If you want timestamp to work when you add a row but not when you update a row, you need to write your update statements like this: UPDATE tbl_name SET vartochange=newvalue,

[PHP] Re: mysql_fetch_array

2001-09-07 Thread Doug Granzow
[EMAIL PROTECTED] wrote in message 001001c136af$7c649db0$[EMAIL PROTECTED]">news:001001c136af$7c649db0$[EMAIL PROTECTED]... Can someone tell me what i'm doing wrong here? while($myrowmysql_fetch_array($result2)) I would guess that you actually want that line to read:

[PHP] Re: code troble

2001-09-07 Thread Doug Granzow
You don't have a closing } for function obrada(). When the line number of the parse error is the last line of the file, I've found it is almost *always* due to a missing brace, paren, or quote somewhere in the file. Doug Granzow [EMAIL PROTECTED] Nikola Veber [EMAIL PROTECTED] wrote in message

[PHP] Don't Leave Any Tracks Behind...

2001-09-07 Thread john wild
FFA Posting Engine..This email address was used to post to our site ! Removal Instructions at the bottom of this page ! Don't Leave Any Tracks Behind... WARNING: Your Computer tracks all of your internet activity and all of the

Re: [PHP] code troble

2001-09-07 Thread Tom Carter
You also seem to be missing a closing }. please check all braces before posting to a list... - Original Message - From: Nikola Veber [EMAIL PROTECTED] To: php forum [EMAIL PROTECTED] Sent: Friday, September 07, 2001 1:29 PM Subject: [PHP] code troble Hi I'm having trobles with

[PHP] Suggesting a file name.

2001-09-07 Thread Brinkman, Theodore
I wrote a small script to generate an image file containing a version number for use in some web apps we are coding at work. The problem is, that with an up-to-date version of IE, the image shows up and can only be saved as a BMP. Older versions don't display it, but prompt for download and

RE: [PHP] PHP 4.0.6 + GD on Windows

2001-09-07 Thread ignacio . estrada
Hi speedboy, I see that you know the GD software and probably you have some good experience on that. What do you know about to compile PHP406+GD on windows? Greetings Atte. Ignacio Estrada F. Centro Nacional de Control de Energia Area de Control Occidental 025+6463, 025+6464, 025+6469 --

Re: [PHP] PHP complains when using similar_text() as documented.

2001-09-07 Thread Peter Hutnick
On Thu, Sep 06, 2001 at 11:04:09PM -0500, Peter Hutnick wrote: http://www.php.net/manual/en/function.similar-text.php states that the third argument should be a reference. PHP 4.0.6 complains Warning: Call-time pass-by-reference has been deprecated - argument passed by value; etc. But

[PHP] Re: Image manipulation

2001-09-07 Thread Geir Eivind Mork
Adam Plocher wrote: First of all, is there anyway I could have my script take a full size image and crop out a chunk of it to be used as a thumbnail - or just simply shrink the image down to be used as a thumbnail? ImageCopyResized, requires GD. Also, is there anyway to convert misc image

[PHP] Re: Suggesting a file name.

2001-09-07 Thread Franklin van Velthuizen
Theodore Brinkman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I wrote a small script to generate an image file containing a version number for use in some web apps we are coding at work. The problem is, that with an up-to-date version of IE, the image

[PHP] Re: how to pass authentication info to SMTP server

2001-09-07 Thread Franklin van Velthuizen
Balaji Ankem [EMAIL PROTECTED] wrote in message 01bc01c137e0$280b0f60$[EMAIL PROTECTED]">news:01bc01c137e0$280b0f60$[EMAIL PROTECTED]... Hi friends, I would like to implement sending an e-mail through SMTP server. Here my SMTP server needs authentication. How to pass the username and

Fw: [PHP] Re: Suggesting a file name.

2001-09-07 Thread Tom Carter
This really doesn't work well to say the least... I've had endless problems with it, and basically just using headers there is no great way to to it. The best solution I found is to use the mod_rewrite module in apache to map a url onto the script. - Original Message - From: Franklin

[PHP] GD

2001-09-07 Thread Joseph Bannon
I just installed PHP 4.0.6. 1) Do I have to down load GD (graphics library) and install it sperately or is it in 4.0.6 already? 2) Do I have to run anything special during configuration? 3) Do I have to completely re-install PHP and Apache? Thanks, Joseph -- PHP General Mailing List

[PHP] Re: newbie looking to sync access with MySQL

2001-09-07 Thread George Whiffen
Tom, Every man and his dog seems to have an Access database they want to view on the web. What I usually do for them is : a) Tell them to save the data from Access as a text file, comma separated. (It's a standard Access option). b) Give them a web page where they can upload it, (INPUT

Re: [PHP] php includes === Dreamweaver library items

2001-09-07 Thread George Whiffen
Robert, Well, I bet you're getting tired of this thread! So just a few closing remarks: a) Nested Loops - Yup, they're not so common that we can't just fudge about with a bit of embedded html. b) Luggage - I may yet agree with you about the advantages of two neatly packed bags! c) An awkward

Re: [PHP] Re: newbie looking to sync access with MySQL

2001-09-07 Thread Tom Carter
Thanks for that helpful email george, it's something I've been looking at as well. In a situation I'm tackling now I've rewritten the core part of the access such that it is dependant upon data recieved from the server, rather than the server being dependant upon data from access. So far it

Re: [PHP] GD

2001-09-07 Thread Sebastian Wenleder
At 10:06 Uhr -0500 07.09.2001, Joseph Bannon wrote: I just installed PHP 4.0.6. 1) Do I have to down load GD (graphics library) and install it sperately or is it in 4.0.6 already? 2) Do I have to run anything special during configuration? 3) Do I have to completely re-install PHP and Apache?

[PHP] C-style parameterized macros

2001-09-07 Thread Neil Zanella
Hello, I have noticed that PHP can be used to define constants but not parametrized macros, a feature is is currently lacking. It is possible to use arrays instead with the only disadvantage that array values can be reassigned. I guess this is not a real concern. Does anyone know if

[PHP] How do I find out what version of GD I'm running?

2001-09-07 Thread Seb Frost
with phpinfo it just says GD 1.6 or above. This is on a webhoster. How do I find out what version they're actually running? I tried asking but they're useless... - seb -Original Message- From: Sebastian Wenleder [mailto:[EMAIL PROTECTED]] Sent: 07 September 2001 16:36 To: Joseph

[PHP] clear contents?

2001-09-07 Thread Jeremy Morano
Hi everone... I'm having a little problem. The code below pops up a password dialog box where the user types in a username and a password to be able to proceed. However, if the user does not close the browser and goes back to the link, which they pops up the diolog box again and they don't have

RE: [PHP] GD

2001-09-07 Thread Joseph Bannon
What is FreeType? J -Original Message- From: Sebastian Wenleder [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 10:36 AM To: Joseph Bannon; PHP (E-mail) Subject: Re: [PHP] GD At 10:06 Uhr -0500 07.09.2001, Joseph Bannon wrote: I just installed PHP 4.0.6. 1) Do I have to

[PHP] urlencode

2001-09-07 Thread Alejandro Molina
Hi, I need to know wich is the best way to send variables through an URL,that if the variables are of the string type, and what if the variable has spaces like $string='this is a test'. I have read about the use of urlencode(), but I have a strange behaviour using this function, sometimes it work

RE: [PHP] How do I find out what version of GD I'm running?

2001-09-07 Thread SED
Run this function: phpinfo ([int what]) Check the manual for further details. Regards, Sumarlidi Einar Dadason SED - Graphic Design -- Phone: (+354) 4615501 Mobile: (+354) 8960376 Fax: (+354) 4615503 E-mail: [EMAIL

[PHP] ereg_replace - How do I stop it being greedy?

2001-09-07 Thread George Whiffen
Hi, I've got a problem with regular expression syntax with ereg_replace: ereg_replace(':start:(.*):end:','this is \\1',':start: first :end: middle :start: last :end:'); returns - this is first :end: middle :start: last but I want - this is first middle this is last The problem seems

[PHP] network connections

2001-09-07 Thread J.R. Lillard
i've got a command-line php script that i've been using to deliver large amounts of e-mail. originally it relied on mail() to deliver the messages but i could easily overload sendmail and bring the box (redhat 7.1) to a crawl. so i am now using the various network functions to speak smtp

RE: [PHP] ereg_replace - How do I stop it being greedy?

2001-09-07 Thread Jack Dempsey
look into the s modifier...it makes a dot match a newline as well, where normally it wouldn't jack -Original Message- From: George Whiffen [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 1:09 PM To: [EMAIL PROTECTED] Subject: [PHP] ereg_replace - How do I stop it being

[PHP] beginner code help

2001-09-07 Thread Nikola Veber
Hi ! Can anyone tell me why this line returns the parse error if (strstr($name, firstname) or strstr($ime, lastname)){ } With this line I'd like to determine if string $name , which contains both first and last name, has earlier defined first and last name, with no difference of the

[PHP] ImageGIF

2001-09-07 Thread Joseph Bannon
ImageGif: No GIF support in this PHP build in counter.php I get this error message when I try to run this code... Header(Content-Type: image/gif); $im = ImageCreate(500, 75); $red = ImageColorAllocate($im, 255, 0, 0); ImageFill($im, 100, 100, $red); ImageGIF($im); I installed GD. When I use

Re: [PHP] ImageGIF

2001-09-07 Thread Rasmus Lerdorf
ImageGif: No GIF support in this PHP build in counter.php I get this error message when I try to run this code... Header(Content-Type: image/gif); $im = ImageCreate(500, 75); $red = ImageColorAllocate($im, 255, 0, 0); ImageFill($im, 100, 100, $red); ImageGIF($im); I installed GD. When

Re: [PHP] beginner code help

2001-09-07 Thread Rasmus Lerdorf
There is no parse error in this code. Check the line before that one. And see stristr(), strcasecmp() and strtolower() for ways to do case independant comparisons. -Rasmus On Fri, 7 Sep 2001, Nikola Veber wrote: Hi ! Can anyone tell me why this line returns the parse error if

RE: [PHP] ImageGIF

2001-09-07 Thread Joseph Bannon
No, its not listed. What do I need to do? J -Original Message- phpinfo() also lists which image types your GD supports. Does it list GIF? Later versions do not have GIF support. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: [PHP] ImageGIF

2001-09-07 Thread Rasmus Lerdorf
Install a version of GD with GIF support. No, its not listed. What do I need to do? J -Original Message- phpinfo() also lists which image types your GD supports. Does it list GIF? Later versions do not have GIF support. -Rasmus -- PHP General Mailing List

Re: [PHP] ereg_replace - How do I stop it being greedy?

2001-09-07 Thread George Whiffen
Thanks Jack, preg_replace with an s modifier works a treat. I'm still curious as to how to get ereg_replace to work as well. Everything I read about regex/Posix Regular Expressions, seems to suggest that a ? should also work with ereg_replace! George Jack Dempsey wrote: look into the s

Re: [PHP] urlencode

2001-09-07 Thread Christopher CM Allen
for an example I send the variable $user='user 1', and in the url there appears user=user+1 (which I think is correct) but when I read the variable in the php page it displays user+1 (doesn´t it has to return to user '1'?). urlencodes counterpart is urldecode you need to decode each variable

[PHP] Re: clear contents?

2001-09-07 Thread George Whiffen
Jeremy, I don't think it's possible to do what you want, and I have tried finding a way. With your header you are requestion an http authentication which means the browser has to store the username and password and send them with EVERY page. Those are the rules. The only way to tell the

[PHP] Re: UD4 PhAkt Users?

2001-09-07 Thread Vicki
Thanks for your comments. The advice to just learn the code is both wise and simple. To complicate matters, I did download a trial version of Ultra Dev, installed PhAkt, found a JDBC driver that would work through my Mac to connect to a MySQL database, only to learn that the webhosting

[PHP] Re: clear contents? - Ignore previous response

2001-09-07 Thread George Whiffen
Oops!!! I didn't read your question fully. I think you CAN do what you want, if you can get some kind of cookie or and/or session variable to work to record when the user got to your page. You leave your logic as is, except that when you get a valid user you check to see if they have been on

  1   2   >