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

2001-04-19 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] Newbie Help!! Please Look!

2001-04-19 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

[PHP] image-resize/convert

2001-04-19 Thread De Bodemschat
Hello, I'm creating a bunch of photogalleries and wondering about the following: - Is it possible to convert an image or a whole dir with images (jpg) to 60% of the original imagesize using php to automate this task? I know the gd library is installed, but don't know if it supports jpg...

Re: [PHP] Tip for cookies

2001-04-19 Thread John Monfort
Is that still true when you include the file? Say you have a notfoo.php file, and include foo.php in it. You don't still have to pass the cookies, do you? __John Monfort_ _+---+_ P E P I E D E S I G N S

Re: [PHP] image-resize/convert

2001-04-19 Thread elias
Hi. here is my GD report from PHPInfo() gd GD Support enabled GD Version 1.6.2 or higher FreeType Support enabled FreeType Linkage with TTF library GIF Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled I think you don't have JPG enabled. As for resizing images yes,

Re: [PHP] array_count_values

2001-04-19 Thread elias
dunno, what doesn't work exactly but what if you try: $array = split ("\n", $contents); $stuff = array_count_values ($array); echo $stuff["nuts"]; -elias http://www.kameelah.org/eassoft ""Matthew Luchak"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... can

[PHP] IP address enconding

2001-04-19 Thread elias
Hello. How can i get the IP address of the user who's browsing my current script? how can i do it via JavaScript and PHP please. And if i got an IP address such 192.168.0.2 i believe it will be returned as a stringIs there is a function to encode it to an Integer and the decode it back to a

Re: [PHP] Characters counting

2001-04-19 Thread elias
You can use MySql's LEFT() or even substring() example: SELECT substring(address,1, 20) as _addr FROM tablename and you will have to look for field "_addr" in mysql results. -elias http://www.kameelah.org/eassoft ""Jorn van Eck"" [EMAIL PROTECTED] wrote in message 9bkpd8$r77$[EMAIL

Re: [PHP] Global variables

2001-04-19 Thread Ulf Wendel
Aaron Tuller schrieb: At 1:16 AM + 4/19/01, Philip Olson wrote: pre ?php var_dump($GLOBALS) ? /pre 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. print_r() does have that bug,

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

2001-04-19 Thread Adrian D'Costa
use wordpad. Adrian On Wed, 18 Apr 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? Thank for your help. Jason Murray wrote:

RE: [PHP] php equivalent for `command`

2001-04-19 Thread Greig, Euan
I was hoping to avoid concatenation to make my code more legible (less illegible?). I take it then that there is no equivalent for the use of ` in Unix. -Original Message- From: Plutarck [mailto:[EMAIL PROTECTED]] Sent: 18 April 2001 15:13 To: [EMAIL PROTECTED] Subject: Re: [PHP] php

[PHP] How many color can html recongize in Word.

2001-04-19 Thread Mark Lo \(3\)
Hi, I would like to know how many colors can html recongized in WORD such as orange.. red.. blue.. eg. font color="blue"Blue/font where can I find out the sources of how many color can html recrongized in word. and what wording should I use.. Thank you so much, Mark -- PHP

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

2001-04-19 Thread Geir Eivind Mork
On Thursday 19 April 2001 05:18, Tony Daniels wrote: 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 www.homesite.com www.ultraedit.com www.slickedit.com I assume this have uploadfeatures, atleast

Re: [PHP] Regular Expression

2001-04-19 Thread Christian Reiniger
On Wednesday 18 April 2001 22:55, you wrote: oops. The expression should read '/\[([^\]]+)\]/' Thanks all, i used this code and it works: preg_match("/\[(.+)\]/",$msg_array[$i],$segments); Note: This won't do what you expect, since the ".+" part will match as much as possible.

Re: [PHP] How many color can html recongize in Word.

2001-04-19 Thread Pavel Jartsev
"Mark Lo (3)" wrote: Hi, I would like to know how many colors can html recongized in WORD such as orange.. red.. blue.. eg. font color="blue"Blue/font where can I find out the sources of how many color can html recrongized in word. and what wording should I use.. Maybe

Re: [PHP] HTMLSpecialchars

2001-04-19 Thread Christian Reiniger
On Thursday 19 April 2001 07:11, you wrote: I'm having a problem with HTMLspecialchars and nl2br interfearing // Convert to lt;, etc $output = htmlentities($content); Little note on the side: htmlentities () is usually better then htmlspecialchars (). (1) It has a shorter name *g* and

Re: [PHP] IP address enconding

2001-04-19 Thread Knut H. Hassel Nielsen
On Thu, 19 Apr 2001, elias wrote: Hello. How can i get the IP address of the user who's browsing my current script? how can i do it via JavaScript and PHP please. $REMOTE_ADDR should do the trick (use 'phpinfo()' to see for yourself) And if i got an IP address such 192.168.0.2 i believe

[PHP] Problem with apache after installing PHP 4

2001-04-19 Thread Mohamedou
Dear all, I have apache 1.3.19-3fp and have newly installed PHP 4 using from rpms.arvin.dk My problems are: 1-Apache freezes and nothing goes untill I restart it 2-Webmin stops itself. Furthermore if I give the follow command it sems that no apache but I am sure apache is running look:

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

2001-04-19 Thread Yasuo Ohgaki
Does she use multiple browsers for your site? I think she is doing this. I'm not sure if session "files" handler is using flock() or not. It could be failing to open file, since file is locked. (I think it should lock file, since it's possible to get length 0 file w/o it) This problem will not

[PHP] Starting PHP script with crontab

2001-04-19 Thread Bertjan Schrader
I need tot start a PHP script at night with the crontab. I tried to do it with lynx (lynx http://www.domain.nl/test.php) as a commandline within the crontab. Lynx is starting but the PHP script is not working. Anyone an idea how to do it? OS: Redhat Linux 5.2 Apache PHP as a apache module

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

2001-04-19 Thread Steve Werby
"Noah Spitzer-Williams" [EMAIL PROTECTED] wrote: 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

Re: [PHP] IP address enconding

2001-04-19 Thread Jason Brooke
http://www.php.net/manual/en/function.ip2long.php No! I can encode IP address to an Integer: 192.168.0.1 consider as: a.b.c.d and now the formula goes: a shl 24 + b shl 16 + c shl 8 + d but i was looking for something ready made -elias http://www.kameelah.org/eassoft --

Re: [PHP] IP address enconding

2001-04-19 Thread elias
thanks for the hint! ""Jason Brooke"" [EMAIL PROTECTED] wrote in message 02a801c0c8bd$6f5528c0$[EMAIL PROTECTED]">news:02a801c0c8bd$6f5528c0$[EMAIL PROTECTED]... http://www.php.net/manual/en/function.ip2long.php No! I can encode IP address to an Integer: 192.168.0.1 consider as: a.b.c.d

[PHP] Cookies

2001-04-19 Thread Chi Wa Au
I use cookie to protect my web pages: setcookie("cookiename", "cookievalue", time()+1800); // set the expiry time to 30 minutes The time zone of my server is set to GMT+8. The server is running on a Redhat 7, apache and PHP 4 as a apache module. Now some users always get cookie expired

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

2001-04-19 Thread Plutarck
What to fix? Her ;) Seriously though, is it possible that she stopped browsing the site long enough for the session to expire and be cleaned up by the garbage handler, then she continued on the page with a PHPSESSID that no longer existed? In that case the error would occur only once, as a

Re: [PHP] Site Sessions: Online/Offline - help?

2001-04-19 Thread Richard
Greetings. I am having some problems with the code itself! I have done like so, that whenever peopel wishes to see the "onliners", I start a function called DelOld(). This will not decrease server speed, nor create conflicts when writing to temporary files and so forth. Now, I tried to

Re: [PHP] Cookies

2001-04-19 Thread Plutarck
rather than using time(), try using one of the GMT time functions. Check under date/time in the manual, which is the same section that time is under. -- Plutarck Should be working on something... ...but forgot what it was. ""Chi Wa Au"" [EMAIL PROTECTED] wrote in message [EMAIL

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-04-19 Thread Stig Bakken
ssb Thu Apr 19 04:57:04 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: * added "kaltoft" with access to PEAR Index: CVSROOT/avail diff -u CVSROOT/avail:1.147 CVSROOT/avail:1.148 --- CVSROOT/avail:1.147 Tue Apr 17 00:31:35 2001

[PHP] List Files

2001-04-19 Thread KPortsmout
Hi, Does anyone know how I can list all the files begining with help in one of my pages. So I have a dir which has various files, like so: help_me.php help_you.php help_us.php Is there some command I can use to select all the files and then print them out? TIA Ade -- PHP General Mailing

Re: [PHP] Connection with a Palm

2001-04-19 Thread Daniel Tryba
On Wed, Apr 18, 2001 at 09:22:32AM -0500, Plutarck wrote: Hm...can't say I've seen many subjects about this, but you might want to look around for information on WAP/WML. Maybe someone else would know more though, because I have no experiance with non-PC browsers. For Palm/PocketPC/blala

RE: [PHP] Password Generator?

2001-04-19 Thread Grimes, Dean
Be carefull though, this password generator is not as random as it looks at first glance: Example: Here is a list 100 seemingly random passords: crastije cranocus frukaphe thogivot dricrope chevacot wrasipha staspofr spuphara prothidi prohopra clicafri besliruc catokipr gupaprus

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

2001-04-19 Thread Noah Spitzer-Williams
Is there a way to install the GD library on windows nt systems? i can't get this thing to not scale it if its smaller than a certain width ""Steve Werby"" [EMAIL PROTECTED] wrote in message 00ae01c0c848$8a802bb0$6501a8c0@workstation7">news:00ae01c0c848$8a802bb0$6501a8c0@workstation7...

[PHP] search results return by relevancy

2001-04-19 Thread Jen Hall
Hi there I have some scripts that do a search in a MySQL database table. I want to be able to return rows that match a query, in order of relevancy. For example, say I have a table that has the following data |row_id| data |--|- | 1 | cat | 2 |

[PHP] multiple connects

2001-04-19 Thread Randy Johnson
how do I make sure the right connection is being used when I have 2 persistent connections. is there any documentation on this ? thanks Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

RE: [PHP] search results return by relevancy

2001-04-19 Thread Brian Paulson
You might try this article on devshed on how to create a search engine using MySql and php. http://www.devshed.com/Server_Side/PHP/Search_Engine/ I currently use this same Technique to run our classifieds at http://www.chieftainclassifieds.com Thank you Brian Paulson Sr. Web Developer [EMAIL

Re: [PHP] best way to include html?

2001-04-19 Thread Plutarck
Easiest way I've possibly found is to shove it inside of a function which will echo it out, but with all the variables in their proper place. When I want to display something I just use: $front_page .= 'Text goes here'; In the function outout_html() I just put $front_page wherever I want it to

Re: [PHP] array_count_values

2001-04-19 Thread Plutarck
echo $stuff[nuts]; It should work, but it's becomg a depreciated practice and may break in future versions. Always quote a non-numeric array key. Beyond that, use print_r($array) and see if there is a "nuts" key in there at all. -- Plutarck Should be working on something... ...but forgot

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

2001-04-19 Thread Johnson, Kirk
You know, I tried this before sending my email, and it didn't work as you describe. And yes, then I re-checked my .htaccess file, and yes, I had "sybase" turned off. Doh! Kirk -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] stripslashes() sees the

RE: [PHP] multiple connects

2001-04-19 Thread Sam Masiello
Well, you won't have two persistent connections to the same database (for the same username/password). So, as long as you use the link identifier as the third argument to the mysql_query function (or mysql...whichever you are using), that is guarantee enough. HTH Sam Masiello Systems Analyst

Re: [PHP] How many color can html recongize in Word.

2001-04-19 Thread Plutarck
For internet explorer: http://msdn.microsoft.com/workshop/design/color/colorname.asp Due to the near randomness with which different browsers render color names, and often some browsers support nearly no color names, to avoid headaches use one simple rule: Never user color names. Just stick

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

2001-04-19 Thread Morgan Curley
Yeah, it is unfortunate that ImageMagick uses those chars since they have other meanings on the cmd line. just escape it ( \ ) and that should work ( works on a linux box ) morgan At 07:53 PM 4/18/2001, you wrote: morgan, this is starting to work! the 175x175 does resize it to a width of

Re: [PHP] php equivalent for `command`

2001-04-19 Thread Plutarck
Short answer: nope, sorry lol ;) Personally though I concatenate every string I have that needs to have a variable in it. Makes it so the variables are highlighted in my syntax editor for one thing, but it's also a bit faster to use only single quoted strings with string concatenation, rather

RE: [PHP] List Files

2001-04-19 Thread Joe Sheble (Wizaerd)
exec( "ls -1 help*.*", $arFiles ); foreach( $arFiles as $cFile ) { print( $cFile ); } At 08:44 AM 4/19/01 -0400, Matthew Luchak wrote: $path='/root/helpfiles/'; $dir_handle = opendir($path); while ($file = readdir($dir_handle)) { if ((ereg("help",$file)){ INCLUDE "$path$file";

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

2001-04-19 Thread Joe Sheble (Wizaerd)
I use ImageMagik all the time for thumbnail creations... this doesn't resize the image, it creates a new image, a thumbnail... but the principle is the same $cWidth = 175; $picture_src = "fullSize/somepic.jpg"; $thumb_dest = "fthumbNail/somepic.jpg"; $aImageInfo = getimagesize(

[PHP-CVS] cvs: php4 /ext/gd config.m4

2001-04-19 Thread Wez Furlong
wez Thu Apr 19 07:16:09 2001 EDT Modified files: /php4/ext/gdconfig.m4 Log: Patch from Adam Dickmeiss to make configure detect libtff again. Index: php4/ext/gd/config.m4 diff -u php4/ext/gd/config.m4:1.57 php4/ext/gd/config.m4:1.58 ---

Re: [PHP] search results return by relevancy

2001-04-19 Thread Rasmus Lerdorf
Note that a LIKE query like that is going to be very slow. You are better off defining those fields as fulltext fields and using MySQL's built-in fulltext search capability which will automatically return a relevance value for each hit. See http://www.mysql.com/doc/F/u/Fulltext_Search.html

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

2001-04-19 Thread Yasuo Ohgaki
I was curious about your post, so I take a look at the module source. It seems you could be right if O_EXCL is not defined when PHP is compiled. If O_EXCL is defined, it creates if there is no session data file. -- Yasuo Ohgaki ""Plutarck"" [EMAIL PROTECTED] wrote in message 9bmjl2$rc4$[EMAIL

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

2001-04-19 Thread Sterling Hughes
sterlingThu Apr 19 07:59:34 2001 EDT Modified files: /php4/ext/sablotsablot.c Log: fix crash bug 10400. Index: php4/ext/sablot/sablot.c diff -u php4/ext/sablot/sablot.c:1.37 php4/ext/sablot/sablot.c:1.38 --- php4/ext/sablot/sablot.c:1.37

RE: [PHP] Password Generator?

2001-04-19 Thread Jon Snell
There is code in the source for NetHack to create pronounceable words. Also, combining words would probably be somewhat easy. A lazy coder could import a unix dictionary file into a MySQL table and do "select word from word order by rand limit 2" and just combine the results. -Original

[PHP] replace function in a file.

2001-04-19 Thread Mark Lo
Hi, Is there any function exists which to open a specific file, then find a specific word, if found, then replace that word with something else. re: I know fopen is to open, read, and write to specific file, but not finding and replacing.. Thank you Mark -- PHP General Mailing List

Re: [PHP] replace function in a file.

2001-04-19 Thread Avetis Avagyan
Hello, something like this: $filename="your_file_name.txt"; $fp = fopen($filename, "r+") or die ("Could not open file"); $content = fread ($fp, filesize($filename)); $new_content = str_replace("old_word", "new_word", $content); rewind($fp); fwrite($fp, $new_content); ftruncate($fp, ftell($fp));

[PHP] PHP Help!

2001-04-19 Thread Anthony Daniels
Hello, I am a Newbie at PHP and I have what may be a simple question. I will try and describe my situation the best I can. I am trying to setp up a form that does an automatic execution between mine and another's site. I have a list of tasks that need to be done. They are all the same

Re: [PHP] replace function in a file.

2001-04-19 Thread Steve Werby
"Mark Lo" [EMAIL PROTECTED] wrote: Is there any function exists which to open a specific file, then find a specific word, if found, then replace that word with something else. In addition to the solution mentioned using PHP filesystem functions, you could use Unix command like grep, sed,

[PHP] Site Searchable function

2001-04-19 Thread Kevin A Williams
Hi, I was wondering whether anyone could direct me in the direction of creating a search function like the one on php.net? I have tried looking rather fruitlessly to implement a system, would one possible implementation be to use reference files for the information and then use string

RE: [PHP] Site Searchable function

2001-04-19 Thread John Huggins
You may not like this answer, but before anyone gets too far along with any site search engine method using PHP, I would suggest a review of something like http://www.htdig.org/. It is free, it works fast and searches your site just like a web browser so what it indexes is what your viewers see.

RE: [PHP] Site Searchable function

2001-04-19 Thread Matthew Luchak
there is a good starting point for walking a directory tree and printing out the names of the files at: http://www.php.net/manual/en/function.readdir.php it should be no mean feat to add a search file function and voila Matthew Luchak Webmaster Kaydara Inc.

[PHP] `AM_PROG_LIBTOOL' not found in library

2001-04-19 Thread Pablo Sabatino
Thank you, Kelly I tried compiling again and seems like was good! The ./configure that ok. Now, when I execute $./gmake come to error... pablo@pablito:~/php4 gmake Making all in Zend gmake[1]: Entering directory `/home/pablo/php4/Zend' /bin/sh ../libtool --silent --mode=compile gcc

Re: [PHP] search results return by relevancy

2001-04-19 Thread Clarence
Try "MATCH (FULLTEXT index columns) AGAINST ('keyword')" Check the MySQL manual at: http://www.mysql.com and search for "match against" or "fulltext" You need to build FULLTEXT indexes on the columns you want to search before you can use the above syntax. However, it will search and sort by

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

2001-04-19 Thread FredrikAT
Hi! This is what I do: if (!empty($picture)) { $size = GetImageSize ("pics/$picture"); if ($size[0] = '175') { $width = '175'; $height = $size[1] * ($width / $size[0]); } else { $width = $size[0]; $height = $size[1]; } } echo "img

[PHP] Advanced Search on MySQL

2001-04-19 Thread Augusto Cesar Castoldi
How can I do a advanced "string" search in my MySQL tables? Something like: I have a form with name, phone, age, e-mail... and I want to fill some of those and search in the database where name has "name typed in the form" and phone has "number typed in the form" How Can I do that by a

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

2001-04-19 Thread Morgan Curley
This is a neat bit of code to fill in image height and width info but it does not affect the actual file size like resizing the image would morgan At 02:43 PM 4/19/2001, FredrikAT wrote: Hi! This is what I do: if (!empty($picture)) { $size = GetImageSize ("pics/$picture"); if

Re: [PHP] IP address enconding

2001-04-19 Thread Don Read
On 19-Apr-01 elias wrote: No! I can encode IP address to an Integer: 192.168.0.1 consider as: a.b.c.d and now the formula goes: a shl 24 + b shl 16 + c shl 8 + d but i was looking for something ready made PHP3 (returns a float, not an integer): function inet_aton($a) { $inet =

Re: [PHP] Advanced Search on MySQL

2001-04-19 Thread Steve Werby
"Augusto Cesar Castoldi" [EMAIL PROTECTED] wrote: How can I do a advanced "string" search in my MySQL tables? Something like: I have a form with name, phone, age, e-mail... and I want to fill some of those and search in the database where name has "name typed in the form" and phone has

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

2001-04-19 Thread Christian Reiniger
On Thursday 19 April 2001 13:52, you wrote: What to fix? Her ;) Seriously though, is it possible that she stopped browsing the site long enough for the session to expire and be cleaned up by the garbage handler, then she continued on the page with a PHPSESSID that no longer existed?

Re: [PHP] Can PHP run without php.ini?

2001-04-19 Thread Christian Reiniger
On Thursday 19 April 2001 15:48, you wrote: Hi, I ran into strange problem. I was not able to configure my php.ini file so it would show up in PHP when running on my IIS5 server (at least showing up in via php_info()) so I tried to delete all the php.ini files on my computer (I have a backup

Re: [PHP] Which is better coding style...

2001-04-19 Thread Christian Reiniger
On Thursday 19 April 2001 19:57, you wrote: Which is better? function blah() { switch( $bob ) { case 1: return "this"; function blah() { $retval = ""; switch( $bob ) { case 1: $retval = "this"; break; In other words, is it good practice to exit

Re: [PHP] search results return by relevancy

2001-04-19 Thread CC Zona
However, note that MySQL does not include stopwords in the FULLTEXT index --and it currently considers any word of three characters or less to be a "stopword". So if you really are searching for words as short as "cat", this isn't the solution (or else you're going to need to make some

[PHP] Mail form error in script

2001-04-19 Thread John Silverio
Whenever I try to mail a form I receive this message: Warning: ?php_track_vars? is no longer supported - please use the track_vars INI directive instead in /mnt/web/guide/corvettebuyers/www/do_sendfeedback.php on line 1 The form is on a UNIX server with PHP installed. The INI directive has me

RE: [PHP] Password Generator?

2001-04-19 Thread ..s.c.o.t.t.. [gts]
you could try swapping out some letters with look-alike alphanum characters to make the password a bit more secure a=@ s=$ d= thus, "password" = "p@$$wor" -Original Message- From: Jon Snell [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 11:47 AM To: [EMAIL

RE: [PHP] Which is better coding style...

2001-04-19 Thread ..s.c.o.t.t.. [gts]
i say the first style. unneeded variables and other thingies just obscure things and make it harder to maintain. -Original Message- From: Boget, Chris [mailto:[EMAIL PROTECTED]] Subject: [PHP] Which is better coding style... Which is better? function blah() { switch( $bob )

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

2001-04-19 Thread Si
i can honestly recommend phped, infact im amazed no one else has mentioned it. Great win32 php programming ide. hint: ignore the project stuff in it tho as it kinda sucks ;-) you can grab it from here http://www.soysal.com/PHPEd/ Si. -- PHP General Mailing List (http://www.php.net/) To

[PHP] text formatting

2001-04-19 Thread george
I have a text area which the client types information into, but is it possible to format the text for example if the user hits enter ,then it will place a line break there, TIA george -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

php-general Digest 19 Apr 2001 19:45:45 -0000 Issue 637

2001-04-19 Thread php-general-digest-help
php-general Digest 19 Apr 2001 19:45:45 - Issue 637 Topics (messages 49329 through 49410): Re: Tip for cookies 49329 by: John Monfort Re: image-resize/convert 49330 by: elias Re: array_count_values 49331 by: elias 49370 by: Plutarck IP address enconding

Re: [PHP] Which is better coding style...

2001-04-19 Thread Steve Lawson
Personally, I hate trailing {'s I think this function blah() { switch( $bob ) { case 1: $var = "whatever"; break; } } Is much easier to read and follow. As for the exiting question... The "proper" way is to use the breaks. "They" say that multiple returns in

[PHP] ENUM or SET and PHP

2001-04-19 Thread Jason Caldwell
Does PHP sport an ENUM or SET statement? Or, equivalent? Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] SQL Select Unique() ?

2001-04-19 Thread James, Yz
Hi Guys, Is there a method of extracting rows from a MySQL table Uniquely (as in only once) ?. For example, when a user performs a search, using two words, it may return the same row twice if the search is spread over two or more SQL "selections". An example: If hypothetical row 129 is a

Re: [PHP] Site Searchable function

2001-04-19 Thread Steve Lawson
Hey, Well, I would write two scripts. One to pregen a reference database and one to search using that database. The pregen could use the readdir function that Matthew Luchak suggested. You could use the fopen command to get the pages. fopen("http://localhost/name-of-file") will return the

RE: [PHP] Which is better coding style...

2001-04-19 Thread Sander Pilon
Definitely the second style :) (If we were talking about C(++) then the first would have even been forbidden by my companies coding standard as well as several coding standards of other companies I worked for.) The reason is this - a function has one entrypoint (duh) and one exitpoint. Jumping

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

2001-04-19 Thread Dan Kalowsky
kalowskyThu Apr 19 12:55:05 2001 EDT Modified files: /php4/ext/odbc php_odbc.c Log: appling patch for joey since he has no ODBC karma. this is for bug #10252 Index: php4/ext/odbc/php_odbc.c diff -u php4/ext/odbc/php_odbc.c:1.80

Re: [PHP] Starting PHP script with crontab

2001-04-19 Thread Steve Lawson
Sup, You have to make the output write to a file. Like lynx http://www.page.come /home/me/bleh.htm SL. - Original Message - From: "Bertjan Schrader" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 4:15 AM Subject: [PHP] Starting PHP script with crontab I

Re: [PHP] Which is better coding style...

2001-04-19 Thread Martín Marqués
On Jue 19 Abr 2001 23:35, Miles Thompson wrote: Amen! For both elimination of trailing {'s , and a good clear break. I don't know how trailing {'s came about, but I find the blocks are harder to follow. I consider them HIDDEN rather than trailing, but I cut my teeth on Pascal, and FoxPro.

[PHP] Authentication

2001-04-19 Thread Navid Yar
Hello, I'm somewhat new to PHP. I'm having problems with a script and I don't know why. It is from a book, yet it does not work for some reason. Both Apache and MySQL are on and are working fine on my system. The code deals with creating tables within a database (the database already exists. The

Re: [PHP] Which is better coding style...

2001-04-19 Thread Miles Thompson
Amen! For both elimination of trailing {'s , and a good clear break. I don't know how trailing {'s came about, but I find the blocks are harder to follow. I consider them HIDDEN rather than trailing, but I cut my teeth on Pascal, and FoxPro. While we're at it, how about plain old carriage

RE: [PHP] Authentication

2001-04-19 Thread Jack Dempsey
check and see if you have create_privilege on the database, and also make sure your code is clean...echo the sql statement before you use it and type it into mysql from the mysql command line and see if it works then... -jack -Original Message- From: Navid Yar [mailto:[EMAIL PROTECTED]]

Re: [PHP] Authentication

2001-04-19 Thread Kath
In the future, do not post your mysql password on the list Just a little piece of advice ;) Also, try checking the online errata for the book (You didn't mention which book so I can't point you in the right direction). - Kath - Original Message - From: "Navid Yar" [EMAIL PROTECTED]

[PHP] mail() and stripslashes()

2001-04-19 Thread Isaac Force
I'm using the mail() function to send email out via the web, and I've run in a problem with escaped characters showing the slash in the emails. I get the text for the email ($email_text, lets say) and then I strip the slashes and put the new version in another variable ($nice_email_text). When

RE: [PHP] Which is better coding style...

2001-04-19 Thread ..s.c.o.t.t.. [gts]
OOooo... it drives me nuts when i see beginning brackets on seperate lines ;) i like to start brackets on the same line as the statement and finish them on a line of their own. if (...) { } else { } (it drives me nuts to see "} else {" also) -Original Message- From: Sander Pilon

[PHP] submit form values to new site after validation

2001-04-19 Thread Tom Beidler
I'm trying to modify and e-commerce site which originally sent an email with the credit card info in an email. Now they would like to pass credit card numbers to a payment-processing service. For this particular service, Authorize.net, you would normally direct the form data to the

[PHP] Newbie Technical Question

2001-04-19 Thread Nashirak Bosk
I have a php file with a lot of user defined funtions and wraper functions in the this global file. Almost all my pages then use the funtions in this one file (and variables), this is so I can keep my website very modulure. However I know that having php go through the file takes a bit of

RE: [PHP] PHP4.0.4pl1+PdfLib3.03+SCO

2001-04-19 Thread Grimes, Dean
Chris Paul, Try using the new pdflib-4.0.0 It works great. Here is what you have to do: Goto: http://www.pdflib.com/pdflib/download/index.html and download the source for unix. Unzip and untar. cd to pdflib-4.0.0/bind/php/ext/pdf copy * php-4.0.4pl1/ext/pdf --- You may want to remove

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

2001-04-19 Thread Pablo Sabatino
Hello!!! I changed the version to bison 1.28...here is the log: checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking whether to enable maintainer-specific portions of Makefiles... no checking host system type...

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

2001-04-19 Thread Julian Wood
That's it. There's nothing special to do. Except if one insert fails and the others succeed, you run into a bit of sync trouble. This is what transactions are for. You might want to consider a BDB table type, which supports transactions, then you have the option to rollback the other inserts

Re: [PHP] Which is better coding style...

2001-04-19 Thread Norbert Pfeiffer
Hi, This participates the clearest for me, but unfortunately not usual. if (...) {...commands... switch(...) {case commands... case commands... case commands... } while(...) {...commands... } } else {...commands...

RE: [PHP] Which is better coding style...

2001-04-19 Thread Philip Olson
coding style? here's what pear has to say : http://www.php.net/manual/en/pear.standards.php http://www.php.net/manual/en/pear.standards.control.php [ example ] switch (condition) { case 1: action1; break; case 2: action2; break; default:

Re: [PHP] submit form values to new site after validation

2001-04-19 Thread Phillip Bow
Using the POST method will prevent the credit card data from being included in the url. I would still be careful about sending data like this via a POST to a form handler on an entirely different site. It would be better if there was some sort of secure socket to transfer the data through. --

[PHP] killing a session

2001-04-19 Thread Ellis Heckman
This does seem to work well. Thanks a lot. unlink(session_save_path().'/sess_'.$PHPSESSID); setcookie('PHPSESSID','',time()-3600,'/'); Ellis Heckman [EMAIL PROTECTED] http://www.sigmathree.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] killing a session

2001-04-19 Thread Phillip Bow
Check out http://php.net/manual/en/function.session-destroy.php -- phill ""Ellis Heckman"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... This does seem to work well. Thanks a lot. unlink(session_save_path().'/sess_'.$PHPSESSID);

[PHP] Newbie - treestructure

2001-04-19 Thread Johan Evers Petersen
I'm Newbie - sorry if this is the wrong list! I'm trying to print this treestructure I've made, but it doesn't seem to print more than the first level. The subtree array of the children is empty, perhaps because I do not use the correct reference passing? Thank you for helping me out.

Re: [PHP] Which is better coding style...

2001-04-19 Thread Chris Adams
On 19 Apr 2001 14:08:13 -0700, ..s.c.o.t.t.. [gts] [EMAIL PROTECTED] wrote: OOooo... it drives me nuts when i see beginning brackets on seperate lines ;) i like to start brackets on the same line as the statement and finish them on a line of their own. Very strong agreement here. I think a lot

[PHP] Treestructure

2001-04-19 Thread Johan Evers Petersen
I'm Newbie - sorry if this is the wrong list! I'm trying to print this treestructure I've made, but it doesn't seem to print more than the first level. The subtree array of the children is empty, perhaps because I do not use the correct reference passing? Thank you for helping me out. This is

  1   2   >