Re: [PHP] reading excel file

2002-04-03 Thread EMIN CALIKLI
Hi , I converted .CSV (comma delimited) file to MySQL it 's easy to use it... Tyler

[PHP] RE: simple question

2002-04-03 Thread Tim Ward
Try http://www.idocs.com/tags/forms/ http://www.idocs.com/tags/forms/ Also (as the definitive reference for html) http://www.w3.org/MarkUp/ http://www.w3.org/MarkUp/ Once you've got html forms working okay, then the fields you've named in your form are available as variables in the php page

Re: [PHP] Evaluating php code.

2002-04-03 Thread Rasmus Lerdorf
Ideally, i'd like to evaluate the code the user has submitted, and if an error is generated, notify the user of that fact. Eval always returns false, and I'd like no runtime error to be generated. Perhaps an error-handler is what's needed? What can you suggest? I think this should

[PHP] Can't AddType .htm

2002-04-03 Thread Dan
I run Linux, Apache and PHP4.06. I want PHP to parse .htm documents. I have done this before on other servers with no problem by editing the following line in my httpd.conf. AddType application/x-httpd-php .htm .php .php4 .php3 But after restarting it doesn't do anything. .php files still work

[PHP] auto submit

2002-04-03 Thread Martin Kampherbeek
Is the folowing possible to do? I fill in a form and press submit. Then I read a record from a database. With this data it submits to the read submits url. After 10 seconds, it reads the next record and submits that data. etc etc So I don't have to push submit each time I want to submit. After

Re: [PHP] not about php... about server for php .. its apache question if anybody feelin like answering , thanks

2002-04-03 Thread heinisch
At 03.04.2002 01:59, you wrote: Hey [EMAIL PROTECTED], Im new at this so i got some problems that i would like to solve. First i have Linux Debian 2.2.19 version running on my poor server :) and i installed apache web server...everything goes well... i can access peoples websites

Re: [PHP] Can't AddType .htm

2002-04-03 Thread heinisch
At 02.04.2002 23:44, you wrote: I run Linux, Apache and PHP4.06. I want PHP to parse .htm documents. I have done this before on other servers with no problem by editing the following line in my httpd.conf. AddType application/x-httpd-php .htm .php .php4 .php3 But after restarting it doesn't do

[PHP] anyone using CVS for PHP dev?

2002-04-03 Thread Michael Zornek
I've been learning a little bit about CVS and am considering using it for dev of some group PHP sites. Anyone doing this? comments? ~ Mike -- Mike Zornek | Project Leader Apple Student Developers The Insanely Great Site with the Insanely Long URL http://www.applestudentdevelopers.org

Re: [PHP] Can't AddType .htm

2002-04-03 Thread Richard Baskett
Try adding both of these lines: AddType application/x-httpd-php .php .php4 .phtml .htm .html AddType application/x-httpd-php-source .phps Rick I regard as a mortal sin not only the lying of the senses in matters of love, but also the illusion which the senses seek to create where love is only

Re: [PHP] auto submit

2002-04-03 Thread heinisch
At 03.04.2002 11:22, you wrote: Is the folowing possible to do? I fill in a form and press submit. Then I read a record from a database. With this data it submits to the read submits url. After 10 seconds, it reads the next record and submits that data. etc etc So I don't have to push

Re: [PHP] Evaluating php code.

2002-04-03 Thread Scott Houseman
Hi Rasmus. Thanks for the help. I've implemented your code in a method in class 'RendererParam' as follows: //-- --- // evaluateParameter

[PHP] newbie question: how to recompile PHP?

2002-04-03 Thread Bogdan Popescu
Hello all, I hope my newbie question don't bother you too much. I've downloaded the latest PHP for windows but when I try to use it I get a message that I have to re-compile it. (You may disable this restriction by recompiling the PHP binary with the

[PHP] intelligent mailing list?

2002-04-03 Thread Denis L. Menezes
Hello friends. I do not think I have put the right term in the subject of this message. What I wish to do is develop a mailinmg list which , among the normal functions, can give a list of failed email messages. Can anyone please help me find such an application code? Thanks Denis -- PHP

Re: [PHP] Warning: Undefined variable

2002-04-03 Thread DL Neil
Erik, My two cents' (with allowance for inflation...) If you're distributing code in cyberspace it's a good idea to make it error free too, E_NOTICE or otherwise. To get the maximum help when coding, and to ensure the minimum of confusion for your users, I recommend: 1 set the dev server's

[PHP] Passing Values

2002-04-03 Thread Sebastian A.
Hello, Today I was working on an object that will create all of the columns and tables in my DataBase for my upcoming application. I however, did run into trouble. I am having problems because I cannot pass the name of the database from the form to the function that needs it. Everything

[PHP] Re: newbie question: how to recompile PHP?

2002-04-03 Thread Craig Donnelly
Strange..U sure you got the Win32 version?? Heres a mirror where u can get the installer: http://www.evilwalrus.com/downloads/php/4.1.2/php-4.1.2-installer.exe All the best, Craig Bogdan Popescu [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello all,

Re: [PHP] Evaluating php code.

2002-04-03 Thread Rasmus Lerdorf
I'd leave the code checker in the global scope. In testing here I am not getting a fatal error on a call to a method on a non-existing object. This code returns nothing: ? $code = ' ? $a = 1; $b-foo(); ? '; error_reporting(0); ini_set('track_errors',true); $php_errrormsg='';

[PHP] Including Files

2002-04-03 Thread Craig Donnelly
Is there a way to setup either the apache/php directives to produce a custom 404 if an include file fails to be included ?? Or is this a job for .HTACCESS?? Regards, ~Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] anyone using CVS for PHP dev?

2002-04-03 Thread Michael Sims
On Wed, 2002-04-03 at 04:00, Michael Zornek wrote: I've been learning a little bit about CVS and am considering using it for dev of some group PHP sites. Anyone doing this? comments? I've been using CVS for all of my PHP projects for the past several months. Now that I have been using it I

Re: [PHP] Warning: Undefined variable

2002-04-03 Thread Rasmus Lerdorf
I got back quite a few responses on this list on the subject of having variables that are not defined before they are used. That's interesting -- it's nice to know that I can take shortcuts and conjure them up on the fly, but I didn't realize that it was good practice to declare the

RE: [PHP] Passing Values

2002-04-03 Thread Rick Emery
show us code -Original Message- From: Sebastian A. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 6:02 AM To: PHP General List (PHP.NET) Subject: [PHP] Passing Values Hello, Today I was working on an object that will create all of the columns and tables in my

[PHP] mail tag

2002-04-03 Thread hamish
hello, I have coded a typical mail process for sending a mail from a form. It works fine except for anytime any one puts a ' or a in the content of the mail, the tag places a \ infront of it. I have tried to stripslashes and the mail is being sent as html. Has any one got the answer? code

RE: [PHP] mail tag

2002-04-03 Thread Rick Emery
stripslashes() failed??? I've used stripslahses in this situation, and it's worked perfectly. Wonder what else is going on here? Go without quotes. Try: mail($usersemail, $subject, $message, $headers); -Original Message- From: hamish [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April

[PHP] some kind of library loader

2002-04-03 Thread Arpad Tamas
Hi Everyone! I have an idea, but I don't know how to realise it, if it can be at all. We have a relatively big system, with 52k lines of php code without much html, and many classes (1138) that depend on each other. And I think I don't need to say that php parses the code somewhat slow.

[PHP] PHP FAQ (again)

2002-04-03 Thread Justin French
I saw this mentioned a few times recently, but I'd really like to put out the call again. This group needs an FAQ *specific to this list* which helps new members / posters integrate seamlessly... really, I'm sick of seeing non specific subject lines like please help, and I'm sure we're all sick

Re: [PHP] PHP FAQ (again)

2002-04-03 Thread Andrew Brampton
Small flaw in this. The new user would have to actually go and read the FAQ... I'm a member of many lists, and I've never read the FAQ about the list... but I've allways been aware that posting newbish questions is frowned on, so I never did so. So unless the FAQ was placed infront of them when

RE: [PHP] PHP FAQ (again)

2002-04-03 Thread Hunter, Ray
I am in total agreement with Justin on this one. Many of the posters use need help, newbie needs help , etc. We need to have some form of FAQ with detailed instructions on how to post so that I do not have to ask; What OS are you using, what version of php, which database, etc This gets

RE: [PHP] PHP FAQ (again)

2002-04-03 Thread Hunter, Ray
It's not so much the newbish questions but the determination of the part of the newbie to find an answer. I have found many of my answers on google or the web. Some extra searching is required. Many of the questions can be answered if some extra searching where involved. However, when you ask

Re: [PHP] PHP FAQ (again)

2002-04-03 Thread Nick Winfield
On Wed, 3 Apr 2002, Justin French wrote: ?php snip(); ? When I first joined this group, I too was unaware of what was considered a good post (and perhaps still, I don't know!!), but some form of welcome email when people join the group, or a reminder email sent weekly which keeps the peace

Re: [PHP] odbc_pconnect doesnt reuse connection

2002-04-03 Thread eric.coleman
Why won't you just use odbc_connect ? - Original Message - From: Maris Kalnins [EMAIL PROTECTED] To: Sent: Wednesday, April 03, 2002 3:07 AM Subject: [PHP] odbc_pconnect doesnt reuse connection Hi! Configuration: WinXP, the latest Apache, PHP4 The problem is that every time the

[PHP] Re: Including Files

2002-04-03 Thread Maxim Maletsky
try this: if(!@include('file.php')) { header(HTTP/1.0 404 Not Found); } change header() into whatever you want to include at it's place. Careful with this though, make sure that the files script is trying to include do never get below a certain directory. Otherwise I can dispay

Re: [PHP] PHP FAQ (again)

2002-04-03 Thread Justin French
I think this is a good idea, but it looks to be more of a searchable FAQ, which will highly detailed... I'm really thinking of a medium-length email introduction to the group (as per my attachment) which hopefulyl cleans up the group a bit. Your resource could be fantastic, and could help with

[PHP] Re: PHP FAQ (again)

2002-04-03 Thread Hugh Bothwell
Justin French [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I saw this mentioned a few times recently, but I'd really like to put out the call again. This group needs an FAQ *specific to this list* which helps new members / posters integrate seamlessly...

Re: [PHP] odbc_pconnect doesnt reuse connection

2002-04-03 Thread Maris Kalnins
because odbc_connect takes some time to establish connection while odbc_pconnect establishes it once after that it suppose to give faster access through already existing connection! that's what I got from php manual.. the bad thing is .. that in reality it works a little bit different.. so I am

[PHP] What's wrong with the Array? Im baffled!

2002-04-03 Thread Scott Fletcher
Hi! I'm a little baffled on why the array is not working the way I expect it to. It showed there is something about the array I do not know about. Well, it's never too late to learn something new. So, here's the code and see if you can help me out. -- clip -- $name = TU4R;

Re: [PHP] odbc_pconnect doesnt reuse connection

2002-04-03 Thread eric.coleman
I have an IDEA If your familiar with OOP Write a class that is like a WRAPPER to the ODBC functions. Then, you can connect once, and keep the connection ALL this using just odbc_connect This is what I have done, and if you would like, I can write a quick one. Eric - Original Message

Re: [PHP] What's wrong with the Array? Im baffled!

2002-04-03 Thread eric.coleman
Why not try using if(empty($sumItUp[$name])) { // rest of code - Original Message - From: Scott Fletcher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 03, 2002 10:14 AM Subject: [PHP] What's wrong with the Array? Im baffled! Hi! I'm a little baffled on why the

RE: [PHP] Can not get session value???

2002-04-03 Thread Johnson, Kirk
Do you have a call to session_start() in the second file? You need this to access the session variables on the second page. Kirk -Original Message- From: N.D. Andini [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 3:20 AM To: [EMAIL PROTECTED] Subject: [PHP] Can not get

RE: [PHP] What's wrong with the Array? Im baffled!

2002-04-03 Thread Rick Emery
show the rest of your code When you say this code is repeated again, what does that mean? repeated in a function, a loop,...? Print out $sumItUp[TU4R] prior to if(). Is it as you expect? -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03,

[PHP] Re: PHP FAQ (again)

2002-04-03 Thread Miles Thompson
Hugh, No need - if you wouldn't mind, just post this list each day, along with the header PHP FAQs -Check here first! Miles At 10:17 AM 4/3/2002 -0500, Hugh Bothwell wrote: Justin French [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I saw this mentioned a few

Re: [PHP] PHP FAQ (again)

2002-04-03 Thread DL Neil
Justin, I think this is a good idea, but it looks to be more of a searchable FAQ, which will highly detailed... I'm really thinking of a medium-length email introduction to the group (as per my attachment) which hopefulyl cleans up the group a bit. Your resource could be fantastic, and

[PHP] Environment Variables Functions Incompatible???

2002-04-03 Thread arti
I am running code on different versions of PHP, specifically 4.0.6 and 4.1.2. For some reason, you have to use $HTTP_SERVER_VARS[HTTP_HOST]) on 4.0.6 and $_SERVER[HTTP_HOST] on 4.1.2. I'm not sure who thought that breaking backward compatibility was a good idea, but let's ignore that for the

Re: [PHP] Can not get session value???

2002-04-03 Thread eric.coleman
Yes, you have to call session_start() on every page you want to access/pass session variables Eric - Original Message - From: Johnson, Kirk [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 03, 2002 10:22 AM Subject: RE: [PHP] Can not get session value??? Do you have a

Re: [PHP] Environment Variables Functions Incompatible???

2002-04-03 Thread eric.coleman
They did not break backwords compatiblity, because $HTTP_*_VARS works on all the new versions of PHP so far, it's just not Super Global... Eric - Original Message - From: arti [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 03, 2002 10:40 AM Subject: [PHP] Environment

[PHP] Re: some kind of library loader

2002-04-03 Thread Maxim Maletsky
Arpad, as I read your mail one silly thing came into my mind: You can try to load all those classes as texts into a db and then to execute the needed ones as eval()ed strings. It could be easy for you to create the logic because the PHP code are stings and are never included but SELECTed.

FW: [PHP] PHP FAQ (again)

2002-04-03 Thread Christoph Starkmann
Hi Ray! I am in total agreement with Justin on this one. Many of the posters use need help, newbie needs help , etc. We need to have some form of FAQ with detailed instructions on how to post so that I do not have to ask; There are so many ressources on the web on how to pose

Re: [PHP] What's wrong with the Array? Im baffled!

2002-04-03 Thread Scott Fletcher
Found a way around it. I'm using if (strlen($sumItUp[$name]) == 0) { } else { }. this one does work. Yes, I can use the empty() function but it doesn't fully work that way becuase it return the NULL as empty. Scott Eric Coleman [EMAIL PROTECTED] wrote in message

[PHP] PHP FAQ (again) ... we have a plan!

2002-04-03 Thread Hugh Bothwell
I'm getting a bit interested in this; here's how I suggest we proceed. First, we have to agree on the scope of the project. I suggest a small number of FAQs directed at specific subjects (rather than one 5000-line monster); my suggested breakdown follows below. Second, I suggest storing these

RE: [PHP] PHP FAQ (again) ... we have a plan!

2002-04-03 Thread Brian Drexler
I like the looks of it, if there's anything I can do just ask -Original Message- From: Hugh Bothwell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 12:09 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP FAQ (again) ... we have a plan! I'm getting a bit interested in this;

[PHP] php - copy problem

2002-04-03 Thread Craig Westerman
I'm trying to copy daily Analog Stats Report to a archive file. (see code below) Destination file doesn't exist. I get this error: Warning: Unable to create '030402.html': Permission denied in /usr/www/users/cfth/WWW_REPORTS/analogarchive.php on line 9 /WWW_REPORTS/analogarchive.php:Error failed

[PHP] syntax for date math expressions

2002-04-03 Thread ROBERT MCPEAK
What is the php syntax for adding or subtracting dates? For example, I'd like to do something like this: 2002-04-03 - 2002-04-02 = 1 or 2002-04-03 - 2002-04-02 = -00-01 or 2002-04-03 + -00-01 = 2002-04-03 etc. Can anybody help this newbie? Thanks! -- PHP General Mailing

[PHP] closing a security hole on user accounts possible? - confirming accounts - history function

2002-04-03 Thread andy
Hi there, is it possible to block hackers from stealing a session with the history function of the browser? Example: A user registeres and recives a confirm e-mail. He confirms and does close all browser windows. He leaves. Another user comes to this computer opens the browser and the history

[PHP] Re: What's wrong with the Array? Im baffled!

2002-04-03 Thread Maxim Maletsky
it is obvious, Scott: if ($sumItUp[$name] == ) { is like to say if $sumItUp[$name] is an empty string. Means, that if it was not assigned, or if it contains any kind of character in it this will result to false. Try using this: if(isset($sumItUp[$name]) and

[PHP] Any ideas on combining arrays????

2002-04-03 Thread Scott Fletcher
Hi! Need some ideas on combining some arrays into one! I have array for data and other array for counter. How do I make an array that would show different data for each counter number? -- clip -- $FFR = array ( TU4R = array( data = , count = ), PH01 = array( data

Re: [PHP] closing a security hole on user accounts possible? - confirming accounts - history function

2002-04-03 Thread Andrew Brampton
This comes up on the list again and again. Force the person to logout, so that the session is closed... check the posts in the past week for other suggestions. Andrew - Original Message - From: andy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 03, 2002 6:16 PM Subject:

RE: [PHP] php - copy problem

2002-04-03 Thread Craig Westerman
I did that first thing. Also tried chmod g+rwx I can copy manually via Telnet, but something is wrong with my PHP script. Thanks Craig [EMAIL PROTECTED] -Original Message- From: Julian [mailto:[EMAIL PROTECTED]] Hi! You must to set the folder where you want to save the file to

[PHP] Mail Function

2002-04-03 Thread Chiew, Richard
Can someone please tell me what did i do wrong in the following php mail function? I created the following php file using the mail() function but i keep getting the 'failed to connect.unable to send your mail.' message. Can anyone please tell me what did i do wrong? thx ? function

[PHP] register session

2002-04-03 Thread Kris Vose
I am trying to register a session after verification of username and password. It looks like this: session_start(); If ($name = $aa) ($username = $ab) { session_register(valid_user); echo scriptwindow.location=\'admin_.php'\/script; } else { echo Your username/password is incorrect; } On

RE: [PHP] closing a security hole on user accounts possible? - confirming accounts - history function

2002-04-03 Thread SHEETS,JASON (Non-HP-Boise,ex1)
You could assign a randomly generated confirmation code to the link for example http://yoursitel.com/membershipconfirm.php?user=jsheetsconfirmid=1238D7adfd a Then when the user hits that link have membershipconfirm.php check the database, confirm the user and the confirmid, if it matches remove

[PHP] Re: Any ideas on combining arrays????

2002-04-03 Thread Maxim Maletsky
See, Scott.. It is all about your logic. For instance, you can create a nice multidimentional array like this: Array( '0'=Array( 'data'=Array( // your whole data array data data

RE: [PHP] register session

2002-04-03 Thread Vlad Kulchitski
Kris, Idi na phpbeginner.com tam est 'tutorials' dlya tebya. Vlad -Original Message- From: Kris Vose Sent: 3 êâ³òíÿ 2002 ð. 12:42 To: [EMAIL PROTECTED] Subject: [PHP] register session I am trying to register a session after verification of username and password. It looks like this:

[PHP] Re: syntax for date math expressions

2002-04-03 Thread Maxim Maletsky
first of all your data seems to come from a DB to me. If it's so then read your DB manual for date functions. It would be way better and faster. Otherwise, if you're so keen to let this duty job up to PHP then convert both dates into UNIX time format 'maketime()' deduct the values and put

RE: [PHP] register session

2002-04-03 Thread SHEETS,JASON (Non-HP-Boise,ex1)
Make sure you have session_start() before any output is sent to the browser, also look for whitespace at the top of your file, sometimes a blank line or a space can cause this error. The reason you get this error is session_start() needs to add information to the headers but because they have

[PHP] Re: Passing Values

2002-04-03 Thread Maxim Maletsky
Yes, that would help... Sebastian A. writes: Hello, Today I was working on an object that will create all of the columns and tables in my DataBase for my upcoming application. I however, did run into trouble. I am having problems because I cannot pass the name of the

RE: [PHP] Mail Function

2002-04-03 Thread Mark Roedel
Have you verified that the mail settings in your php.ini are correct? --- Mark Roedel | Blessed is he who has learned to laugh Systems Programmer| at himself, for he shall never cease LeTourneau University | to be entertained. Longview, Texas, USA | --

Re: [PHP] Can't AddType .htm

2002-04-03 Thread php
Thanks for the suggestion but it didn't make any difference. Currently my http.conf file has AddType application/x-httpd-php .htm .php .php4 .php3 AddType application/x-httpd-php-source .phps I also have no .htaccess file to overide these settings. Anyone got any more ideas? Regards Dan

[PHP] Re: syntax for date math expressions

2002-04-03 Thread ROBERT MCPEAK
Okay, I've got 2 tables. One has fields user, exp_date, the other has a bunch of fields including user. If the exp_date from the first table is greater than $somedate (probably today's date), then I don't want to show the records from the 2nd table. Get it? So how do I do this? It doesn't

Re: [PHP] anyone using CVS for PHP dev?

2002-04-03 Thread php
What CVS software do you recommend? Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] intelligent mailing list?

2002-04-03 Thread Miguel Cruz
On Wed, 3 Apr 2002, Denis L. Menezes wrote: What I wish to do is develop a mailinmg list which , among the normal functions, can give a list of failed email messages. Can anyone please help me find such an application code? The best you can do is to make sure the return address on your

[PHP] Re: Any ideas on combining arrays????

2002-04-03 Thread Scott Fletcher
Well, I don't thinik this will work. Because I will recieve an unknown number of data. The number of PH10 I would get would be either 1 or 2 or 126, etc. There is no way to determine the number, so I already create an counter to tell me how many of them. So, that leave me with an need to

Re: [PHP] Environment Variables Functions Incompatible???

2002-04-03 Thread Jason Wong
On Wednesday 03 April 2002 23:40, arti wrote: Besides the fact that the different versions of PHP provide different environment variables for determining the host, the isset() on the env variable works differently inside a function. What is going on here? $HTTP_SERVER_VARS is only

Re: [PHP] closing a security hole on user accounts possible? - confirming accounts - history function

2002-04-03 Thread Jason Wong
On Thursday 04 April 2002 01:21, Andrew Brampton wrote: This comes up on the list again and again. Force the person to logout, so that the session is closed... check the posts in the past week for other suggestions. It was the very same Andy who asked a similar question last week :) --

RE: [PHP] php - copy problem

2002-04-03 Thread Miguel Cruz
On Wed, 3 Apr 2002, Craig Westerman wrote: I did that first thing. Also tried chmod g+rwx I can copy manually via Telnet, but something is wrong with my PHP script. chmod g+w probably won't help you, since Apache normally runs as user 'nobody', who tends not to be in groups with anyone else.

RE: [PHP] Re: Any ideas on combining arrays????

2002-04-03 Thread Demitrious S. Kelly
Use a multi-dimensional array... try this as a kind of 'proof of concept' ?php $array[tu4r][]=0 $array[tu4r][]=10 $array[tu4r][]=100 $array[tu4r][]=1000 $array[ph10][]=0; $array[ph10][]=1; $array[ph10][]=2; $array[ph10][]=126; echo 'pre'; foreach ( $array[ph10] as $value ) { echo '

Re: [PHP] PHP FAQ (again)

2002-04-03 Thread Miguel Cruz
On Wed, 3 Apr 2002, Andrew Brampton wrote: So unless the FAQ was placed infront of them when signing up to this list (if they actually sign up), then it might not get the results you expect. The first time you post to comp.lang.perl.misc, a daemon picks up your address, checks it against a

Re: [PHP] anyone using CVS for PHP dev?

2002-04-03 Thread Garth Dahlstrom
php - Re: [PHP] anyone using CVS for PHP dev? - Wed, 3 Apr 2002 19:07:33 +0100 What CVS software do you recommend? Dan If you're a Windows user: - TortoiseCVS ( http://www.tortoisecvs.org/ ) is a nice windows client that integrates with the file manager. - CVS for NT (

Re: [PHP] Re: some kind of library loader

2002-04-03 Thread Miguel Cruz
On Thu, 4 Apr 2002, Maxim Maletsky wrote: You can try to load all those classes as texts into a db and then to execute the needed ones as eval()ed strings. It could be easy for you to create the logic because the PHP code are stings and are never included but SELECTed. Not sure if this

[PHP] can't get it to work

2002-04-03 Thread Alex
I'm trying to write code that will return all records found between certain dates(e.g. 2001-01-30 through 2002-01-30). I created a html form with pull down menus for both dates but when I try to run it I get a parse error and can't figure out what's wrong. Thanks, Alex Here is the php code:

Re: [PHP] PHP FAQ (again)

2002-04-03 Thread Jason Wong
On Wednesday 03 April 2002 22:06, Hunter, Ray wrote: I am in total agreement with Justin on this one. Many of the posters use need help, newbie needs help , I have given up on even reading posts without a meaningful subject. They go straight into the trash can. etc. We need to have some

RE: [PHP] can't get it to work

2002-04-03 Thread Collins, Robert
Have you tried BETWEEN $query = SELECT * FROM table where date BETWEEN '$month_1/$day_1/$year_1' AND '$month_2/$day_2/$year_2'; Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: Alex

Re: [PHP] can't get it to work

2002-04-03 Thread Miguel Cruz
On Wed, 3 Apr 2002, Alex wrote: I'm trying to write code that will return all records found between certain dates(e.g. 2001-01-30 through 2002-01-30). I created a html form with pull down menus for both dates but when I try to run it I get a parse error and can't figure out what's wrong. It

Re: [PHP] can't get it to work

2002-04-03 Thread Miguel Cruz
On Wed, 3 Apr 2002, Alex wrote: I'm trying to write code that will return all records found between certain dates(e.g. 2001-01-30 through 2002-01-30). I created a html form with pull down menus for both dates but when I try to run it I get a parse error and can't figure out what's wrong.

[PHP] Browser detection

2002-04-03 Thread Joshua E Minnie
Can anybody tell me why, when running on the same browser, I get 2 different outputs. This is the output when I echo $HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) This is the output when I use get_browser(): browser_name_pattern.Mozilla/4\.0.*

RE: [PHP] syntax for date math expressions

2002-04-03 Thread Rick Emery
Convert to date/time variable and perform arithmetic. Otherwise, if these dates are from mysql, let mysql do it -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 11:12 AM To: [EMAIL PROTECTED] Subject: [PHP] syntax for date math

RE: [PHP] can't get it to work

2002-04-03 Thread Rick Emery
Of course that's a mysql parse error!! Mysql dates are -MM-DD. Do NOT use slashes $query = SELECT * FROM table where date = \$year_1-$month_1-$day_1/$year_1\ AND date = \$year_2-$month_2-$day_2\; Read the mysql manual concerning dates, formats, functions -Original Message-

RE: [PHP] can't get it to work

2002-04-03 Thread Rick Emery
Need one more quote (se below) Of course that's a mysql parse error!! Mysql dates are -MM-DD. Do NOT use slashes $query = SELECT * FROM table where date = \$year_1-$month_1-$day_1/$year_1\ AND date = \$year_2-$month_2-$day_2\; Read the mysql manual concerning dates, formats,

[PHP] PEAR

2002-04-03 Thread Georgie Casey
This whole PEAR thing is really confusing. The sites documentation is crap compared to PHP. what is it and how do i install it on my windows system? and more, importantly do i have 2 force my host to install it or can i do it myself. i'm just looking to use the file_find package. they say pear

RE: [PHP] Re: syntax for date math expressions

2002-04-03 Thread Rick Emery
SELECT * FROM table2 LEFT JOIN USING(user) WHERE table1.exp_date = $somedate; or SELECT * FROM table2 LEFT JOIN USING(user) WHERE table1.exp_date = now(); -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 12:00 PM To: [EMAIL PROTECTED] Cc:

RE: [PHP] Any ideas on combining arrays????

2002-04-03 Thread Rick Emery
ok...so what problem are you having? what's the error? your code worked for me, i.e., it compiled and executed -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 11:15 AM To: [EMAIL PROTECTED] Subject: [PHP] Any ideas on combining

Re: [PHP] PEAR

2002-04-03 Thread Hiroshi Ayukawa
Hello, You should modify include_path in php.ini like include_path = .;c:\php\pear;C:\Apache\htdocs\includes ^^^ the directory where pear files are in. I often use DB.php from pear.It is very useful! Good luck. Hiroshi Ayukawa

[PHP] New Server, Bad Attitude

2002-04-03 Thread Liam Gibbs
My friends' server is giving me a hard time. What happened is (long story short) he was forced to use a new server for the web sites on his old one. One of them was mine. I'm experiencing some weirdness now: 1. PHP automatically sticks in the backslash in front of apostrophes and quotation marks.

Re: [PHP] can't get it to work

2002-04-03 Thread Alex
That did the trick. Thank you Miguel Cruz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, 3 Apr 2002, Alex wrote: I'm trying to write code that will return all records found between certain dates(e.g. 2001-01-30 through 2002-01-30). I created a html

[PHP] New Server, Bad Attitude

2002-04-03 Thread Liam Gibbs
My friends' server is giving me a hard time. What happened is (long story short) he was forced to use a new server for the web sites on his old one. One of them was mine. I'm experiencing some weirdness now: 1. PHP automatically sticks in the backslash in front of apostrophes and quotation marks.

RE: [PHP] PHP FAQ (again)

2002-04-03 Thread Kevin Stone
I wholeheartedly disagree. I belong to an emailing list that requires specific headers and it is a pain. It costs me nothing to ignore a post. But it costs me 5 minutes to format my headers correctly. You really want to reduce frivolous posts on this list? Do as I said before. Send an

Re: [PHP] Re: some kind of library loader

2002-04-03 Thread Tamás Árpád
On Thu, 4 Apr 2002, Maxim Maletsky wrote: You can try to load all those classes as texts into a db and then to execute the needed ones as eval()ed strings. It could be easy for you to create the logic because the PHP code are stings and are never included but SELECTed. Not sure if this

RE: [PHP] syntax for date math expressions

2002-04-03 Thread Vail, Warren
this is an option that only sort of works (converting to date/time); $x = strtotime(2002-04-03) - strtotime(2002-04-02); $x will contain 86400 which is the number of seconds in a normal day. Since the days that some people use switch from daylight savings time to standard time (and visa versa)

Re: [PHP] Any ideas on combining arrays????

2002-04-03 Thread Hugh Bothwell
I'm not sure I understand what problem you're trying to solve. It looks something like the number of times a given piece of data occurs per user? Where does the data come from and what are you trying to accomplish? Need some ideas on combining some arrays into one! I have array for

Re: [PHP] New Server, Bad Attitude

2002-04-03 Thread Tyler Longren
Most of these are probably software/configuration errors. 1. Use the stripslashes() function to remove those slashes. It does this to escape the apostrophes and quotes. 2. What were you using to encrypt your passwords before? 3. Does your server have smtp running on port 25? I think it needs

[PHP] MCAL for Windows

2002-04-03 Thread Joshua E Minnie
Does anybody know where I can find MCAL for Windows? -- Joshua E Minnie CIO [EMAIL PROTECTED] Don't work for recognition, but always do work worthy of recognition. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Any ideas on combining arrays????

2002-04-03 Thread Scott Fletcher
Bingo! Here's the script that work! -- clip -- $FFR = array ( TU4R = array( TU4R = ), CD01 = array( CD01 = ), PH01 = array( PH01 = ), ENDS = array( ENDS = ) ); // The variable, $name $number came from the script I made // but

  1   2   3   >