Re: [PHP] so nobody knows how do get rid of everything outside or certain tags?

2002-08-15 Thread Joseph W. Goff
preg_match('!div[^]+(.*)/div!Uis',$info,$regs); $everything_between_divs=$regs[1]; - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 11:44 AM Subject: RE: [PHP] so nobody knows how do get rid of everything

Re: [PHP] OO code and private functions

2002-08-16 Thread Joseph W. Goff
Not currently, but this will be added in the Zend2 engine. You can find out about this on the Zend website. - Original Message - From: Richard Black [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Friday, August 16, 2002 9:24 AM Subject: [PHP] OO code and private functions

Re: [PHP] variables not behaving as expected

2002-08-19 Thread Joseph W. Goff
You don't actually have a variable named $do at this point. You can either have php set this variable automatically by turning on register globals in the php.ini file or you can extract the variable or do something like this: foreach ($_POST as $key = $post) { echo $key = $postBr; $$key =

Re: [PHP] Exiting from an include or required file

2002-08-21 Thread Joseph W. Goff
You will have to enclose the code is some form of a container. i.e. a function, while loop... I would probably use the function, then you could exit with return The other types of container would use break. - Original Message - From: Henry [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] Exiting from an include or required file

2002-08-21 Thread Joseph W. Goff
Actually, M.A.Bond is right, you don't even have to enclose it, just use the return construct. - Original Message - From: Joseph W. Goff [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED]; Henry [EMAIL PROTECTED] Sent: Wednesday, August 21, 2002 10:03 AM Subject: Re: [PHP] Exiting from

Re: [PHP] Building a query on multiple variables, how to test for which variable A SOLUTION

2002-08-28 Thread Joseph W. Goff
I have done this two different ways. The first involves a function that creates a dropdown from the database. What is special about this function is that I assign it's own condition as part of the value for that option. Take this sql statement: select distinct column_name from the_table and it

Re: [PHP] command line argument vs. urlencode ?

2002-08-28 Thread Joseph W. Goff
php is treating command line arguments as GET argument. So that means a + is a space. Try rawurlencode. - Original Message - From: Renato Lins [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 28, 2002 1:37 PM Subject: [PHP] command line argument vs. urlencode ? Hi,

Re: [PHP] PHP source code

2002-09-19 Thread Joseph W. Goff
PHP is open source so anyone can get the source code to it. You can find it at http://www.php.net/downloads.php - Original Message - From: Oliver Witt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 19, 2002 9:50 AM Subject: [PHP] PHP source code Hi, Is there any

Re: [PHP] Variables and Forms

2002-09-24 Thread Joseph W. Goff
This should open up a new window for the new page form action=your_new_page.php method=post target=_new As far as passing variables from page to page, have you ever considered sessions? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002

Re: [PHP] Date Formatting

2002-12-13 Thread Joseph W. Goff
Just a small question, but why not just do this through the SQL statement instead of using php? http://www.mysql.com/doc/en/Date_and_time_functions.html#IDX1295 [from the mysql manual] mysql SELECT DATE_FORMAT('1997-10-04 22:23:00', '%W %M %Y'); - 'Saturday October 1997' mysql SELECT

Re: [PHP] newbie - decimal places in arthimetic functions

2002-12-13 Thread Joseph W. Goff
You can use the format() function for this. http://www.php.net/format - Original Message - From: Max Clark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 13, 2002 1:10 PM Subject: [PHP] newbie - decimal places in arthimetic functions Hi- How can I control the

Re: [PHP] FTP Listings for HTML page

2002-12-13 Thread Joseph W. Goff
As long as the script has reading capabilities for the directory then yes. - Original Message - From: Randum Ian [EMAIL PROTECTED] To: 'Kevin Stone' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, December 13, 2002 1:25 PM Subject: RE: [PHP] FTP Listings for HTML page Would I be

Re: [PHP] newbie - decimal places in arthimetic functions

2002-12-13 Thread Joseph W. Goff
I'm sorry, posted the wrong link. It is the number_format() function. http://www.php.net/number_format - Original Message - From: Joseph W. Goff [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED]; Max Clark [EMAIL PROTECTED] Sent: Friday, December 13, 2002 1:31 PM Subject: Re: [PHP

Re: [PHP] $HTTP_POST_VARS problem

2002-12-16 Thread Joseph W. Goff
It looks to me like you are trying to get an uploaded file? If so, it isn't $HTTP_POST_VARS, it is $HTTP_POST_FILES or $_FILES if you are using a version of PHP that has super globals. See the PHP manual for more info: http://www.php.net/manual/en/language.variables.predefined.php - Original

Re: [PHP] FTP Can't create temp file?

2002-12-16 Thread Joseph W. Goff
What happens when you remove the suppresion operator (@) from the move_upload_file and why not just use ftp_put()? That has always worked fine for me. - Original Message - From: Marios Adamantopoulos [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 16, 2002 11:06 AM Subject:

Re: [PHP] URL field receiving Array for others

2002-12-16 Thread Joseph W. Goff
Whatever variable that is suppose to contain the URL is an array. If you try to print a variable that is an array the value you get is 'Array'. You will either have to step through it, or implode it, or something of that nature to get what the array contains. - Original Message - From:

Re: [PHP] URL field receiving Array for others

2002-12-16 Thread Joseph W. Goff
I don't know. You need to show your code. - Original Message - From: [EMAIL PROTECTED] To: Joseph W. Goff [EMAIL PROTECTED] Cc: php-general [EMAIL PROTECTED] Sent: Monday, December 16, 2002 12:01 PM Subject: Re: [PHP] URL field receiving Array for others But what could the user

Re: [PHP] Re: Stumped!

2002-12-16 Thread Joseph W. Goff
You don't have a closing french brace for your while loop. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, December 16, 2002 12:57 PM Subject: Re: [PHP] Re: Stumped! Hmm, I am still getting a parse error on the last line of code...

Re: [PHP] php setup

2002-12-16 Thread Joseph W. Goff
You have the error_reporting set at E_ALL in the ini file. Set it to E_ALL ~E_NOTICE - Original Message - From: Edward Peloke [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Monday, December 16, 2002 1:29 PM Subject: [PHP] php setup I recently got a laptop and was in the process

Re: [PHP] Submitting a Form

2002-12-17 Thread Joseph W. Goff
Your error reporting is set to E_ALL. If you change it to E_ALL ~E_NOTICE you will not get the notice messages anymore. Also, if you are not getting the value, try $_POST['Test'] instead. - Original Message - From: Jay Thayer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday,

Re: [PHP] PHP question

2002-12-17 Thread Joseph W. Goff
You can set this up in the php.ini file in the /etc directory. You can set php to run an any user and any group that you have set up on your system. Just make sure that you set permissions properly so that it can function in the directories that it is accessed. - Original Message - From:

Re: [PHP] PHP question

2002-12-17 Thread Joseph W. Goff
Actually, I was mistaken. It isn't php.ini that has to be changed. I believe it is httpd.conf. php runs as what ever the webserver is set up to run as. - Original Message - From: Joseph W. Goff [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED]; Tom Ray [EMAIL PROTECTED] Sent: Tuesday

Re: [PHP] $_SERVER['DOCUMENT_ROOT'] on localhost

2002-12-18 Thread Joseph W. Goff
Is there a difference between PHP versions on your machine and your site? Have you looked at phpinfo() to see what variables have been set on your system? - Original Message - From: rolf vreijdenberger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 18, 2002 3:38 PM

Re: [PHP] $_SERVER['DOCUMENT_ROOT'] on localhost

2002-12-18 Thread Joseph W. Goff
Both sites are running winXP and IIS? Both same version of IIS? If the variable is on one and not on the other it could be either a version conflict, or a configuration problem. - Original Message - From: Rolf Vreijdenberger [EMAIL PROTECTED] To: Joseph W. Goff [EMAIL PROTECTED]; php

Re: [PHP] $_SERVER['DOCUMENT_ROOT'] on localhost

2002-12-18 Thread Joseph W. Goff
IIS may not have that variable. You might want to install apache on your local machine so that you are using the same tools. - Original Message - From: rolf vreijdenberger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 18, 2002 4:00 PM Subject: Re: [PHP]

Re: [PHP] Baffling output

2003-01-02 Thread Joseph W. Goff
Try viewing the source that is generated in html and I bet you will find that it is broken html code. - Original Message - From: Lightfirst [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 02, 2003 4:25 PM Subject: [PHP] Baffling output Can someone explain to me why the

Re: [PHP] Variables that persist through reload?

2003-01-03 Thread Joseph W. Goff
Your local version does not have register_globals turned on in php.ini. You can either set the value = on or access posted values by using $_POST or $HTTP_POST_VARS depending on your version of php. - Original Message - From: David Chamberlin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] Hello and help

2003-01-03 Thread Joseph W. Goff
You are on the right track, but missed one major thing. Anytime you want to retrieve information from a database result set you have to follow 3 basic steps. 1) Connect to the database *you got that one 2) Execute a query *you got that one 3) Retrieve the resultset ***missed this one See

Re: [PHP] undefined variable notice - how to furn of

2003-01-09 Thread Joseph W. Goff
In the php.ini file set error reporting to E_ALL ~E_NOTICE - Original Message - From: Borut Kovacec [EMAIL PROTECTED] To: PHP Mailing List [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 9:57 AM Subject: [PHP] undefined variable notice - how to furn of Hi I just installed new php

Re: [PHP] newbee

2003-01-09 Thread Joseph W. Goff
This is because of the default error reporting setting in the newer version of php. This was not the case when your book was written. In your php.ini file set error reporting = E_ALL ~E_NOTICE and you will quit getting the 'Undefined Variable' notices. - Original Message - From: Hendrik

Re: [PHP] newbee

2003-01-09 Thread Joseph W. Goff
! The variable are not being passed through to the .php doc hendrik Joseph W. Goff [EMAIL PROTECTED] wrote in message 003201c2b803$ada54f60$bdcaa8c0@jg42000">news:003201c2b803$ada54f60$bdcaa8c0@jg42000... This is because of the default error reporting setting in the newer version

Re: [PHP] question on Header(location

2003-01-13 Thread Joseph W. Goff
No, I am afraid not. It will only send a redirection header to the same page that you are on. - Original Message - From: Don [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Monday, January 13, 2003 1:33 PM Subject: [PHP] question on Header(location When I use ---

Re: [PHP] Parse error

2003-01-14 Thread Joseph W. Goff
Try this... $sql = INSERT INTO personnel (firstname, lastname, nick, email, salary) VALUES ('$first','$last','$nickname',); - Original Message - From: Brent Lee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 10:02 AM Subject: [PHP] Parse error I'm new to PHP

Re: [PHP] MySQL problem with RedHat 8

2003-01-14 Thread Joseph W. Goff
Make sure that the shared module is in the correct directory. Check your php.ini file to make sure but it is most likely at /usr/lib/php4 make sure that you have mysql.so - Original Message - From: Daniel Elenius [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 3:58

Re: [PHP] Form Validating Class (OOP misunderstandings...)

2003-01-21 Thread Joseph W. Goff
For the most part I found two errors The first was a scope problem. $HTTP_*_VARS hashes are not accessible inside functions unless you source them in. i.e. global The other was an extra line in an if statement that did not contain braces. I did a little formating while I checked the code. Try

Re: [PHP] Why PHP doesn't work with Apache2?

2003-01-23 Thread Joseph W. Goff
Well, I don't know about trying to uninstall it, but RH8.0 does come with Apache 2 It works fine and I have not ran into a reason why I should use the older version for this. Granted I only use it for testing, my live server is RH7.2 which uses Apache 1 - Original Message - From: Richard

Re: [PHP] Post method

2003-02-28 Thread Joseph W. Goff
Why not use sessions? - Original Message - From: Alex Shi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 28, 2003 3:09 PM Subject: [PHP] Post method Hi, Any one know in a php script, if it is possible to simulate a post method? I mean I want to header() to an url but

Re: [PHP] XML Question

2003-03-03 Thread Joseph W. Goff
Sorry, but I am unaware of this function. It is not a native function to php, maybe it is a custom function that is part of a library that you are using. You would have to contact them for documentation on thier functions. - Original Message - From: Diana Castillo [EMAIL PROTECTED] To:

Re: [PHP] Progress bar for uploading files

2002-10-16 Thread Joseph W. Goff
Actually, I don't think you can make a progress bar function correctly for a file upload. The file is uploaded before control is ever given to the script. - Original Message - From: Oscar F [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 16, 2002 1:17 PM Subject: [PHP]