[PHP] Problem with mail subject

2001-07-12 Thread umesh DESHMUKH
Hi Gurus, I am using PHP4, I am using mail function which has Japanese subject, I am using 'iso-2022-jp' charser for japanese mail body. The problem the Japanese subject is seen corrupted, can anyone pls. tell me what should I do to change the charset of Subject to 'iso-2022-jp' so that the sub

Re: [PHP] Re: Mcrypt fails to run

2001-07-12 Thread Christopher Ostmo
Gigi pressed the little lettered thingies in this order... > Hi, > > Try upgrading to 4.0.6. I think there are known pb with 4.0.4 and mcrypt. > Regards, > > --Gildas. > > -- > /-*-\ > | Systèmes & Technologies | Tél: +33 2 964387

[PHP] Re: Credit Card script that really works...

2001-07-12 Thread elias
Go to http://www.webberdev.com and search for a credit card script! I found one that is very good! and I'm using it. "Dhaval Desai" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi! > > > Well I jsut downloaded the credit card script from > this website: > >

Re: [PHP] getting auto-incrementing fields

2001-07-12 Thread Pavel Jartsev
Brad Wright wrote: > > Hi all, > I have a situation where I am adding a new row to a (mySQL) table. One of > the fields in table is auto-incrementing. When I add a new row, I would like > to return the value of the auto-incrementing field (named 'Number') as > $Number for the new row. > > Can a

RE: [PHP] PHP installed - MySql Server can't connect

2001-07-12 Thread Matthew Loff
My bad... I didn't read thoroughly. I didn't know you actually need to recompile to fix that, if you don't wanna specify it in mysql_connect each time... I thought might be a php.ini option or something. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Friday,

[PHP] getting auto-incrementing fields

2001-07-12 Thread Brad Wright
Hi all, I have a situation where I am adding a new row to a (mySQL) table. One of the fields in table is auto-incrementing. When I add a new row, I would like to return the value of the auto-incrementing field (named 'Number') as $Number for the new row. Can anyone help?? Thanks in advance, Bra

[PHP] Re: How to maintain a variable between PHP pages (sessions?).

2001-07-12 Thread Santiago Romero
Hi! How is possible to maintain a PHP variable defined on a PHP3 file (IMP 2.2.5, mailbox.php3) so that is available for another PHP3 file (compose.php3) and for future reloads of mailbox.php3? I have a variable called can_use_attachs (can_use_attachs) that is checked on an LDAP server on

Re: [PHP] decrypting passwords

2001-07-12 Thread Rasmus Lerdorf
You don't decrypt it. You'll need to store it unencrypted if you want to be able to send it out. -Rasmus On Thu, 12 Jul 2001, Steph wrote: > User enters a new password through a form. Then it is put in the table by the >following. ($userid is the username) > > $query = mysql_query("update u

[PHP] decrypting passwords

2001-07-12 Thread Steph
User enters a new password through a form. Then it is put in the table by the following. ($userid is the username) $query = mysql_query("update users set password = encrypt('$password','$userid') where userid = '$userid'") or die("Couldn't execute query."); I need to know how to decrypt the

RE: [PHP] PHP installed - MySql Server can't connect

2001-07-12 Thread Rasmus Lerdorf
Right, that is basically what I said. On Fri, 13 Jul 2001, Matthew Loff wrote: > > Maybe his mysql.sock file isn't in /var/lib/mysql/mysql.sock? > > Mine is /tmp/mysql.sock > > > -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 13, 2001 1:31 AM >

RE: [PHP] PHP installed - MySql Server can't connect

2001-07-12 Thread Matthew Loff
Maybe his mysql.sock file isn't in /var/lib/mysql/mysql.sock? Mine is /tmp/mysql.sock -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 1:31 AM To: Gaylen Fraley Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP installed - MySql Server can't co

Re: [PHP] PHP installed - MySql Server can't connect

2001-07-12 Thread Rasmus Lerdorf
This happens when the mysql server you are running is different from the version of the mysql library php was linked against. If you compiled php using "--with-mysql" you get the mysql client library that comes bundled with PHP which may not match your mysql server and thus may look for the mysql

[PHP] PHP installed - MySql Server can't connect

2001-07-12 Thread Gaylen Fraley
PHP install went perfectly. phpinfo shows MySql installed. But, when I try to start Mysql, I get: ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) What and why? Please reply to my e-mail address if you can help. Thanks! -- Gaylen [EMAIL PROTEC

RE: [PHP] Protecting a directory

2001-07-12 Thread Matthew Loff
With PHP, not without creating an index file. If the server is apache, you can simply create a .htaccess file in the directory, containing: order deny,allow deny from all I'm pretty sure that should do it. -Original Message- From: Tom Malone [mailto:[EMAIL PROTECTED]] Sent: Thursd

[PHP] Protecting a directory

2001-07-12 Thread Tom Malone
I hope this is the appropriate place for this post - I apologize in advance if I'm stepping on any toes... I have created a database to manage my contacts in a sub-directory of my site. I used php user authentication to protect the directory, but you can still see the directory index by entering "

RE: [PHP] Enabling short tags in PHP 4.0.6

2001-07-12 Thread Ralph Guzman
Are you sure you have the php.ini file in the right directory? When looking at phpinfo() make sure php.ini is located where the "Configuration File (php.ini) Path" is set to. -Original Message- From: Coulee Web [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 6:03 PM To: [EMAIL PRO

[PHP] Was: ereg parse error problem Now: RegEx Plea for Help

2001-07-12 Thread Lara J. Fabans
Thank you, Phil, for fixing that. Obviously this snippet is trying to be a smaller test case for a much larger problem. It looks like I'm pulling *all* of the and from the $string and I don't want that at all. I just want one of them. So, my return is: image source:http://www.123posters.

RE: [PHP] The need for strong typing...

2001-07-12 Thread Opec Kemp
> I will look into JSP. > > Even on the same website, we could have two different languages: Maybe > we'll use JSP for the transaction stuff, and PHP for customer support > pages, where things are less critical. Incidentally, PHP4 can also use some Java Serverlet or Bean. Check out this bit from

Re: [PHP] The need for strong typing...

2001-07-12 Thread Dr. Evil
> I was going to write a whole diatribe, venting rage, trying to > prove you wrong etc, etc... and then I got to the last paragraph > and realised we probably actually agreed: Yes, I think so too. Different languages for different things. Even COBOL has a valid reason for existing. In fact, mo

Re: [PHP] Memory usage question

2001-07-12 Thread jeremy brand
> Is there a way that I can reduce the memory usage of PHP4? Also, is it a > good idea to configure a separate Apache that has PHP4 enabled and use it > on only the PHP4 sites on the server, while the normal Apache has PHP4 > disabled and serves the non-PHP4 sites? Hi Philip, It's probably your

[PHP] Memory usage question

2001-07-12 Thread Philip Mak
My machine is running out of memory (256 MB; upgrading is not an option at this point). Each httpd process is taking up 8 MB of memory (4 MB shared). PHP4 is responsible for about 3.5 MB of that. Is there a way that I can reduce the memory usage of PHP4? Also, is it a good idea to configure a se

RE: [PHP] The need for strong typing...

2001-07-12 Thread Opec Kemp
> Also obviously, this capability isn't needed for most of what PHP is > used for, and so maybe it doesn't belong in PHP, and maybe those of us > who are writing more sensitive aps should look into other things. Any > sugestions? I suppose that if you *really* do need strongly typed language tha

Re: [PHP] The need for strong typing...

2001-07-12 Thread Brian White
I was going to write a whole diatribe, venting rage, trying to prove you wrong etc, etc... and then I got to the last paragraph and realised we probably actually agreed: >This doesn't mean that PHP should be changed to allow strong typing. >It may mean though that PHP isn't the right language for

RE: [PHP] Re: Downloading Data from Database

2001-07-12 Thread Jochen Kaechelin
> -Original Message- > From: David Robley [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 13, 2001 2:48 AM > To: Randy Johnson; PHP General List > Subject: Re: [PHP] Re: Downloading Data from Database > > > On Sun, 15 Jul 2001 01:15, Randy Johnson wrote: > > Dave, > > > > The code belo

Re: [PHP] The need for strong typing...

2001-07-12 Thread Dr. Evil
> The one problem with all your musings is that there is no such thing as an > integer when it comes to transferring data over http. Everything comes as > a string. What is done with these strings when they get to the > application is what matters. It's not like there is an HTML form element >

[PHP] RE: [PHP-DB] Memory Issues with MySQL & 4.0.6

2001-07-12 Thread Jochen Kaechelin
Have you looked at: PHP 4.0.6 memory limit fix [0Kb] - 1 July 2001 (This patch fixes a bug in the 4.0.6 memory limit option. This is only needed when configuring PHP with --enable-memory-limit). If you have problems applying the patch try using GNU patch. http://www.php.net/downloads.php -- P

Re: [PHP] ereg parse error problem

2001-07-12 Thread Philip Murray
Hi Lara, The problem isn't with the if(ereg) line, its the line above. Put a semi-colon at the end of your $string = "..[snip].." line Cheers - -- - - - Philip Murray - Senior Systems Engineer [EMAIL PROTECTED] - Open2View.com http://www.open2view.com -

Re: [PHP] The need for strong typing...

2001-07-12 Thread Philip Murray
If you were writing rigorous financial applications, I would hope you were doing enough testing and checking that things like that didn't happen in the first place. You shouldn't be lazy and rely on the language to correct your mistakes. Strong typing only gets in the way (w/ PHP at least), espec

Re: [PHP] The need for strong typing...

2001-07-12 Thread Rasmus Lerdorf
The one problem with all your musings is that there is no such thing as an integer when it comes to transferring data over http. Everything comes as a string. What is done with these strings when they get to the application is what matters. It's not like there is an HTML form element like or .

[PHP] ereg parse error problem

2001-07-12 Thread Lara J. Fabans
Hi, friends, I'm receiving a parse error on the if (ereg... ) lines of this code. I looked at the online manual and modeled my two ereg's after it. When I kept getting parse errors, I decided to copy the original from the manual into my code, and it too received a parse error. Can someone ple

[PHP] The need for strong typing...

2001-07-12 Thread Dr. Evil
As you know, gases such as oxygen and acetylene are distributed to welders in pressurized containers. As you can guess, it is very important to put the right stuff in the right container. Let's say you have a container of acetylene, and you accidentally top it up with some pure oxygen. This is

RE: [PHP] Thumbnail Generation from DB Stored Images.

2001-07-12 Thread Matthew Loff
Jason-- There are many reasons I don't quite recommend creating the thumbnails on the fly with ImageMagick: 1) I've heard many say that storing/retrieving images from MySQL databases isn't the greatest idea, because you end up with -huge- tables, which leads to long query times. 2) Resizing a J

Re: [PHP] Re: Downloading Data from Database

2001-07-12 Thread David Robley
On Fri, 13 Jul 2001 10:18, David Robley wrote: > > We use it, but only internally and our preferred browser is not from M$ > :-) I do have an IE5.5 somewhere, so I'll have a look and see what > happens with my script using it. Hmm, works OK for me. Maybe check that you are actually outputting s

Re: [PHP] Re: Downloading Data from Database

2001-07-12 Thread David Robley
On Sun, 15 Jul 2001 01:15, Randy Johnson wrote: > Dave, > > The code below gives me an error in IE 5.+ > > Here is the error: > > IE cannot download ..blah blah try again later > > Do you use this code on your site or do i just need to tweak it > > -Original Message- > From: David Robl

RE: [PHP] Strong typing?

2001-07-12 Thread Peter Houchin - SunRentals Australia
why can't you just use plan simple HTML to do it??? rather than make a larger hassle for your self ie howdy ??? & yes that is valid HTML :) Peter -Original Message- From: Dr. Evil [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 10:27 AM To: [EMAIL PROTECTED] Cc:

Re: [PHP] Strong typing?

2001-07-12 Thread Phil Driscoll
On Friday 13 July 2001 01:27, Dr. Evil wrote: > If you're doing financial stuff, or anything else that requires > bullet-proof security and reliability, strong typing is essential, I would have said that good programming was essential rather than strong typing. If you insist on strong typing,

Re: [PHP] Strong typing?

2001-07-12 Thread Dr. Evil
> U... you could write a fuction like > > function CheckInputAgainstRE( $val, $re ) > { > if ( ! ereg( $re, $val ) ) > { > ( ... some kind of code that writes out an error message and dies > ... ) > } > return $val; > } That's what I've done. I have a huge fil

Re: [PHP] Strong typing?

2001-07-12 Thread Rasmus Lerdorf
> PHP is a great language. It makes it fast and easy to create web > pages. However, one feature which is critical for doing rock-solid > stable websites is strong typing. The reason for this is that you're > dealing with untrusted user input. Strong typing helps because if you > are expecting

Re: [PHP] Upcoming wrox php/flash book?

2001-07-12 Thread Rasmus Lerdorf
See http://php.net/swf and also http://www.opaque.net/ming -Rasmus > Now, I've never heard of using PHP to control Flash and, given the > different ways they work, can't see how it would even be possible. (I'm > no flash expert, but I believe they have to be pre-compiled .swf files > to be disp

Re: [PHP] Strong typing?

2001-07-12 Thread Brian White
U... you could write a fuction like function CheckInputAgainstRE( $val, $re ) { if ( ! ereg( $re, $val ) ) { ( ... some kind of code that writes out an error message and dies ... ) } return $val; } and then a series of functions like function CheckInt( $val ) {

RE: [PHP] Strong typing?

2001-07-12 Thread Chadwick, Russell
http://www.php.net/manual/en/function.settype.php is this what you are looking for? -Original Message- From: Dr. Evil [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 4:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Strong typing? PHP is a great language. It makes it fast and ea

[PHP] Strong typing?

2001-07-12 Thread Dr. Evil
PHP is a great language. It makes it fast and easy to create web pages. However, one feature which is critical for doing rock-solid stable websites is strong typing. The reason for this is that you're dealing with untrusted user input. Strong typing helps because if you are expecting an INT,

RE: [PHP] Upcoming wrox php/flash book?

2001-07-12 Thread Kurt Lieber
http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=190345016 0 BTW, in case this link doesn't work for some of you, note that some mail clients (including my version of Outlook) wrap the href and don't maintain the link. (note the trailing 0 in the link above) Sorry for any confusio

[PHP] Upcoming wrox php/flash book?

2001-07-12 Thread Kurt Lieber
I was searching for a Flash book today and ran across the following book, due to be released in September 2001: http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=190345016 0 It's entitled "Foundation Php for Flash 5" Now, I've never heard of using PHP to control Flash and, given th

Re: [PHP] replacing part of string with values in array

2001-07-12 Thread Brian White
Shoot from the hip response... untested function resolveParts( $str, $partsArray ) { // explode the original $str based on 'PART' $stringBits = explode( 'PART', $str ); //Ok. So now we have two arrays. The length of partsArray // should be one less than stringBits $

[PHP] replacing part of string with values in array

2001-07-12 Thread Gregor Jaksa
hello, ok heres the thing ;) lets say i have array("part1", "part2", "part3", "part4"); now i have string like $string = "here's PART and heres PART, another PART here and final PART here"; now i wanna replace first PART in string with part1 from array and second PART with part2 from array ... on

[PHP] Thumbnail Generation from DB Stored Images.

2001-07-12 Thread Jason Bell
Hello! I have images stored in a MySQL Database. I can retrieve the images and display them without a problem, but I'd really like to be able to create thumbnails. The code that I've written just doesn't seem to work. Preferably, I'd like to pull the image from the database, and create the thum

Re: [PHP] session management conflicts with xhtml specifications

2001-07-12 Thread Rasmus Lerdorf
You can change the arg_separator setting in your php.ini file. ie. arg_separator = "&" or perhaps: arg_separator = ";" -Rasmus On Fri, 13 Jul 2001, Jan wrote: > My output does not validate as XHTML because of the & sign in the a > href that is automatically appendet by the php

[PHP] session management conflicts with xhtml specifications

2001-07-12 Thread Jan
My output does not validate as XHTML because of the & sign in the a href that is automatically appendet by the php session management. it should be exchanged by an & entity. Is there a way to do this? There should be one I guess ... Thanks, Jan. --

RE: [PHP] building a search engine ??

2001-07-12 Thread rm
What you might want to try is something called ksearch.cgi, you'll find it at cgi-resources.com It's actually very good and very very small. It actually indexes your site and stores the info in several db databases or a text file, your choice and offers, if I'm not mistaken, boolean search, oh a

[PHP] referenced function not found errors. [ ap_block_alarms() ]

2001-07-12 Thread Kervin Pierre
Hi, I just installed apache 1.3.20 on solaris7-sparc machine. When I try to start apache with PHP compiled as a module, I get... /www> bin/apachectl start Syntax error on line 208 of /www/conf/httpd.conf: Cannot load /www/libexec/libphp4.so into server: ld.so.1: /www/bin/httpd: fatal: relocatio

Re: [PHP] how to check if the required fields were filled in without the text in them?

2001-07-12 Thread rip
Use javascript to validate. This way the form is not submitted in the first place. You could use some server-side (PHP) validation "just in case". mail send function validate() { jumpto = ""; errors = ""; var reg1str = "(@.*@)|(\\.\\.)|(@\\.)|(\\.@)|(^\\.)";

Re: [PHP] Credit Card script that really works...

2001-07-12 Thread Aral Balkan
You may also want to try Manuel Lemos' Form class -- it is very detailed and well coded solution that handles all sorts of form validation, including credit cards: http://www.phpclasses.upperdesign.com/browse.html/package/1 Aral :) __ ([EMAIL PROTECTED]) New Media

RE: [PHP] quotes

2001-07-12 Thread scott [gts]
also: mysql_escape_string() will format data properly for use in MySQL queries > -Original Message- > From: Alexander Wagner [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] quotes > > > Heidi Belal wrote: > > I have a problem using apostrophes/single quotes. > > I am using PHP and MySQL

RE: [PHP] installation

2001-07-12 Thread scott [gts]
the RPM is a binary. if mysql support is not in the RPM, there's no way to add it if you want to install PHP the simplest way, get the sources and compile it yourself as a stanalone binary (NOT using --with-apache or --with-apxs) then you can tweak it however you want, and compile in suppor

[PHP] Credit Card script that really works...

2001-07-12 Thread Dhaval Desai
Hi! Well I jsut downloaded the credit card script from this website: http://tobiac.supereva.it/checkcard.zip I just have one problem with the script. When the checkcard.php page loads for the first time I get this message always invalid length INVALID, is there any way I can stop this message

Re: [PHP] Array problem in PHP. Please help.

2001-07-12 Thread Christian Reiniger
On Thursday 12 July 2001 16:37, Michael Champagne wrote: > Ok, here's the print_r() output of my 2 arrays. The first really just > has an extra dimension. How can I get the format of the first one > looking like the bottom one (just an array of key => value pairs)? > > Thanks! > > Array ( [0] =>

RE: [PHP] apache not handling 404 errors for .php pages

2001-07-12 Thread scott [gts]
thanks... cant believe i didnt think of capturing 500 errors myself... must mean the coffee's wearing off :) > -Original Message- > From: DAve Goodrich [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] apache not handling 404 errors for .php pages > > ErrorDocument 500 /path/to/my_error_

RE: [PHP] $HTTP_REFERER < 10

2001-07-12 Thread Don Read
On 12-Jul-01 Inércia Sensorial wrote: > Is it possible? > > I am writing a recommend script, and I already know that the $HTTP_REFERER > can come empty or even not set, tested turning off the 'Enable Referer > Logging' on Opera. > > But, an invalid $HTTP_REFERER is also one smaller than 1

Re: [PHP] apache not handling 404 errors for .php pages

2001-07-12 Thread DAve Goodrich
on 7/12/01 12:38 PM, scott [gts] at [EMAIL PROTECTED] wrote: > I have custom 404 error handling setup on my linux apache > box, however, there's a problem with files that have a PHP > extension. it seems that apache itself does not check for the > existence of the requested .php file and fires u

[PHP] apache not handling 404 errors for .php pages

2001-07-12 Thread scott [gts]
I have custom 404 error handling setup on my linux apache box, however, there's a problem with files that have a PHP extension. it seems that apache itself does not check for the existence of the requested .php file and fires up PHP no matter what. if PHP does not find the requested file, it'll

Re: [PHP] newbie question

2001-07-12 Thread Francis Fillion
Try this : $st = ereg_replace ("\+is", "and_is", $st); you have to escape the + sign it mean other things then just literal André Weidemann wrote: > > The ereg_replace for some reason doesn't always work. > I tried this: > > > $st = " This +is a test"; > $st = ereg_replace ("=+is", "and_is",

Re: [PHP] Regular expression, parsing bad html in a xml document (strange)

2001-07-12 Thread Francis Fillion
Lazy me, after a short break, alway's helping, I found out wthat it has to be: /\<(?!\?xml|\!DOCTYPE|\!ENTITY|image|item|\/item)/ the ?! negate this text, I though that I could put it in every value like this (?!\?xml|?!\!ENTITY ... but no by putting in first he do it for all (k.i.s.s. Francis)

[PHP] newbie question

2001-07-12 Thread André Weidemann
The ereg_replace for some reason doesn't always work. I tried this: ..and got: REG_BADRPT in /usr/local/httpd/htdocs/test.php on line 5 What is wrong and how can I do what I want to? Thanx a lot in advance, André. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

RE: [PHP] browser tries to download not display

2001-07-12 Thread scott [gts]
some questions ;) have you tried accessing the script non-secure? is php properly installed and running on your server? did you restart the server after installing PHP? are you using a different server to handle secure queries? does that server have php installed and configured properly? > -

[PHP] browser tries to download not display

2001-07-12 Thread James Rodenkirch
I am having a problem - hopefully someone can help me :o) I am trying to use a php document on a secure server, but instead of displaying output from the script, it tries to download the file. Even code this simple does it: Thanks!!

RE: [PHP] Algorithm for repeating calendar events

2001-07-12 Thread Matthew Loff
libmcal is a pain in the butt to set up, but once it's set up, it has some great features... I had to write a PHP page that handled scheduling of appointments, and mcal saved me a lot of time, after I spent the initial 2 hours pulling my hair to set it up. :) -Original Message- From: R

RE: [PHP] Alternative to phpMyAdmin

2001-07-12 Thread Matthew Loff
Same here... I run MySQL on Win2k as well as Linux machines, and use Mysql-Front for things like table creation, user management, etc. It's also a great tool for EXPLAINing massive queries to find the most efficient. -Original Message- From: scott [gts] [mailto:[EMAIL PROTECTED]] S

[PHP] error compiling php4.0.6 with apache

2001-07-12 Thread intiroch
> Jorge Inti Benites RocheHi! > i'm trying to compile php4.0.6 for it i do: > > ./configure --with-zlib --with-mm --with-mysql --with-mcal=../libmcal --with > -ldap --with-imap=/usr/lib --with-gettext --enable-ftp --with-db3=/usr/loc al > /BerkeleyDB.3.2 --with-apache=../apache --with-mcrypt > >

Re: [PHP] New host doesn't allow file uploads through PHP

2001-07-12 Thread Rasmus Lerdorf
If you use the documented mechanism for handling file uploads, then there is no such security problem. See http://www.php.net/manual/en/features.file-upload.php ie. use the move_uploaded_file() function. -Rasmus On Thu, 12 Jul 2001, Toby Goldstone wrote: > Hi. > > I've (or rather the company

RE: [PHP] Re: $HTTP_REFERER < 10

2001-07-12 Thread scott [gts]
i know that i am always interested to see code posted on this list... even if i cannot personally use the code, i'm always curious to see how people write code. > -Original Message- > From: Inércia Sensorial [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] Re: $HTTP_REFERER < 10 > > Than

Re: [PHP] Algorithm for repeating calendar events

2001-07-12 Thread Rasmus Lerdorf
Not quite live yet. You'll see it when it goes live. By the way, there is a very complete date class in PEAR that has pretty much everything you would need to build a calendar app. See pear/Date/Calc.php -Rasmus On Thu, 12 Jul 2001, Reuben D Budiardja wrote: > Great, I'd like to steal it too

Re: [PHP] Algorithm for repeating calendar events

2001-07-12 Thread Reuben D Budiardja
Great, I'd like to steal it too then :). I just check php.net, but couldn't find it. In what section would you put it? Thanks. Reuben D. Budiardja On Tuesday 10 July 2001 05:34 pm, Rasmus Lerdorf wrote: > > Have any of you seen those calendar applications that let you program > > events that r

Re: [PHP] Re: $HTTP_REFERER < 10

2001-07-12 Thread Inércia Sensorial
Thank you Scott for the various ideas. I am preventing an eventual 'no referer' situation with a default url provided by who opens an account. I am getting (and trying to give :)) help on this list, so I will ask first before doing... Is it normal to announce personal projects here? This one

RE: [PHP] Alternative to phpMyAdmin

2001-07-12 Thread scott [gts]
i manage the production mysql database on a linux server from my windows desktop at work it's an extremely nice program. :) many compliments to the authour, if he reads this list. > -Original Message- > From: Alexander Skwar [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 12, 200

RE: [PHP] Alternative to phpMyAdmin

2001-07-12 Thread Steph
After a little investigation, I figured out what was wrong - for whatever reason the server is requiring /index.php as part of the url. But thanks guys, I'll definitely look into MYSQL- Front!! -Original Message- From: Matthew Loff [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001

Re: [PHP] Alternative to phpMyAdmin

2001-07-12 Thread Alexander Skwar
So sprach »Matthew Loff« am 2001-07-12 um 14:07:16 -0400 : > > I second that recommendation-- MySQL-Front is downright excellent! > > http://www.mysqlfront.de/ Well, but how is that going to work, if Steph wants to manage his databases on his providers server? Besides, mysqlfront is a Windows

Re: [PHP] Alternative to phpMyAdmin

2001-07-12 Thread Clayton Dukes
I'd like to cast my vote for Webmin :-) www.webmin.com Clayton Dukes CCNA, CCDA, CCDP, CCNP (c) 904.477.7825 (h) 904.292.1881 Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net - Original Message - From: "Matthew Loff" <[EMAIL PROTECTED]> To: "'Steve Brett'" <

RE: [PHP] Alternative to phpMyAdmin

2001-07-12 Thread Matthew Loff
I second that recommendation-- MySQL-Front is downright excellent! http://www.mysqlfront.de/ -Original Message- From: Steve Brett [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 6:47 AM To: Steph; [EMAIL PROTECTED] Subject: RE: [PHP] Alternative to phpMyAdmin mysql front is

[PHP] Re: building a search engine ??

2001-07-12 Thread ~~~i LeoNid ~~
On Thu, 12 Jul 2001 14:26:33 +0200 impersonator of [EMAIL PROTECTED] (Void) planted &I saw in php.general: >I am thinking of building a search engine with the grep command for our >site. >i have my information in a mysql db, >but i am putting it back into text files. >reoson being is that maybe t

RE: [PHP] building a search engine ??

2001-07-12 Thread Brian Paulson
http://www.htdig.org -Original Message- From: Navid A. Yar [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 10:50 AM To: 'scott [gts]'; 'php' Subject: RE: [PHP] building a search engine ?? This sounds interesting. Where can I find htdig? -Original Message- From: scott

RE: [PHP] building a search engine ??

2001-07-12 Thread Navid A. Yar
This sounds interesting. Where can I find htdig? -Original Message- From: scott [gts] [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 12:20 PM To: php Subject: RE: [PHP] building a search engine ?? and to answer one of the previous questions, yes... it is *very* resource inte

[PHP] RE: building a search engine ??

2001-07-12 Thread Philip Hallstrom
You might also take a look at: http://www.php.net/manual/en/ref.mnogo.php On Thu, 12 Jul 2001, scott [gts] wrote: > and to answer one of the previous questions, > > yes... it is *very* resource intensive to scan an entire > directory tree full of files every single time a user > wants to search

RE: [PHP] building a search engine ??

2001-07-12 Thread scott [gts]
and to answer one of the previous questions, yes... it is *very* resource intensive to scan an entire directory tree full of files every single time a user wants to search as far as i know, htdig indexes the information into one big file, and just reads thru that... which will save you load

RE: [PHP] Re: $HTTP_REFERER < 10

2001-07-12 Thread scott [gts]
a partial suggestion would be to try an fopen() on the HTTP_REFERER if it was a static document like .html or .txt but if someone is being redirected from a CGI script or dyanmic page of any sort, it'll be virtually impossible to find out exactly where they came from and if that page is valid

[PHP] Please Help!!how to connect to a database server

2001-07-12 Thread David Yen
hi. I am a newbie. We have a database server on the network along with an IIS (MS Internet Information server)server. We have PhP installed on IIS. What would the db connection parameters look like if I wanted to connect to our DB server. The database server name is USABASE. would it be.

[PHP] Re: Popquiz...

2001-07-12 Thread Lasse
"Elias" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How you mean *in it's original form* ? > > "Lasse" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > ..Or call it a riddle.. Whatever... :-) > > > > What did the follo

[PHP] Regular expression, parsing bad html in a xml document (strange)

2001-07-12 Thread Francis Fillion
I'm having problem with regular expression, not a good eek this week it seen like I alway's get a wall of problem. I know that it surely been ask a 1000 times, I look around, didn't find anythings, if you find somethings please point me out. So here what I want to do, I need to parse a xml docume

Re: [PHP] Speed of loding PHP pages

2001-07-12 Thread Alexander Skwar
So sprach »Aral Balkan« am 2001-07-11 um 14:59:44 -0400 : > Personally, I couldn't be happier that Netscape won't be making browsers Ah, so Microsoft also stopped making "operating systems"? > anymore and I wish that trouble-some bug of an excuse for a browser would > just go away :) Well, Nets

[PHP] how to check if the required fields were filled in without the text in them?

2001-07-12 Thread Aniceto Lopez
Hola everybody; this is a simple form to send a mail via php, check if a field was filled in and prompt an error msg (if not) is easy but when the Submit button is presssed the text in the rest of the fields dessapear. How to avoid fields draining if one of them is no filled in? thanks Ani López

Re: [PHP] Finding Out Document That Included Another File

2001-07-12 Thread Aral Balkan
The way PHP works currently, $PHPSELF will point to your original file. This is actually a problem, as it means that you cannot use relative includes in the included file if its in a different directory. There's currently discussion on the PHP-DEV list about changing this. Perhaps there's going t

[PHP] Finding Out Document That Included Another File

2001-07-12 Thread Jeff Gannaway
I have a PHP file that gets included by a lot of other files in a lot of other directories. Among other things, this file needs to display a link to that original page. I know I could specify this in a variable in each original file before the INCLUDE statement, but I'd like to do something more

[PHP] PHP Security Info - PLEASE READ

2001-07-12 Thread Gonyou, Austin
http://www.securereality.com.au/studyinscarlet.txt -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

[PHP] Arggg

2001-07-12 Thread Christopher Allen
PHP PEOPLE, Sorry this is way off topic but can anyone point me to a place where I can find out how to mount/automount a tape drive in Linux? I need to know device name mount commands and tape drive commands etc...Been searching on the net for hours and the bits and pieces are not forming a whole

RE: [PHP]I'm puzzled. TEXTAREA related.

2001-07-12 Thread Mark Roedel
> -Original Message- > From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 5:40 PM > To: PHP General List (E-mail) > Subject: [PHP]I'm puzzled. TEXTAREA related. > > > hey- > > i have a page containing a form with a textarea field. The > first part of the pa

[PHP] Defining constants with a value of 0?

2001-07-12 Thread Robert
I'm running into some unexpected behavior that I can't figure out. This is with PHP version 3, where, to my knowledge, boolean is not built in. The type of true is returned as an integer, while the type of false is returned as a string. Even if I say (int) 0, it still returns its type as a st

AW: [PHP] associative arrays

2001-07-12 Thread Martin Lucas
hi adrian, many thanks for your tip. it works fine. kind regards martin -Ursprüngliche Nachricht- Von: Adrian Ciutureanu [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 12. Juli 2001 15:46 An: Martin Lucas Cc: [EMAIL PROTECTED] Betreff: RE: [PHP] associative arrays $result = mysql_db

RE: [PHP] Array problem in PHP. Please help.

2001-07-12 Thread Adrian Ciutureanu
foreach($oldArray as $a)) { list($key, $value) = each($a); $newArray[$key] = $value; } > -Original Message- > From: Michael Champagne [mailto:[EMAIL PROTECTED]] > Sent: 12 iulie 2001 17:37 > To: PHP General Mailing List > Subject: [PHP] Array problem in PHP. Please help.

[PHP] compiling

2001-07-12 Thread intiroch
Jorge Inti Benites RocheHi! i'm trying to compile php4.0.6 for it i do: ./configure --with-zlib --with-mm --with-mysql --with-mcal=../libmcal --with -ldap --with-imap=/usr/lib --with-gettext --enable-ftp --with-db3=/usr/local /BerkeleyDB.3.2 --with-apache=../apache --with-mcrypt ok but when i tr

[PHP] multible queries and gets() command

2001-07-12 Thread Jan-Mark Kunberger
Dear php support ! I’m using the fgets() command in a counter. Basically the counter opens a txt-file gets the information from the previous query (see code below). Later this information will be evaluated and be written back into the txt-file (this is not in the code below). $fn = "qrydata.txt"

  1   2   >