[PHP] pdf with POST

2002-05-30 Thread Josep R. Raurell
Hello. I do a pdf with a lot of variables from a form, with a GET method. After make the pdf (in the same script) I sent the headers and the user can see the document in your browser: $data = $albara->retorna(); $len=strlen($data); header("Content-Type: application/pdf"); header("

[PHP] compile problem with gd 2.0.1

2002-05-30 Thread Michael Geier
Linux Redhat 7.3 PHP 4.2.0 GD 2.0.1 during make: /bin/sh /root/php-4.2.0/libtool --silent --mode=compile gcc -I. -I/root/php- 4.2.0/ext/gd -I/root/php-4.2.0/main -I/root/php-4.2.0 - I/usr/local/apache/include -I/root/php-4.2.0/Zend -I/usr/local/mysql/include - I/usr/local/easysoft/oob/client/inc

[PHP] Graphs using PHP

2002-05-30 Thread Jason Soza
Just want to run this by you all to check the feasibility of it. I run a site that deals with cars, people can upload pics of their vehicle and tell everyone else its year, color, 'generation', and where they're located. What I'd like to do is make some graphs on the front page that look like ga

RE: [PHP] Undefined variables

2002-05-30 Thread Martin Towell
if you want to do the same thing for "no task supplied" and "unknown task" then you could do this: switch(@$Task) { case 'ShowVersion': ShowVersion(); break; case 'GetData': GetData; print $DataOutput; break; case 'CreateImage': CreateImage(); break; default:

Re: [PHP] Undefined variables

2002-05-30 Thread Christopher J. Crane
I like this piece of code. In fact, I convert all my scripts that use the older If/Else code. What would happen if the "break; " wasn't used. Would it just continue through the rest of the function to find another match??? "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">new

[PHP] PHP.INI Lockdown

2002-05-30 Thread David Redmond
Hi All, Is there anyway to lockdown PHP so that only the INI file from C:\WinNT\ is used? Currently, you can place an INI file into the same directory as the php script your viewing through a browser and instead of loading the INI file located in the C:\WinNT\ directory, it will load the INI fil

Re: [PHP] Mcrypt Function - New to it

2002-05-30 Thread Tom Ray
Well now I have the Encryption problem figured out but when I try to decrypt the information, I'm getting this error: Warning: mcrypt module initialization failed in test.php on line 11 Here's Line 11: $text = mcrypt_decrypt (MCRYPT_TripleDES, $key, $lockdata, MCRPYT_MODE_ECB, $iv); again an

Re: [PHP] user auth

2002-05-30 Thread Miguel Cruz
On Thu, 30 May 2002, Justin Blake wrote: > I will soon be developing a user authentication system with different > access levels. I will need to check the users against a mysql database. > How secure is checking for a session var, and then redirecting with > header('Location:...') ? Is there a way

Re: [PHP] user auth

2002-05-30 Thread Daniel Tryba
On Thu, May 30, 2002 at 11:46:29PM -0400, Justin Blake wrote: > I will soon be developing a user authentication system with different > access levels. I will need to check the users against a mysql > database. How secure is checking for a session var, and then > redirecting with header('Location:.

Re: [PHP] Mcrypt Function - New to it

2002-05-30 Thread Tom Rogers
Hi Here are a couple of functions that should help to get you started, iv is set to all 0's so it does not have to be passed around or stored in sessions. It is base64 encoded so it can be stored or passed to the browser. Function Code_id($id,$password){ $eid = 0; $td = mcrypt

[PHP] user auth

2002-05-30 Thread Justin Blake
I will soon be developing a user authentication system with different access levels. I will need to check the users against a mysql database. How secure is checking for a session var, and then redirecting with header('Location:...') ? Is there a way to get around this method of protection? --

Re: [PHP] newbie: cron jobs

2002-05-30 Thread Miguel Cruz
crontab -e You'd have to write a pretty clever script. SSH in (or telnet if you absolutely must). miguel On Thu, 30 May 2002, Edgard Berendsen wrote: > but how can I acces cron -e? > with a php script or I have to use telnet? > > "Cal Evans" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTE

[PHP] Mcrypt Function - New to it

2002-05-30 Thread Tom Ray
Hi there..some what a new programmer when it comes to all this. I'm trying to encrypt some data and then decrypt it. It doesn't have to be high bit encryption just something simple like 3DES. But I keep getting it wrong. Any help would be greatful. Here's the piece of code: $iv = mcrypt_create

Re: [PHP] Design Problem

2002-05-30 Thread Miguel Cruz
On Thu, 30 May 2002 [EMAIL PROTECTED] wrote: > search engine spiders will usually disregard the search string of a URL, > i.e. everything after and including the "?" character. Not sure about the others, but Google does follow GET args. miguel -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Creating IMAP accounts

2002-05-30 Thread Miguel Cruz
On 30 May 2002, Jackson Miller wrote: > Is there a way to create IMAP accounts using PHP? I have looked through > all of the IMAP functions in PHP and do not see one for creating a new > account. > > I would like to create a new IMAP account when a user registers for a > website account. I don't

Re: [PHP] Newbie redirect problem

2002-05-30 Thread Miguel Cruz
On Thu, 30 May 2002, Jason Tobias wrote: > When a user submits a form, it redirects them to login if they are not > logged in. > Once the user logs in. I want to redirect them to the form that they > originaly filled out. > I can define a static redirect and that works fine, just not very practica

Re: [PHP] PHP commands inside a MySQL Database

2002-05-30 Thread Miguel Cruz
On Thu, 30 May 2002, Taylor York wrote: > I am inserting html/php code into a database that would look something like > default page > > now the problem is, I am getting the field, title, and echoing as so (after > using mysql_fetch_array and extract > > echo "$title\n"; > > the acual title of

Re: [PHP] fdup & Pipes? (New Thread)

2002-05-30 Thread Miguel Cruz
On Thu, 30 May 2002, Jonathan Rosenberg wrote: > It's been a long time since I've programmed on Unix, but there > was a common technique used in C programs for invoking a program > & allowing the invoker to read & write via standard input/output. > I believe it used a combination of pipes & the fd

Re: [PHP] Slow Access to SMTP is Causing Slow mail()

2002-05-30 Thread Miguel Cruz
On Thu, 30 May 2002, Bruce Vander Werf wrote: > My calls to mail() take a very long time to resolve, so I did a little > investigating. If I try to Telnet to port 25, it takes about 30 seconds for > the SMTP server to respond. Telnet to port 23 on the same address resolves > immediately, as does n

Re: [PHP] Undefined variables

2002-05-30 Thread Miguel Cruz
On Thu, 30 May 2002, Crane, Christopher wrote: > if ($Task == "ShowVersion") { function ShowVersion(); } > elseif ($Task == "GetData") { function GetData(); print "$DataOutput"; } > elseif ($Task == "CreateImage") { function CreateImage(); } > else { print "Incorrect Variable or no Variable Suppli

Re: [PHP] Undefined variables

2002-05-30 Thread Christopher J. Crane
Darren, Thanks for the tip on direction to head in. Could you provide an example of what you are referring to? "Darren Gamble" <[EMAIL PROTECTED]> wrote in message 078EC26E265CD411BD9100508BDFFC860ED3E64E@shawmail02">news:078EC26E265CD411BD9100508BDFFC860ED3E64E@shawmail02... > Good day, > > Jus

[PHP] Re: Slow Access to SMTP is Causing Slow mail()

2002-05-30 Thread Manuel Lemos
Hello, On 05/30/2002 10:29 PM, Bruce Vander Werf wrote: > Hi, > > My calls to mail() take a very long time to resolve, so I did a little > investigating. If I try to Telnet to port 25, it takes about 30 seconds for > the SMTP server to respond. Telnet to port 23 on the same address resolves > im

[PHP] Slow Access to SMTP is Causing Slow mail()

2002-05-30 Thread Bruce Vander Werf
Hi, My calls to mail() take a very long time to resolve, so I did a little investigating. If I try to Telnet to port 25, it takes about 30 seconds for the SMTP server to respond. Telnet to port 23 on the same address resolves immediately, as does normal web access (using the same address so I don

Re: [PHP] Failed opening '' for inclusion...

2002-05-30 Thread Jeff Lewis
Martin, I appreciate the help...still have NO idea where the php4\pear was coming from. However, fixed things by turning on register_globals for now. The old scripts need to be brought up to par to the new methods...so when I was doing an include_once it wasn't looking for any file. So off to up

[PHP] 'Couldn't compile code. And I'm not smart enough to tell you why, sorry.' -- Any ideas?

2002-05-30 Thread Sqlcoders.com Programming Dept
Hiya, I've been getting the strangest error: "Couldn't compile code. And I'm not smart enough to tell you why, sorry. in c3.php on line 25" Here's a code listing, if anyone can give me a hint as to what's up that would be great, this is the first time the PHP interpreter has thrown a wobbly like

RE: [PHP] Failed opening '' for inclusion...

2002-05-30 Thread Martin Towell
Do you have an auto-prepend file? If so, maybe it's in there ??? If not, I'm stumped -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 10:31 AM To: Martin Towell; PHP General Subject: Re: [PHP] Failed opening '' for inclusion... Yes and that i

Re: [PHP] Failed opening '' for inclusion...

2002-05-30 Thread Jeff Lewis
Yes and that isn't in there (php4\pear). I looked in the php.ini in windows and in php folders... Jeff - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "'Jeff Lewis'" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]> Sent: Thursday, May 30, 2002 8:20 PM Subject: RE:

RE: [PHP] Failed opening '' for inclusion...

2002-05-30 Thread Martin Towell
have you looked in php.ini ? -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 10:19 AM To: PHP General Subject: [PHP] Failed opening '' for inclusion... I am running PHP 4.2.1 on Windows XP. I had 4.1.2 running perfectly fine and then decided to

[PHP] Failed opening '' for inclusion...

2002-05-30 Thread Jeff Lewis
I am running PHP 4.2.1 on Windows XP. I had 4.1.2 running perfectly fine and then decided to get MSSQl running as well. So I ran into a problem where it failed to load the DLL. I read through the archives and it said to make sure I have the most up to date DLL, so I then installed 4.2.1. Now, whe

Re: [PHP] Re: Help with a trivial session example.

2002-05-30 Thread Michael Davey
> Given $myvar = 5; > > If you use session_register('myvar'); > > Then on another page, do you just access it via $myvar? That is exactly how it works - I also have session.auto_start turned on as well. > And if that's the case, isn't it the same to set > > $HTTP_SESSION_VARS['myvar'] = $myvar;

RE: [PHP] Help with example session class (second request)

2002-05-30 Thread John Holmes
This object $login (wherever that comes from) doesn't have one of the functions you are trying to call. ---John Holmes... > -Original Message- > From: Daevid Vincent [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 30, 2002 6:07 PM > To: 'PHP general mailing list' > Cc: '1LT John W. Hol

RE: [PHP] Re: Help with a trivial session example.

2002-05-30 Thread John Holmes
You have to use session_register() with 4.0.6 ---John Holmes... > -Original Message- > From: Daevid Vincent [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 30, 2002 7:46 PM > To: [EMAIL PROTECTED] > Cc: 'Michael Davey' > Subject: RE: [PHP] Re: Help with a trivial session example. > > >

RE: [PHP] Re: Help with a trivial session example.

2002-05-30 Thread Daevid Vincent
> I can't say that I have moved over to the new superglobals > yet - I prefer register_globals cos I am lazy ;) Given $myvar = 5; If you use session_register('myvar'); Then on another page, do you just access it via $myvar? And if that's the case, isn't it the same to set $HTTP_SESSION_VARS[

[PHP] Apache 1.3.24 + PHP 4.2.1 Install Problem - Undefined Symbol

2002-05-30 Thread Samantha Savvakis
HI, Server Details: OpenUnix 8 Apache 1.3.24 PHP 4.2.1 LIBXML 2.4.16 gcc 2.95.3pl1 I am trying to compile Apache and PHP on OpenUnix 8. Managed to get PHP to successfully compile and build a module for Apache. Trying to compile apache, and I'm getting undefined symbol errors with PHP: gcc -

[PHP] Trouble with PHP XMLRPC on Solaris

2002-05-30 Thread Michael Sweeney
I'm trying to get some xmlrpc connectivity working through PHP. Current configuration is Apache 1.3.22/PHP 4.2.0 on Solaris 7. I've linked to the current expat libraries. Configure and compile don't show any problems and other PHP scripts (including phpinfo) work fine. The problem is that an

Re: [PHP] Re: Help with a trivial session example.

2002-05-30 Thread Michael Davey
Hmm... I can't say that I have moved over to the new superglobals yet - I prefer register_globals cos I am lazy ;) But it does seem that there are two possible variables that you need to use - the one in your script ($HTTP_SESSION_VARS), but this is only for 4.0.6 or less, it is $_SESSION otherw

Re: [PHP] array question

2002-05-30 Thread Analysis & Solutions
On Thu, May 30, 2002 at 07:24:49PM -0400, Michelle wrote: > Phone Number: > > > which finally leads to my question how do I do the $_POST[var] when > it's an array(checkbox or radio button)? > > ex: red echo 'red'; --Dan -- PHP classes that make web design easier

RE: [PHP] Re: Help with a trivial session example.

2002-05-30 Thread Daevid Vincent
Okay, now I'm completely confused... I made a very simple test page, and even that doesn't work: http://daevid.com/examples/index.phtml Notice how I have the right session_id, but the variable didn't pass onto the second page. Can someone please explain to me what I am doing wrong? Do I not

RE: [PHP] array question

2002-05-30 Thread Martin Towell
$_POST["product"][0] $_POST["product"][1] etc. -Original Message- From: Michelle [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 9:25 AM To: [EMAIL PROTECTED] Subject: [PHP] array question I'm a newbie at php and I'm sure you will be able to tell by my question. I'm just doing a

[PHP] array question

2002-05-30 Thread Michelle
I'm a newbie at php and I'm sure you will be able to tell by my question. I'm just doing a simple form but my head is hurting from trying to figure out the correct syntax. I'm posting the form to $PHP_SELF an example from my $form_block = *Your Name: *Your E-Mail Address: Phone Number:

Re: [PHP] win32: migrating PWS to Apache

2002-05-30 Thread Analysis & Solutions
On Thu, May 30, 2002 at 04:17:58PM -0400, Steve Clay wrote: > Hello, > > On winNT I have Personal Web Server, PHP4.1.1, MySQL. > My target is Apache1.3, PHP4.2.2, Perl, MySQL. Delete PHP 4.1.1 Download Apache and install. Download Perl and install. Download PHP and install. Edit Apache's httpd.

Re: [PHP] Help with example session class (second request)

2002-05-30 Thread Michael Davey
As I said... >Not quite sure where you got this $login class instance from, but it >appears to be from thin air. If you have a session class then you would need >to instantiate it first with: > >$login = new XYZSessionClass(); // plus any constructor arguments And to quote from the manual page

RE: [PHP] Help with example session class (second request)

2002-05-30 Thread Daevid Vincent
Thank you john for the prompt reply, however I must be completely retarded. I do this: getSessionVar("login") ) { $booth_id = $login->getSessionVar("booth_id"); $booth_name = $login->getSessionVar("booth_name"); echo "\nbooth_id = $booth_i

RE: [PHP] Undefined variables

2002-05-30 Thread Darren Gamble
Good day, Just to clarify, Perl will, in fact, complain if you have undefined variables (or variables that you use once) if you have warnings and/or strict mode in effect. Using at least one is strongly recommended. In PHP, the method you're using for getting form data is deprecated. You shoul

[PHP] Class/Objects

2002-05-30 Thread Gerard Samuel
Im still green with writing with class, but I just want to check with you all. I started creating a class file that also using 2 other classes. class.php --- db_obj = &new abc($db); require_once('./that.class.php'); $this->tpl_obj = &new xwy; }

RE: [PHP] Undefined variables

2002-05-30 Thread Leotta, Natalie (NCI/IMS)
You could try using isset first. I'm not sure where your log is, but if you check to see if task is set, then maybe that will eliminate the problem :-) -Natalie http://www.php.net/manual/en/function.isset.php -Original Message- From: Crane, Christopher [mailto:[EMAIL PROTECTED]] Sent:

[PHP] Undefined variables

2002-05-30 Thread Crane, Christopher
I have an annoying problem, that I know is my own ignorance to PHP. I came from PERL and this was not a problem there but is with PHP. Here's the issue. I have a number of scripts that use a "index.php?Task='some sort of task name'", for example, http://www.foo.com/index.php?Task=ShowVersion

Re: [PHP] setting the IMAP on php4?

2002-05-30 Thread The Gabster
thank you it sais: IMAP c-Client Version - enabled... Gabi. "Adam Voigt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Yeah, put: > > on a PHP page and go to it in your > web browser. > Scroll down the page, if IMAP is listed > under one of the big bo

Re: [PHP] setting the IMAP on php4?

2002-05-30 Thread Adam Voigt
Yeah, put: on a PHP page and go to it in your web browser. Scroll down the page, if IMAP is listed under one of the big bold subheadings (like MySQL and the others), then it worked. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-05-30 at 16:54, The Gabster wrote: > thanks a lot, Adam... > > Is the

Re: [PHP] setting the IMAP on php4?

2002-05-30 Thread The Gabster
thanks a lot, Adam... Is there a short way to check if that works on my system? gabi. "Adam Voigt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Yes, the --with-imap refers to Unix, Linux and other OS's using compiled > source code rather then the standard

Re: [PHP] setting the IMAP on php4?

2002-05-30 Thread Adam Voigt
Yes, the --with-imap refers to Unix, Linux and other OS's using compiled source code rather then the standard windows pre-compiled binary. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-05-30 at 16:43, The Gabster wrote: > Hello all! > > I have an Apache server + Php on a win2k machine... > When peo

[PHP] setting the IMAP on php4?

2002-05-30 Thread The Gabster
Hello all! I have an Apache server + Php on a win2k machine... When people talk about "you have to compile PHP with --with-imap", (for some of my web email applications that require IMAP) do they mean that I have to uncomment the line "extension=php_imap.dll" in my php.ini? thanks a lot, gabi.

Re: [PHP] Problem running script after installing PHP 4.2.1

2002-05-30 Thread 1LT John W. Holmes
You can use $_SERVER['QUERY_STRING'] if register_globals is off. ---John Holmes... - Original Message - From: "Leotta, Natalie (NCI/IMS)" <[EMAIL PROTECTED]> To: "'1LT John W. Holmes'" <[EMAIL PROTECTED]>; "Igor Portnoy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent:

RE: [PHP] Problem running script after installing PHP 4.2.1

2002-05-30 Thread Leotta, Natalie (NCI/IMS)
One more question - could you just use $_GET[$QUERY_STRING} then? Our URL doesn't even have IDs - it's just 001&06&055&... Then I explode it and put it into variables. There are up to 12 vars that we pass that way so we didn't label them. Thank you!! We're not worried about security - if some

Re: [PHP] Problem running script after installing PHP 4.2.1

2002-05-30 Thread 1LT John W. Holmes
Okay, the only issue with the upgrade is that register_globals defaults to off. That is because of security reasons so it's not _quite_ as easy to write insecure scripts. With register_globals off, a URL like index.php?page=4 will not give you a $page variable, only $_GET['page'], or $HTTP_GET_VA

[PHP] help with a rewrite directive

2002-05-30 Thread Dennis Gearon
Can anyone tell me the rewrite instruction for apache-mod_rewrite for: original -> TangoClass.doc final-> TangoClass.htm and it shows up in the browser window? -- If You want to buy computer parts, see the reviews at: http://www.cnet.com/ **OR EVEN BETTER COMPILATIONS**!! http://sysopt.ear

RE: [PHP] Problem running script after installing PHP 4.2.1

2002-05-30 Thread Leotta, Natalie (NCI/IMS)
I have a quick question. I've been reading all of this about the upgrade - we're just waiting for our network guy to do it. We need to use the query string for parameters so our URL is "cut-and-paste-able." Is that going to be a problem? We were using $HTTP_POST_VARS until someone decided that

[PHP] win32: migrating PWS to Apache

2002-05-30 Thread Steve Clay
Hello, On winNT I have Personal Web Server, PHP4.1.1, MySQL. My target is Apache1.3, PHP4.2.2, Perl, MySQL. Should I uninstall both PHP and PWS then install Apache, then PHP? Would it be easier to uninstall mySQL and use a package like PHPtriad than to set up Apache & PHP seperately? A package

Re: [PHP] Problem running script after installing PHP 4.2.1

2002-05-30 Thread 1LT John W. Holmes
You probably still have register globals off still and your URL variables aren't being accessed correctly. Use $_GET['page'] or $HTTP_GET_VARS['page'], or turn on register_globals... ---John Holmes... - Original Message - From: "Igor Portnoy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>;

[PHP] Problem running script after installing PHP 4.2.1

2002-05-30 Thread Igor Portnoy
Hello, I am using MySQL to display some data to the users. I have upgraded to PHP Version 4.2.1 on my FreeBSD Apache server, and now data from the database is not displayed correctly. Well, the page with the data shows up, and it actually shows correct number of records. However, when I clic

[PHP] Using Named Pipes

2002-05-30 Thread Jonathan Rosenberg
I'm trying to use a named pipe in PHP, but I have a feeling I'm misunderstanding something. I'm hoping someone might have some insight. Here's the basic outline of what I'm doing posix_mkfifo($argfile, 0600) $argp = fopen($argfile, "w+"); $command = "program $argfile";

[PHP] Problem running script after installing PHP 4.2.1

2002-05-30 Thread Igor P.
Hello, I am using MySQL to display some data to the users. I have upgraded to PHP Version 4.2.1 on my FreeBSD Apache server, and now data from the database is not displayed correctly. Well, the page with the data shows up, and it actually shows correct number of records. However, when I click o

[PHP] PHP commands inside a MySQL Database

2002-05-30 Thread Taylor York
I am inserting html/php code into a database that would look something like default page now the problem is, I am getting the field, title, and echoing as so (after using mysql_fetch_array and extract echo "$title\n"; the acual title of the page in IE is default page It doesnt parse or exe

[PHP] Re: Help with example session class (second request)

2002-05-30 Thread Michael Davey
Oops - should have read down a lot further... "Michael Davey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Not quite sure where you got this $login class instance from, but it appears > to be from thin air. If you have a session class then you would need t

Re: [PHP] Multiple File Uploads and me....

2002-05-30 Thread Kevin Stone
Actually there is a tiny bit of information in the manual about handling multiple uploads here.. http://www.php.net/manual/en/features.file-upload.multiple.php -Kevin - Original Message - From: "Nick Patsaros" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 30, 2002 1:17 P

[PHP] Re: Help with example session class (second request)

2002-05-30 Thread Michael Davey
Not quite sure where you got this $login class instance from, but it appears to be from thin air. If you have a session class then you would need to instantiate it first with: $login = new XYZSessionClass(); // plus any constructor arguments However, I am a bit confused as you mention using PHP

Re: [PHP] Help with example session class (second request)

2002-05-30 Thread 1LT John W. Holmes
Call session_start() on your second page... ---John Holmes... - Original Message - From: "Daevid Vincent" <[EMAIL PROTECTED]> To: "PHP general mailing list" <[EMAIL PROTECTED]> Sent: Thursday, May 30, 2002 3:10 PM Subject: [PHP] Help with example session class (second request) > Sorry

[PHP] Multiple File Uploads and me....

2002-05-30 Thread Nick Patsaros
I need to have a brief class on how to handle multiple file uploads (they are going to all be text files) from one HTML form. I've scoured the PHP manual and I've only found stuff relating to single file uploads. Any help is appreciated and I thank you all in advance! --Nick P

RE: [PHP] One more try

2002-05-30 Thread Sander, Ryan
The reason no one has helped you is probably due to the fact you are being very vague. How are they 'not working together'? Error messages, maybe the steps you used to install apache and php (probably where the problem will be found). Good Luck, Ryan Sander Web Developer [EMAIL PROTECTED] htt

Re: [PHP] Re: SQL question, getting error and not sure why

2002-05-30 Thread Michael Virnstein
yes, in that way the query i suggested would look like: insert into acteursenc (nomacteur) values ('Michael Sweeney') and nuacteur would be provided by the before insert trigger automatically. that's like mysqls autoincrement. Michael "Rouvas Stathis" <[EMAIL PROTECTED]> schrieb im Newsb

[PHP] Re: Posting to a form - When user hits BACK button all the data isgone

2002-05-30 Thread Michael Davey
The best way to do this is to register your form data as session variable when it is processed on the second page. Then add some scripting in the first page to check for these variables and pre-populate the form as necessary... Mikey "Phil Schwarzmann" <[EMAIL PROTECTED]> wrote in message news:

Re: [PHP] Problems with upload

2002-05-30 Thread Jason Wong
On Friday 31 May 2002 01:57, Aaron wrote: > I am trying to upload files to a server. I have the script and it works on > other servers but when I try to upload to this paticular server, I get the > following: > > Warning: Max file size of 2 bytes exceeded - file [userfile] not saved in > Unknown

Re: [PHP] Hi all & Help :D

2002-05-30 Thread Adam Voigt
Try reversing the filelocations in your ftp_put, like if you have "remotelocation" and "mylocation", switch them to say "mylocation" then "remotelocation". Just a thought. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-05-30 at 22:26, Anthony wrote: > Hi all, this is my first post on the php news gro

[PHP] Help with example session class (second request)

2002-05-30 Thread Daevid Vincent
Sorry for posting this again so soon, but until I get sessions working, I'm blocked on this project. D. --- I'm just learning sessions, and thought the class looked interesting on this page: http://www.php.net/manual/en/ref.session.php So I have this on an index.phtml page and I can see

[PHP] Re: I want a script to run after a page already loads.

2002-05-30 Thread Michael Davey
It would be possible to flush the output of your page (i.e. your HTML) and then put the PHP code after this... however, the page wouldn't appear to be fully loaded until the script had finished processing... Mikey "Phil Schwarzmann" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]...

Re: [PHP] Posting to a form - When user hits BACK button all the data isgone

2002-05-30 Thread 1LT John W. Holmes
One way is to use a GET method instead of POST. ---John Holmes... - Original Message - From: "Phil Schwarzmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 30, 2002 2:43 PM Subject: [PHP] Posting to a form - When user hits BACK button all the data isgone > When a use

[PHP] Problems with upload

2002-05-30 Thread Aaron
I am trying to upload files to a server. I have the script and it works on other servers but when I try to upload to this paticular server, I get the following: Warning: Max file size of 2 bytes exceeded - file [userfile] not saved in Unknown on line 0 I have checked the php.ini file and the u

Re: [PHP] Posting to a form - When user hits BACK button all thedata is gone

2002-05-30 Thread Duncan Hill
On Thu, 30 May 2002, Ed Gorski wrote: > At 02:43 PM 5/30/2002 -0400, Phil Schwarzmann wrote: > >When a user is posting data to a form and hits SUBMIT the user is taken > >to another page. But when the user hits the BACK button on his browser, > >all the posted data is gone. > > > >How can I get

Re: [PHP] Posting to a form - When user hits BACK button all the data is gone

2002-05-30 Thread Ed Gorski
The posted data on which page? The one submitted to? ed At 02:43 PM 5/30/2002 -0400, Phil Schwarzmann wrote: >When a user is posting data to a form and hits SUBMIT the user is taken >to another page. But when the user hits the BACK button on his browser, >all the posted data is gone. > >How ca

Re: [PHP] Hi all & Help :D

2002-05-30 Thread Ed Gorski
hehI laugh but it's not past the realm of what people do... JH>For all we know, the problem is because you actually wrote the program in Pascal, but thought it was PHP because you renamed your computer to PHP and you are trying to load the code up in MS Word on Windows 3.11. ed At 02:47 P

Re: [PHP] I want a script to run after a page already loads.

2002-05-30 Thread Ed Gorski
well what does the script do? Is it integral to the page? ed At 02:42 PM 5/30/2002 -0400, Phil Schwarzmann wrote: >I have a script that takes a VERY long time to run. So the page just >kinda hangs for a minute if not longer before the script is complete. > >I want a page to fully load, then I

[PHP] Hi all & Help :D

2002-05-30 Thread Anthony
Hi all, this is my first post on the php news groups, and im sure it wont be my last so I will first introduce my self, because im sure there are some regualar posters ;) My name is Anthony.. Im 14 years old and live in england, anything else you want to know ask :) Im working on a FTP uploader

[PHP] Re: [PHP-WIN] GD & Freetype on W2K/Apache1.3.2/PHP4.2.0

2002-05-30 Thread Michael Davey
Ignore this - I have managed to get them to work in Unix - now onto Windows... sigh! "Michael Davey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I know this is cross-posting, but I have no luck with finding a solution to > this problem on PHP-WIN, and I have

Re: [PHP] fdup & Pipes?

2002-05-30 Thread 1LT John W. Holmes
> Yes, I realized this after I sent my reply. > > And, please try hard to forgive those of us who do not use the > "real" software approved by you & the other gods. We beg your > forgiveness, oh lord. You are forgiven, my child. ---John Holmes... > > > -Original Message- > > From: Ra

Re: [PHP] Store in XML -> process w/ PHP -> Display in XHTML ?

2002-05-30 Thread Thalis A. Kalfigopoulos
On Thu, 30 May 2002, Timothy J. Luoma wrote: > > Summary: I've been looking for a resource (book, website, etc) that will > address how to write/store information in XML and deliver it as XHTML > (using PHP for the processing), but haven't had much luck. I'm not sure what you want is feasible a

Re: [PHP] your philosophy on php-design

2002-05-30 Thread Justin French
>So, If I were to use frames It could be done, but now I'm not thinking of >frames but of displaying content dynamically in a tabe cell. A few points: 1. you cannot reliably have content updated on the screen from information on the server (eg changing the "# of items in your shopping cart" di

[PHP] Store in XML -> process w/ PHP -> Display in XHTML ?

2002-05-30 Thread Timothy J. Luoma
Summary: I've been looking for a resource (book, website, etc) that will address how to write/store information in XML and deliver it as XHTML (using PHP for the processing), but haven't had much luck. I know a little bit of PHP (just enough to be dangerous, but also to recognize how cool it is

[PHP] Re: sms to web

2002-05-30 Thread Peter Clarke
Basically you'll need to have a mobile number set up with an SMSC who will extract the data from the message and send it on to the url that you provide them with. Peter "Deniz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > can anybody advice me some source a

[PHP] fdup & Pipes? (New Thread)

2002-05-30 Thread Jonathan Rosenberg
It's been a long time since I've programmed on Unix, but there was a common technique used in C programs for invoking a program & allowing the invoker to read & write via standard input/output. I believe it used a combination of pipes & the fdup function. Is it possible to emulate this behavior i

Re: [PHP] Newbie redirect problem

2002-05-30 Thread Analysis & Solutions
On Thu, May 30, 2002 at 10:38:33AM -0500, Jason Tobias wrote: > When a user submits a form, it redirects them to login if they are not > logged in. > Once the user logs in. I want to redirect them to the form that they > originaly filled out. > I can define a static redirect and that works fine,

Re: [PHP] Is there a way to keep variables between php scrits ?

2002-05-30 Thread Analysis & Solutions
On Thu, May 30, 2002 at 03:55:47PM +0200, Anne Le Bot wrote: > I need to keep the values of variables from one php page to another : is > there a way to do this ? Three options: sessions pass the values in hidden fields of a form pass them in the query strings of hyperlinks --Dan --

[PHP] Re: JAVA extension install

2002-05-30 Thread fincom
I have send before my problem about ext/java. It doesn't work until i désactive the ext/xslt. Curious the problem is mentionned in bugs.php.net ID : 13344. but it still not corriged. Hope this help some one. Just put ";" before the xslt.so and all will be fine Have fun :) Fincom "Fincom" <[EMAI

[PHP] Is there a way to keep variables between php scrits ?

2002-05-30 Thread Anne Le Bot
I need to keep the values of variables from one php page to another : is there a way to do this ? Thanks, Anne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] .php3 extension?

2002-05-30 Thread The Gabster
Thanks a lot to all!!! gabi. "Nicole Lallande" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > If you want your home page to be a .php3 file then you must add > index.php3 to your DirectoryIndex directive: > > DirectoryIndex index.html index.htm index.cgi i

[PHP] PHP Warning: ['xxxx']: Unable to initialize module

2002-05-30 Thread Steve G
Hello, I'm running Linux 7.2 and apache. Also PostgreSQL. After upgrading from 4.0.4 I receive all of these errors and I have no idea what API=xxx means. I followed the instructions for upgrading to 4.2.1 and everything apparently went well, but still have module errors. Also, phpinfo() still

[PHP] Array of COM objects doesn't work in PHP but does in ASP?

2002-05-30 Thread Noah
Hey guys, OK I favor PHP so far above ASP however it doesnt seem like PHP can handle an array of COM Objects. Here's the scenario: Within the 'Deal' object contains an array of 'Bonds'. I want to access each bond by doing: $comDeal->Bonds->Item[$i]; ( btw Item is part of

[PHP] Newbie redirect problem

2002-05-30 Thread Jason Tobias
When a user submits a form, it redirects them to login if they are not logged in. Once the user logs in. I want to redirect them to the form that they originaly filled out. I can define a static redirect and that works fine, just not very practical. Is there any way to do this? -- PHP General

[PHP] Re: Apache, html, PHP and global variables

2002-05-30 Thread Daniel Grace
This was originally sent to the httpd-users mailing list, I'm moving it to the php-general list to bring it on-topic and because I think it's something worth sharing. I'm also hoping I actually remembered the address for the php-general list since I typically post there via the newsgroup. On Thur

[PHP] Re: make install error on HP-UX 11.00

2002-05-30 Thread Taylor Lewick
Hi all. To clarify, all of the software need for php I built, except apache. I need to know if I need to download the apache source and build it in a particular way. i.e., statically, or what... This is regarding my earlier message in which when I did a make install I received the following err

Re: [PHP] Re: SQL question, getting error and not sure why

2002-05-30 Thread Rouvas Stathis
I would use a trigger with a sequence, as in: CREATE SEQUENCE _SEQ INCREMENT BY 1 START WITH -99 MAXVALUE 99 MINVALUE -9 CYCLE CACHE 5 ORDER

  1   2   >