Re: [PHP] Forms and PHP variables

2002-12-22 Thread Jason Wong
On Sunday 22 December 2002 10:29, Beauford.2002 wrote: Hi, First off, thanks to all those that helped out with my other questions. Not all my problems were solved, but I'm certainly closer. Still working on the same project I need to do the following. I have a form where users input numbers

Re: [PHP] fgets() question?

2002-12-22 Thread Jason Wong
On Sunday 22 December 2002 14:18, Noel Wade wrote: Okay, attacking my flat-file issues from the other end: When you use $foo = fgets($fp_file); it appears that a blank line ends up looking exactly like a FALSE (failed to read) return value... Is there any way to differentiate between an

Re: [PHP] uploading flat text to MySQL

2002-12-22 Thread Jason Wong
On Sunday 22 December 2002 14:04, James Brennan wrote: I'm using a HTML form to submit flat text files to a MySQL database. When I upload the text file by FTP the script that loads it's contents into the database works as expected. When I upload using the HTML form it seems to ignore the new

[PHP] Re: fgets() question?

2002-12-22 Thread Steve Yates
Noel Wade [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... When you use $foo = fgets($fp_file); it appears that a blank line ends up looking exactly like a FALSE (failed to read) return value... A blank line should return the newline (\n or \r\n), according

[PHP] Re: fgets() question?

2002-12-22 Thread Noel Wade
A blank line should return the newline (\n or \r\n), according to http://www.php.net/manual/en/function.fgets.php. Also try using '===' (3 = signs) as the operator, which enforces type checking on a comparison). Yes or no: $foo == FALSE === 0; ??? Right now I'm just doing if($foo) And

[PHP] Re: \Z characters

2002-12-22 Thread Mattia
Dave J. Hala Jr. [EMAIL PROTECTED] ha scritto nel messaggio 1040500684.942.130.camel@badboy">news:1040500684.942.130.camel@badboy... I've got a bunch of fields in a mysql database that have a \Z character in them. I want to search a field for \Z and if it contains that character, make the

[PHP] Email problems.

2002-12-22 Thread Steve Jackson
I have generated a page on our server using PHP (from within a CMS system) which I renamed the output .html to use in an html email. My problem is when I cut and paste the HTML into the email (Outlook) it either: displays the code, displays the html email and then when it's sent, sends it as an

Re: [PHP] Re: \Z characters

2002-12-22 Thread Dave J. Hala Jr.
This field contains ONLY the \Z. Thanks for the suggestion but it generates the following error message: Parse error: parse error, unexpected '\' in On Sun, 2002-12-22 at 04:49, Mattia wrote: Dave J. Hala Jr. [EMAIL PROTECTED] ha scritto nel messaggio

[PHP] Is __FILE__ still current or is there something newer?

2002-12-22 Thread z z
Hi all I'm reviewing a few things before starting a new project. I often need to include() a file relative to the current script which itself is included. __FILE__ is useful to know the current script's path but it seems to be totally undocumented at php.net except for a few indirect

php-general Digest 22 Dec 2002 15:05:13 -0000 Issue 1778

2002-12-22 Thread php-general-digest-help
php-general Digest 22 Dec 2002 15:05:13 - Issue 1778 Topics (messages 129089 through 129114): Re: Forms and PHP variables 129089 by: Philip Olson 129097 by: Beauford.2002 129106 by: Jason Wong assignment by reference bug? 129090 by: reynardmh.netscape.net

Re: [PHP] Email problems.

2002-12-22 Thread Rick Emery
This is not realy a PHP question; rather, it is an OutLook question. Regardless...when you opened the OutLook window to create your mail, did you go to the Menu-Format and select Rich Text (HTML) - Original Message - From: Steve Jackson [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED]

[PHP] Re: Mass Mailing

2002-12-22 Thread Jonathan Chum
Thanks Manuel, Manuel Lemos [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, On 12/21/2002 08:10 PM, Jonathan Chum wrote: An upcoming project I'm working and spec'ing out is a mass mailing application. Initially, I was looking at Mailman which was

Re: [PHP] Forms and PHP variables

2002-12-22 Thread Philip Olson
is_numeric() will work with variables just fine. So: if (is_numeric($var)) { print Yep, it's numeric; } else { print Nope, it sure isn't a number; } Make sure $var is defined. If it's coming from a form then use $_POST['var'] or similar instead for reasons described here:

RE: [PHP] session life

2002-12-22 Thread John W. Holmes
On Sat, 2002-12-21 at 08:03, John W. Holmes wrote: I'm setting a session with session_set_cookie_params (time()+648); so the cookie should last 70 days+ but the data wasn't returned. from looking in the manual i see that session_cache_expire is used to set or print the

[PHP] Re: Mass Mailing

2002-12-22 Thread Manuel Lemos
Hello, On 12/22/2002 02:52 PM, Jonathan Chum wrote: I was considering of writing the mass mailing application in PHP instead though. If anyone has eperience writing such applications with this amount of emails, I'd like to know what you've done. If you do not need to send personalized

[PHP] dropping the resource fork

2002-12-22 Thread James Brennan
It's a new day and I'm still trying to figure my flat-text database update problem out. I am uploading from mac to unix . Does a .txt file have a resource fork? Is the resource fork from the mac file automatically scraped by unix, or do I have to do that? Would it be efficient to strip the

[PHP] Re: Email problems.

2002-12-22 Thread Manuel Lemos
Hello, On 12/22/2002 11:29 AM, Steve Jackson wrote: I have generated a page on our server using PHP (from within a CMS system) which I renamed the output .html to use in an html email. My problem is when I cut and paste the HTML into the email (Outlook) it either: displays the code, displays the

[PHP] problems with uploading files

2002-12-22 Thread Oliver Witt
Hi, I have a problem with a php script that enables people to upload files on my server. I don't know if this is a general problem or if you need to see the script. It works fine with small files, but as soon as I try to upload files with a size of a couple of MB, if (is_uploaded_file($file))

Re: [PHP] problems with uploading files

2002-12-22 Thread rw
You need to set your php memory limit to twice the amount of any given file you upload. If your memory limit (default 8M) is not twice the size of the file(s) being uploaded it will not work. look in php,ini HTH Quoting Oliver Witt [EMAIL PROTECTED]: ### Hi, ### I have a problem with a php

Re: [PHP] problems with uploading files

2002-12-22 Thread rw
You need to set your php memory limit to twice the amount of any given file you upload. If your memory limit (default 8M) is not twice the size of the file(s) being uploaded it will not work. look in php.ini HTH Quoting Oliver Witt [EMAIL PROTECTED]: ### Hi, ### I have a problem with a php

[PHP] Which one to use..

2002-12-22 Thread Peter Houchin
Howdy, in my header page that I include I have a lil script that basically welcomes a user to the site.. I've been asked if I can only get this to show up on the 1st page of the site ( index.php ) now rather than have a whole new header page I want to see if i can go something like this if page

RE: [PHP] php/dreamweaver mx/mysql server question...

2002-12-22 Thread Peter Houchin
localhost refferes to the actual machine your are on .. what is the remote server's host name or ip number .. use one of them instead of local host -Original Message- From: Kelly Meeks [mailto:[EMAIL PROTECTED]] Sent: Saturday, 21 December 2002 10:00 AM To: [EMAIL PROTECTED] Subject:

Re: [PHP] dropping the resource fork

2002-12-22 Thread David Rice
Hey loop: On Sunday, December 22, 2002, at 03:35 PM, James Brennan wrote: It's a new day and I'm still trying to figure my flat-text database update problem out. I am uploading from mac to unix . I Assume you are uploading from Mac OS 9 or earlier, 'cause OS X is UNIX :) (Although OS X is

Re: [PHP] Which one to use..

2002-12-22 Thread Justin French
I use: if(eregi('index.php', $_SERVER['PHP_SELF'])) { include('welcome_thing.txt'); } although it'd be quicker without the eregi() call, as long as you knew the full value that PHP_SELF would return. Cheers, Justin on 23/12/02 11:30 AM, Peter Houchin ([EMAIL PROTECTED]) wrote:

[PHP] Tutorials on OOP

2002-12-22 Thread Davy Obdam
Hi people,. I have to build several classes for a project i am doing, but i am quite new to OOP programming. I need to make a database abstraction layer class and a user login class.. Does anyone know some good tutorials about these things and OOP in general. Thanks in advance.. Best regards,

Re: [PHP] Tutorials on OOP

2002-12-22 Thread Justin French
Both of those classes would already exist on a site like phpclasses.org... do you have to BUILD them, or do you NEED them? Justin on 23/12/02 11:43 AM, Davy Obdam ([EMAIL PROTECTED]) wrote: Hi people,. I have to build several classes for a project i am doing, but i am quite new to OOP

Re: [PHP] Tutorials on OOP

2002-12-22 Thread Davy Obdam
Hi Justin, Thanks for your quick reply.. Well in this case i needs to build em myself, because i am doing a course called Masterclass PHP and i have to learn OOP.. So i am looking for some good OOP tutorials/examples on the web I am very interested in creating a user login class using

[PHP] register globals off ...problems

2002-12-22 Thread Mack
I have the following problem, help me please!!!. php 4.2.2 register globals off apache 1.3.27 windows 2000 internet explorer 6.0 SP1 I have two archives. One that handles the code part, as validating form's inputs and inserting in the data base, and other one is the fill-out form. Inside

Re: [PHP] Tutorials on OOP

2002-12-22 Thread Stephen
I found thise one to be rather useful: http://www.liquidpulse.net/articles/125 - Original Message - From: Davy Obdam [EMAIL PROTECTED] To: Justin French [EMAIL PROTECTED] Cc: PHP [EMAIL PROTECTED]; PHP-WIN [EMAIL PROTECTED] Sent: Sunday, December 22, 2002 8:30 PM Subject: Re: [PHP]

php-general Digest 23 Dec 2002 03:28:02 -0000 Issue 1779

2002-12-22 Thread php-general-digest-help
php-general Digest 23 Dec 2002 03:28:02 - Issue 1779 Topics (messages 129115 through 129135): Re: Email problems. 129115 by: Rick Emery 129121 by: Manuel Lemos Re: Mass Mailing 129116 by: Jonathan Chum 129119 by: Manuel Lemos Re: Forms and PHP variables

[PHP] Undefined Functions

2002-12-22 Thread Beauford.2002
Hi, I previously asked a question about getting undefined function errors in my script and someone mentioned that it may be that I am calling it from within an if or else statement. This turned out to be the case. Now the question - is there a way around this? What I need to do resolves around

Re: [PHP] Undefined Functions

2002-12-22 Thread Rasmus Lerdorf
An undefined function error has nothing to do with where you are calling the function from. It has to do with whether or not you have defined the function you are calling. -Rasmus On Sun, 22 Dec 2002, Beauford.2002 wrote: Hi, I previously asked a question about getting undefined function

Re: [PHP] fwrite() blank-line Quirk?

2002-12-22 Thread Jason Wong
On Sunday 22 December 2002 13:52, Noel Wade wrote: Hi All, Relatively new PHP coder (was in an MS / ASP shop before)... I'm doing some flat-file manipulation (please, spare me the database comments, I'm working on it!), and I'm having to read strings out of one file and copy them into

Re: [PHP] Tutorials on OOP

2002-12-22 Thread Wee Keat
Hi Justin, Thanks for your quick reply.. Well in this case i needs to build em myself, because i am doing a course called Masterclass PHP and i have to learn OOP.. So i am looking for some good OOP tutorials/examples on the web I am very interested in creating a user login class using

Re: [PHP] Tutorials on OOP

2002-12-22 Thread Philip Olson
This tutorial lists many oop tutorials: Know of any basic tutorials on PHP Classes and OOP? --- http://www.faqts.com/knowledge_base/view.phtml/aid/7569 Regards, Philip Olson On Mon, 23 Dec 2002, Wee Keat wrote: Hi Justin,

Re: [PHP] Re: \Z characters

2002-12-22 Thread Jason Wong
On Sunday 22 December 2002 22:14, Dave J. Hala Jr. wrote: This field contains ONLY the \Z. Thanks for the suggestion but it generates the following error message: Parse error: parse error, unexpected '\' in On Sun, 2002-12-22 at 04:49, Mattia wrote: Dave J. Hala Jr. [EMAIL PROTECTED] ha

[PHP] Thumbnail generation

2002-12-22 Thread Centaur zeus
Hi all , i want to generate the thumbnail of an image but I want my php to be portable. How can I generate thumbnail without depending on php host configuration (like --with-gd) ? Thanks . Perseus _ The new MSN 8: smart

[PHP] How to generate thumbnail ?

2002-12-22 Thread j
Hi all , i want to generate the thumbnail of an image but I want my php to be portable. So how can I generate thumbnail without depending on php host configuration (like --with-gd) ? Thanks . Perseus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Thumbnail generation

2002-12-22 Thread Centaur zeus
Is there some common utilities recommended ? From: Rasmus Lerdorf [EMAIL PROTECTED] To: Centaur zeus [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP] Thumbnail generation Date: Sun, 22 Dec 2002 21:07:35 -0800 (PST) You are going to have to depend on something. If you don't want to

Re: [PHP] Thumbnail generation

2002-12-22 Thread Jason Wong
On Monday 23 December 2002 14:26, Centaur zeus wrote: Is there some common utilities recommended ? ImageMagick -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* It's not

[PHP] $_COOKIE and include() or require()

2002-12-22 Thread Luke Sneeringer
I have a question regarding the use of the $_COOKIE autoglobal and include() or require() tags. I have a script (index.php) which gets cookie variables. This works fine, and the cookies are accessable through both $_COOKIE[cookiename] and $cookiename. However, then in the script I have a

[PHP] Flushing image from database to browser - how to get it cached??

2002-12-22 Thread Tim Molendijk
Hi all, I'm storing a bunch of images in a MySQL database. I use a small PHP script to load the appropriate image from database and flush it to the browser. Because this script flushes in content-type image/jpeg (or similar) it can be used as IMG SRC. So images can be shown on a webpage using the