Re: [PHP] $_SESSION

2002-07-03 Thread Scott Fletcher
I'm with you on this one! I'm working on transforming the website to use the stuffs that will do the dirty work for me. Like $_SESSION, $_COOKIE, etc. Found that this code is stored in the $_COOKIE. So, how cool! FletchSOD "Kevin Stone" <[EMAIL PROTECTED]> wrote in message 014201c221fe$98fd9

[PHP] Re: Re [PHP] cURL in an exec() . more. SOLVED

2002-07-03 Thread Scott Fletcher
:-) I went through the same thing the first time! Never again! I just pray and hope that I don't forget the next time! "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ha ha! Just what I mentioned from above. FULL PATH! :-) FletchSOD

Re: [PHP] sample javascript popup+php - newbie

2002-07-03 Thread Bogdan Stancescu
In file1.php: filled in > >- Original Message - >From: "Bogdan Stancescu" <[EMAIL PROTECTED]> >To: "php-general" <[EMAIL PROTECTED]> >Sent: Wednesday, July 03, 2002 5:50 PM >Subject: Re:

[PHP] Other than substr

2002-07-03 Thread César Aracena
Hi all. I need to show up some data from a DB which consist of phone numbers with area code. They’re stored like () . What is the best approach to print them into some textboxes so they can be edited? I’m using substr but area codes (inside parenthesis) goes from 3 to 5 numbers, so s

Re: [PHP] sample javascript popup+php - newbie

2002-07-03 Thread Bogdan Stancescu
Ah, and of course I forgot window.close() in sendText() after sending it. Bogdan adi wrote: >filled in > >- Original Message - >From: "Bogdan Stancescu" <[EMAIL PROTECTED]> >To: "php-general" <[EMAIL PROTECTED]> >Sent: Wednesday, July 03, 2002 5:50 PM >Subject: Re: [PHP] sample javascri

Re: [PHP] Need Help with $_SESSION.

2002-07-03 Thread Al Baker
You must do a session_start() before you can use the session ID or the session array. On Wed, 2002-07-03 at 12:24, Scott Fletcher wrote: > Have not been successful in making this work for 2 days now. I'm focusing > on making the $_SESSION to work on each webpages. The 1st page is the > login.

RE: [PHP] Other than substr

2002-07-03 Thread Leotta, Natalie (NCI/IMS)
What do you want it to look like in the text boxes? If you just want to take out the two parentheses, you can use strstr to get the index of the ")" string to use in your substring statement. http://www.php.net/manual/en/function.strstr.php I hope this helps! -Natalie -Original Message---

Re: [PHP] Other than substr

2002-07-03 Thread Erik Price
On Wednesday, July 3, 2002, at 12:35 PM, César Aracena wrote: > I need to show up some data from a DB which consist of phone numbers > with area code. They're stored like () . What is the best > approach to print them into some textboxes so they can be edited? I'm > using substr but

Re: [PHP] Need Help with $_SESSION.

2002-07-03 Thread Scott Fletcher
That one doesn't work too well! Also, here's the old script that work with the register_global turned on. But making it work with register global turned off is what I haven't gotten it to work. --clip-- (Page 1) odbc_fetch_into($result,$user_detail,1); $salt = strtoupper(md5(uniqid(rand(;

Re: [PHP] Re: $this in an XML data handler ... in a class

2002-07-03 Thread Clay Loveless
Unfortunately, the xml_set_object function does not work to solve this problem. I tried using it, and my results were the same as they were when I was not using it. [I found that the array($this, 'function_name') method instead of 'string function_name' for the xml_set_*_handler functions worked

[PHP] uploading a file via php - i need some simple code

2002-07-03 Thread Phil Schwarzmann
I am having the worst trouble trying to write a tiny simple script that will upload a file. Below is my code - can anyone tell me why it's not working HTML PHP (upload.php) $filename = "/test.txt"; if (!move_uploaded_file($userfile, $filename)) { echo "something barfed.";

Re: [PHP] $this in an XML data handler ... in a class

2002-07-03 Thread Analysis & Solutions
Clay: On Wed, Jul 03, 2002 at 02:20:56AM -0700, Clay Loveless wrote: > > xml_set_element_handler( > $this->xmlparser, > array($this,"_xml_start_element"), > array($this,"_xml_end_element")); > xml_set_character_data_handler( > $this

[PHP] Re: uploading a file via php - i need some simple code

2002-07-03 Thread Philip Hallstrom
Read http://www.php.net/manual/en/features.file-upload.php On Wed, 3 Jul 2002, Phil Schwarzmann wrote: > I am having the worst trouble trying to write a tiny simple script that > will upload a file. Below is my code - can anyone tell me why it's not > working > > HTML > > enctype="multipar

Re: [PHP] uploading a file via php - i need some simple code

2002-07-03 Thread Lowell Allen
> From: "Phil Schwarzmann" <[EMAIL PROTECTED]> > > I am having the worst trouble trying to write a tiny simple script that > will upload a file. Below is my code - can anyone tell me why it's not > working > > HTML > > enctype="multipart/form-data"> > [snip] Without looking at your oth

Re: [PHP] Re: SESSION newbie question ***STILL UNRESOLVED***

2002-07-03 Thread php
I did as you said Richard, however I still encounter the same problem, you can take a look at the code in test.txt, I updated it too. For other people, here is the original message: Hello, I got this example of sessions: www.net.co.cr/test/test.php , however, as you can see in the code at /t

Re: [PHP] Need Help with $_SESSION.

2002-07-03 Thread Scott Fletcher
Al Baker's comment does help to iron out the broken script. Thanks, Al Now, I still can not understand why the 2nd page show the $_SESSION as blank. It is suppose to contain datas. The php.net stated that $_SESSION is global. Any comments? > > --clip-- (Page 1) > > > > session_start();

RE: [PHP] Need Help with $_SESSION.

2002-07-03 Thread Johnson, Kirk
> Now, I still can not understand why the 2nd page show the $_SESSION as > blank. It is suppose to contain datas. The php.net stated > that $_SESSION > is global. Any comments? register_globals on --- Page 1 Page 2: register_globals off Page 1: Pag

Re: [PHP] PHP and Apache

2002-07-03 Thread Al Baker
I had a problem where I compiled in too many extensions and apache thought the module file was too complicated, and thus corrupt and wouldn't start. On Tue, 2002-07-02 at 14:09, B i g D o g wrote: > Sorry bro...doing to many things at once. > > Apache 1.3.23 > Linux 7.2 > PHP 4.1.2 > > Configu

Re: [PHP] $this in an XML data handler ... in a class

2002-07-03 Thread Clay Loveless
Actually, a careful reading of the docs reveals the following at the bottom of each xml_set_*_handler section: "Note: Instead of a function name, an array containing an object reference and a method name can also be supplied." -Clay > From: Analysis & Solutions <[EMAIL PROTECTED]> > Date: Wed,

Re: [PHP] Re: SESSION newbie question ***STILL UNRESOLVED***

2002-07-03 Thread Kevin Stone
You must understand that although it's all the same script each frame is its own HTML page and Session vars will not be called into a frame unless you specify it. So.. if ($QUERY_STRING == "2.html") { session_start(); // call session vars into this frame. // .. blah blah blah.. } Also s

[PHP] Solution to register_globals=off & existing code???

2002-07-03 Thread PHPCoder
Hi Already posted a question asking what to do with existing code that uses register_globals=on and migrating to a new PHP with register_globals=off; solution seemed to be "have to re-code"; I came up with this code, and am basically asking the more enlightened if this might be a solution, ie,

Re: [PHP] Solution to register_globals=off & existing code???

2002-07-03 Thread Kevin Stone
Or just use extract($HTTP_POST_VARS); Same thing. :) -Kevin - Original Message - From: "PHPCoder" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Wednesday, July 03, 2002 12:24 PM Subject: [PHP] Solution to register_globals=off & existing code??? > Hi > Already posted

Re: [PHP] Solution to register_globals=off & existing code???

2002-07-03 Thread PHPCoder
DOH! Now you tell me!!! :-[ Hah, thanks man, should have known that there is always a simple solution in PHP, just need to know where to look for it... Kevin Stone wrote: >Or just use extract($HTTP_POST_VARS); Same thing. :) >-Kevin > >- Original Message - >From: "PHPCoder" <[EMAIL

Re: [PHP] $this in an XML data handler ... in a class

2002-07-03 Thread Clay Loveless
In a follow up on this, here's something else that's kind of bizzare ... Within this class example, if I add a variable declaration of: var $testval = 'this is a test'; And then add to _xml_character_data(): echo "TEST: $this->testval\n"; ... I find that within the class structure, _x

[PHP] parsing of SSI scripts.

2002-07-03 Thread Sandman
I have a perl script that outputs HTML data. How would I do to execute that script from within a php-script and have it's output parsed by -apache-. I'm not talking about eval(), but rather have apache parse it to invoke php for whatever code I output. Let's say the perl script outputs: The ye

Re: [PHP] Solution to register_globals=off & existing code???

2002-07-03 Thread 1LT John W. Holmes
Or just use import_request_variables(). You can do all of them at once. It's only in PHP > 4.1.0, though. www.php.net/import_request_variables ---John Holmes... - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Wednesday, July 03, 2

Re: [PHP] Need Help with $_SESSION.

2002-07-03 Thread Scott Fletcher
The demostration written by Kirk Johnson worked pretty well. So, it should work with my demo script I posted earlier today. Alright! I'm going to have to debug it to find the problem. I'll post the final script once everything is ironed out. Hope to get it done today. Thanks, FletchSOD "Ki

Re: [PHP] parsing of SSI scripts.

2002-07-03 Thread 1LT John W. Holmes
Look into exec() or virtual(). If the script is run over the web, you can just do a fopen("http://www.example.com/script.php";); and read the result. You can do the same for any other script that's run through the web b/c you'll receive it's parsed output, not the source. ---John Holmes...

Re: [PHP] parsing of SSI scripts.

2002-07-03 Thread Sandman
In article <007501c222c5$2014f020$2f7e3393@TB447CCO3>, [EMAIL PROTECTED] (1lt John W. Holmes) wrote: > > I have a perl script that outputs HTML data. How would I do to execute > > that script from within a php-script and have it's output parsed by > > -apache-. > > > > I'm not talking about ev

Re: [PHP] Re: SESSION newbie question ***FINALLY RESOLVED*** =-)

2002-07-03 Thread php
Kevin you got it! Wow.. that gave many of us pain.. however I thought about that and said to myself that would just start a new session.. anyways that didnt. For the rest of the people looking at this e-mail, you may look at the code, its updated. Thanks. Josepablo Pérez > You must underst

[PHP] How to determine a function's outer context?

2002-07-03 Thread Alberto Serra
Hi! suppose we have this: class utility { function general_purpose($parm) { some_process or die("classname::callerfunction error with parm $parm") ; } } class someclass { var $utility; function someclass() { $this->utility = new utility; } function do_some

RE: [PHP] parsing of SSI scripts.

2002-07-03 Thread Lazor, Ed
You're only receiving the processed results when you source the php file from another server. In other words, it's like viewing the web page through your browser. -Original Message- > If the script is run over the web, you can just do a > fopen("http://www.example.com/script.php";); an

[PHP] Authentication

2002-07-03 Thread Peter
On my site, when a user logs in, their password is encrypted using md5() and the username and encrypted password is then passed from page to page using hidden form inputs (clicking on a link submits the form using POST). Does anyone have any comments on this method e.g. security wise? I know I cou

Re: [PHP] parsing of SSI scripts.

2002-07-03 Thread 1LT John W. Holmes
I think I misunderstood your question. You have a Perl script that returns HTML and SSI and you want that string, returned to PHP, to be parsed by Apache, so the SSI is evaluated, right? Okay, now that I've sorted that out, I don't have an answer for you. Sorry. It seems like a very bad way to do

[PHP] How to start hello program

2002-07-03 Thread Varsha Agarwal
Hi, I am completely new to PHP and webserver things. I followed instructions in the online manual of PHP and installed it on my Win2000 machine which has IIS istalled. I have written a hello.php program. I am stuck here. The manual does not say how to run it. I tried to open it in internet explore

RE: [PHP] Authentication

2002-07-03 Thread Lazor, Ed
Use sessions. Create a user_id and pass that as a session variable rather than the user's actual login and password. -Original Message- On my site, when a user logs in, their password is encrypted using md5() and the username and encrypted password is then passed from page to page using

[PHP] GET data in URL

2002-07-03 Thread Jay
I just installed php 4.2.1 and i have a couple of URL's that pass variables through links (www.domain.com/index.php?test=123) and when I run that it comes up on the next page and the test variable is empty? I can't figure this out but if I had to guess I would think it's some setting in the php.i

RE: [PHP] How to start hello program

2002-07-03 Thread Lazor, Ed
Installing the web server will create a folder on your hard drive with pre-made web pages. Find this directory. This is where you'll want to put your PHP files. You can access your personal server by opening your web browser and giving the address of http://localhost If you put files in the

RE: [PHP] parsing of SSI scripts.

2002-07-03 Thread Lazor, Ed
It seems that PHP is much more powerful and would completely replace the need for SSI. -Original Message- I think I misunderstood your question. You have a Perl script that returns HTML and SSI and you want that string, returned to PHP, to be parsed by Apache, so the SSI is evaluated, rig

Re: [PHP] Need Help with $_SESSION.

2002-07-03 Thread Scott Fletcher
Still working on the script. Here what I found out so far. Why does the example #1 work and example #2 doesn't? Example #1 Page 1 $_SESSION[0] = "Zero"; $_SESSION[1] = "One"; Page 2 echo $_SESSION[0]; echo $_SESSION[1]; Example #2 Page 1 $array[0] = "Zero"; $array[1] = "One"; //This is

Re: [PHP] Authentication

2002-07-03 Thread Martin Clifford
Sessions make life so much eaiser, in my opinion. I used to do what you do, passing from one page the next. Now, when a user successfully logs in, ONE line of code passes all the necessary variables from page to page without me having to do a damn thing. I don't personally see TOO much wrong

Re: [PHP] How to start hello program

2002-07-03 Thread Martin Clifford
What address are you using the run the program? Try using http://localhost/hello.php and see if that works. I don't use IIS, so I couldn't tell you anything relating to configuration. >>> Varsha Agarwal <[EMAIL PROTECTED]> 07/03/02 03:42PM >>> Hi, I am completely new to PHP and webserver thing

[PHP] Exim sendmail faults

2002-07-03 Thread Liam Gibbs
I apologize; this may be more a question for the people in php-install. But I'm having some problems with my mail stuff in PHP. I have Exim version 3.12 installed, but I'm not getting any mails sent out by PHP. I *do* get this error mail, however: This is automatically emailed back to me: This

Re: [PHP] GET data in URL

2002-07-03 Thread Martin Clifford
PHP now comes with register_globals set to OFF by default, as far as I'm aware. You can access the variables using $_POST['variable'] and $_GET['variable'], or turn register_globals back ON. :o) Martin >>> "Jay" <[EMAIL PROTECTED]> 07/03/02 03:46PM >>> I just installed php 4.2.1 and i have a

Re: [PHP] GET data in URL

2002-07-03 Thread Jay
Thanks! Turning on register_globals and restarting Apache solved the problem! Thanks! - Original Message - From: "Martin Clifford" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, July 03, 2002 2:46 PM Subject: Re: [PHP] GET data in URL PHP now comes wi

Re: [PHP] parsing of SSI scripts.

2002-07-03 Thread Sandman
In article <008c01c222c9$fa9c3fb0$2f7e3393@TB447CCO3>, [EMAIL PROTECTED] (1lt John W. Holmes) wrote: > I think I misunderstood your question. You have a Perl script that returns > HTML and SSI and you want that string, returned to PHP, to be parsed by > Apache, so the SSI is evaluated, right? >

Re: [PHP] parsing of SSI scripts.

2002-07-03 Thread Sandman
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ed Lazor) wrote: >> I think I misunderstood your question. You have a Perl script that >> returns HTML and SSI and you want that string, returned to PHP, to be >> parsed by Apache, so the SSI is evaluated, right? > It seems that PHP is much

RE: [PHP] Authentication

2002-07-03 Thread Cal Evans
I agree with Ed. Use sessions. It's more secure that how you are doing it because theusername is not stored in the page and retransmitted each page. =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent: Wednesd

Re: [PHP] parsing of SSI scripts.

2002-07-03 Thread 1LT John W. Holmes
> It seems that PHP is much more powerful and would completely replace the > need for SSI. Heh...wow...the understatement of the century.. :) Glad you figured that out. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] parsing of SSI scripts.

2002-07-03 Thread Andrew Chase
I'm not sure if Apache will recursively process documents this way (Perl script -> HTML output with embedded PHP -> parsed PHP), but what about adding this HTTP header to your PERL script's output before the HTML/PHP code: Content-type: application/x-httpd-php That way Apache would (in theory)

Re: [PHP] $this in an XML data handler ... in a class

2002-07-03 Thread Analysis & Solutions
Clay: On Wed, Jul 03, 2002 at 11:05:34AM -0700, Clay Loveless wrote: > > "Note: Instead of a function name, an array containing an object reference > and a method name can also be supplied." Interesting. Thanks! Anyway, back to your situation. I put together a test. Two counters are running

[PHP] adding a variable to a variable name

2002-07-03 Thread Tom Beidler
I'm wondering if this can be done, and if so, what's the proper way to do it. For the current issue I'm trying to unset some variables with common names and I would like to step through them with a loop. Here's where I'm at to give you an idea but the code doesn't work. for ($i = 2; $i <= 4; $i+

[PHP] Warning: Undefined Index?

2002-07-03 Thread David Busby
List, I'm getting this error and I don't know why...can someone please help out? // Message on my web page Warning: Undefined index: mode in /var/www/html/inc/header.php on line 3 // My Script Here 1: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parsing of SSI scripts.

2002-07-03 Thread Sandman
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Andrew Chase) wrote: > I'm not sure if Apache will recursively process documents this way (Perl > script -> HTML output with embedded PHP -> parsed PHP), but what about adding > this HTTP header to your PERL script's output before the HTML/PHP

Re: [PHP] Warning: Undefined Index?

2002-07-03 Thread 1LT John W. Holmes
> // Message on my web page > Warning: Undefined index: mode in /var/www/html/inc/header.php on line 3 > > // My Script Here > 1: 2: // These are globals on every page > 3: $mode = $_GET['mode']; > 4: $si_uuid = $_GET['si_uuid']; > 5: $po_uuid = $_GET['po_uuid']; PHP is warning you that 'mode' i

[PHP] Re: adding a variable to a variable name

2002-07-03 Thread val petruchek
check for eval function -- Sincerely, val petruchek "Tom Beidler" <[EMAIL PROTECTED]> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm wondering if this can be done, and if so, what's the proper way to do > it. > > For the current issue I'm trying to unset

Re: [PHP] parsing of SSI scripts.

2002-07-03 Thread Paul Roberts
>> I think I misunderstood your question. You have a Perl script that >> returns HTML and SSI and you want that string, returned to PHP, to be >> parsed by Apache, so the SSI is evaluated, right? you can do this with apache 2 but not apache 1 Paul Roberts [EMAIL PROTECTED] ++

[PHP] odbc_**** failing?

2002-07-03 Thread David Busby
List, The following code is erroring for me and I can't figure out why $db = odbc_connect("something", "something", "passwd"); printf("%s", $db); // Prints ID 1 // Hangs here it looks like $rs = odbc_exec($db, "spGetItems"); // Never gets here while(odbc_fetch_row($rs)) { printf("

[PHP] Re: Stock Prices

2002-07-03 Thread Richard Lynch
>How would I get recent stock prices in a page? I obviously need to get >this from some source. It's so easy, you have to pinch yourself to make sure you're not dreaming... :-) http://www.sometocksite.com') or die("Could not read stock page"); $stockhtml = implode('', $stockhtml); # You now

[PHP] Re: Problem with menu

2002-07-03 Thread Richard Lynch
>when I echo menu($id) I get the current page's title. > >How do I print it's peers and it's single parent? You will need a second query to ask for all the children of the parent: $peer_query = "select id as child_id, title from meta_data where pid = $pid"; $peers = mysql_query($query) or error_

[PHP] Re: Does Location: headers constantly

2002-07-03 Thread Richard Lynch
>1) does this HTTP protocol work with all browsers? Every one I've ever seen... But it *might* not work with, say, Mozilla 1.0 from 1989 or so... :-) >2) are there any complications that need to be addressed Yes. Once you decide to send a Location: header, all bets are off on the other header

[PHP] Re: help with PHPwebsite

2002-07-03 Thread Richard Lynch
> >I get the following error when i try to install an app >called "PHPwebsite" ( http://phpwebsite.appstate.edu/ ) > >Warning: Cannot add header information - headers already sent by > (output started at C:\apache\htdocs\php\setup\index.php:9) >in C:\apache\htdocs\php\htmlheader.php on line 30 > >

[PHP] Re: synchronizing php functions

2002-07-03 Thread Richard Lynch
>Well I have a system that people can login to, and I want to produce an >array (or something of the sort) >that holds who is logged in so that I can monitor it. Aha! The "who's logged in right now" feature! :-) Problem #1. First, you need to clearly define "logged in" Am I logged in for the

[PHP] Re: Submitting Form Data

2002-07-03 Thread Richard Lynch
>I have a php script that performs a query and then dynamically builds a >section of a page for every row returned. Each section has some fields and >three submit buttons. My problem is this. If I make a change to one >particular section, how can I submit the form passing only the relevant >sectio

[PHP] Re: Program executing in PHP. Please help

2002-07-03 Thread Richard Lynch
>$output = shell_exec("uudeview -i /bla/bla.txt -p /bla/bla/"); >echo ""; >echo $kick_my_ass; >echo ""; >?> > And I get nothing :(. Script like below: Well, no... Your data is in $output, and you are echo-ing out $kick_my_ass... Try echo $output >$output = shell_exec("uudeview"); >echo ""; >ec

[PHP] Re: Simple Example of Passing on a file through a PHP script

2002-07-03 Thread Richard Lynch
>I want to show info when my docs are viewed though my stats program. I have >decieded the best way would be to put the info into a DB through php file >then output the PDF, Excel, Zip or Powerpoint file. > >Only trouble is I have no Idea how to do this Stuffing the actual data into your database

[PHP] Re: addslahes and magic quote woes

2002-07-03 Thread Richard Lynch
>I am trying to make my PHP safe against malicious data user inputs. >Reading up on this most people suggest using addslashes(), magic_quotes >on and other things like mysql_escape_string(); > >But I have been running into the problem that I mess up the user's input >because I use more then one

Re: [PHP] addslahes and magic quote woes

2002-07-03 Thread Richard Lynch
>magic_quotes is convenient for newbies, but after a while you'll find it >only trips you up, as you've discovered. Odd. In the 5 years I've been doing PHP, magic quotes has never hurt me in the least. It's just more convenient than calling addslashses() all over the place. And do you really

[PHP] Re: Problem With ora_do

2002-07-03 Thread Richard Lynch
>I'm having a weird problem with ora_do. It works fine as long as I don't >have a "WHERE" clause in the query. For example: > >select * from table_name > >works just fine but > >select * from table_name where col_name = value > >returns nothing. > >However, if I use ora_open, ora_parse and or

[PHP] Re: $_SESSION (turned off, destory??)

2002-07-03 Thread Richard Lynch
>Say that the end-user closed the browser(s) without logging off. The >$_SESSION can not be destroyed because the broswer(s) is closed. So, if hte >end-user did log off and close the browser(s). How can I destroy the >$_SESSION since the session_register() & session_destroy() can not be used >w

[PHP] Re: uploading a file via php - i need some simple code

2002-07-03 Thread Richard Lynch
>I am having the worst trouble trying to write a tiny simple script that >will upload a file. Below is my code - can anyone tell me why it's not >working > >HTML > >enctype="multipart/form-data"> > > > > > >PHP (upload.php) > >$filename = "/test.txt"; >if (!move_uploaded_file($userf

[PHP] Re: Authentication

2002-07-03 Thread Richard Lynch
>On my site, when a user logs in, their password is encrypted using md5() and >the username and encrypted password is then passed from page to page using >hidden form inputs (clicking on a link submits the form using POST). >Does anyone have any comments on this method e.g. security wise? I know I

[PHP] Re: GET data in URL

2002-07-03 Thread Richard Lynch
>I just installed php 4.2.1 and i have a couple of URL's that pass variables >through links (www.domain.com/index.php?test=123) and when I run that it >comes up on the next page and the test variable is empty? I can't figure >this out but if I had to guess I would think it's some setting in the >

[PHP] Re: Other than substr

2002-07-03 Thread Richard Lynch
>I need to show up some data from a DB which consist of phone numbers >with area code. They’re stored like () . What is the best >approach to print them into some textboxes so they can be edited? I’m >using substr but area codes (inside parenthesis) goes from 3 to 5 >numbers, so someti

RE: [PHP] parsing of SSI scripts.

2002-07-03 Thread Lazor, Ed
Of course. Btw... You aren't running into a PHP limitation. You're experiencing an issue of programming design and how to integrate different technologies. If anything, Apache is what's limiting you, because of the order of presedence in how it processes files. >From what you've said, you want

Re: [PHP] adding a variable to a variable name

2002-07-03 Thread Bogdan Stancescu
You are on the right track with the reasoning: $unsetA = "level" . $i . "Name"; unset($$unsetA); HTH Bogdan Tom Beidler wrote: >I'm wondering if this can be done, and if so, what's the proper way to do >it. > >For the current issue I'm trying to unset some variables with common names >and I

Re: [PHP] FW: help with PHPwebsite

2002-07-03 Thread Analysis & Solutions
You started the same thread yesterday. I pointed you to the answer. You replied, saying, in essence, that you don't want put any real effort or thought into learning. Now, you're starting a whole new thread. Sad. --Dan -- PHP classes that make web design easier SQL So

RE: [PHP] Exim sendmail faults

2002-07-03 Thread Lazor, Ed
Are you able to do an nslookup of these domains from the server? -Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 12:58 PM To: [EMAIL PROTECTED] Subject: [PHP] Exim sendmail faults I apologize; this may be more a question for the people in ph

Re: [PHP] Another Regex Question (General)

2002-07-03 Thread Analysis & Solutions
On Wed, Jul 03, 2002 at 12:00:50PM -0400, Martin Clifford wrote: > > Does [a-zA-Z0-9] (yes, I know [:alnum:] is the same) mean that there can > be a number, but it has to follow a letter? Or would you just do > [a-zA-Z][0-9] to do that? Your second question/statement is correct. --Dan --

[PHP] Using PHP to access a Microsoft SQL server

2002-07-03 Thread David Busby
List, Has anyone done this before? I got it to work for my root account on my computer but I cannot get access from my PHP scripts when I run under the "apache" user? What the dilly yo? Setup: RH7.3 PHP4 unixODBC freeTDS -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] Recognition: Richard Lynch

2002-07-03 Thread Lazor, Ed
Richard Lynch: It's amazing to see how many helpful and informative messages you're able to rattle off on a daily basis. You're a major contribution to the community - Good job! This message is intended for t

RE: [PHP] Using PHP to access a Microsoft SQL server

2002-07-03 Thread Lazor, Ed
It sounds like you need to give your apache account access to the database. You can test this by logging in as root and running "su - apache". You'll be logged in as Apache; try running the commands you used to test everything when logged in as root. You'll probably get errors that will hopefull

Re: [PHP] $this in an XML data handler ... in a class

2002-07-03 Thread Clay Loveless
Dan, Thanks for your reply ... Glad to be helpful on the one tidbit I uncovered! Looks like your conclusion is the same as mine: the object variables are readable within the handler functions, but they are not writeable. Hence your use of the global variables ... That seems to be the only worka

Re: [PHP] Recognition: Richard Lynch

2002-07-03 Thread Greg Donald
On Wed, 3 Jul 2002, Lazor, Ed wrote: >Richard Lynch: It's amazing to see how many helpful and informative >messages you're able to rattle off on a daily basis. You're a major >contribution to the community - Good job! Absolutely. ..and not only does Richard offer lots of great answers in a

[PHP] New emalloc() error?

2002-07-03 Thread David Busby
List, I think I saw this one on here before...when reading/writing the database I get this when executing odbc_exec(...); What was the fix? FATAL: emalloc(): Unable to allocate 1073784417 bytes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] Security: PHP: how to "harden" PHP scripts?

2002-07-03 Thread Chris Shiflett
Jean-Christian Imbeault wrote: > I'm writing my first commercial site and of course I am thinking about > security. I'm worried about someone using a flaw in my PHP script > logic to access information they shouldn't. > > I've read the PHP books I have and Googled around but can't quite find >

RE: [PHP] New emalloc() error?

2002-07-03 Thread Lazor, Ed
wow, 107megs of ram in one process is impressive. Have you checked your php.ini max memory setting? Is there sufficient ram / swap file space? Got enough free drive space? -Original Message- List, I think I saw this one on here before...when reading/writing the database I get

Re: [PHP] Authentication

2002-07-03 Thread Chris Shiflett
Lazor, Ed wrote: >Use sessions. Create a user_id and pass that as a session variable rather >than the user's actual login and password. > >-Original Message- >On my site, when a user logs in, their password is encrypted using md5() and >the username and encrypted password is then passed

Re: [PHP] $this in an XML data handler ... in a class

2002-07-03 Thread Analysis & Solutions
Hey Clay: On Wed, Jul 03, 2002 at 03:25:42PM -0700, Clay Loveless wrote: > > Looks like your conclusion is the same as mine: the object variables are > readable within the handler functions, but they are not writeable. I don't think that's an accurate description. The object variables are wr

Re: [PHP] New emalloc() error?

2002-07-03 Thread David Busby
Wow, Thats what that means? There must be some error. The procedure I'm trying to run doesn't return that much data and it will run via 'isql'. Anything else I should check? /B Lazor, Ed wrote: > wow, 107megs of ram in one process is impressive. Have you checked your > php.ini max memory s

[PHP] opening pdf file in new window with a POST operation

2002-07-03 Thread Pete James
This is a strange one... test https://my.server/reports.php"; method="post" target="_blank"> https://my.server/reports.php"; method="get" target="_blank"> These forms are identical with the exception of the post/get methods. A PDF file is being dynamically generated and displayed

Re: [PHP] Security: PHP: how to "harden" PHP scripts?

2002-07-03 Thread Alberto Serra
Chris Shiflett wrote: > Jean-Christian Imbeault wrote: >> In general how does one go about hardening a PHP script. i.e. making >> it as "hacker-proof" as possible There is no such thing as a 100% secure solution (this applies to everything running on a computer, PHP included). But basically you

[PHP] Configuration problems concerning sessions.

2002-07-03 Thread Mannequin*
Hi all. I'm having problems using sessions. I've been able to narrow it down to a configuration problem, but I have no idea what to look for in php.ini or whatever. Anyway, let me explain a bit more. For some odd reason php on my local machine will not pass any variables when you either reload th

[PHP] Question about using XSLT_Process?

2002-07-03 Thread john2 . mccarty
Hello, I'm trying to use xslt_process with $arguments like in the third example in the online documentation, but I'm not having any luck. I can run the same .xml and .xsl using the simple examples, but I cannot when using the $arguments example. I would really like to get this figured out, but

Re: [PHP] odbc_**** failing?

2002-07-03 Thread Analysis & Solutions
David: On Wed, Jul 03, 2002 at 02:19:28PM -0700, David Busby wrote: > > $rs = odbc_exec($db, "spGetItems"); Uh, what is "spGetItems?" The second argument of odbc_exec() is supposed to be a query string. That doesn't look like a query string. --Dan -- PHP classes that make w

[PHP] mySQL and phpMyAdmin

2002-07-03 Thread Jadiel Flores
Hi, I installed php and mysql today and I'm trying to use phpMyAdmin but I'm receiving the error message: cannot load MySQL extension, please check PHP Configuration. I checked the php.ini and couldn't find anything related, my configure command says '--with-mysql=shared,/usr' and I have no idea

Re: [PHP] Authentication

2002-07-03 Thread Alberto Serra
Chris Shiflett wrote: > How do sessions help against this? Well, they don't solve the problem > entirely, of course, but the unique ID you pass around won't be the same > unique ID *every* time that user visits the site. So, you at least have > a good chance of making the window of time that a

Re: [PHP] Authentication

2002-07-03 Thread Chris Shiflett
Alberto Serra wrote: > Chris Shiflett wrote: > >> How do sessions help against this? Well, they don't solve the problem >> entirely, of course, but the unique ID you pass around won't be the >> same unique ID *every* time that user visits the site. So, you at >> least have a good chance of mak

[PHP] Multiple Forms and 1 SQL table

2002-07-03 Thread CM
What do you do if you have a huge form that you want broken up into several different forms but each time the submit button is pressed the info is saved to the sql table. Do you just create the table on the first form submit and then on each subsequent form you just update the table? -- PHP

Re: [PHP] Authentication

2002-07-03 Thread Jason Wong
On Thursday 04 July 2002 09:09, Chris Shiflett wrote: > As a caveat to Mr. Serra's suggestion, remember that there are *many* > users who will go through an IP masquerading gateway or proxy, so their > IP may fluctuate, even though they are actively browsing. For this > reason, it is often necess

<    1   2   3   >