[PHP] FW: muliple form array values

2003-03-17 Thread Dan Rossi
this is the second time , i am getting an auto reply from this guy , how do i stop it ?, i am asking a question ! -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 6:54 PM To: daniel Subject: RE: muliple form array values This looks like a great

Re: [PHP] File System

2003-03-17 Thread Joel Colombo
that will work too... but you wont get a response back if the unlink fails (other thn a nasty php error). you will with charles method. plus sometimes things that arent a file will pass true on the file_exists() function. i mean you can do all the checks like if (file_exists($dest_file)

Re: [PHP] PHP Project for a newbie (me) or for hire?

2003-03-17 Thread olinux
This might be helpful as well. http://www.databaseanswers.com/data_models/hotels/index.htm olinux --- Dan Sabo [EMAIL PROTECTED] wrote: Hi, I have a huge potential project and I'm fairly new to PHP. I've been managing shopping carts for years for people, Miva Merchant, doing sites,

[PHP] Re: adodb + oracle 8i

2003-03-17 Thread Philippe Saladin
I´m triyng to use that, but I´m noting realize how to estabilish a conection with oracle. I´m getting the folowing error: Fatal error: Call to undefined function: ora_plogon() in e:\inetpub\wwwroot\hosted\EnsinoNet\php\adodb\drivers\adodb-oracle.inc.php on line 105 I´m triyng to conect

[PHP] posting values from email

2003-03-17 Thread Tony Burgess
Hi everyone, I have a form which gets sent as an email, the user then fills in details using textboxes etc. After filling in all the required fields the user hits the submit button, this should open a new window and pass all necessary information to this page. I have tried using both POST and GET

Re: [PHP] posting values from email

2003-03-17 Thread Ernest E Vogelsinger
At 11:21 17.03.2003, Tony Burgess said: [snip] I have a form which gets sent as an email, the user then fills in details using textboxes etc. After filling in all the required fields the user hits the submit button, this should open a new window and pass all

[PHP] Re: SQL DISTINCT with MYSQL

2003-03-17 Thread fLIPIS
Vernon [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] I'm setting up a user online system using MySQL where I have 4 fields, all of which is working fine. I need the information from all the fields but want only distinct values based on the uname column. If I use the:

[PHP] Exec ( ) command

2003-03-17 Thread manju visu
Hi everyone, If possible reply me. I have one problem. I'm trying to execute exec() command to generate stats by using the exec() function, it does not generate an error but it also does not run the command, and the value of $result thats returned from exec() is 11. Below is my PHP coding.

[PHP] magic quotes runtime and gpc -- difference?

2003-03-17 Thread Justin French
Hi all, I'm attempting to find some documentation on magic_quotes_runtime and magic_quotes_gpc -- what's the difference? Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: magic quotes runtime and gpc -- difference?

2003-03-17 Thread Justin French
Apologies -- I found the documentation in the php.ini comments. Justin on 17/03/03 10:08 PM, Justin French ([EMAIL PROTECTED]) wrote: Hi all, I'm attempting to find some documentation on magic_quotes_runtime and magic_quotes_gpc -- what's the difference? Justin -- PHP General

[PHP] Re: posting values from email

2003-03-17 Thread Tony Burgess
I have a form that takes a number of hidden values and a number of textfields and a submit button. Once the user clicks on the submit button a new internet browser should open and all the posted date should be caught by PHP. I have managed to get it to work fine with the GET method, however I

[PHP] Compiled PHP ?

2003-03-17 Thread Niks
Dear All, I am in Application Developlment in PHP and currently developing a project in PHP. I need to know if there is a way that i do not need to give source code for the product i develope i.e. is there any way to compile php ? I am using apache 2 on Red Hat 7.2 boxes. Thanks and Regards,

[PHP] PHP program running from shell ends silently

2003-03-17 Thread Ruben
Hi: I'm running a 'batch' PHP program from the shell with #!/usr/bin/php -q as the first line. After some processing, it ends silently without any visible notice or error. It processes information from a PostgreSQL database and shows its progression (via echoes) until it suddenly stops. This

Re: [PHP] Re: permission problem - i guess

2003-03-17 Thread Marek Kilimajer
This is wrong: extension_dir = /root/php-4.3.0/php-4.3.0/modules = /root/php-4.3.0/php-4.3.0/modules apache does not run as root, so it does not have access to the directory. Move the content of the directory to another suitable directory (e.g. /usr/local/lib/php4) and change its permisions.

Re: [PHP] Compiled PHP ?

2003-03-17 Thread Marek Kilimajer
There are comertial solutions, check out http://www.zend.com Niks wrote: Dear All, I am in Application Developlment in PHP and currently developing a project in PHP. I need to know if there is a way that i do not need to give source code for the product i develope i.e. is there any way to

Re: [PHP] mail(); works, but only for mails to my (mail)server

2003-03-17 Thread Chris Hewitt
Manuel Glauser wrote: This weekend, I've been fighting with some really weird problem though... I installed a few mail(); actions on my website plus in some projects I'm working on. I have one really big problem though... Everything works fine until I want to send a mail to another mailserver

Re: [PHP] Log file details required !! Help

2003-03-17 Thread Marek Kilimajer
Monil Chheda wrote: Am I MISSING SOMETHING ? ?php $flag = false; if ($fp = fopen(web.log,r)) { while (!feof($fp)) { $line = fgets($fp,1024); Here you check if there is an end of string $line, sure there is, there are no infinite strings if (ereg(\$,$line)) {

[PHP] instalation problem

2003-03-17 Thread Guram Mosashvili
Hi List, I have problem with instalation of PHP4 on my LINUX APACHE MySQL server. when I did: ./configure --with-apxs=/server/apache/bin/apxs I got error message: - configure error: Sorry I cannot run apxs.Either you need to install Perl or you need to pass the absolute path of by using

[PHP] RE: Access DB PHP

2003-03-17 Thread Uttam
may be this snip from manual can show the way: snip You can decide whether or not you want a client disconnect to cause your script to be aborted. Sometimes it is handy to always have your scripts run to completion even if there is no remote browser receiving the output. The default behaviour is

Re: [PHP] copy ...

2003-03-17 Thread Marek Kilimajer
I have a strong feeling that POSIX regexs cannot do multiline, try using perl-compatible, or make a loop to read the textarea content line by line John Taylor-Johnston wrote: I need to process the contents of textarea name=textarea textarea name=textareaSU: something ... blah blah¶ TI: Title

Re: [PHP] instalation problem

2003-03-17 Thread Chris Hayes
At 13:12 17-3-03, you wrote: Hi List, I have problem with instalation of PHP4 on my LINUX APACHE MySQL server. when I did: ./configure --with-apxs=/server/apache/bin/apxs I got error message: - configure error: Sorry I cannot run apxs.Either you need to install Perl or you need to pass the

[PHP] Frames

2003-03-17 Thread shaun
Hi, I am designing a system which will have a different menu option for different users i.e. admin/standard etc. If I am using frames how could I change the page a user sees in the top frame for each different type of user? I know how to do this with standard pages, its just the frames that are

Re: [PHP] Frames

2003-03-17 Thread Chris Hayes
At 13:29 17-3-03, you wrote: Hi, I am designing a system which will have a different menu option for different users i.e. admin/standard etc. If I am using frames how could I change the page a user sees in the top frame for each different type of user? I know how to do this with standard pages,

Re: [PHP] Frames

2003-03-17 Thread Ernest E Vogelsinger
At 13:29 17.03.2003, shaun said: [snip] I am designing a system which will have a different menu option for different users i.e. admin/standard etc. If I am using frames how could I change the page a user sees in the top frame for each different type of

[PHP] newbie:restricting users to change data in a textarea

2003-03-17 Thread Mirco Ellis
Hi all, I have a app that enables the user to call data out of a mysql database into textareas. They can then edit the data and update the database. There is one field that I whant to stop them from changing. This field I also use in my sql query when updating the table,ie. where

Re: [PHP] Compiled PHP ?

2003-03-17 Thread Nikunj Virani
Are there non-commercial once around ? Has any one used Zend Safe Guard before ? How effective is this ? Thanks in advance! Nik - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: Niks [EMAIL PROTECTED] Cc: php [EMAIL PROTECTED] Sent: Monday, March 17, 2003 5:22 PM Subject:

RE: [PHP] including files in PHP-pdf development

2003-03-17 Thread Ford, Mike [LSS]
-Original Message- From: Bill Hudspeth [mailto:[EMAIL PROTECTED] Sent: 14 March 2003 20:07 I am developing an application that ouputs the results of a database query to a PDF file using PHP. The only real problem I have encountered is in trying to use the include and/or require

[PHP] Sensibly accounting for timezone differences?

2003-03-17 Thread M Wells
Hi All, I'm an Australian PHP developer and host most of my web sites on US servers. One in particular is primarily accessed by Australian visitors and I want to be able to reflect Australian Eastern Standard Times when writing / reporting records, rather than the server time, which is set to US

[PHP] RE: (newbie) how to redirect to html page from php

2003-03-17 Thread Bobby Rahman
Hiya I have a login_screen.html which on submit is sent to login.php. Login.php does all the checking of usernames and passwords. I am trying to to produce this logic: //In login.php if password and username correct { go to main page } else { go back to login.screen.html echo Please try again;

[PHP] login problem

2003-03-17 Thread Gilberto Garcia Jr.
Hi guys. I´m having a problem with a login system. I enter with the correct password and I press the submit button. But, nothing happens. It´s not a typinh mistake, cause when i enter the wrong pass. it returns me an error. What this can be??? thanks --- Outgoing mail is certified Virus Free.

RE: [PHP] Re: str_replace

2003-03-17 Thread Ford, Mike [LSS]
-Original Message- From: Sebastian [mailto:[EMAIL PROTECTED] Sent: 15 March 2003 06:23 doesn't work but also doesn't give any errors, I will try to explain what I am trying to do: I am trying to remove the header and footer to create a printer friendly page with just the

[PHP] Win XP prof + Mysql + Php + IIS

2003-03-17 Thread Denis L. Menezes
Hello friends. This is the first time I am trying this combination : Win XP prof + Mysql + Php + IIS. When I click submit in the test1.php page, the page goes to test2.php, but shows the following error : Notice: Undefined variable: StudentLastName in c:\inetpub\wwwroot\test\test2.php on line

RE: [PHP] How to convert an array to variables?

2003-03-17 Thread Ford, Mike [LSS]
-Original Message- From: Charles Kline [mailto:[EMAIL PROTECTED] Sent: 15 March 2003 18:52 I have an array that gives me this when I do: print_r($my_array); Array ( [0] = Array ( [dra_id] = 5 ) [1] = Array (

Re: [PHP] Win XP prof + Mysql + Php + IIS

2003-03-17 Thread Chris Hayes
Since PHP 4.10 the form values (and other values) are not automagically turned into variables, for security reasons. See http://www.php.net/release_4_1_0.php Options: modify register_globals=On in php.ini or use $_POST['formfieldname'] in stead of $formfieldname At 14:06 17-3-03, you wrote:

RE: [PHP] checking array

2003-03-17 Thread Ford, Mike [LSS]
-Original Message- From: joe [mailto:[EMAIL PROTECTED] Sent: 15 March 2003 23:50 what is the best way to check, if a value is NOT in an array? the purpose is to take results from a webpage and check one-by-one if they are in the txt file already. if they are not, i have to write

[PHP] Re: (newbie) how to redirect to html page from php

2003-03-17 Thread shaun
i use two files for this purpose as i use sessions to check the user is always logged in: validate_session.php ?php session_start(); //check the session variables if (!session_is_registered(ses_user_name)) { //if not registered then redirect to corresponding page require

[PHP] variables with

2003-03-17 Thread Ian A. Gray
Hi, just a quick question. How do I include double quotes in a variable? I am trying to put html code in a variable in a mailing program: $mail-Body = h1 style=color: prple; font-size: 20pt;Heading/h1 Please e-mail me at a href=mailto:[EMAIL PROTECTED][EMAIL

Re: [PHP] Sensibly accounting for timezone differences?

2003-03-17 Thread Justin French
on 17/03/03 11:55 PM, M Wells ([EMAIL PROTECTED]) wrote: I'm an Australian PHP developer and host most of my web sites on US servers. One in particular is primarily accessed by Australian visitors and I want to be able to reflect Australian Eastern Standard Times when writing / reporting

[PHP] stripping slashes before insert behaving badly

2003-03-17 Thread Charles Kline
Hi all, I am inserting data from a form into a mySQL database. I am using addslashes to escape things like ' in the data input (this is actually being done in PEAR (HTML_QuickForm). The weird thing is that the data gets written into the table like: what\'s your problem? WITH the slash. I

[PHP] Re: Cascading delete in oracle

2003-03-17 Thread Arnold Schommer
Hello, Eve, I would think the first error leads to the solution: to me it looks like there is no sql text at all. Try un-commenting the echo $sqlStmt; at the beginning and look at the html-source generated; maybe it helps to use something like echo .$sqlStmt.; instead to clearly see if

[PHP] Re: List tables

2003-03-17 Thread Arnold Schommer
Hi, Shaun, Shaun wrote: Hi, i would like to list all of the tables and field names in my database e.g. table 1 field 1 field 2 field 3 table 2 field 1 field 2 field 3 table 3 field 1 field 2 field 3 etc is there a simple way to do this? thanks for

AW: [PHP] variables with

2003-03-17 Thread Frederic . Hahn
Either you use simple quotes for the code --- ' or you escape the by using \ $mail-Body = h1 style=color: prple; font-size: 20pt;Heading/h1 hth -- {Bis bald ° Frederic} -This is a block of text that can be added to your posts. 72 characters. -- PHP

[PHP] Re: variables with

2003-03-17 Thread Arnold Schommer
a) $mail-Body = h1 style=\color: prple; font-size: 20pt;\Heading/h1; b) $mail-Body = 'h1 style=color: prple; font-size: 20pt;Heading/h1'; The second method is better reabadle but also disable variable substitution and most escape sequences (\n and the like). hth Ian a. gray wrote: Hi, just

Re: [PHP] Exec ( ) command

2003-03-17 Thread Chris Hewitt
manju visu wrote: Hi everyone, If possible reply me. I have one problem. I'm trying to execute exec() command to generate stats by using the exec() function, it does not generate an error but it also does not run the command, and the value of $result thats returned from exec() is 11. Below

Re: [PHP] PHP program running from shell ends silently

2003-03-17 Thread Chris Hewitt
Ruben wrote: I'm running a 'batch' PHP program from the shell with #!/usr/bin/php -q as the first line. After some processing, it ends silently without any visible notice or error. It processes information from a PostgreSQL database and shows its progression (via echoes) until it suddenly

Re: [PHP] login problem

2003-03-17 Thread Chris Hewitt
Gilberto Garcia Jr. wrote: Hi guys. Im having a problem with a login system. I enter with the correct password and I press the submit button. But, nothing happens. Its not a typinh mistake, cause when i enter the wrong pass. it returns me an error. What this can be??? You would need to tell us a

Re: [PHP] Re: permission problem - i guess

2003-03-17 Thread gamin
Hi Marek, Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This is wrong: extension_dir = /root/php-4.3.0/php-4.3.0/modules = /root/php-4.3.0/php-4.3.0/modules apache does not run as root, so it does not have access to the directory. Move the content of the directory

[PHP] Re: PHP program running from shell ends silently

2003-03-17 Thread Arnold Schommer
There is a directive max_execution_time to be set in php.ini. afaik, it limits the duration of php-scripts. Maybe you have to increase. (The sense is something like to prevent faulty scripts from overloading the server) The Value is in seconds; default 30 (?). hth Ruben wrote: Hi: I'm

[PHP] sorting results in PHP

2003-03-17 Thread bill
I have a query that returns results including the fields Year, Month, and Day that I want to sort by date. Because of the nature of the query (it includes a GROUP BY statement), I cannot sort it in the query. How can I sort the results? I tried to use asort() while designating the field but

Re: [PHP] sorting results in PHP

2003-03-17 Thread André Cupini
Bill Try this: while ($crow=mysql_fetch_array($cresult)) { $therow[]=$crow; } sort($therow); André Cupini Programador [EMAIL PROTECTED] NeoBiz - fábrica de internet http://www.neobiz.com.br - Original Message - From: bill To: [EMAIL PROTECTED] Sent: Monday, March 17, 2003

[PHP] strange session problem

2003-03-17 Thread Eddie Lien
Hi there, I have multiple web servers all running PHP 4.2.3, and they all have the same domain name implemented by round robin DNS. And I use a NFS filesystem, /home/share/tmp, for session.save_path. The main purpose is when my web clients move from one server to the others, the session will

[PHP] re: variables with

2003-03-17 Thread Ian A. Gray
Using the \ or using single quotes instead of double is great. However I am now finding a problem if someone inputs either single or double quotes on a form which uses php. The user inputs for example: I\ve performed many roles including Figaro, Dandini and 'Wotan' becomes: I\'ve performed

Re: [PHP] Force refresh of graphic - how?

2003-03-17 Thread Steve Magruder
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks for your suggestions. I had been thinking that it must be the URL that was causing the caching (same URL, same thing, right? Sounds good...), so I was planning on trying something along the lines of what you suggest. But I was

Re: [PHP] Sensibly accounting for timezone differences?

2003-03-17 Thread Tom Rogers
Hi, Monday, March 17, 2003, 10:55:06 PM, you wrote: MW Hi All, MW I'm an Australian PHP developer and host most of my web sites on US MW servers. One in particular is primarily accessed by Australian visitors MW and I want to be able to reflect Australian Eastern Standard Times when MW writing /

Re: [PHP] re: variables with

2003-03-17 Thread Charles Kline
php has a function stripslashes() you could try using. - charles On Monday, March 17, 2003, at 10:11 AM, Ian A. Gray wrote: Using the \ or using single quotes instead of double is great. However I am now finding a problem if someone inputs either single or double quotes on a form which uses

[PHP] Microsoft access + php

2003-03-17 Thread Denis L. Menezes
Sorry folks, This question must have been asked many times before, and I must have missed it. Can someone please lead me to some tutorial where I can PHP and Microsoft Access? thanks Denis

RES: [PHP] login problem [solved]

2003-03-17 Thread Gilberto Garcia Jr.
It was a cookie problem. between php and windows. thanks -Mensagem original- De: Chris Hewitt [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 17 de maro de 2003 11:45 Para: Gilberto Garcia Jr. Cc: PHP Assunto: Re: [PHP] login problem Gilberto Garcia Jr. wrote: Hi guys. Im

Re: [PHP] PHP 4.3.2RC1 released.

2003-03-17 Thread The Doctor
On Thu, Mar 13, 2003 at 07:12:49PM +0200, Jani Taskinen wrote: This is the first release candidate of the upcoming maintenance release of PHP 4.3.2. Please download and test it as much as possible on real-life applications to uncover any remaining issues.

RE: [PHP] re: variables with

2003-03-17 Thread Ford, Mike [LSS]
-Original Message- From: Ian A. Gray [mailto:[EMAIL PROTECTED] Sent: 17 March 2003 15:11 Using the \ or using single quotes instead of double is great. However I am now finding a problem if someone inputs either single or double quotes on a form which uses php. The user

Re: [PHP] sorting results in PHP

2003-03-17 Thread bill
Hi André, Sorting like that doesn't get it sorted by date. Each row has a lot of fields. It actually needs to be sorted three times by three fields, Year, Month, and Day. Because the query uses a GROUP BY statement, I can't sort it in the query. André cupini wrote: Bill Try this: while

Re: [PHP] sorting results in PHP

2003-03-17 Thread Erik Price
bill wrote: Hi André, Sorting like that doesn't get it sorted by date. Each row has a lot of fields. It actually needs to be sorted three times by three fields, Year, Month, and Day. Because the query uses a GROUP BY statement, I can't sort it in the query. MySQL offers a DATE column type.

Re: [PHP] sorting results in PHP

2003-03-17 Thread Marek Kilimajer
Use temporary table, it is simple and fast bill wrote: I have a query that returns results including the fields Year, Month, and Day that I want to sort by date. Because of the nature of the query (it includes a GROUP BY statement), I cannot sort it in the query. How can I sort the results?

Re: [PHP] PHP program running from shell ends silently [SOLVED]

2003-03-17 Thread Ruben
Thanks a lot Chris: 'memory_limit' is the responsible. I have done a couple of tests and AFAIK PHP shows no error at all when this limit is surpassed (I have error_reporting = E_ALL ~E_NOTICE in php.ini). Ruben. Chris Hewitt wrote: Ruben wrote: I'm running a 'batch' PHP program from the

RE: [PHP] sorting results in PHP

2003-03-17 Thread John W. Holmes
Sorting like that doesn't get it sorted by date. Each row has a lot of fields. It actually needs to be sorted three times by three fields, Year, Month, and Day. Because the query uses a GROUP BY statement, I can't sort it in the query. Why? I still don't see why you can't use an ORDER BY

RE: [PHP] stripping slashes before insert behaving badly

2003-03-17 Thread John W. Holmes
I am inserting data from a form into a mySQL database. I am using addslashes to escape things like ' in the data input (this is actually being done in PEAR (HTML_QuickForm). The weird thing is that the data gets written into the table like: what\'s your problem? WITH the slash. I am not

Re: [PHP] stripping slashes before insert behaving badly

2003-03-17 Thread Charles Kline
John, You are right, something was adding the additional slash. I removed the addslashes() and it fixed the problem. Something I am doing must already be handling that... will step through the code AGAIN and see if I can find it. - Charles On Monday, March 17, 2003, at 12:19 PM, John W.

[PHP] A faster way to Redirect pages

2003-03-17 Thread Poon, Kelvin (Infomart)
Hi, I know this topic was discussed but I deleted my previous mail so I can't go back and review them. My question is, is there a faster way to redirect html pages other than just using meta HTTP-EQUIV=REFRESH CONTENT=1; URL=login.php ? Is there any way we can do that in php so that it

Re: [PHP] A faster way to Redirect pages

2003-03-17 Thread John Nichel
Manual-HTTP-Header Poon, Kelvin (Infomart) wrote: Hi, I know this topic was discussed but I deleted my previous mail so I can't go back and review them. My question is, is there a faster way to redirect html pages other than just using meta HTTP-EQUIV=REFRESH CONTENT=1; URL=login.php ? Is

Re: [PHP] A faster way to Redirect pages

2003-03-17 Thread Pete James
Try zero seconds? Poon, Kelvin (Infomart) wrote: Hi, I know this topic was discussed but I deleted my previous mail so I can't go back and review them. My question is, is there a faster way to redirect html pages other than just using meta HTTP-EQUIV=REFRESH CONTENT=1; URL=login.php ? Is

Re: [PHP] A faster way to Redirect pages

2003-03-17 Thread Oscar F
Kelvin, You can use ? header(Location:login.php); exit; ? If you want to do it with PHP. You have to put it at the top of the file, since no other information can be sent before the Location header. HTH, -Oscar F. Poon, Kelvin (Infomart) wrote: Hi, I know this topic was discussed but I

Re: [PHP] A faster way to Redirect pages

2003-03-17 Thread Erik Price
Poon, Kelvin (Infomart) wrote: I know this topic was discussed but I deleted my previous mail so I can't go back and review them. STFA: http://marc.theaimsgroup.com/?l=php-general My question is, is there a faster way to redirect html pages other than just using meta HTTP-EQUIV=REFRESH

RE: [PHP] A faster way to Redirect pages

2003-03-17 Thread Barajas, Arturo
Just clarifying a little. The header() function doesn't necessarily go at the top. You can make whatever operations you need, but as long as nothing is echoed to the browser, there's no problem. I mean: ? // Query to a database... //Real long process... header(Location:

[PHP] Working with dates

2003-03-17 Thread Brad Harriger
I have two variables, $StartDate and EndDate that contain values read from MySQL Date fields. How can I determine if a value entered by the user is between the two dates? I'm using PHP 4.0.6. Thanks in advance, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] A faster way to Redirect pages

2003-03-17 Thread Pete James
header(), session_start(), etc. can go anywhere in a page (after any content) as long as you start the page using output buffering (ob_start()). Example (bad example) follows: ?php ob_start() print this; print that; if ($forgot) { // oops need to redirect header('Location: foo.php'); }

Re: [PHP] Working with dates

2003-03-17 Thread Erik Price
Brad Harriger wrote: I have two variables, $StartDate and EndDate that contain values read from MySQL Date fields. How can I determine if a value entered by the user is between the two dates? I'm using PHP 4.0.6. if ($user_input $StartDate $user_input $EndDate) { // do

RE: [PHP] Working with dates

2003-03-17 Thread John W. Holmes
I have two variables, $StartDate and EndDate that contain values read from MySQL Date fields. How can I determine if a value entered by the user is between the two dates? I'm using PHP 4.0.6. I think you can take MySQL timestamps directly into strtotime(). If($user strtotime($StartDate)

Re: [PHP] sorting results in PHP

2003-03-17 Thread bill
Aha. Comments like yours made me look again. It turns out that I could use ORDER BY with a GROUP BY but I couldn't have it before a HAVING. Specifically, I had SELECT ... GROUP BY $detailsdb.eid ORDER BY Year, Month, Day HAVING foobar = $numcatchoices To fix it I changed the

[PHP] Looking for library of functions

2003-03-17 Thread Shawn McKenzie
Can anyone please point me to a set of good functions to search and manipulate HTML? Mainly I'm looking to buffer HTML that is output by another script and fix some issues with it. Such as missing around property values and many other things. Function examples: Find tags in HTML, replace

Re: [PHP] Sensibly accounting for timezone differences?

2003-03-17 Thread Joshua Moore-Oliva
On March 17, 2003 07:55 am, M Wells wrote: Hi All, I'm an Australian PHP developer and host most of my web sites on US servers. One in particular is primarily accessed by Australian visitors and I want to be able to reflect Australian Eastern Standard Times when writing / reporting records,

Re: [PHP] Working with dates

2003-03-17 Thread Joshua Moore-Oliva
Switch to postgres! then you can do SELECT stamp FROM table WHERE stamp BETWEEN timestamp 'today' AND timestamp 'tomorrow'; On March 17, 2003 12:43 pm, Brad Harriger wrote: I have two variables, $StartDate and EndDate that contain values read from MySQL Date fields. How can I determine if

Re: [PHP] Working with dates

2003-03-17 Thread Jim Lucas
you do that same query in mysql Jim - Original Message - From: Joshua Moore-Oliva [EMAIL PROTECTED] To: Brad Harriger [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, March 17, 2003 10:49 AM Subject: Re: [PHP] Working with dates Switch to postgres! then you can do SELECT stamp

[PHP] What is the difference: include()

2003-03-17 Thread Charles Kline
What is the difference as in... why one or the other? include('somefile.php'); include(somefile.php); Just wondering... - ck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is the difference: include()

2003-03-17 Thread Pete James
Only that you can embed vars in the second one. if $foo='bar'; include('somefile_{$foo}'); will include the file 'somefile{$foo}', where include(somefile_{$foo}); will include the file 'somefile_bar' HTH. Charles Kline wrote: What is the difference as in... why one or the other?

Re: [PHP] What is the difference: include()

2003-03-17 Thread Charles Kline
perfect. thanks for the explanation. cheers, charles On Monday, March 17, 2003, at 02:01 PM, Pete James wrote: Only that you can embed vars in the second one. if $foo='bar'; include('somefile_{$foo}'); will include the file 'somefile{$foo}', where include(somefile_{$foo}); will include the

[PHP] Looking at individual chars of string

2003-03-17 Thread Bix
Is it possible to look at individual chars of a string? eg: $str = 12345; print $str_1 // Gives 1 print $str_2 // Gives 2 Doing this with an array would be handy, maybe using explode or preg_split? Thanks in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] What is the difference: include()

2003-03-17 Thread CPT John W. Holmes
What is the difference as in... why one or the other? include('somefile.php'); include(somefile.php); Just wondering... No difference as far as include() goes. Read the manual on strings to see how PHP treats strings in single and double quotes differently. ---John Holmes... -- PHP

Re: [PHP] What is the difference: include()

2003-03-17 Thread Kevin Stone
- Original Message - From: Charles Kline [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 17, 2003 11:57 AM Subject: [PHP] What is the difference: include() What is the difference as in... why one or the other? include('somefile.php'); include(somefile.php); Just

[PHP] Email always set to server's email, why?

2003-03-17 Thread Vernon
All the email coming from a web site, even though I have set the Reply-To, have the Reply-To set to [EMAIL PROTECTED] Anyone have any ideas why? I want the reply-to set to somethign else. Here is what I have: mail($clubemail, $subject, $message , From: $email\r\n,Reply-To: $email); -- PHP

Fw: [PHP] Looking at individual chars of string

2003-03-17 Thread Kevin Stone
- Original Message - From: Bix [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 17, 2003 12:04 PM Subject: [PHP] Looking at individual chars of string Is it possible to look at individual chars of a string? eg: $str = 12345; print $str_1 // Gives 1 print $str_2 // Gives

Re: [PHP] Looking at individual chars of string

2003-03-17 Thread Erik Price
Bix wrote: Is it possible to look at individual chars of a string? eg: $str = 12345; print $str_1 // Gives 1 print $str_2 // Gives 2 Try this: print $str{0}; // gives 1 print $str{1}; // gives 2 Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Email always set to server's email, why?

2003-03-17 Thread John Nichel
Try it this way. mail ( $clubemail, $subject, $message, From: $email\r\n . Reply-To: $email\r\n ); Notice the period (.) between the from and reply-to section, instead of the comma, and the added newline (\r\n) after the reply-to address. Vernon wrote: All the email coming from a web

Re: Fw: [PHP] Looking at individual chars of string

2003-03-17 Thread Erik Price
Kevin Stone wrote: Actually as far as the computer knows strings *are* arrays. Access any character within a string in the same mannor as you would access an element in an array. For example: $str = hello world; echo $str[4]; // prints o echo $str[6]; // prints w That works but is deprecated.

Fw: [PHP] Email always set to server's email, why?

2003-03-17 Thread Kevin Stone
- Original Message - From: Vernon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 17, 2003 12:09 PM Subject: [PHP] Email always set to server's email, why? All the email coming from a web site, even though I have set the Reply-To, have the Reply-To set to [EMAIL PROTECTED]

Re: [PHP] What is the difference: include()

2003-03-17 Thread Erik Price
Charles Kline wrote: What is the difference as in... why one or the other? include('somefile.php'); include(somefile.php); Just wondering... If you had a constant named somefile or php and you use the second syntax, the constant would be interpolated/evaluated to the value of the constant.

Re: [PHP] Looking at individual chars of string

2003-03-17 Thread Bix
Cheers buddy! Erik Price [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Bix wrote: Is it possible to look at individual chars of a string? eg: $str = 12345; print $str_1 // Gives 1 print $str_2 // Gives 2 Try this: print $str{0}; // gives 1 print $str{1}; //

Re: Fw: [PHP] Looking at individual chars of string

2003-03-17 Thread Bix
Much appreciated! Erik Price [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Kevin Stone wrote: Actually as far as the computer knows strings *are* arrays. Access any character within a string in the same mannor as you would access an element in an array. For example:

Re: [PHP] What is the difference: include()

2003-03-17 Thread Erik Price
Erik Price wrote: If you had a constant named somefile or php and you use the second syntax, the constant would be interpolated/evaluated to the value of the constant. Generally I always use single quoted strings unless there's some need for double-quoted strings (like if I want to embed a

[PHP] Re: Microsoft access + php

2003-03-17 Thread zerof
If you have Dreamweaver MX, you can use PHAkt extension, that allows to work with ODBC. Interakt: http://www.interakt.ro/ Macromedia http://www.macromedia.com/ -- zerof -- Denis L. Menezes [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] - Can

Re: [PHP] What is the difference: include()

2003-03-17 Thread John Nichel
Erik Price wrote: snip BTW, I'm talking out my butt here. /snip I was wondering what that smell was. :o -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How safe?

2003-03-17 Thread Sebastian
hello all, I have another questions .. I really could use some feedback on this script, I want to make sure it's secure enough. can anyone see any risks? Basically what the script does it get username/password and user access level (passwords are encrypt md5 hash, from the database. I then

  1   2   >