Re: [PHP] mysql_fetch_row win32 to Linux

2002-01-13 Thread sundogcurt
Like this $myquery = SELECT * FROM xpackage; print pmyquery = $myquery/p; $myresult = mysql_query($myquery); while($myrowz = mysql_fetch_row($myresult)){ print p . $myrowz[0] . /p; } [EMAIL PROTECTED] wrote: on 1/12/02 11:45 AM, sundogcurt at [EMAIL PROTECTED] wrote: myquery = SELECT *

Re: [PHP] Piping data into a select box

2002-01-13 Thread Dean Householder
Thank's for the help! Dean - Original Message - From: Jimmy [EMAIL PROTECTED] To: Dean Householder [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, January 13, 2002 12:33 AM Subject: Re: [PHP] Piping data into a select box Hi Dean, Does anyone know how to give a select

[PHP] Re: Time Zone Offset?

2002-01-13 Thread Jim Winstead
Marvin Sanders [EMAIL PROTECTED] wrote: I'm using the PHP date() function on my site, but since my hosting company (Pair Networks) is on the East Coast and I'm on the West Coast, everything shows as three hours later (for most of my visitors, anyway). Pair tells me there's no setting I can

Re: [PHP] Send output before header location

2002-01-13 Thread Meir Kriheli
On Wednesday 09 January 2002 11:55, Alawi wrote: How can I output before send header I see some site some output and after that it Jump to other site !! Is that maked by header localtion ?? No, they're using a meta tag in the head section. Quoted from wdg-html-reference: META

[PHP] CSS Editors

2002-01-13 Thread Boaz Yahav
Are there any good CSS Editors. Something that will tell you to which browsers you are compatible while you write the CSS and such? berber -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

RE: [PHP] CSS Editors

2002-01-13 Thread Maciej Uhlig
TopStyle - http://www.bradsoft.com Maciek -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 13, 2002 12:28 PM To: [EMAIL PROTECTED] Subject: [PHP] CSS Editors Are there any good CSS Editors. Something that will tell you to which browsers you

[PHP] Trailing Navigation In PHP MySQL

2002-01-13 Thread steph
Im relatively new to PHP, and for one section of my site - I am creating a review database. Im working on designing how I want the navigation. I think the most effective way would be a trailing Navigation (ie Top Category 1 SubCategory 2). I've set up my MySQL Database with names of

Re: [PHP] Redeclaring functions

2002-01-13 Thread Geoff Caplan
Arve PHP has variable function names: $myfunc = this_is_a_func ; $foo = $myfunc( ) ; This way, you can make a single function call access a number of different functions at run time. You can't change the declaration, but you can change the call... You don't really say what you are planning

[PHP] 404 Redirection

2002-01-13 Thread FiShcAkE
Hey people, Probably a quick and simple question, but if I have the usuall in my script: -- 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] 404 Redirection

2002-01-13 Thread FiShcAkE
Try that again, without pressing ctrl-enter this time!! As I said, I have got the usual script: ? if(isset($action)) { $include = $action; } else { $include = home; } include($include. .inc); ? but, how do I put in a custom error page instead of seeing: Warning: Unable to access

Re: [PHP] Record Paging Using Arrays

2002-01-13 Thread Miles Thompson
Why don't you ask the question on a SQL Server list? This isn't a put down, or an attempt to shove you away, but if you can do this in MSFT's TRANSACT-SQL you will be offloading the work to the database engine which is designed to do it. Alternately, can you use two queries, the first which

[PHP] include with call

2002-01-13 Thread John Cuthbert
Hello, I have a file which does several different things depending on how its called Ie file?mode=show is to show it etc But I want to include the output from the show so I tried ?php include(file.php?mode=show); ? but this causes errors. It goes away with including as only file.php but doing

[PHP] php-win broke on 'OLEAUT32.DLL'

2002-01-13 Thread drobinson
Hi all, I had my php4 working with apache 1.3x on my Windows2000 box. However, I installed software for my Kodak DC215 digital camera and it overwrote some files in the WINNT/system32 directory. Php suddenly became unusable. I'm getting an error 'unable to find dynamic link node...in file

RE: [PHP] New to list

2002-01-13 Thread Boaz Yahav
Check out : http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=279 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Andrew [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 2:05 AM To:

RE: [PHP] Authenticating via http

2002-01-13 Thread Boaz Yahav
Check this out : http://www.weberdev.com/index.php3?GoTo=search.php3%3Fsearch%3Dauthentic ation%26searchtype%3Dtitle Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: Paul [mailto:[EMAIL PROTECTED]]

Re: [PHP] Time Zone Offset?

2002-01-13 Thread DL Neil
Marvin, I'm using the PHP date() function on my site, but since my hosting company (Pair Networks) is on the East Coast and I'm on the West Coast, everything shows as three hours later (for most of my visitors, anyway). Pair tells me there's no setting I can make on my account to change the

RE: [PHP] I'm new - one page to another

2002-01-13 Thread Boaz Yahav
You can start checking out examples on WeberDev.com :) Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: universal2001 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 9:28 AM To: [EMAIL PROTECTED]

RE: [PHP] Maybe OT but I was wondering....

2002-01-13 Thread Boaz Yahav
in Apache you can set this in the httpd.conf or in any .htaccess file : ErrorDocument 404 http://www.weberdev.com/404.php3 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Ben Turner [mailto:[EMAIL

Re: [PHP] 404 Redirection

2002-01-13 Thread mike cullerton
on 1/13/02 6:07 AM, FiShcAkE at [EMAIL PROTECTED] wrote: Try that again, without pressing ctrl-enter this time!! As I said, I have got the usual script: ? if(isset($action)) { $include = $action; } else { $include = home; } include($include. .inc); ? but, how do I put in a

[PHP] Re: include with call

2002-01-13 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (John Cuthbert) wrote: I have a file which does several different things depending on how its called Ie file?mode=show is to show it etc But I want to include the output from the show so I tried ?php include(file.php?mode=show); ? but this

[PHP] 4.1.1 Causes Signal 11 On FreeBSD 4.5 / Apache 1.3.22

2002-01-13 Thread Tim Gustafson
Hello I am experiencing a lot of Signal 11's when I compile PHP 4.1.1 into my Apache server on my FreeBSD 4.5-RC machine. If I compile the -exact- same Apache configuration with PHP 4.0.6, it works fine. As soon as I switch to 4.1.1, it causes Signal 11's (and sometimes 10's) when I load

Re: [PHP] 4.1.1 Causes Signal 11 On FreeBSD 4.5 / Apache 1.3.22

2002-01-13 Thread Rasmus Lerdorf
I am experiencing a lot of Signal 11's when I compile PHP 4.1.1 into my Apache server on my FreeBSD 4.5-RC machine. If I compile the -exact- same Apache configuration with PHP 4.0.6, it works fine. As soon as I switch to 4.1.1, it causes Signal 11's (and sometimes 10's) when I load certain

[PHP] Setting up an XML platform/website

2002-01-13 Thread Emile Bosch
Is anyone interested in setting up an XML platform for PHP, where the use of XML is explained, with sample PHP/XML applications and in-depth real live tutorials? Since lot's of people underestimate the power of XML. Maybe, it's nice to be ready when Microsoft's dotNet crashes in and launches an

[PHP] Newbie database question

2002-01-13 Thread Dean Ouellette
I am entering info from form into database, is there a way to check say firstname, lastname and address to see if it is a duplicate to what is already in database and if it is then just enter any new information they may enter and not create a new entry -- PHP General Mailing List

Re: [PHP] Newbie database question

2002-01-13 Thread Richard Crawford
Which database are you using? Dean Ouellette wrote: I am entering info from form into database, is there a way to check say firstname, lastname and address to see if it is a duplicate to what is already in database and if it is then just enter any new information they may enter and not

Re: [PHP] Newbie database question

2002-01-13 Thread Dean Ouellette
MySql At 10:10 AM 1/13/2002 -0800, Richard Crawford wrote: Which database are you using? Dean Ouellette wrote: I am entering info from form into database, is there a way to check say firstname, lastname and address to see if it is a duplicate to what is already in database and if it is

Re: [PHP] Newbie database question

2002-01-13 Thread mike cullerton
on 1/13/02 10:51 AM, Dean Ouellette at [EMAIL PROTECTED] wrote: I am entering info from form into database, is there a way to check say firstname, lastname and address to see if it is a duplicate to what is already in database and if it is then just enter any new information they may enter

Re: [PHP] Newbie database question

2002-01-13 Thread Richard Crawford
I don't think that there's an easy way to do it in MySQL. I usually use some hack along the lines of, select x from t where x = $y, and if there are any results returned, return a message of some sort (That value already exists in the database!). Bear in mind that sometimes people have very

[PHP] Decryption

2002-01-13 Thread John Cuthbert
Is there a method for decrypting encrypted things by md5? -- 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] Re: include with call

2002-01-13 Thread John Cuthbert
Thanks :) Cc Zona [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In article [EMAIL PROTECTED], [EMAIL PROTECTED] (John Cuthbert) wrote: I have a file which does several different things depending on how its called Ie file?mode=show is to show it etc

[PHP] anyone with a usenet editor

2002-01-13 Thread Peter J. Schoenster
Hi, I'm building a database of usenet postings for soc.culture.brazil. This was easy enough (with exception of handling mime in the postings); I'm just dumping the body of the message into the database. I plan to allow a person to select a thread, perhaps a user or whatever and then get all

Re: [PHP] Decryption

2002-01-13 Thread Joe Conway
John Cuthbert wrote: Is there a method for decrypting encrypted things by md5? No. MD5 is a one-way hash, *not* a form of encryption. A hash is specifically designed so that it is impractical to find the input string, given the output string. If you need to encrypt/decrypt, look at the

php-general Digest 13 Jan 2002 19:37:23 -0000 Issue 1109

2002-01-13 Thread php-general-digest-help
php-general Digest 13 Jan 2002 19:37:23 - Issue 1109 Topics (messages 80335 through 80368): Send output before header location 80335 by: Alawi 80336 by: David 80340 by: Meir Kriheli Re: mysql_fetch_row win32 to Linux 80337 by: sundogcurt Re: Piping data

[PHP] convert yyyy/mm/dd to mm/dd/yyyy, how?

2002-01-13 Thread Sander Peters
Hello everybody, convert /mm/dd to mm/dd/, how? MYSQL does everything in /mm/dd. I live in the Netherlands and we are use to the format dd/mm/. What's the best way to display it as mm/dd/ in a table on a query? My first idea whas to split the date up in vars in php and

Re: [PHP] convert yyyy/mm/dd to mm/dd/yyyy, how?

2002-01-13 Thread Jonathan David Edwin Wright
Hiya, Personally, I use the following bit of code. All it does is take a 14 digit timestamp and convert it into a unix timestamp: function date($date) { //Extract the parts from the date $year = substr($date, 0, 4); $month = substr($date, 4, 2); $day = substr($date, 6, 2);

Re: [PHP] convert yyyy/mm/dd to mm/dd/yyyy, how?

2002-01-13 Thread mike cullerton
on 1/13/02 12:56 PM, Sander Peters at [EMAIL PROTECTED] wrote: My first idea whas to split the date up in vars in php and then print the vars in the way I like it Is this a bad idea? Or are there better sollutions? that's the way i do it. i have 2 functions i use all the time for getting

Re: [PHP] Decryption

2002-01-13 Thread Steve Maroney
On Sun, 13 Jan 2002, John Cuthbert wrote: Is there a method for decrypting encrypted things by md5? -- 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,

Re: [PHP] Newbie database question

2002-01-13 Thread Peter J. Schoenster
On 13 Jan 2002, at 12:51, Dean Ouellette wrote: I am entering info from form into database, is there a way to check say firstname, lastname and address to see if it is a duplicate to what is already in database and if it is then just enter any new information they may enter and not create a

Re: [PHP] convert yyyy/mm/dd to mm/dd/yyyy, how?

2002-01-13 Thread Rasmus Lerdorf
MySQL has plenty of functions to return dates to you in any format you specify. Please read http://mysql.com/documentation/mysql/bychapter/manual_Reference.html#Date_and_time_functions and pay special attention to the DATE_FORMAT() function. -Rasmus On Sun, 13 Jan 2002, Sander Peters wrote:

[PHP] Re: [PHP-DB] Re: [PHP] convert yyyy/mm/dd to mm/dd/yyyy, how?

2002-01-13 Thread DL Neil
Rasmus, I have held several datetime-related conversations with people recently, and another series about 'when'/whether to use PHP or MySQL functionality. Here you are, the man of PHP, advising Sander to use MySQL functionality! (and in marked contrast to the (biased) advice one might expect

[PHP] strtok bug

2002-01-13 Thread Robert Mena
Hi, does anybody know when the strtok bug introduced in 4.1.1 will be fixed ? Will we have a 4.1.2 or should I try to grab a cvs tree (assuming that it is already solved) ? thanks. __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail!

[PHP] Re: [PHP-DB] Re: [PHP] convert yyyy/mm/dd to mm/dd/yyyy, how?

2002-01-13 Thread Rasmus Lerdorf
You use the right tool for the job. MySQL is going to have to format the date field for the return anyway. It makes sense to simply tell MySQL your preferred format instead of having it returned to you in the wrong format and then you having to apply more gear to get it into the right one.

RE: [PHP] PHP timesheets?

2002-01-13 Thread Boaz Yahav
I can't get it to run... 1. The application keeps looking for the include files in the main path instead of the include dir. 2. The admin will not accept the default pass that is written in the INSTALL... Any ideas? Sincerely berber Visit http://www.weberdev.com Today!!! To see where

[PHP] Invalid Email Characters

2002-01-13 Thread Alexis Antonakis
Hi, Could anybody confirm exactly which characters, if any, are NOT valid in an email address. Many Thanks Alexis -- 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,

Re: [PHP] Invalid Email Characters

2002-01-13 Thread DL Neil
Alexis, Could anybody confirm exactly which characters, if any, are NOT valid in an email address. =such rules of the Internet are laid out in documents called RFCs (initially they are Requests for Comment but once adopted become ...) You are looking for RFC822 (although there are others

Re: [PHP] Invalid Email Characters

2002-01-13 Thread Peter J. Schoenster
On 13 Jan 2002, at 21:43, DL Neil wrote: Alexis, Could anybody confirm exactly which characters, if any, are NOT valid in an email address. =such rules of the Internet are laid out in documents called RFCs (initially they are Requests for Comment but once adopted become ...) You

RE: [PHP] How to get a function backtrace?

2002-01-13 Thread Martin Towell
Hmm... I've been wondering if a function to do this exists too... would be REALLY handing for debugging!! Anyone know?? -Original Message- From: Stefan Rusterholz [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 8:35 PM To: PHP Subject: [PHP] How to get a function backtrace?

[PHP] beginer

2002-01-13 Thread Vania Lavielle Castro
Hi! somebody say me how work with sql server and code php? i try with the functions and the results are bad i need examples, please :( -- 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] External Function

2002-01-13 Thread Cory
Is it possible to put all of my functions in a text file and just call it and use the functions in it? -- 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:

Re: [PHP] beginer

2002-01-13 Thread mike cullerton
on 1/13/02 10:32 AM, Vania Lavielle Castro at [EMAIL PROTECTED] wrote: how work with sql server and code php? i try with the functions and the results are bad i need examples, please :( http://www.php.net/links.php -- mike cullerton -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] External Function

2002-01-13 Thread mike cullerton
on 1/13/02 10:06 AM, Cory at [EMAIL PROTECTED] wrote: Is it possible to put all of my functions in a text file and just call it and use the functions in it? http://www.php.net/manual/en/function.require-once.php http://www.php.net/manual/en/function.include-once.php -- mike cullerton

Re: [PHP] beginer

2002-01-13 Thread Miles Thompson
Tutorials at http://www.thickbook.com. There are also tutorials at DevShed and WebMonkey, and links at http://www.php.net (or one of its mirrors) Miles Thompson At 12:32 PM 1/13/2002 -0500, Vania Lavielle Castro wrote: Hi! somebody say me how work with sql server and code php? i try with

[PHP] Re: strtok bug

2002-01-13 Thread Manuel Lemos
Hello, Robert Mena wrote: Hi, does anybody know when the strtok bug introduced After 4.0.6 . in 4.1.1 will be fixed ? Will we have a 4.1.2 or should I try to grab a cvs tree (assuming that it is already solved) ? You may want to ask that in php-dev mailing list because last time that I

Re: [PHP] Invalid Email Characters

2002-01-13 Thread Gabor Gludovatz
On Sun, 13 Jan 2002, Peter J. Schoenster wrote: You might want to look at the regular expression constructed by Jeffrey Friedl as described here: http://builder.cnet.com/webbuilding/pages/Programming/Scripter/05 2098/ss01.html In this example \w matches any word character. A word character

Re: [PHP] strtok bug

2002-01-13 Thread Philip Olson
Are you referring to the change with 4.1.0 that's documented in the manual? Have another look, it gives examples of new/old behavior: http://www.php.net/strtok Regards, Philip Olson On Sun, 13 Jan 2002, Robert Mena wrote: Hi, does anybody know when the strtok bug introduced in 4.1.1

[PHP] External Function

2002-01-13 Thread Cory
Is there anyway that I can have a file (ex: functions.txt) that has all of my functions in it. And I can call that file and use the functions that are in it. If it is possible, than that would save me a load of time, thanks Cory -- PHP General Mailing List (http://www.php.net/) To

[PHP] PHP and search engine???

2002-01-13 Thread Dani
Hi! is it possible to use include() to optimise the meta tags on our web pages? example: if yahoo.com is spidering our page the key word provided is a,b,c, ... if altavista.com is spidering then use key word.etc.. if it is possible how do i know that yahoo is spidering or altavista is

Re: [PHP] PHP x Mysql

2002-01-13 Thread Vincent Stoessel
Yeah, this smells like someone upgraded/recompiled php without mysql and that is pretty hard to do nowadays as mysql is built in by default. Dennis Moore wrote: execute phpinfo(); on a new page to see if mysql is still compiled in...; - Original Message - From: Frederico

Re: [PHP] External Function

2002-01-13 Thread Jason Wong
On Monday 14 January 2002 07:19, Cory wrote: Is there anyway that I can have a file (ex: functions.txt) that has all of my functions in it. And I can call that file and use the functions that are in it. If it is possible, than that would save me a load of time, thanks Cory

Re: [PHP] PHP timesheets?

2002-01-13 Thread Jason Wong
On Monday 14 January 2002 05:30, Boaz Yahav wrote: I can't get it to run... 1. The application keeps looking for the include files in the main path instead of the include dir. use ini_set() to change the include_path -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* The day

Re: [PHP] memory error

2002-01-13 Thread Vincent Stoessel
Sometimes a memory error is just a memory error. What does your ram/swap usage look like? Thomas Holton wrote: Hi I built PHP on an ALPHA running OSF V5.1 I did the install after the make just like i did in the past. This time, however, when i do: apachectl start i get this:

[PHP] Php.ini file missing

2002-01-13 Thread Michael Sciascia
Hi, I am new to this list and also to php and I am sorry to already bother you with a question you might find really stupid, but I looked around for this information several days now and I couldn't find some good resources. I installed php 4.1.0 on Mac OS X 10.1.2 and everything seems to work

Re: [PHP] Php.ini file missing

2002-01-13 Thread mike cullerton
hi michael, to create the directory and file, you'll need to run the terminal application. from there, type sudo mkdir /usr/local/lib to create the necessary directory. you should get prompted for a password. type your own password. you need to do this from an administrator account. the

RE: [PHP] Php.ini file missing

2002-01-13 Thread Rafael Perazzo
I think that you have this problem because your sendmail is not running. Try to run your sendmail (probably this command /etc/rc.d/init.d/./sendmail start- Note that before the name sendmail you have two chars ./) and I think your problem will be fixed. Then test your script again to see

Re: [PHP] Php.ini file missing

2002-01-13 Thread mike cullerton
on 1/13/02 6:35 PM, Rafael Perazzo at [EMAIL PROTECTED] wrote: I think that you have this problem because your sendmail is not running. Try to run your sendmail (probably this command /etc/rc.d/init.d/./sendmail start- Note that before the name sendmail you have two chars ./) and I

[PHP] RE: [PHP-DEV] Re: strtok bug

2002-01-13 Thread alain samoun
Manuel: What is broken with strtok() since php4.06? So far my code that use it seems to work ok with PHP4.10...??? I'd Like to know ;) A+ Alain -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 13, 2002 2:44 PM To: [EMAIL PROTECTED]; [EMAIL

Re: [PHP] Php.ini file missing

2002-01-13 Thread Miles Thompson
Check the README or INSTALL docs. The file is there under another name, but right now I can't remember. Something like distribution.ini. Regards - Miles Thompson At 02:03 AM 1/14/2002 +0100, Michael Sciascia wrote: Hi, I am new to this list and also to php and I am sorry to already bother you

RE: [PHP] PHP and search engine???

2002-01-13 Thread Martin Towell
you could try looking at http_referer or remote_host or something like that. Never tried it myself, but sounds like it'd work... dunno what the values for them would be though :( -Original Message- From: Dani [mailto:[EMAIL PROTECTED]] Sent: Monday, January 14, 2002 2:17 PM To: PHP LIST

[PHP] Slow references?

2002-01-13 Thread Tino Didriksen
Is it just me, or is working with references slow? I have functions that loop through about 1 lines of text, generating stats on the content. When I pass the lines to the function normally, this takes 0.8 seconds. Passing by reference, or as a reference, both increase the time to 6 seconds.

[PHP] i need mssql(beginer)

2002-01-13 Thread Vania Lavielle Castro
Hi: I need some php functions with sql server and I don't have access to internet, I connected with my server but I can not to execute any query. at the moment I am working with odbc but it is not what I want :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Slow references?

2002-01-13 Thread Rasmus Lerdorf
copies are faster if you don't change the copied data since no copy is actually done. It is a shallow copy also know as a copy-on-write so you should just pass a copy in your case, I bet. -Rasmus On Mon, 14 Jan 2002, Tino Didriksen wrote: Is it just me, or is working with references slow?

[PHP] Re: PHP and search engine???

2002-01-13 Thread Tino Didriksen
You check the $HTTP_USER_AGENT for what robot is going through your site. Yahoo, which gets their results from Google, would then have Googlebot somewhere in the var. To control webcrawlers more, you can look up robots.txt ( http://www.robotstxt.org/ ). --|-- Tino Didriksen http://ProjectJJ.dk/

Re: [PHP] External Function

2002-01-13 Thread Bogdan Stancescu
As Jason said, include() is what you should look for and, as Mike said, you should also take a look at include_once() and require_once(). Obviously, require() is another option. However, you should be aware that txt files are displayed as plain text when accessed, so if any sensitive data is in

[PHP] Re: [PHP-DEV] Re: strtok bug

2002-01-13 Thread Manuel Lemos
Hello, Alain Samoun wrote: Manuel: What is broken with strtok() since php4.06? So far my code that use it seems to work ok with PHP4.10...??? I'd Like to know ;) If the token character is the first of the string you want to tokenize, now strtok ignores it, before it would return an empty

Re: [PHP] Re: [PHP-DEV] Re: strtok bug

2002-01-13 Thread Rasmus Lerdorf
You call it broken, we call it finally making them POSIX-compliant. Whatever floats your boat. -Rasmus On Mon, 14 Jan 2002, Manuel Lemos wrote: Hello, Alain Samoun wrote: Manuel: What is broken with strtok() since php4.06? So far my code that use it seems to work ok with

[PHP] IF Statements

2002-01-13 Thread Necro
I have a page for listing the contents of a table from my db. Being client.php?action=list As the action variable also allows for adding extra to the table, etc. Once I use ?action=list I want to be able to click on a single record and have it give me the extended info. so

[PHP] SELECT DAYOFYEAR(NOW())

2002-01-13 Thread sundogcurt
Hi! I'm storing a date in this format : 2002-01-13 11:08:40 -mm-dd hh:mm:ss This is great because it gives me the date and the time, which I need. I want to compare this date from the database to the current DAYOFYEAR() but when I do this select DAYOFYEAR('2002-01-13 11:08:40') I get this

Re: [PHP] IF Statements

2002-01-13 Thread Bogdan Stancescu
if ($action=='list') { if (!$clientcode) { old_code } else { new_code } } I put the $clientcode test inside the $action test because I suppose you take different actions on $clientcode depending on $action - if that's not the case, simply switch the two if's. This assumes that

Re: [PHP] SELECT DAYOFYEAR(NOW())

2002-01-13 Thread Rasmus Lerdorf
This doesn't appear to be a PHP question. Are you sure you are on the right list? On Sun, 13 Jan 2002, sundogcurt wrote: Hi! I'm storing a date in this format : 2002-01-13 11:08:40 -mm-dd hh:mm:ss This is great because it gives me the date and the time, which I need. I want to

Re: [PHP] SELECT DAYOFYEAR(NOW())

2002-01-13 Thread sundogcurt
I am a dork! And you answered that almost before I sent it, you're like Mighty Mouse on Ginseng! [EMAIL PROTECTED] wrote: This doesn't appear to be a PHP question. Are you sure you are on the right list? On Sun, 13 Jan 2002, sundogcurt wrote: Hi! I'm storing a date in this format :

Re: [PHP] IF Statements

2002-01-13 Thread James Mclean
Hi, My problem is working out how to evaluate this new part. I have normal If statements for the listing, adding, etc. But how can I get it to check if clientcode is present. If clientcode is not present I want it to load the list page as normal. But if the clientcode is present then it

Re: [PHP] PHP and search engine???

2002-01-13 Thread Jason Wong
On Monday 14 January 2002 10:08, Martin Towell wrote: you could try looking at http_referer or remote_host or something like that. Never tried it myself, but sounds like it'd work... dunno what the values for them would be though :( -Original Message- From: Dani [mailto:[EMAIL

Re: [PHP] Re: [PHP-DEV] Re: strtok bug

2002-01-13 Thread Manuel Lemos
Hello, Rasmus Lerdorf wrote: You call it broken, we call it finally making them POSIX-compliant. Whatever floats your boat. I don't disagree, but the fact is that doesn't help anybody that used the function and relied on its original behaviour that was there for 4 years. As for being POSIX

RE: [PHP] IF Statements

2002-01-13 Thread Martin Towell
if (action == list) { if (isset($clientcode)) // or just if ($clientcode) would work... { // extended listing here } else { // normal listing here } } else if -Original Message- From: Necro [mailto:[EMAIL PROTECTED]] Sent: Monday, January 14, 2002 2:09 PM To:

RE: [PHP] Re: [PHP-DEV] Re: strtok bug

2002-01-13 Thread Mark Charette
-Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] Before somebody decides to repress my opinion again, Hah! That's got to be one of the funniest things I've ever read! Downloads do not imply usage, only curiosity. I've downloaded a large number of PHP class libraries

[PHP] PHP4.1.1 can't connect to SQL Server 7 SP3 on NT/2000

2002-01-13 Thread Quan Tran
Hello, I previously have MSSQL7 with SP1 and PHP4.1.1 worked fine with it. Now I upgrade to SP3 and PHP4 won't connect to MSSQL7. I have NT,IIS with SP6, and use the PHP MSSQL module to connect. My PHP.EXE is the standard binary that comes with the distribution. The error message I get is:

Re: [PHP] PHP4.1.1 can't connect to SQL Server 7 SP3 on NT/2000

2002-01-13 Thread Tyler Longren
When you upgraded to SP3 did it remove the 'scott' user? Just a thought, I'm not really very experienced with MSSQL stuff. Tyler - Original Message - From: Quan Tran [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 13, 2002 9:54 PM Subject: [PHP] PHP4.1.1 can't connect to

[PHP] Writing Array to File w/o blank lines

2002-01-13 Thread Andrew V. Romero
I have been working on a script that manipulates arrays and now I am working on the part where the user can erase part of the array. Previously the function that writes the array to a file looked like: function updateSuspenderOrVehicleFile($fileToUpdate, $newDataArray) { $fileName = fopen(

[PHP] MySQL connection problem?

2002-01-13 Thread Alex Shi
Here is my situation: 1. Two hosts: HA and HB, both connected with each other via Internet. 2. On HA there is a MySQL server SA and a Web server WA, while on HB there is a SB and a WB. 3. On WA there is a page, on which there are two buttons: ba and bb. The ba is linked to a script sa.php while

[PHP] system () exec() problem

2002-01-13 Thread Ben Franske
I've been working on this for quite a while and can't seem to get it, must be missing something. What I'd like to do is run the command: /bin/su -c /home/mailman/bin/newlist $list_name $owner $passwd1 | grep : | grep -v file: I also need to send a \r (CR) after $passwd1 before the first grep

[PHP] Writing array to file w/o blanks- Update

2002-01-13 Thread Andrew V. Romero
Oops the function had one mistake in it (from me already trouble shooting this), it should be: function updateSuspenderOrVehicleFile($fileToUpdate, $newDataArray) { $fileName = fopen( $fileToUpdate,w); for ($i=0; $icount($newDataArray); $i++) { //don't write blanks left by remove feature

Re: [PHP] Re: [PHP-DEV] Re: strtok bug

2002-01-13 Thread Philip Olson
BC was broken, this happens sometimes. The majority of the PHP Dev team agrees that strtok() should be POSIX compliant, so it is now, and forever will be. Not being in NEWS/Changelog was an oversight/error, nobody is perfect. This not happening in the future is a desire of everyone. Also,

[PHP] Authentication Question

2002-01-13 Thread Ben Clumeck
I am new to MySQL and PHP. I am wondering how Authentication through PHP and MySQL. How does a username and password now where to take that user? An example is online banking. You enter your account number for (username) and your password. How does it know where to go for your specific

Re: [PHP] Re: [PHP-DEV] Re: strtok bug

2002-01-13 Thread Manuel Lemos
Hello, Mark Charette wrote: -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] Before somebody decides to repress my opinion again, Hah! That's got to be one of the funniest things I've ever read! Downloads do not imply usage, only curiosity. I've downloaded a

Re: [PHP] Writing Array to File w/o blank lines

2002-01-13 Thread Philip Olson
Hello Andrew- This can be solved here or better yet, solved from the place that removes the array elements. Use unset() for that: unset($arr[$key]); Now, when you loop through the array it'll have no empty elements. Rather then use for(), consider foreach() as it relies on no counts.

RE: [PHP] PHP4.1.1 can't connect to SQL Server 7 SP3 on NT/2000

2002-01-13 Thread Quan Tran
I am still able to connect to SQL server (with the user scott) from another SQL Server Enterprise Manager. However PHP still won't connect... Quan -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Monday, January 14, 2002 11:40 AM To: Quan Tran; [EMAIL PROTECTED]

Re: [PHP] php-win broke on 'OLEAUT32.DLL'

2002-01-13 Thread hugh danaher
Dennis, I can't help you but I know the oleaut32.dll file is not part of the php install but part of the microsoft package. I got the same fault on an NT4 platform and know that a compacted oleaut32 file is on the distribution CD--I just can't do anything about it. Anyway, good luck, and if

[PHP] php and sqlserver2000

2002-01-13 Thread Vania Lavielle Castro
i have many problems with my web site. i have sql server 2000 and php4 but i not connect with my server and the result pages don't show. somebody help me :-( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] out memory

2002-01-13 Thread Vania Lavielle Castro
when trying to show a field of type varchar(200) in my web pages I have an error: Fatal: emalloc(): Unable to allocate 1073741824 bytes it seems being of memory capacity That you think? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional