Re: [PHP] line break

2001-04-26 Thread Alex Piaz
At 22:23 26/4/2001 -0400, Joao Prado Maia wrote: >Actually the correct sequence is \r\n on Windows platforms. Just a small >note. Yeah! You're right. I made a typo here:-) Nice to know I'm not alone. See you at php-pt;-) []'s Alex -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] PHP+MS Access and/or MS SQL

2001-04-26 Thread kelvin
just point your browser to phpbuilder.net. Alternatively, just send me an email =) Date: Wed, 25 Apr 2001 19:02:12 -0700 (PDT) From: John Monfort <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: PHP

[PHP] error reporting/handling

2001-04-26 Thread Jack Dempsey
manesh, its in your php.ini file under error handling and logging... seek and ye shall find... -jack -- 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

[PHP] what is wrong with this login script?

2001-04-26 Thread Jacky
Hi all I tried to make a login function for my site using script below, but after I type user name and password, it asked me to type again and again and simply reject it, although I have made sure that the username and password I used to test is in the table for sure. No database connection pro

RE: [PHP] math calculations query

2001-04-26 Thread Maxim Maletsky
SELECT SUM(quantity)*SUM(total) As mySUM FROM table WHERE ... Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECT

RE: [PHP] mcrypt module for Win32

2001-04-26 Thread Maxim Maletsky
I think PEAR has it. have you tried to look at it? Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Carsten Gehling [mailto:[EMAIL PROTECTED]] Sent: Friday, April 27, 2001 5

RE: [PHP] alter table name with php and mysql

2001-04-26 Thread Maxim Maletsky
it just as same as doing a query: $db->connect(); $db->query("ALTER TABLE table CHANGE field field ~ATTRIBUTES~"); well, that was with a DB abstraction layer. just use what you usually use to query your Db having your ALTER TABLE in the mysql_query. (no need to show the results up) Sincerely

RE: [PHP] in_array() function not supported on my server... anything else?

2001-04-26 Thread Maxim Maletsky
yeah.. the loop. see php.net/arrays most of the coolest array functions were introduced in PHP4 if you are trying to make a dynamic portable application you might want to look into phpversion(); this will tell you which version it runs, and based on that will select the best way to find the re

[PHP] mkstemp()

2001-04-26 Thread Randy Johnson
I cannot find any documentation on mkstemp() . Can somebody point me in the right place? thanks randy -- 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: [E

[PHP] printable output of array

2001-04-26 Thread Mike Tuller
I had what I thought was a great idea in creating a downloadable phone directory using PHP to connect to the LDAP server and gather the info for output. I originally wanted to have it create a PDF document, and still would, but I don't think that you can create multiple page documents with PHP and

RE: [PHP] check if an url is valid

2001-04-26 Thread Maxim Maletsky
no, sockets are not a bad solution at all. They are just as fast. And plus fsockopen has more functionality such as timing out, result messages, mess_num etc... what fopen doesn't have. I think fsockopen is better for this job. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginne

RE: [PHP] Array & Javascript?

2001-04-26 Thread Maxim Maletsky
STRIPSLASHES(); use single quotes for the array. add the slashes in front each JS's single quote, when echoing use : echo stripslashes($js); Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original

RE: [PHP] Sizeof a multi-dimensional array??

2001-04-26 Thread Maxim Maletsky
it should. if(is_array($x[0])) $count = count($x[0]); else $count = 'not an array'; Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Chris Anderson [mailto:[E

Re: [PHP] What's wrong with Apache + php + mysql on Windows?

2001-04-26 Thread Steve Maroney
I think the question should be what's wrong with Windows? :) Sorry, I can't give you more of an intelligent answer Steve On Thu, 26 Apr 2001, Mig wrote: > Hello, I can't understand the reason apache server running locally on my > Win98 machine delays so much to respond browser when accesi

[PHP] *.php and the search engienes on the web

2001-04-26 Thread SED
Hi all, If I make a whole website based on one PHP-navigation file with links like "index.php?id=123", will all the search engines who crawl the websites be able to follow it and index? Regards, Sumarlidi Einar Dadason SED - Graphic Design -- Phone:

Re: [PHP] *.php and the search engienes on the web

2001-04-26 Thread Philip Olson
some do, not sure which do and don't these days though. for related information, check out this tutorial : Building Dynamic Pages With Search Engines in Mind : http://phpbuilder.com/columns/tim2526.php3 regards, philip On Fri, 27

[PHP] php4 on RedHat 7.1

2001-04-26 Thread j2n tech
I'm trying to get a webmail client to work under RH 7.1 with Apache 1.3.19. I downloaded php-4.0.4pl and configured and installed it. Now when I try to bring up a php page it trys to download it instead of execute. I added the "AddType" line for php4 in my httpd.conf but it made no difference.

Re: [PHP] *.php and the search engienes on the web

2001-04-26 Thread Steve Werby
"SED" <[EMAIL PROTECTED]> wrote: > If I make a whole website based on one PHP-navigation file with links like > "index.php?id=123", will all the search engines who crawl the websites be > able to follow it and index? A lot of them won't index pages with query strings (the part after the "?"). I p

Re: [PHP] math calculations query

2001-04-26 Thread Steve Werby
"Maxim Maletsky" <[EMAIL PROTECTED]> wrote: > SELECT > SUM(quantity)*SUM(total) As mySUM > FROM > table > WHERE Technically, this is correct based on what the original poster (below) stated he wanted, but that's not really what he wanted since there's no real world reason to calculate what he sta

[PHP] php dieing/apache or something!

2001-04-26 Thread Eric Peters
[root@blackwidow logs]# gdb /usr/local/apache/bin/httpd GNU gdb 19991004 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to s

[PHP] Submiting two forms at the same time

2001-04-26 Thread Reuben D Budiardja
Hello, Is there any way I can send two forms at one time? What I want to do is to have two forms with different method (GET and POST), and then send them at one time, so that in the next page I get both $HTTP_POST_VARS and $HTTP_GET_VARS. To illustrate this:

[PHP] A newbie search site question

2001-04-26 Thread waro
Hello, I just learn PHP for a month now. It's hard for me since I have no background in programming (I do HTML but this is totally different). Last few days I try to make a simple script so visitors can search my site. I use a MySQL database here and there are some tables to handle my other PHP w

[PHP] Please send me som Semaphore and Shared Memory example...

2001-04-26 Thread ±èº´°Ç
i try to use Semaphore and Shared Memory ... but all... trying is failed @,@ please send some good example about using Semaphore and Shared Memory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: [PHP] A newbie search site question

2001-04-26 Thread David Robley
On Fri, 27 Apr 2001 14:27, waro wrote: > Hello, > > I just learn PHP for a month now. It's hard for me > since I have no background in programming (I do HTML > but this is totally different). > Last few days I try to make a simple script so > visitors can search my site. I use a MySQL database > h

RE: [PHP] php4 on RedHat 7.1

2001-04-26 Thread Ralph Guzman
Your httpd.conf configuration should look something like this: AddType application/x-httpd-php .php .phtml .php3 .php4 AddType application/x-httpd-php-source .phps -Original Message- From: j2n tech [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 8:42 PM To: [EMAIL PROTECTED] Su

[PHP] parse error is always on line 1 == error ?

2001-04-26 Thread Jimmy Lantz
Hi, I have a problem, that when I get a parse error it always says that it's on line 1 in this or that file. Where is the configuration option to set this right? I have on another server seen that it's possible to get it to state the actual error line. (it's PHP Version 3.0.15 on solaris) Plea

Re: [PHP] Problem with the HTTP_REFERER

2001-04-26 Thread Rosen
Is anybody knows how can I redirect to another page and the REFERER to another page to be my page ? Thanks, Rosen Marinov ""Rosen"" <[EMAIL PROTECTED]> wrote in message 9c912a$had$[EMAIL PROTECTED]">news:9c912a$had$[EMAIL PROTECTED]... > Hi, > I have BIG problem using "HTTP_REFERER". > I have t

Re: [PHP] mcrypt module for Win32

2001-04-26 Thread Carsten Gehling
From: "Maxim Maletsky" <[EMAIL PROTECTED]> Sent: Friday, April 27, 2001 5:00 AM > I think PEAR has it. > > have you tried to look at it? Found it, thanks! It contains HCE_MD5, but AFAICT it does not utilize the other encryption modes found in mcrypt. But it doesn't matter - I think this is fin

[PHP] RE: [PHP-DB] How can this be done?

2001-04-26 Thread Beau Lebens
you need to use the addslashes() command which will escape the quote mark for you, so something like $query="insert into trivia (trivia) values ('" . addslashes($line) . "')"; however, you will find that on a machine which is configured with magic_quotes_gpc turned on, you will end up with somet

[PHP] How can this be done?

2001-04-26 Thread Subodh Gupta
Hi All, I created a table using the create command. create table trivia ( entry_id integer not null auto_increment, trivia text null ); Now I have a fle tvia.txt, the content of which are as follows: The average person's left hand does 56% of the typing. The longest one-syllable wo

Re: [PHP] How can this be done?

2001-04-26 Thread Jack Dempsey
http://www.php.net/addslashes -jack Subodh Gupta wrote: > > Hi All, > > I created a table using the create command. > > create table trivia > ( > entry_id integer not null auto_increment, > trivia text null > ); > > Now I have a fle tvia.txt, the content of which are as follows:

Re: [PHP] What is this??

2001-04-26 Thread Jack Dempsey
Manesh wrote: > > Warning: Undefined variable > > How do i get rid of this??? > > -- > 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]

RE: [PHP] What is this??

2001-04-26 Thread Manesh
where is that? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jack Dempsey Sent: Thursday, April 26, 2001 10:38 PM To: Manesh Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] What is this?? Manesh wrote: > > Warning: Undefined variable > >

Re: [PHP] What is this??

2001-04-26 Thread Andrew Hill
You want to find the Error : Modify the error reporting section of you php.ini. You may combine different error settings with the symbols "~" (not) , "|" (or), and "&". to control the final error reporting level. As an example, the default setting "E_ALL & ~E_NOTICE" means "report all errors

Re: [PHP] What is this??

2001-04-26 Thread Philip Olson
Have a look at this post : http://marc.theaimsgroup.com/?m=98571030029538 regards, philip On Thu, 26 Apr 2001, Manesh wrote: > Warning: Undefined variable > > > How do i get rid of this??? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTE

[PHP] What is this??

2001-04-26 Thread Manesh
Warning: Undefined variable How do i get rid of this??? -- 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]

RE: [PHP] how to get var value

2001-04-26 Thread AJDIN BRANDIC
Thanks Ajdin On Thu, 26 Apr 2001, PHPBeginner.com wrote: > try > > $newvar = ${$var1}; > > > > Sincerely, > > Maxim Maletsky > Founder, Chief Developer > > PHPBeginner.com (Where PHP Begins) > [EMAIL PROTECTED] > www.phpbeginner.com > > > > > -Original Message- > From: A

RE: [PHP] PHP+MS Access and/or MS SQL

2001-04-26 Thread Andrew Hill
John, If you are using PHP from Windows you can use ODBC or the mssql_functions. >From Linux/Unix, you should compile the iODBC Driver Manager into your PHP/Apache build, and then drop in an ODBC driver. There is a HOWTO at www.iodbc.org on compiling PHP with iODBC. Best regards, Andrew --

[PHP] Tough comparison problem.

2001-04-26 Thread [EMAIL PROTECTED]
I've got two functions that return data in an array. I need to compare the individual elements of one array against the elements of another, and do something within an if-else statement. I'm using php3, so I don't have an actual "foreach" loop to pick out the array elements. Instead, I use: whil

Re: [PHP] Mcrypt

2001-04-26 Thread Curtis Maurand
Did I hear anyone say "SSL?" Curtis On Thu, 26 Apr 2001, Alex Piaz wrote: > Hi All! > > It's my first post:-) > > I am working on a php web application that has to interchange encrypted > data to a VB windows standalone exe. Does anybody know the best way to do it?? > > I am making some tests

[PHP] Mcrypt

2001-04-26 Thread Alex Piaz
Hi All! It's my first post:-) I am working on a php web application that has to interchange encrypted data to a VB windows standalone exe. Does anybody know the best way to do it?? I am making some tests with mcrypt_module using the BLOWFISH algorithm. On the web enviromment I can encrypt and

[PHP] simple form validation

2001-04-26 Thread Jamie Saunders
Hi, First of all, I've just joined this list, so here's a brief introduction. My name's Jamie Saunders, I'm an 18 year old student from the UK studying for my A-Levels. I'm currently working on a Computer Studies project for a local business which involves setting up several databases on th

[PHP] cell iterations in loop

2001-04-26 Thread Jerry Lake
I've got some code that I am creating that creates a table with a loop. and it works fine for what it is, but my question is how do I compensate for rows that aren't divisible by 5 ? i.e. the empty cells at the table. additionally if it ends on a complete row (divisible by 5) I end up with an add

Re: [PHP] alter table name with php and mysql

2001-04-26 Thread Kevin A Williams
Hi, check you've got a D/B connection, then use this, with the appropriate names in the variables, or use the explicit table names if you wish. If an error spews up, most likely the table name your trying to rename it to already exists. $sql = "RENAME TABLE $present_table_name TO $new_table_name

[PHP] check if an url is valid

2001-04-26 Thread Black Dragon
Hi! can you tell me how can I check if a remote files exists? I've tried with fopen, but I've a warning on STDOUT if file doesn't exists. I wouldn't redirect the STDERR to solve this problem. I could use fsockopen, but I feel that this is a bad solution. Can you tell me something that is easy?

<    1   2