[PHP] Re: Compiling PHP5 In Linux

2003-03-05 Thread Patrick LOK
Don't panic... it is just a warning according to some expert users. The same WARNING appears in building PHP4 too. I also suffered spent 3 days trying to fix! Many many people asked WHY. Nobody tells why! Nobody is going to fix it! I would also really want to know why such STUPID message

[PHP] global var or passing a parameter in classes ?

2003-03-05 Thread Cranky Kong
Hello, here is my problem : I have a class A and I instanciate this class at the beginninf of my script. I have another class B and in some functions of this class B, I need to access the instance of the class A. So in the functions of the class B, to access the class A, is it better to receive a

Re: [PHP] Compiling PHP5 In Linux

2003-03-05 Thread Ernest E Vogelsinger
At 04:55 05.03.2003, Clete Rivers Blackwell 2 said: [snip] I have RedHat 8.0 with the everything box checked in packages... when I build the CVS of PHP5, it tells me that tempnam is dangerous and to use makename or something... I think it's a code bug, but

[PHP] Security Q (persistent in-memory var possib;e?)

2003-03-05 Thread Jean-Christian Imbeault
I have a PHP application that connects to a DB an retrieves encrypted data from it. The PHP application uses the decryption key to decode the data to so some work with it. Right now the key is hard-coded into the PHP script. I am worried that if someone hacks into my server they will have

[PHP] multiarray

2003-03-05 Thread Konference
Hi all, i have o question, is there some solution how to make from multi-array no-multi-array? :) i need to make from multi-array this array: $pole[] = gk $pole[] = gk-ati $pole[] = gk-nvi $pole[] = gk-mat thank you for all advices! multi-array: --- array(2) { [code]=

[PHP] Re: MySQL Query

2003-03-05 Thread David Eisenhart
If I understand your requirement correctly I would say that you are looking in the wrong place to protect particular table fields from the user; the user gets access to the underlying database only through your 'application' pages (ie. your php pages) - it is your coding of these pages that

[PHP] creating class

2003-03-05 Thread Awlad Hussain
I am very new to class, trying out this class, but it doesn't seem to display anything? what i am donig wrong? ?php class site_init { var $midgard; // array function site_init() { echo $this-midgard[host]; } ? i called this class by $new_midgard = site_init; it does not seem to print

Re: [PHP] Downloading files outside the webserver

2003-03-05 Thread Daniel Silva
The problem was solved. I added a call to the exit() construct at the end of the function and haven't had any more problems since. I would like to thank everyone who helped me. Cheers, Daniel Daniel Silva [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello. I tried what you

[PHP] registration

2003-03-05 Thread Diksha Neel
dear all, hi! i have a php page called check.php in which is a textbox named login.on my second php page named registration.php i can see the content of the textbox by echo $login. but when i try to get the same content in a textbox in registration.php, i get no result. that text box is also

[PHP] Re: registration

2003-03-05 Thread Jean-Christian Imbeault
Diksha Neel wrote: ?PHP $connection=mysql_connect(localhost,root,)or die(Could not connect); print Connected successfully; mysql_select_db(bdoi_change)or die(could not select database); echo $login pre The line above you give you an error ... echo form Login ID font color=\red\*

Re: [PHP] max_execution_time and set_time_limit() problem.

2003-03-05 Thread Marek Kilimajer
This should not have anything with time limit, your php script is executed after the upload finishes, you should check max_upload_size and max_post_size (max_upload_size max_post_size) Eric Wood wrote: Even set_time_limit(0) does extend the timeout. Always a 30 second timeout. Any other

[PHP] Calendar Controls

2003-03-05 Thread shaun
http://calendar.msn.com/ has some great controls for veiwing dates day/week/month view etc. Are these windows specific (ie ASP only) or ise there a way to use these in my PHP? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] assign gobal values in class?

2003-03-05 Thread Awlad Hussain
can you assign global value in a class like: class test{ global $arr; } anyone?

Re: [PHP] assign gobal values in class?

2003-03-05 Thread Chris Hayes
At 13:35 5-3-03, you wrote: can you assign global value in a class like: class test{ global $arr; } anyone? try! :) if it does not work in this place, try setting it in the constructor function, which is a function in the class with the same name as the class, class test{ var $test_arr;

[PHP] Re: creating class

2003-03-05 Thread rush
Awlad Hussain [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am very new to class, trying out this class, but it doesn't seem to display anything? what i am donig wrong? how about this:? class site_init { var $midgard; // array function site_init() { echo 123; } } $new_midgard =

[PHP] convert .asp page .php

2003-03-05 Thread php
Hi all, I joined your list hoping to find-out how to convert a .asp page to .php I do realize that I am off the mark on this and there is much to learn in this area. Perhaps one of you could point me to a place where I get small sample pages in php so that I can get started with .php in a

[PHP] What solution to use for mass newsletter mailing reporting?

2003-03-05 Thread J J
What do you use for mass newsletter mailing say for 5000+ members every month? At the same time, I'd like to be able to track who opened the message, any links they clicked inside the message, bounced messages, etc. I keep seeing reports that PHP/mail have trouble sending more than a few hundred

Re: [PHP] convert .asp page .php

2003-03-05 Thread Ryan Gibson
On 5/3/03 1:42 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Subscription.asp The page u sent is just a form (it will work on any server), the dirty work is done by Subscription.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] assign gobal values in class?

2003-03-05 Thread Mincu Alexandru
On Wed, 2003-03-05 at 14:52, Chris Hayes wrote: At 13:35 5-3-03, you wrote: can you assign global value in a class like: class test{ global $arr; } anyone? try! :) if it does not work in this place, try setting it in the constructor function, which is a function in the class

Re: [PHP] convert .asp page .php

2003-03-05 Thread Awlad Hussain
http://www.asp2php.com/ - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 1:42 AM Subject: [PHP] convert .asp page .php Hi all, I joined your list hoping to find-out how to convert a .asp page to .php I do realize that I am off the

Re: [PHP] PHP NNTP w/o IMAP?

2003-03-05 Thread Adam Voigt
Talk to the NNTP server with fsockopen and socket functions. Manual (RFC) for NNTP commands: http://rfc.net/rfc977.html On Tue, 2003-03-04 at 15:37, Mike Walsh wrote: I am looking for some PHP code that implements an NNTP interface that doesn't require IMAP.

Re: [PHP] form POST file upload mystery

2003-03-05 Thread Adam Voigt
Well first, if your running a linux/unix server, did you create a /temp, because on most server's, it's /tmp (no e). On Tue, 2003-03-04 at 16:20, Mike D wrote: Hello, I have the weirdest thing going on...I have an image upload field that has been

[PHP] php deal with hidden files on win32

2003-03-05 Thread Eddy-Das
is there any function that can 1) check whether a file is hidden (on win32 platform), or, 2) hiden a file thanks a lot!!! -- - Eddy Wong __ inframatrix internet solutions http://www.inframatrix.com/ ¥¿¤KEddy Regular Octa-Eddy [EMAIL PROTECTED]@ [EMAIL

[PHP] coockies in windows xp

2003-03-05 Thread christian tischler
having to use coockies to identify visitors I seem to have a problem with visitors using windows xp. the command I use is setcoockie(coockie1, true, time()+600) any ideas??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] some help needed building chat-app

2003-03-05 Thread Michiel van Heusden
i'm working on a chat-app which has to be extremely plain and simple mysql is available i tried stripping some of the big scripts, but ended up in a mess so i've ended up building a little app myself i'm just wondering whether i'm using the right principe to get the data refreshed in the chat..

Re: Re[2]: [PHP] Supressing a session id in link

2003-03-05 Thread Steve Magruder
Tom Rogers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Wednesday, March 5, 2003, 1:47:39 PM, you wrote: G Tom Rogers wrote: Hi, Wednesday, March 5, 2003, 12:45:27 PM, you wrote: G Hi All, GI need to suppress the session id in some links. The xhtml needs to G

[PHP] Re: php forgetting variables very easily

2003-03-05 Thread Ian A. Gray
I am still having problems with variables not being remembered by included files. I've tried using the global command and it still doesn't work. I've cut down my two pages to contain the main stuff so you can see what's happening. Basically main.php includes the file new.php and I want the

[PHP] two buffers??

2003-03-05 Thread Mattia
i need to put in a var all the processed contents of a .php file in my directory. The filemust be processed, and its output put in a variable, instead of output to the browser. The simple solution would be to use ob_start() .. .. $var = ob_get_contents() or something like that with ob_

Re: [PHP] Compiling PHP5 In Linux

2003-03-05 Thread Clete Rivers Blackwell 2
Here's something I got from google searching for tempnam dangerous... 'That's not exactly what is the dangerous part. What is dangerous is that it returns a filename that refers to a file which did not exist at some point during the call to tempnam. It does not create that file for you, meaning

Re: [PHP] coockies in windows xp

2003-03-05 Thread Chris Hayes
At 15:29 5-3-03, you wrote: having to use coockies to identify visitors I seem to have a problem with visitors using windows xp. the command I use is setcoockie(coockie1, true, time()+600) any ideas??? Did you test this with various versions of windows? Do these people have cookies turned on, do

RE: [PHP] coockies in windows xp

2003-03-05 Thread George Pitcher
Just in case - check the spelling of setcookie. There's no c before the k. George -Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED] Sent: 05 March 2003 2:45 pm To: [EMAIL PROTECTED] Subject: Re: [PHP] coockies in windows xp At 15:29 5-3-03, you wrote: having to use

RE: [PHP] Re: PHP NNTP w/o IMAP?

2003-03-05 Thread Jeff Hatcher
pear.php.net search for nntp. There are some problems with the code in certain secure newsgroup but overall seems to work well. It will definitely let you see how it is done. Thanks, Jeff -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003

Re: [PHP] Re: php forgetting variables very easily

2003-03-05 Thread 1LT John W. Holmes
I am still having problems with variables not being remembered by included files. I've tried using the global command and it still doesn't work. I've cut down my two pages to contain the main stuff so you can see what's happening. Basically main.php includes the file new.php and I want

Re: [PHP] Getting error REG_EMPTY

2003-03-05 Thread 1LT John W. Holmes
Way does this give me this error It's a warning, not an error. Warning: REG_EMPTY: in emailusers.php on line 52 $lines = file(data/members.txt); foreach($lines as $line){ list ($logged_email,$logged_title,$logged_first_name,$logged_last_name) = split(|, $line); if ($logged_email==$email)

Re: [PHP] Session variable under PHP 4.0.6

2003-03-05 Thread Steve Magruder
Kirk Johnson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If register_globals is Off in php.ini, then do the following: - do not use session_register(), etc. - use $HTTP_SESSION_VARS for all accesses. I have code similar to Henry's running fine on both 4.0.5 and 4.2.3 servers

[PHP] Re: php forgetting variables very easily

2003-03-05 Thread Roman Sanchez
I am still having problems with variables not being remembered by included files. I've tried using the global command and it still doesn't work. I've cut down my two pages to contain the main stuff so you can see what's happening. Basically main.php includes the file new.php and I want

[PHP] preg_match fails to fill $matches

2003-03-05 Thread {R}ichard Ashton
I have At the top of a loop $ts = '/(' . $trigger_string .')/is'; echo trigger_string is $ts br; $matches = array(); $hit = array(); In the loop $hit[] = preg_match ($ts, $line_in,$matches); Now the $hit array fills up correctly, if the trigger string is on the line just read in, putting

[PHP] i got a problem

2003-03-05 Thread Luis A
hi every one here o got one problem here on the php take a look at this html body form method=post action=add_reg.php3 Nombre :input type=Text name=nombrebr Teléfono:input type=Text name=telefonobr E-Mail:input type=Text name=emailbr Pais :input type=Text name=paisbr Comentario: TEXTAREA

Re: [PHP] i got a problem

2003-03-05 Thread 1LT John W. Holmes
Try $result = mysql_query($sql) or die(mysql_error()); to see what the problem is. ---John Holmes... - Original Message - From: Luis A [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 9:29 PM Subject: [PHP] i got a problem hi every one here o got one problem

[PHP] Re: php forgetting variables very easily

2003-03-05 Thread Ian A. Gray
Thanks, John- that works brilliantly. Just wandering how I can include a file in a different directory so that it still remembers variables. for example what if I want to include the file www.example.com/two/example.php in the file: www.example.com/one/example.php ? would

Re: [PHP] coockies in windows xp

2003-03-05 Thread christian tischler
Sorry of course it's cookie not coockie Yes, it works on win98 andc win2k but not on winxp yes, cookies are turned on don't know - configuration of winxp is standard security level for explorer is medium Chris Hayes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 15:29 5-3-03,

Re: [PHP] preg_match fails to fill $matches

2003-03-05 Thread 1LT John W. Holmes
$ts = '/(' . $trigger_string .')/is'; echo trigger_string is $ts br; $matches = array(); $hit = array(); In the loop $hit[] = preg_match ($ts, $line_in,$matches); Now the $hit array fills up correctly, if the trigger string is on the line just read in, putting 1 or 0 in $hits. But

Re: [PHP] Re: php forgetting variables very easily

2003-03-05 Thread 1LT John W. Holmes
Thanks, John- that works brilliantly. Just wandering how I can include a file in a different directory so that it still remembers variables. for example what if I want to include the file www.example.com/two/example.php in the file: www.example.com/one/example.php ? would

[PHP] Re: Number of rows

2003-03-05 Thread Roman Sanchez
however, i would like to show the user how many rows there are in each table (where i have put numrows), how could i do this? thanks for your help Since MySql version 3.23 you can use show table status to show a lot of information for all tables in a database, including the number of rows.

Re: [PHP] some help needed building chat-app

2003-03-05 Thread Marek Kilimajer
You need only one query with LIMIT, example: //this will select last 10 messages $res=mysq_query('SELECT * FROM chat_messages ORDER BY addtime DESC LIMIT 10'); // this will print them from newer to older while($message=mysql_fetch_array($res)) { echo $message['from'].':

Re: [PHP] trailing slash

2003-03-05 Thread Marek Kilimajer
There must be some apache setting for this, in fact they both don't accept it, but the one that seems it does will send you a 301 Moved Permanently response. Michael A Smith wrote: Hi all, How come some servers (like one of our RH7.3s) can accept a www.somewhere.com/foldername without the

[PHP] Re:1LT John W. Holmes [PHP] i got a problem

2003-03-05 Thread Luis A
he does not present any problem he does not intser any thing on the mysql he create the table but it does not insert on table the data of the form i try that all ready and nothing ( - Original Message - From: 1LT John W. Holmes [EMAIL PROTECTED] To: Luis A [EMAIL PROTECTED]; [EMAIL

[PHP] session data

2003-03-05 Thread Joseph Bannon
1) How long does session data remain on the server? 2) Is there a place I can set the expiration? 3) Will php automatically delete the old session data or do I have to do it? Thanks, Joseph = RisingMusic.com 450,000 registered users. 14,000 registered bands and artists.

Re: [PHP] some help needed building chat-app

2003-03-05 Thread Joseph Bannon
* how can i make sure the db-connection is closed before the user closes the window? Doesn't the connection close when the php script stops? J. __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ --

Re: [PHP] session data

2003-03-05 Thread Marek Kilimajer
Joseph Bannon wrote: 1) How long does session data remain on the server? 2) Is there a place I can set the expiration? this is controled by session.gc_maxlifetime 3) Will php automatically delete the old session data or do I have to do it? previous aswer implies yes, automatically

Re: [PHP] Issues in passing session data

2003-03-05 Thread Joseph Bannon
For instance, most developers uses session_start() on top of every page. The problem is that after visiting each page, a new session file is created on the server. Correct me if I'm wrong, but I don't think a new session file is created. session_start() creates a session or resumes the

Re: [PHP] session data

2003-03-05 Thread Joseph Bannon
this is controled by session.gc_maxlifetime Is the number by second, minutes, etc? Thanks, J. __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] some help needed building chat-app

2003-03-05 Thread Clete Rivers Blackwell 2
Yes, it does, so no need, but if you really want to be picky, use mysql_close([resource link_identifier])... Joseph Bannon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * how can i make sure the db-connection is closed before the user closes the window? Doesn't the connection

Re: [PHP] session data

2003-03-05 Thread Dickon Newman
If I remember my reading correctly...the php manual (or the notes in the ini file) specifies how the garbage collection is done on unix versus windows and under what situations. I remember that there were some situations where the system doesn't clean out the expired sessions! Hope that helps a

Re: [PHP] preg_match fails to fill $matches

2003-03-05 Thread {R}ichard Ashton
On Wed, 5 Mar 2003 10:21:30 -0500, 1LT John W. Holmes wrote: $ts = '/(' . $trigger_string .')/is'; echo trigger_string is $ts br; $matches = array(); $hit = array(); In the loop $hit[] = preg_match ($ts, $line_in,$matches); Now the $hit array fills up correctly, if the trigger

RE: [PHP] i got a problem

2003-03-05 Thread Bryan Lipscy
Try echo $sql; To check your sql before execution. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] session data

2003-03-05 Thread Bryan Lipscy
Is the number by second, minutes, etc? session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up. http://www.php.net/manual/en/ref.session.php Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Calendar Controls

2003-03-05 Thread Ray Hunter
PHP does have some calendar functions: http://www.php.net/manual/en/ref.calendar.php However, these deal with converting between different calendar formats. There are the date and time functions that you will probably really would like to use. http://www.php.net/manual/en/ref.datetime.php

Re: [PHP] two buffers??

2003-03-05 Thread Ray Hunter
Review the file functions and you will find what you need: http://www.php.net/manual/en/ref.filesystem.php Like the functions: 1) file_get_contents() and 2) file() -- Ray On Wed, 2003-03-05 at 07:40, Mattia wrote: i need to put in a var all the processed contents of a .php file in my

[PHP] mortgage calculator

2003-03-05 Thread Karen E. Lubrecht
I'd like to add a mortgage calculator to a client's site. I've been unable to find the formula. In searching php.net, I found a discussion from back in 2000 related to some buggy code. My web search hasn't produced anything other than realtor and mortgage companies and a perl script site. I'm not

[PHP] TO Bryan LipscyRe: [PHP] i got a problem

2003-03-05 Thread Luis A
HE show me this INSERT INTO agenda (nombre, direccion, telefono, email, pais, comentario) VALUES ('','','','','','')¡THANKS! WE HAVE RECEIVED YOUR DATA. i think he does not asimilate the $ on the variable VALUES (' $DATA,' ) - Original Message - From: Bryan Lipscy [EMAIL PROTECTED] To:

[PHP] Need help with ? vs. php?

2003-03-05 Thread LeTortorec, Jean-Louis
Hello everyone, I've installed the Apache v2.0.44 with PHP4.3.1., under Windows. My pages starting and ending with ?? don't work anymore. I would have to change them to ?php...php?. Do you know if there is a way for keeping ? running? Thanks for your help.

Re: [PHP] TO Bryan LipscyRe: [PHP] i got a problem

2003-03-05 Thread 1LT John W. Holmes
He probably needs register_globals turned ON in your php.ini file. ---John Holmes... - Original Message - From: Luis A [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:49 PM Subject: [PHP] TO Bryan LipscyRe: [PHP] i got a problem HE show me this INSERT INTO

Re: [PHP] mortgage calculator

2003-03-05 Thread Mark Heintz PHP Mailing Lists
http://dave.imarc.net/ offers one. I haven't used it yet myself, though. mh. On Wed, 5 Mar 2003, Karen E. Lubrecht wrote: I'd like to add a mortgage calculator to a client's site. I've been unable to find the formula. In searching php.net, I found a discussion from back in 2000 related to

Re: [PHP] preg_match fails to fill $matches

2003-03-05 Thread 1LT John W. Holmes
What's your actual code? How are you looking for the match in $matches? If something was matched, then it'll be there. The full cod in the loop is. $cnt = 0; while(!feof($fp)) { // Get body $line_in = fgets($fp,4096); $cnt++; // looking for the other end of the

Re: [PHP] Need help with ? vs. php?

2003-03-05 Thread Greg Donald
On Wed, 5 Mar 2003, LeTortorec, Jean-Louis wrote: My pages starting and ending with ?? don't work anymore. I would have to change them to ?php...php?. Do you know if there is a way for keeping ? running? I think you might try: ini_set(short_open_tag, 1); Or edit your php.ini and set it

Re: [PHP] Need help with ? vs. php?

2003-03-05 Thread 1LT John W. Holmes
I've installed the Apache v2.0.44 with PHP4.3.1., under Windows. My pages starting and ending with ?? don't work anymore. I would have to change them to ?php...php?. php? is not valid. It's ?php ... ? or ? ... ? Do you know if there is a way for keeping ? running? enable short_tag in

Re: [PHP] preg_match fails to fill $matches

2003-03-05 Thread Jason k Larson
What is the value of $trigger_string in your $ts variable? Also, try removing the 's' from outside the pattern matching in $ts. You might get back some useful information. usage: pmatch [ -cfghilnv ] '/pattern/' [ file ] ... -c : show only line count for each file -f : show only

Re: [PHP] mortgage calculator

2003-03-05 Thread David T-G
Karen -- ...and then Karen E. Lubrecht said... % ... % familiar with perl and would prefer avoiding it until my knowledge improves. Actually, if you can read php, you can probably read perl; php is very perl-ish. If you *do* find it, I'd love to see a followup post :-) Heck, I'd even take the

Re: [PHP] mortgage calculator

2003-03-05 Thread Jonathan Pitcher
Karen, I am currently developing a class for mortgage calculations for our website. I forced one of our accounts to walk me through the calculations and the formula's. The class is still in an alpha stage but I would be more then willing to share my code when it is completed in 3+ weeks.

Re: [PHP] Re: php forgetting variables very easily

2003-03-05 Thread Jason k Larson
Include can handle URLs as the path if allow_url_fopen is set correctly in the php.ini. But it does have some limitations if being done on a Win32 platform instead of (*)nix. Try reading this, it might shed some needed light. http://www.php.net/manual/en/function.include.php HTH -- Jason k

[PHP] RE: Need help with ? vs. php?

2003-03-05 Thread LeTortorec, Jean-Louis
That's fixed. Thanks. Now, another problem. The data I capture in a form (web page 1) are not received by the PHP page (web page 2). Is there something different with the previous version of PHP? Thanks to all of you for your help. Jean-Louis -Original Message- From:

RE: [PHP] TO Bryan LipscyRe: [PHP] i got a problem

2003-03-05 Thread Bryan Lipscy
That is what I thought it would do. A couple of suggestions: $sql = INSERT INTO agenda (nombre, direccion, telefono, email, pais, comentario) VALUES ('.$_POST['$nombre'].', '.$_POST['$direccion'].', '.$_POST['$telefono'].', '.$_POST['$email'].', '.$_POST['$pais'].', '.$_POST['$comentario'].');

Re: [PHP] mortgage calculator

2003-03-05 Thread Chris Hayes
At 17:49 5-3-03, you wrote: I'd like to add a mortgage calculator to a client's site. I've been unable to find the formula. Well the calculation depends on the companies policy of course. 1. Normal rent calculation would go like this: where i = interest or rent over a certain the period of time (

RE: [PHP] mortgage calculator

2003-03-05 Thread Karen E. Lubrecht
Thanks, Mark! I haven't checked it in detail yet, but if nothing else it has the formula for which I was searching. Karen -Original Message- From: Mark Heintz PHP Mailing Lists [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 12:04 PM To: Karen E. Lubrecht Cc: [EMAIL

Re: [PHP] multiarray

2003-03-05 Thread Jason k Larson
This would do the trick. It's untested, but looks right to me. // flatten source_array to destination_array foreach ($source_Array as $key = $value) { if (!is_array ($value) $key === 'code') { $destination_Array[] = $value; } else {

RE: [PHP] RE: RE: Bitwise operator question

2003-03-05 Thread Dan Sabo
Hi Philip thanks, OK so when ANDing, is all that is being done is setting the result of anding to whichever bit is common to both, and with or ing, it's listing ALL bits present in both? Is that it? If I understand correctly, if when PHP is defining an integer, which in this example in the book

[PHP] define variables.

2003-03-05 Thread Vincent M.
Hello, I do a lot of define like that: define (_LANG1, Server options); define (_LANG1, Manage your system); etc... And stuff like that: if($num == 1) { $mgs = _LANG1 ; }else if($num == 2) { $mgs = _LANG2 ; } etc... But I do want to avoid all these if and else, is there a way to do

RE: [PHP] MySQL Query

2003-03-05 Thread John W. Holmes
Is there a way of updating a table so that I can add some sort of identifier to each field, something as simple as x=1 will do. I want to be able to modify the table so I can set a variable for each column so I can tell whether I can let a user modify that field. If I modify the fieldname

Re: [PHP] RE: Need help with ? vs. php?

2003-03-05 Thread R'twick Niceorgaw
set register_globals=on in php.ini or use $_POST/$_GET super global array - Original Message - From: LeTortorec, Jean-Louis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 12:14 PM Subject: [PHP] RE: Need help with ? vs. php? That's fixed. Thanks. Now, another

RE: [PHP] RE: Need help with ? vs. php?

2003-03-05 Thread John W. Holmes
That's fixed. Thanks. Now, another problem. The data I capture in a form (web page 1) are not received by the PHP page (web page 2). Is there something different with the previous version of PHP? Register_globals ---John W. Holmes... PHP Architect - A monthly magazine for PHP

RE: [PHP] preg_match fails to fill $matches

2003-03-05 Thread John W. Holmes
Also, try removing the 's' from outside the pattern matching in $ts. You might get back some useful information. usage: pmatch [ -cfghilnv ] '/pattern/' [ file ] ... -s: supress error messages about missing or unreadable files The 's' in preg_* means something different: If this

Re: [PHP] define variables.

2003-03-05 Thread Jason k Larson
http://www.php.net/manual/en/function.constant.php $msg = constant('_LANG'.$num); HTH, -- Jason k Larson Vincent M. wrote: Hello, I do a lot of define like that: define (_LANG1, Server options); define (_LANG1, Manage your system); etc... And stuff like that: if($num == 1) { $mgs = _LANG1

RE: [PHP] mortgage calculator

2003-03-05 Thread Karen E. Lubrecht
WOW! This list has been a wonderful resource! Thanks to all of you. To top it off I have learned a great new technique for google search, start in the back end of relevance! (You probably all know that, but for some reason I never made the connection.) In addition to the site that Mark mentioned,

Re: [PHP] define variables.

2003-03-05 Thread Vincent M.
Jason K Larson wrote: http://www.php.net/manual/en/function.constant.php $msg = constant('_LANG'.$num); HTH, -- Jason k Larson Strange it does not work if I do: $num = _LANG.$num ; $msg = constant($num) ; echo $mgs ; //It does not display anything! But If I do it directly, it works: $num

[PHP] updating pages with php

2003-03-05 Thread Tyler Durdin
I have a web page with a simple introductory paragraph on it. I was going to store the paragraph in a mySQL DB and create an administration page so people could easily edit the paragraph itself or change it all together. The problem I ran into is that mySQL will not allow certain punctuation

RE: [PHP] updating pages with php

2003-03-05 Thread John W. Holmes
I have a web page with a simple introductory paragraph on it. I was going to store the paragraph in a mySQL DB and create an administration page so people could easily edit the paragraph itself or change it all together. The problem I ran into is that mySQL will not allow certain punctuation

RE: [PHP] Re: php forgetting variables very easily

2003-03-05 Thread John W. Holmes
Include can handle URLs as the path if allow_url_fopen is set correctly in the php.ini. But it does have some limitations if being done on a Win32 platform instead of (*)nix. Try reading this, it might shed some needed light. http://www.php.net/manual/en/function.include.php Very true,

RE: [PHP] updating pages with php

2003-03-05 Thread Tyler Durdin
When I take the comma's out it works. then I try to put them back in and it will not work. What I have discovered is that I can manually type it in the mysql server with whatever characters I want, but when I try to update it with a sql file or via the webpage I created with the comma's it

Re: [PHP] updating pages with php

2003-03-05 Thread Liam Gibbs
The problem I ran into is that mySQL will not allow certain punctuation inside of a record (no comma's). So now I am left trying to figure out how I can have the user update the paragraph without having it in a db. Can someone shoot me in the proper direction? Thanks in advance, your help is

[PHP] PHP WEB module doesn't execute php console scripts?

2003-03-05 Thread Alex Ciurea
Hello, I have a linux-debian machine. I've installed the php-module for the apache web server, and I've realized that my php scripts (launced from console) doesn't work. What should I install in order to make working those php-scripts ? I know that's a silly q, but this is the first time when

Re: [PHP] updating pages with php

2003-03-05 Thread Liam Gibbs
What I have discovered is that I can manually type it in the mysql server with whatever characters I want, but when I try to update it with a sql file or via the webpage I created with the comma's it gives me errors. I take them out of the sql text and webpage and it works fine. The problem

Re: [PHP] updating pages with php

2003-03-05 Thread Tyler Durdin
$Query = UPDATE $TableName SET Intro_Title = '$Intro_Title', Intro = '$Intro' WHERE ID = '$ID'; From: Liam Gibbs [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Subject: Re: [PHP] updating pages with php Date: Wed, 5 Mar 2003 13:33:11 -0500 What I have discovered is that I can manually

[PHP] problem changing max file upload size

2003-03-05 Thread Kenn Murrah
Greetings. I'm having trouble uploading large files via PHP ... in my php.ini file, i have the lines: post_max_size = 100M upload_max_filesize = 100M yet I still can't get large files to upload. What am I doing wrong? Thanks in advance. -- PHP General Mailing List (http://www.php.net/)

[PHP] Date Question.

2003-03-05 Thread Sebastian
I have a date field in mysql in this format: Y-m-d H:i:s I would like to echo Today if the date is today, can someone offer some help? Thanks. warm regards, Sebastian - [BBR] Gaming Clan http://www.broadbandreports.com

Re: [PHP] updating pages with php

2003-03-05 Thread Liam Gibbs
$Query = UPDATE $TableName SET Intro_Title = '$Intro_Title', Intro = '$Intro' WHERE ID = '$ID'; But what's being sent to SQL? What's contained in $TableName, $Intro_Title, etc.? And what data types are all those fields? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] mortgage calculator

2003-03-05 Thread Lowell Allen
From: Karen E. Lubrecht [EMAIL PROTECTED] I'd like to add a mortgage calculator to a client's site. I've been unable to find the formula. In searching php.net, I found a discussion from back in 2000 related to some buggy code. My web search hasn't produced anything other than realtor and

Re: [PHP] updating pages with php

2003-03-05 Thread Tyler Durdin
They are all text fields. Intro title is just a line of text that says Welcome to this website... Intro, is the text of the introduction. You are correct and it is apostophe's and not comma's that cause the error. What do I do to get around that? From: Liam Gibbs [EMAIL PROTECTED] To: php

[PHP] Re: Date Question.

2003-03-05 Thread Philip Hallstrom
Strip off the H:i:s part using explode() and use date() to get an equivalent string for right now and if they match, today's the day. On Wed, 5 Mar 2003, Sebastian wrote: I have a date field in mysql in this format: Y-m-d H:i:s I would like to echo Today if the date is today, can someone

Re: [PHP] TO Bryan LipscyRe: [PHP] i got a problem

2003-03-05 Thread Luis A
it does not working its the same :( some one else can help me whit that ??? - Original Message - From: Bryan Lipscy [EMAIL PROTECTED] To: 'Luis A' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 1:17 PM Subject: RE: [PHP] TO Bryan LipscyRe: [PHP] i got a problem

  1   2   >