Re: [PHP] Text Fields - How Big Can They Be?

2002-12-14 Thread Jason Wong
On Saturday 14 December 2002 15:46, Monty wrote: Hi John, I'm using POST for the form. But it's the HTML form field itself that won't allow me to paste in a large amount of text. If I can get the field to accept the text, there's no problem sending it via POST to the PHP script. I think that

Re: [PHP] Problems with text files from a Mac

2002-12-14 Thread Justin French
1. they can export the CSV as DOS/Windows from Excel on the Mac with ease 2. they can pipe the CSV thru any text editor that lets them choose between mac/win/unix line endings (BBEdit/Lite for example) 3. $filecontents = str_replace('\r', '\n', $filecontents); //should work on 13/12/02 1:22

Re: [PHP] Is there any alternative to FuseBox?

2002-12-14 Thread Jason Wong
On Saturday 14 December 2002 12:25, Javier wrote: I was reading FuseBox's beginners' guide but I didn't completely understood the way that framework works. How do you process the data obtained from forms? Is it the same script that displays the form? Doesn't fusebox have it's own mailing

Re: [PHP] Mail Error

2002-12-14 Thread Jason Wong
On Saturday 14 December 2002 11:34, Manuel Ochoa wrote: I have a Windows server running Apache 2 and PHP 4.3 I got the following error while using the mail() function: Warning: mail() [function.mail]: SMTP server response: 550 User not local. We don't relay in C:\Apache2\htdocs\mymail.php on

Re[2]: [PHP] File Upload

2002-12-14 Thread Tom Rogers
Hi, Saturday, December 14, 2002, 5:55:12 PM, you wrote: JW On Saturday 14 December 2002 11:35, Tom Rogers wrote: You are missing this bit: input type=hidden name=MAX_FILE_SIZE value=10 JW I am curious as to why so many people say this in response to file upload JW problems? JW In

Re: Re[2]: [PHP] File Upload

2002-12-14 Thread Jason Wong
On Saturday 14 December 2002 16:40, Tom Rogers wrote: Just clutching at straws as there was no mention of which browser was being used and it may have been needed as this is a browser directive. I have never had trouble uploading files with or without that setting. Ah, so in your case you're

[PHP] session_start

2002-12-14 Thread John Taylor-Johnston
I used to think I knew how to do this ... take pity :) I start my session: session_name(TestALS); session_start(); I register a variable: session_register(studentid); if (isset($_SESSION[studentid])) { $id = $_SESSION[studentid]; echo \$studentid= $studentidbr; } Pretend $studentid contains

[PHP] I did: Re: session_start

2002-12-14 Thread John Taylor-Johnston
I did call session_start() before anything is output to the browser. http://www.php.net/manual/en/function.session-start.php I only have one php file so I know I'm recyling my code each time: session_name(TestALS); session_start(); session_register(studentid); if (isset($_SESSION[studentid])) {

Re: Re[2]: [PHP] File Upload

2002-12-14 Thread Paul Roberts
the legend starts here http://www.php.net/manual/sk/features.file-upload.php The _URL_ should point to a PHP file. The MAX_FILE_SIZE hidden field must precede the file input field and its value is the maximum filesize accepted. The value is in bytes. it also notes The MAX_FILE_SIZE is

Re: [PHP] File Upload

2002-12-14 Thread Paul Roberts
what version of php are you using? - Original Message - From: Miro Kralovic [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 14, 2002 3:52 AM Subject: RE: [PHP] File Upload Thanks Tom, but still no luck.. it seems like it doesn't recognize $testfile variable at all in

Re: [PHP] Re: File Upload

2002-12-14 Thread Bogdan Stancescu
Ok, have you tried ? echo(pre); print_r($_FILES); echo(/pre); ? at the beginning of the 2nd script? What does it say? Bogdan Miro Kralovic wrote: Hi Bodgan.. yes, I have globals On, Uploads On and SafeMode=off.. no luck... I did it exactly by the book, damn it..:-( -Original

Re: Re[2]: [PHP] File Upload

2002-12-14 Thread Jason Wong
On Saturday 14 December 2002 18:26, Paul Roberts wrote: the legend starts here http://www.php.net/manual/sk/features.file-upload.php The _URL_ should point to a PHP file. The MAX_FILE_SIZE hidden field must precede the file input field and its value is the maximum filesize accepted. The

Re: [PHP] I did: Re: session_start

2002-12-14 Thread Jason Wong
On Saturday 14 December 2002 17:19, John Taylor-Johnston wrote: I did call session_start() before anything is output to the browser. http://www.php.net/manual/en/function.session-start.php I only have one php file so I know I'm recyling my code each time: session_name(TestALS);

[PHP] php --with-GD

2002-12-14 Thread info
Hello List, I want to know all about copiling, installing and configuring php with gd-support. Anybody knows. Oliver Etzel

[PHP] migrating from register_globals on to off

2002-12-14 Thread Willem
Hello, Lately we discovered that, by mistake, we've run PHP with register_globals on for a few months for all our customers. Since we want to turn it off, we need to figure out which customers use the 'register_globals' functionality so we can ask them to modify their scripts. However, checking

RE: [PHP] migrating from register_globals on to off

2002-12-14 Thread John W. Holmes
Lately we discovered that, by mistake, we've run PHP with register_globals on for a few months for all our customers. Since we want to turn it off, we need to figure out which customers use the 'register_globals' functionality so we can ask them to modify their scripts. Why do you want to

Re: [PHP] Is there any alternative to FuseBox?

2002-12-14 Thread Javier
[EMAIL PROTECTED] (Jason Wong) wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: Hi, sorry that I didn't make it clear. I'm looking for an alternative to php-fusebox. So I was asking how do you process the data from forms and so. On Saturday 14 December 2002 12:25, Javier wrote: I was

[PHP] php --with-gd support

2002-12-14 Thread info
Hello List, I want to know all about copiling, installing and configuring php with gd-support. Anybody knows a good site or book to read about? Oliver Etzel

[PHP] Compiling PHP and RH Linux

2002-12-14 Thread Todd Cary
I am new to Linux, so the syntax is still quite foreign for setting up compiles. Here is what I need to do: Compile PHP with MySQL, Interbase, and the GD library and then compile Apache so that it has the newly compiled PHP integrated. Can someone refer me to some literature on the correct

Re: [PHP] Compiling PHP and RH Linux

2002-12-14 Thread Chris Hewitt
Todd Cary wrote: I am new to Linux, so the syntax is still quite foreign for setting up compiles. Here is what I need to do: Compile PHP with MySQL, Interbase, and the GD library and then compile Apache so that it has the newly compiled PHP integrated. Can someone refer me to some The

Re: [PHP] Is there any alternative to FuseBox?

2002-12-14 Thread Jason Wong
On Saturday 14 December 2002 23:57, Javier wrote: [EMAIL PROTECTED] (Jason Wong) wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: Hi, sorry that I didn't make it clear. I'm looking for an alternative to php-fusebox. For processing of forms, there are a number of classes on

php-general Digest 14 Dec 2002 19:55:50 -0000 Issue 1763

2002-12-14 Thread php-general-digest-help
php-general Digest 14 Dec 2002 19:55:50 - Issue 1763 Topics (messages 128272 through 128292): Re: Text Fields - How Big Can They Be? 128272 by: Jason Wong Re: Problems with text files from a Mac 128273 by: Justin French Re: Is there any alternative to FuseBox?

[PHP] Fw: Formatting dates (from MySQL)

2002-12-14 Thread freaky
Hey there, I was just looking at the date/time functions (http://www.php.net/manual/en/function.time.php) and I can't seem to find a function that can format a date that is supplied in the format of a DATETIME column. So, I was wondering, is there a function that can format it properly or should

Re: [PHP] Fw: Formatting dates (from MySQL)

2002-12-14 Thread Marco Tabini
You should be able to use strtotime() to transform the datetime string into a UNIX timestamp, which you can then format back using date(). However, this is a very circuitous way--either use SQL to format it or, if your DBMS supports it, have it returned already as a UNIX timestamp. The actual SQL

RE: [PHP] Fw: Formatting dates (from MySQL)

2002-12-14 Thread John W. Holmes
I was just looking at the date/time functions (http://www.php.net/manual/en/function.time.php) and I can't seem to find a function that can format a date that is supplied in the format of a DATETIME column. So, I was wondering, is there a function that can format it properly or should I

[PHP] Undefined Variable

2002-12-14 Thread Anthony Ritter
Using MS Win 98 / Apache Server: I'm trying to test a form box using the php mail() function. All is well when I fill in the text boxes and hit submit. I receive the e-mail. The form action in the html page is: FORM ACTION=http://localhost/getform.php; METHOD=POST _Now_ when I copy both of

Re: [PHP] Undefined Variable

2002-12-14 Thread Marco Tabini
Best guess, your local server has register_globals on and your ISP doesn't. However, without seeing your code it's going to be difficult to tell for sure! :-) Marco -- php|architect - The Magazine for PHP Professionals The monthly magazine dedicated to the world of PHP programming

Re: [PHP] Undefined Variable

2002-12-14 Thread Anthony Ritter
Marco Tabini [EMAIL PROTECTED] wrote in message: Best guess, your local server has register_globals on and your ISP doesn't. However, without seeing your code it's going to be difficult to tell for sure! :-) Marco Thanks for the reply

Re: [PHP] Undefined Variable

2002-12-14 Thread Marco Tabini
Hey Anthony-- It's definitely a register_globals problem. Your ISP has turned it off because it's generally considered a significant security risk. The best way to solve it is to use the superglobal $_POST to access your post data. In your PHP script, change all the variables that you take from

Re: [PHP] Undefined Variable

2002-12-14 Thread Anthony Ritter
Marco Tabini [EMAIL PROTECTED] wrote in message: Hey Anthony-- It's definitely a register_globals problem. Your ISP has turned it off because it's generally considered a significant security risk. The best way to solve it is to use the superglobal $_POST to access your post data. In your

[PHP] Hey, If anyone can help me with this at all, I would reallyappreciate it...

2002-12-14 Thread Ryan Smaglik
I got a generic ³text to png on the fly² script which works fine but I want to change it so that the image only the size of the text. (so the text has no border, or padding around it) For and example of what I want to do check out: http://www.spoono.com/font/?string=This is what i want to do.png I

[PHP] Parse Errors

2002-12-14 Thread Andy Turegano
I am a PHP beginner so this error may be a stupid one. Anyway, I'm trying to write a simple addition script. The client enters two numbers, then my script (adder.php) adds them. However, when the script is run, I get Parse Error On Line 3 I have no idea exactly what I have done wrong. Here is the

Re: [PHP] Parse Errors

2002-12-14 Thread DL Neil
Andy, I am a PHP beginner so this error may be a stupid one. Anyway, I'm trying to write a simple addition script. The client enters two numbers, then my script (adder.php) adds them. However, when the script is run, I get Parse Error On Line 3 I have no idea exactly what I have done wrong.

[PHP] Querying two tables

2002-12-14 Thread Cesar Aracena
Hi all, I have several tables from which I have to fetch certain products categories based on customer selection. The tables are as follows: Table 1 - Categories catid (autonum) catname Table 2 - Sub categories subcatid (autonum) subcatname Table 3 - Products prodid (autonum) prodname Table

[PHP] Session: I RTFM

2002-12-14 Thread John Taylor-Johnston
Jason wrote: RTFM again. Jason, again, I RTFM, but did not get it working. Otherwise I wouldn't have dared ask a question. Sessions depends on a number of factors including your version of PHP and the setting of register_globals. The FM manual says: $_SESSION (or $HTTP_SESSION_VARS with PHP

Re: [PHP] Session: I RTFM

2002-12-14 Thread Marco Tabini
I haven't followed the rest of the thread, but how about using a function? function getvar ($varname) { if (isset ($_POST[$varname]) { $_SESSION[$varname] = $_POST[$varname]; return $_POST[$varname]; } elseif (isset

[PHP] question

2002-12-14 Thread r.vellinga
Hello, still trying to get PHP 4 support on Apache 2. (Windows ME) Mysql is working Fine, Apache also. but when i insert the 2 or 3 lines Load module etc. the server will shut down can somebody help me please ? ricardo

[PHP] PHP/ldap - atomic attribute modification

2002-12-14 Thread Carl J Meyer
Hi all, Anyone out there have significant experience using the PHP/ldap interface? It appears to me that it's missing some important functionality, but I might just not be seeing how to do it. I have a user-management application which needs to manage an openLDAP user base of several thousand

[PHP] Re: Session: I RTFM

2002-12-14 Thread TomH
When faced with this problem I tried the following (works) The top section of PHP code just reads the POST return array and plops it into a series of successive _SESSION vars Included is a FORM to use that shows the simple code at work HTH TomHenry Tested =

Re: [PHP] A little regex help

2002-12-14 Thread Justin French
Not sure if it will be quicker or not, but I don't think you NEED a regex: - get rid of 'for more information' - split on 'See' into $pre and $code - trim the bits down - wrap $code in a URL - glue it all back together UNTESTED CODE: ? // string $str = 'Windows 2000 Hotfix (Pre-SP4) See Q322842

Re: [PHP] migrating from register_globals on to off

2002-12-14 Thread Justin French
Why not: 1. place a .htaccess file in each existing client/developer directory switching the value to ON -- being careful to ensure you don't wipe over an existing .htaccess file!! 2. switch the value to OFF in php.ini This means all current clients will have continued support for ON, and all

[PHP] Re: Session: I RTFM

2002-12-14 Thread John Taylor-Johnston
Thanks. John When faced with this problem I tried the following (works) The top section of PHP code just reads the POST return array and plops it into a series of successive _SESSION vars Included is a FORM to use that shows the simple code at work HTH TomHenry

Re: [PHP] Session: I RTFM

2002-12-14 Thread John Taylor-Johnston
Marco (or anyone) What is the difference between: $familyname = getvar(familyname); and $familyname = getvar('familyname'); What do single quotes do, as a general rule, that double cannot (he asks remembering something, but not sure what)? Marco Tabini wrote: I haven't followed the rest

Re: [PHP] question

2002-12-14 Thread Justin French
I assume you know that running PHP on Apache 2 is NOT RECOMMENDED YET, or at the very least, listed as experimental?? Justin on 15/12/02 11:13 AM, r.vellinga ([EMAIL PROTECTED]) wrote: Hello, still trying to get PHP 4 support on Apache 2. (Windows ME) Mysql is working Fine, Apache also.

Re: [PHP] Session: I RTFM

2002-12-14 Thread Justin French
John, PHP looks for $vars or {$vars} to parse in the string when double quotes are used... whereas when single quotes are used, it won't parse/substitute the vars. ? // works: echo My favourite fruit is {$fruit}; echo My favourite fruit is $fruit; echo 'My favourite fruit is '.$fruit; //

[PHP] Installing PEAR on windows

2002-12-14 Thread Davy Obdam
Hi people, I have a question, i would like to use PEAR in some of my applications, how can i download and iinstall PEAR on windows. I have Apache 2.0.43 with PHP 4.3.0 RC3 installed on a windows XP machine. I read on http://pear.php.net/manual/en/faq.windows.php . To make PEAR work on

[PHP] Strange problem with PHP,SSI

2002-12-14 Thread sport4ever
PHP version: 4.2.1 OS: RedHat Linux 8 Apache version: 2.0 My problem is that I can't execute more than one (SSI include) on my website JUST for PHP file.. so there is NO problems at all if I include HTML or SHTML files. Anyway, if I include 2 PHP files into any page, the first INCLUDE statement

Re: [PHP] question

2002-12-14 Thread Andy Turegano
Yes, that is indeed true. On Sun, 15 Dec 2002, Justin French wrote: I assume you know that running PHP on Apache 2 is NOT RECOMMENDED YET, or at the very least, listed as experimental?? Justin on 15/12/02 11:13 AM, r.vellinga ([EMAIL PROTECTED]) wrote: Hello, still trying to get

[PHP] Re: Session: I RTFM

2002-12-14 Thread michael kimsal
Instead of while(list($k,$v)=each($_POST)){ $_SESSION[$k]=$v; //echo _name_ b.stripslashes($k)./b _value_ b.stripslashes($v)./bbr; } why not just $_SESSION = array_merge($_SESSION,$_POST); ??? Michael Kimsal http://www.phpappserver.com 734-480-9961 -- PHP General Mailing List

[PHP] Re: Strange problem with PHP,SSI

2002-12-14 Thread conbud
Sport4ever wrote: PHP version: 4.2.1 OS: RedHat Linux 8 Apache version: 2.0 My problem is that I can't execute more than one (SSI include) on my website JUST for PHP file.. so there is NO problems at all if I include HTML or SHTML files. Anyway, if I include 2 PHP files into any page, the first

[PHP] Re: Session: I RTFM

2002-12-14 Thread conbud
John Taylor-Johnston wrote: Jason wrote: RTFM again. Jason, again, I RTFM, but did not get it working. Otherwise I wouldn't have dared ask a question. Sessions depends on a number of factors including your version of PHP and the setting of register_globals. The FM manual says: $_SESSION