Re: [PHP] Setcookie() and header()

2003-01-14 Thread Michael Sims
On Wed, 15 Jan 2003 01:36:26 -0500, you wrote: >Wow. You hit the nail on the head. :) Well, I spent a good day or two hunting the problem down the first time I ran across it. Spending that much time on something tends to make it stick in your head. :) >I installed PHP on IIS via the executabl

[PHP] Save Dialog

2003-01-14 Thread Richard Rojas
Hi guys, Is there a way for PHP to invoke the Save Dialog on the client's PC? And after choosing a filename, save the contents of a TextArea into their hard drives? --- Richard --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Setcookie() and header()

2003-01-14 Thread J. Alden Gillespy
Accidentally replied to sender instead of list -- Wow. You hit the nail on the head. :) I installed PHP on IIS via the executable, so I gather I have one of two choices: -- Research your article and see how to work around the problem OR -- Use ISAPI. (how d

Re: [PHP] Setcookie() and header()

2003-01-14 Thread Michael Sims
On Tue, 14 Jan 2003 22:34:49 -0700, you wrote: >Unless I am mistaken, the typical behavior for most browsers is exactly >as you described. Which is due to the browser receiving a Location >header and acting on it, disregarding any other headers. (ex: >cache/no-cache, cookies, etc) > >Anybody c

[PHP] Calendar problem

2003-01-14 Thread menezesd
Hello friends. I have two fields in my form. When two dates are entered in these two boxes, I need to find the diiference in calendar months and remaining days between these two dates. This "Calendar months and remaining days" is important. The functions that I know do not work for calendar mo

Re: [PHP] Setcookie() and header()

2003-01-14 Thread Jason k Larson
Unless I am mistaken, the typical behavior for most browsers is exactly as you described. Which is due to the browser receiving a Location header and acting on it, disregarding any other headers. (ex: cache/no-cache, cookies, etc) Anybody care to prove me wrong? While not the best route, you

Re: [PHP] Gotchas with Php and Postgresql?

2003-01-14 Thread Jason k Larson
I'd have to say no regarding any "gotchas". I've been using mySQL, PostgreSQL, and Oracle via PHP interfaces and only mySQL and PostgreSQL have proved to work flawlessly. The Oracle stuff does work, but I find it lacking in some of the simple functionality that mySQL and Postgres offer. PHP

Re: [PHP] Trapping PHP errors

2003-01-14 Thread Michael Sims
On Wed, 15 Jan 2003 13:25:05 +0900, you wrote: >If it's not asking too much would you be willing to share that custome >error handler you wrote? It's a big long so I'm sending it to you off-list. If anyone else is interested just send me an email off list and I'll send you a copy... -- PHP Gen

[PHP] Re: attach image with the mail command?

2003-01-14 Thread Manuel Lemos
Hello, On 01/14/2003 11:09 PM, Harald Mohring wrote: how can i attach an image with the mail command how do get the image in a variable when i have chosen it with the input type file? Do you mean attaching an image as a separate file or embed it in the message so it displays in HTML message?

RE: [PHP] Re: Favorite Email validation routine?

2003-01-14 Thread Daevid Vincent
I just use a simple Javascript function. I figure if it's remotely close, then good, if not then it's going to be an invalid email address most likely anyways: function emailCheck(str) { var at="@" var dot="." var lat=str.indexOf(at)

[PHP] Setcookie() and header()

2003-01-14 Thread J. Alden Gillespy
After I set a cookie and then send a redirect header, the cookie doesn't show up, but the browser successfully redirects. setcookie("test", "blahblah", time() + 1440); header("Location: http://www.mywebsite.com/login.php";); However, if I take out the header() statement, then the cookie is succes

[PHP] Gotchas with Php and Postgresql?

2003-01-14 Thread John Wells
I'm preparing for a large project in which I'm the sole designer/developer. I've just about made the decision to go with Postgresql, as part of the project is converting a MS Sql Server db to a open source db and I think Postgresql provides some features that will make this port easier. However,

[PHP] Re: Advanced Search

2003-01-14 Thread Jean-Christian Imbeault
[EMAIL PROTECTED] wrote: I don't want to have to write 50 different ifelse statements unless I have to. You can add all the boolean fileds in the query and not worry about doing if's to check them, the DB will automatically find the fields that match for boolean fields (just make sure to i

Re: [PHP] Advanced Search

2003-01-14 Thread Andrew Brampton
$sql = 'SELECT p.* FROM properties p WHERE '; if(isSet($city)) $sql .= 'city = "' . $city . '" AND '; if(isSet($sub_name )) $sql .= 'sub_name = "' . $sub_name . '" AND '; //Remove last AND and append 'ORDER by price asc' mysql_query($sql ); Hope this helps Andrew - Original Mes

Re: [PHP] Trapping PHP errors

2003-01-14 Thread Jean-Christian Imbeault
Michael Sims wrote: My site has a custom error handler (implemented via set_error_handler) which sends a nicely formatted email including all of the error details, a variable dump, the contents of the output buffer before the error occured, and the contents of a call to debug_backtrace, in additi

[PHP] Advanced Search

2003-01-14 Thread rw
Hello! Any quick solutions to this: if (!$city && !$sub_name && !$address && !$pool && !$waterfront && !$waterview && !$golf && !$type && !$beds) {$result = mysql_query("SELECT p.* FROM properties p ORDER by price asc;");} elseif (!$city && !$sub_name && !$address && !$pool && !$waterfront && !$

Re: [PHP] PHP & RTF

2003-01-14 Thread Jason Reid
http://www.phpbuilder.com/columns/nair20020523.php3 Looked fairly good when I read thru it a while back. Hope that it might be able to help. Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca - Original Message - From: "[-^-!-%-" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent

Fw: [PHP] attach image with the mail command?

2003-01-14 Thread Rick Emery
this class will do all the work you need: instantiate with CMIMEMail() then attach with attachfile() add body with makebody() send with send() = /* * Notes from [EMAIL PROTECTED] 25 Mar 2000: * This library based idea of Dan Potter * Improvements: Multi attachmends in

Re: [PHP] Next and Previous

2003-01-14 Thread Miguel Brás
Let's see i solved thhe problem... I did since I was making the select with WHERE ID = '$ID' so I get the var $ID., Thx for the help of all Miguel "Matt" <[EMAIL PROTECTED]> escreveu na mensagem 034901c2bc37$41429160$[EMAIL PROTECTED]">news:034901c2bc37$41429160$[EMAIL PROTECTED]... > >"Miguel

Re: [PHP] emptying hte array??

2003-01-14 Thread Jason k Larson
That's not going to 'empty' the array it's going to undefine it. Just overwrite the array with a new empty array like: $a = array(); That keeps the variable an array variable type and is of course empty. HTH, Jason k Larson Justin French wrote: on 15/01/03 7:52 AM, Scott Fletcher ([EMAIL PROT

Re: [PHP] PHP & RTF

2003-01-14 Thread [-^-!-%-
Thanks, Michael. I'll look into it. -john =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. On Wed, 15 Jan 2003, Michael Hall wrote: > I don't know how much use this is for your needs, but I have fo

Re: [PHP] Next and Previous

2003-01-14 Thread Matt
>"Miguel Brás" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > That's not the case, I tested it on ID549 and the previous one should be 548 and he still assume -1 Works for me. Are you adding the ?ID=500 to the url? If you don't have that, then the ID is 0, so

Re: [PHP] PHP & RTF

2003-01-14 Thread Michael Hall
I don't know how much use this is for your needs, but I have found Openjade and DocBook to be excellent tools for creating RTF files from XML sources. PHP can be the scripting language used to tie things together, manipulate HTML/XML etc, but basically this solution is "outside" of PHP I suppos

Re: [PHP] Next and Previous

2003-01-14 Thread Miguel Brás
That's not the case, I tested it on ID549 and the previous one should be 548 and he still assume -1 Miguel "Timothy Hitchens )" <[EMAIL PROTECTED]> escreveu na mensagem 000101c2bc33$7e887020$0500a8c0@bambino">news:000101c2bc33$7e887020$0500a8c0@bambino... This is because you are at the beginning

RE: [PHP] attach image with the mail command?

2003-01-14 Thread Timothy Hitchens \(HiTCHO\)
You will need to read the file into an array using file() then join/base64/split and then setup the right headers to attach the mime encoded attachment. Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAI

RE: [PHP] Next and Previous

2003-01-14 Thread Timothy Hitchens \(HiTCHO\)
This is because you are at the beginning and you need to have some logic to not display the previous if at beginning. Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Miguel Brás [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 15 Jan

RE: [PHP] question

2003-01-14 Thread Timothy Hitchens \(HiTCHO\)
You are using singles ' then you are doing "". and it should be "" '. etc Try: printf('Fotografía%s ', $i); Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Ezequiel Sapoznik [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 15 Januar

[PHP] question

2003-01-14 Thread Ezequiel Sapoznik
Anyone can tell me what is wrong with the following sentence? printf('Fotografía %s ', $i); if $row1["url"] is ../images/anything.jpg the plain HTML should be: Fotografía Thanks! Ezequiel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

[PHP] attach image with the mail command?

2003-01-14 Thread harald.mohring
how can i attach an image with the mail command how do get the image in a variable when i have chosen it with the input type file? Harry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Next and Previous

2003-01-14 Thread Miguel Brás
Hi, it's giving me an error. it assumes the next page as news.php?ID=1 and the previous as news.php?ID=-1 Any hint for that? Miguel "Chris Shiflett" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > --- Miguel Brás <[EMAIL PROTECTED]> wrote: > > suppose, the

[PHP] PHP & RTF

2003-01-14 Thread [-^-!-%-
For those of you with experience in using php for RTF documents. I need help generating RTF Style tags from PHP. I can convert regular text to an RTF document, but the document will display RTF Style tags as regular text (in the RTF document). How do I make the RTF document recognize the RTF Sty

Re: [PHP] htmlspecialchars

2003-01-14 Thread Justin French
on 15/01/03 4:24 AM, Foong ([EMAIL PROTECTED]) wrote: > Hi, > I wonder which is the better way to store data into database? > 1. stor the data after we call htmlspecialchars with the data (means we > store " as "e; in database) > 2. stor the data in non encoded form and call htmlspecialchars whene

Re: [PHP] emptying hte array??

2003-01-14 Thread Justin French
on 15/01/03 7:52 AM, Scott Fletcher ([EMAIL PROTECTED]) wrote: > How to do the proper way of emptying hte array?? > > Example... > > $a[0] = "test1"; > $a[1] = "test2"; > $a[2] = "test3"; > $a[3] = "test4"; > > $a = "";<-- Is this hte proper way to do it unset($a); http://php.net/unse

Re: [PHP] Next and Previous

2003-01-14 Thread Chris Shiflett
--- Miguel Brás <[EMAIL PROTECTED]> wrote: > suppose, the page you're seeing is > http://www.x.com/news.php?ID=501 how to add > a link for the page to show the ID=502 and the > ID=500 Next Previous Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] Authentication programming

2003-01-14 Thread Justin French
on 15/01/03 7:07 AM, Jordan Elver ([EMAIL PROTECTED]) wrote: > Hi, > I'm about to start a new project which will require a login system. The system > should allow for different types of access on a per page basis. I'm going to > achieve the login system using sessions, which I have done before. >

[PHP] Next and Previous

2003-01-14 Thread Miguel Brás
On a page i have all the records from a table. they are linkable. if you click on them, the will show the specific record id with all info on the row. how to make a link for the following record and one other for the previous? suppose, the page you're seeing is http://www.x.com/news.php?ID=50

Re: [PHP] data move, Please Help..

2003-01-14 Thread Peter Janett
I'd go the ODBC route. If you have a server running Windows and the MyODBC driver, write a simple script (asp, cold fusion, php, etc) that allows users to do a file upload of the access db. Setup up a DSN to that file, and have the same script that handles the upload trigger the process of moving

[PHP] Re: occasional mcrypt problems

2003-01-14 Thread J Smith
Steve Yates wrote: > > "This function encrypts data. The data is padded with "\0" to make sure > the length of the data is n * blocksize. This function returns the > encrypted data. Note that the length of the returned string can in fact be > longer then the input, due to the padding of the data

Re: [PHP] data move, Please Help..

2003-01-14 Thread Tom Rogers
Hi, Wednesday, January 15, 2003, 12:48:59 AM, you wrote: EP> Ok, I know I have asked this question before and I have asked it on the db EP> forum, on asp forums, java applet forums, searched google, etc but can't EP> really seem to find anything. I have to come up with a way to move data EP> fro

Re: [PHP] MySQL problem with RedHat 8

2003-01-14 Thread Daniel Elenius
Yes, mysql.so is in /usr/lib/php4. The php.ini file has this in it: [daniel@p85 etc]$ grep mysql php.ini ;extension=php_mysql.dll extension=mysql.so mysql.allow_persistent = On mysql.max_persistent = -1 mysql.max_links = -1 ; Default port number for mysql_connect(). If unset, mysql_connect() will

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

RE: [PHP] data move, Please Help..

2003-01-14 Thread Edward Peloke
thanks Tom! I will play with this. I just don't want to ask the users to export the file to xls first, just want to have them hit a button and the data is uploaded... Eddie -Original Message- From: TomH [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 4:07 PM To: [EMAIL PROTEC

Re: [PHP] Cookie, header, output problems

2003-01-14 Thread Vahan Yerkanian
You should not add any output after doing a "Location:" redirect. It's recommended to add an exit() after the header(). Proper browsers should halt their renderer and redirect when they find a Location: header. HTH, Vahan J. Alden Gillespy wrote: I'm creating an e-commerce website, and I just ne

[PHP] MySQL problem with RedHat 8

2003-01-14 Thread Daniel Elenius
Hi! I'm trying to connect to my mysql database using something like mysql_connect( 'localhost', 'root', 'thepassword' ) or die ( 'Unable to connect to server.' ); But I get the error message: Fatal error: Call to undefined function: mysql_connect() in /home/daniel/public_html/index.ph

RE: [PHP] htmlspecialchars

2003-01-14 Thread John W. Holmes
---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 14, 2003 1:09 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] htmlspeci

[PHP] Re: PHP receiving e-mail

2003-01-14 Thread Philip Hallstrom
You could use fetchmail to get the mail and pipe it into your php script which would see it as standard input... Or look on zend.com for a POP class... On Tue, 14 Jan 2003, David Russell wrote: > Hi all, > > I want to develop a script that can read an e-mail from a pop account, > and then perfor

Re: [PHP] Why is my URL encoding itself?

2003-01-14 Thread Don
- Original Message - From: "Chris Shiflett" <[EMAIL PROTECTED]> To: "Don" <[EMAIL PROTECTED]>; "php list" <[EMAIL PROTECTED]> Sent: Tuesday, January 14, 2003 4:24 PM Subject: Re: [PHP] Why is my URL encoding itself? > --- Don <[EMAIL PROTECTED]> wrote: > > In my PHP page, the FORM line r

Re: [PHP] Why is my URL encoding itself?

2003-01-14 Thread Chris Shiflett
--- Don <[EMAIL PROTECTED]> wrote: > In my PHP page, the FORM line reads as: > echo ' action="..\phpscript\general\formmail.php">' . "\n"; > > When I try in I.E., it works fine. > > When I try in Netscape 7, I get a page not found error. This is something I refer to as Windowsitis. URLs use slas

[PHP] Why is my URL encoding itself?

2003-01-14 Thread Don
Hi, I have a PHP file that displays a form and submits for processing. The processing script redirects to a results page. I am using formmail.php to process. In my PHP page, the FORM line reads as: echo '' . "\n"; When I try in I.E., it works fine. When I try in Netscape 7, I get a page not

Re: [PHP] Windows vs Linux

2003-01-14 Thread Beauford.2002
The php.ini in both are whatever the default settings for these files are. If the defaults are different, then maybe - but I have no idea about these files, and really don't want to get into it. If the default doesn't work on Windows I will just scrap it. Not worth the head aches. Same with My

Re: [PHP] data move, Please Help..

2003-01-14 Thread TomH
From previous experience with this problem - the most 'relaible' method for me was to (1) use the access/xls/whatever application to dump a CSV-type file (2) upload the file to the appropriate location on your MySQL server (3) write a PHJP script that use a standard LOAD DATA INFILE query. From

[PHP] Re: emptying hte array??

2003-01-14 Thread Scott Fletcher
Got an email... The answer to this question is ... --clip-- $a = array(); --clip-- "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How to do the proper way of emptying hte array?? > > Example... > > $a[0] = "test1"; > $a[1] = "test2"; > $a[2

[PHP] emptying hte array??

2003-01-14 Thread Scott Fletcher
How to do the proper way of emptying hte array?? Example... $a[0] = "test1"; $a[1] = "test2"; $a[2] = "test3"; $a[3] = "test4"; $a = "";<-- Is this hte proper way to do it I would like the array to be cleared before being it get to be use over and over Thanks... -- PHP General

[PHP] Windows vs Linux

2003-01-14 Thread Beauford.2002
Hi I just installed MySQL and PHP on Windows, and I have found that I am getting all sorts of errors (in both) when I try to use some of the same commands I use in the Linux versions. Are their a lot of differences in the two, and where can I find out what these are - I just got used to using the

Re: [PHP] Authentication programming

2003-01-14 Thread Stephen
Devarticles has a series of Authentication tutorails and the a tutorial on OOP itself. Here are the links: http://www.devarticles.com/art/1/349 -- Member Script Tutorial: -- -- There are 6 parts -- http://www.devarticles.com/art/1/241 http://www.devarticles.com/art/1/245 http://www.devarticles.

RE: [PHP] data move, Please Help..

2003-01-14 Thread Edward Peloke
Has anyone uploaded a file and then used php to transfer the data between the two databases?? -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 10:27 AM To: PHP general list Subject: RE: [PHP] data move, Please Help.. thanks Rick, I did tha

[PHP] Authentication programming

2003-01-14 Thread Jordan Elver
Hi, I'm about to start a new project which will require a login system. The system should allow for different types of access on a per page basis. I'm going to achieve the login system using sessions, which I have done before. My problem is that I don't want to have to do much login checking on

RE: [PHP] portabily including files

2003-01-14 Thread Jesse Cablek
Tyler BIRD scribbled; > I'm trying to include > 'http://www.myserver.com/conted/me.inc'; > portably on several mirrored servers like include > '/conted/me.inc' > , I was wondering if there was someway I could include > files and have the implicity connect > and down the

Re: [PHP] --without-mysl in configure command

2003-01-14 Thread gamin
"Johannes Schlueter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tuesday 14 January 2003 19:54, gamin wrote: > Thx Johannes for pointing this out. In the php.ini file i have Your welcome ;-) > extension=mysql.so Now i have another webserver running PHP w

Re: [PHP] --without-mysl in configure command

2003-01-14 Thread Johannes Schlueter
On Tuesday 14 January 2003 19:54, gamin wrote: > Thx Johannes for pointing this out. In the php.ini file i have Your welcome ;-) > extension=mysql.so Now i have another webserver running PHP where the > configure command has --with-mysql=shared. I guess this means the same > thing. Please could

[PHP] Re: htmlspecialchars

2003-01-14 Thread Foong
Thank you guys Foong Foong <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > I wonder which is the better way to store data into database? > 1. stor the data after we call htmlspecialchars with the data (means we > store " as "e; in database) > 2. stor the

Re: [PHP] --without-mysl in configure command

2003-01-14 Thread gamin
"Johannes Schlueter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Yes, the last part is the imortant ;-) The PHP-MySQL-Extension was compile as shared extension. It is included in your php.ini file with a command sth. like extension=php_mysql.so johannes Thx

[PHP] Re: globals off in function

2003-01-14 Thread Foong
instead of: global $smarty; $smarty]->assign("message", $message); try: $_GLOBAL['smarty']->assign("message", $message); Foong Michael Bevz <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, all!!! > I've such trouble: > ( register_globals = off ) > > in fu

[PHP] PHP receiving e-mail

2003-01-14 Thread David Russell
Hi all, I want to develop a script that can read an e-mail from a pop account, and then perform actions on that e-mail based on characteristics of the e-mail (e.g. header information, attachments, etc) Does anyone know of a way to receive e-mails via php, and then to parse them easily. My assumpt

[PHP] Re: valid MySQL result resource

2003-01-14 Thread Foong
put the following line after you call mysql_query(..), you should be able to see the error: echo mysql_error(); this line is very handy to see what's wrong with mysql related operation. Remember to delete it after debugging for security reasons Foong Brent Lee <[EMAIL PROTECTED]> wrote in mess

[PHP] Re: query question

2003-01-14 Thread Foong
hope this help // array of zip codes $zips = array(...); // can use implode() here if you want foreach($zips as $zip) { $zip_list = ",'".$zip."'"; } // take away the first comma $zip_list = substr( $zip_list, 1); $sql = "SELECT stores FROM store_table WHERE zip_code IN('$zip_list')"; $hdl

Re: [PHP] --without-mysl in configure command

2003-01-14 Thread Johannes Schlueter
On Tuesday 14 January 2003 19:16, gamin wrote: > I have PHP 4.0.6 installed from rpm as part of RH 7.2. phpinfo() shows the > configure command having --without-mysql. But my php scripts seeem to be > able to run mysql commands happily. > > Could anybody point out why ? Doin rpm -aq | grep php show

[PHP] --without-mysl in configure command

2003-01-14 Thread gamin
Pretty much of a newbie so please bear with the stupidity. I have PHP 4.0.6 installed from rpm as part of RH 7.2. phpinfo() shows the configure command having --without-mysql. But my php scripts seeem to be able to run mysql commands happily. Could anybody point out why ? Doin rpm -aq | grep php

Re: [PHP] htmlspecialchars

2003-01-14 Thread Jason Wong
On Wednesday 15 January 2003 01:24, Foong wrote: > I wonder which is the better way to store data into database? > 1. stor the data after we call htmlspecialchars with the data (means we > store " as "e; in database) > 2. stor the data in non encoded form and call htmlspecialchars whenever we > wa

Re: [PHP] htmlspecialchars

2003-01-14 Thread Chris Shiflett
--- Foong <[EMAIL PROTECTED]> wrote: > I wonder which is the better way to store data into > database? > 1. stor the data after we call htmlspecialchars with the > data (means we store " as "e; in database) > 2. stor the data in non encoded form and call > htmlspecialchars whenever we want to displ

Re: [PHP] query question

2003-01-14 Thread Jason Wong
On Wednesday 15 January 2003 01:47, Kelly Meeks wrote: > I've got an array of values, that I need to query against a database to see > if any records have any of the values in the array - the array is a list of > zip codes, and the database contains a list of stores. Basically i need to > find wha

RE: [PHP] Data type issues

2003-01-14 Thread Ford, Mike [LSS]
> -Original Message- > From: Peter Hutnick [mailto:[EMAIL PROTECTED]] > Sent: 14 January 2003 15:49 > > I can't get my head around dealing with all the magic that > PHP does to my > data. You need to read, very carefully, several times, the PHP manual section on Type Juggling: http://www

[PHP] query question

2003-01-14 Thread Kelly Meeks
I've got an array of values, that I need to query against a database to see if any records have any of the values in the array - the array is a list of zip codes, and the database contains a list of stores. Basically i need to find what stores have zip codes in the array. I know that mysql doe

[PHP] PHP and Oracle

2003-01-14 Thread Jadiel Flores
Hi, I'm having a big problem with php4 and Oracle 8.1.6 and I'd like to know if anybody knows how to handle CLOB fields using oracle's functions. Thanks. Jadiel Flores - http://www.abargon.com [EMAIL PROTECTED] (52-55) 52-29-80-34 -- PHP General Mailing List (http://w

[PHP] htmlspecialchars

2003-01-14 Thread Foong
Hi, I wonder which is the better way to store data into database? 1. stor the data after we call htmlspecialchars with the data (means we store " as "e; in database) 2. stor the data in non encoded form and call htmlspecialchars whenever we want to display it. Foong -- PHP General Mailing Lis

Re: [PHP] Dumping Tables from MySQL

2003-01-14 Thread Chris Hayes
At 17:50 14-1-03, you wrote: I am having trouble writing a script to dump the data from tables in MYSQL. Can anyone provide help on how to use the mysqldump command within PHP (4.2). Many thanks Don Have a look at my wonderful script :) to use mysqldump to get yourself an email attachment of a

Re: [PHP] Dumping Tables from MySQL

2003-01-14 Thread Jason Wong
On Wednesday 15 January 2003 00:50, Don Mc Nair wrote: > Hi folks > > I am having trouble writing a script to dump the data from tables in MYSQL. > Can anyone provide help on how to use the mysqldump command within PHP > (4.2). To execute shell commands from php use shell_exec() and friends. --

Re: [PHP] valid MySQL result resource

2003-01-14 Thread Jason Wong
On Wednesday 15 January 2003 00:53, Brent Lee wrote: > Here is another error I'm getting while trying to view my db. I copied > and pasted these statements from a pdf file I'm using to learn PHP but they > keep creating errors. > I am writing all your tips into my notes to try to keep my qu

[PHP] Dumping Tables from MySQL

2003-01-14 Thread Don Mc Nair
Hi folks I am having trouble writing a script to dump the data from tables in MYSQL. Can anyone provide help on how to use the mysqldump command within PHP (4.2). Many thanks Don www.complementarymedicines.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http:/

Re: [PHP] Re: Persistent global data ?

2003-01-14 Thread Tamas Arpad
> So this is the only way I guess ... > > Do you propose to serialize() the objects in the tree and write that data > into a shared memory block, and then deserialize them at the beginning of > each script that needs the data back into objects ? I would think that that > would impose the same perfo

Re: [PHP] Re: Persistent global data ?

2003-01-14 Thread Mathias Rockel
Hi! So this is the only way I guess ... Do you propose to serialize() the objects in the tree and write that data into a shared memory block, and then deserialize them at the beginning of each script that needs the data back into objects ? I would think that that would impose the same performance

[PHP] valid MySQL result resource

2003-01-14 Thread Brent Lee
Here is another error I'm getting while trying to view my db. I copied and pasted these statements from a pdf file I'm using to learn PHP but they keep creating errors. I am writing all your tips into my notes to try to keep my questioning to a minimal. Warning: mysql_fetch_array(): su

[PHP] Re: Parse error

2003-01-14 Thread Brent Lee
Everything works great now. Thanks for the quick responses everyone. "Brent Lee" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm new to PHP and am slowly learning it. I have the following code that is > giving me errors could someone take a look and suggest

RE: [PHP] Parse error

2003-01-14 Thread M.A.Bond
I'm new to PHP and am slowly learning it. I have the following code that is giving me errors could someone take a look and suggest a fix? Parse error: parse error in /home//public_html/Info/datain.php on line 7 http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Persistent global data ?

2003-01-14 Thread Philip Hallstrom
http://www.php.net/manual/en/ref.shmop.php On Tue, 14 Jan 2003, Mathias Rockel wrote: > Hi all ! > > It seems I did not state exactly enough what I need ... if I use the > $_SESSION functions or write the stuff myself makes no difference, actually > then I can just leave it in the database and re

[PHP] PostgreSQL Cursor ROWCOUNT

2003-01-14 Thread typea
Given: PHP 4.x PostgreSQL 7.3.x In 'psql' monitor: declare foo cursor for select * from humongous_table; move forward all in foo; The second query will print out a number which informs one of the actual number of rows that are in the cursor's query's result set, if one were to actually fetch them

[PHP] norteh explode

2003-01-14 Thread Clivus2k1
okay guys i have this script to use the first exploded part as the trigger then the rest sent in a msg, ive got the trigger but its just the message part im having probs with, how do i make it so anything after x is sent; in this i need $text to be set as it, any sort of help is greatly apprecia

RE: [PHP] session_destroy problem

2003-01-14 Thread Larry Brown
For those who don't mind working with Javascript I have found a method of maintaining the sessions to a minimum length. According to the Javascript list there is no way to get the url of the site the user is going to next so there is no way to tell if the onunload is due to a site change or the mo

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

[PHP] Parse error

2003-01-14 Thread Brent Lee
I'm new to PHP and am slowly learning it. I have the following code that is giving me errors could someone take a look and suggest a fix? Parse error: parse error in /home//public_html/Info/datain.php on line 7 -- Thanks __ Brent Lee -- PHP General

RE: [PHP] include_files message question

2003-01-14 Thread Jesse Cablek
Allen Byington scribbled; [snip] > > *** Error Begins *** > Fatal error: Failed opening required 'includes/config.inc.php' > (include_path='/usr/local/lib/php') in > /opt/apache/htdocs/admin/includes/auth.inc.php on line 24 > *** Error Ends *** > You don't seem to hav

[PHP] Re: Data type issues

2003-01-14 Thread Bastian Vogt
Hi Peter, you're looking for "ord();" cu, Bastian > > Is there some way to make PHP add an int to the ASCII value of a single > character string (since there seems to be no char type)? > > Thanks, > > Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

[PHP] Oracle and CLOBs

2003-01-14 Thread Jadiel Flores
Hi, I'm having a big problem with php and Oracle. I'm using Oracle 8.1.6 and PHP 4.2 with the Oracle component in a Solaris server, I can not recompile apache and php to install the oci8 component and I'm having lot of problems with CLOBs, I'm receiving this error: Warning: Ora_Exec failed (ORA

[PHP] Data type issues

2003-01-14 Thread Peter Hutnick
I can't get my head around dealing with all the magic that PHP does to my data. I'm trying to do the following (in C++): char a = 'a'; a = a + 13; The resulting value of a is 'n'. If I do the equivalent in PHP ($a = "a"; $a += 13;) the resulting value is 13. I tried (int)$a += 13;, but t

Re: [PHP] session_destroy problem

2003-01-14 Thread Scott Fletcher
Me too. I alway try to avoid javascript. I have one workaround to the problem that keep me from having a headache with the browser incompatibilities. Since I already have a table in the database that deal with the session number, timestamp and user id. All I have to do is to detect the duplicat

Re: [PHP] session_destroy problem

2003-01-14 Thread Tamas Arpad
On Monday 13 January 2003 18:09, Scott Fletcher wrote: > It's no problem. We're all very interesting in finding out what can work. > > Maybe I can help with one of this problem. The Gecko browser does have the > option of blocking the opening of hte unrequest window which is maybe why > yours doe

Re: [PHP] Cookie, header, output problems

2003-01-14 Thread Chris Shiflett
--- "J. Alden Gillespy" <[EMAIL PROTECTED]> wrote: > I'm creating an e-commerce website, and I just need > clarification as to whether a MySQL query is > considered as "browser output". It is not. However, a MySQL error is indeed output. Make sure your query is successful. My suggestion would be

Re: [PHP] HTTP_ACCEPT - Reliabilty?

2003-01-14 Thread Chris Shiflett
--- Danny Shepherd <[EMAIL PROTECTED]> wrote: > No, I wouldn't rely on it at all, I couldn't find a > browser that *does* have that mime-type in it's > header! Danny is right. The reason you cannot depend on the Accept header is that most browsers will include */* as an acceptable type (which basi

Re: [PHP] globals off in function

2003-01-14 Thread Michael Bevz
Chris Hayes <[EMAIL PROTECTED]> ïèøåò â ñîîáùåíèè:[EMAIL PROTECTED] > > >in function i call to $smarty variable > >" > >function showLoginForm(){ > > > >global $db, $smarty; // $smarty = new Smarty in main code > >Fatal error: Call to a member function on a non-object in > > Are you sure >

Re: [PHP] Going from 1040601600 to Human time

2003-01-14 Thread Jason Wong
On Tuesday 14 January 2003 22:38, Chris Boget wrote: > > > I used mktime to make 1040601600 this stirng but I want to go back to > > > human readable time how should I do that? > > > > strftime() > > Wow, that's pretty cool. I never knew about that function. I just always > used date(). > There a

  1   2   >