Re: [PHP] Help with arrays

2004-03-11 Thread Jason Davidson
i supplied the wrong link, sorry.. this is the right one.. http://ca.php.net/manual/en/function.mysql-fetch-assoc.php Jason "Jason Davidson" <[EMAIL PROTECTED]> wrote: > > read about phps mysql_fetch_assoc in the manual.. this will explain what > your looking for. > http://ca.php.net/manual/en

Re: [PHP] Help with arrays

2004-03-11 Thread Jason Davidson
read about phps mysql_fetch_assoc in the manual.. this will explain what your looking for. http://ca.php.net/manual/en/function.mysql-fetch-array.php Jason "Elliot J. Balanza" <[EMAIL PROTECTED]> wrote: > > Yes ok but how do I store it? > > with array() how? > > vamp > > "Raditha Dissanay

Re: [PHP] Help with arrays

2004-03-11 Thread Raditha Dissanayake
Elliot J. Balanza wrote: Yes ok but how do I store it? with array() how? Whole business of reading from a db and storing into an array is probably redundant. You should try to directly process the contents of the db. This saves you memory and CPU. $variable['name'] = $value; is good.

Re: [PHP] Help with arrays

2004-03-11 Thread Elliot J. Balanza
Yes ok but how do I store it? with array() how? vamp "Raditha Dissanayake" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Elliot J. Balanza wrote: > > > > >Then I need to store the values i receive in an array in the form of: > > > >$variable['name'] = value; > > > > > > $va

Re: [PHP] Help with arrays

2004-03-11 Thread Raditha Dissanayake
Elliot J. Balanza wrote: Then I need to store the values i receive in an array in the form of: $variable['name'] = value; $value. -- Raditha Dissanayake. --- http://www.radinks.com/upload/ Drag and Drop Upload thousands of files and

[PHP] Help with arrays

2004-03-11 Thread Elliot J. Balanza
I need to make a query to a MySQL database that only has two fields, name & value. That I can do. Then I need to store the values i receive in an array in the form of: $variable['name'] = value; But haven't been able to do it neither with a foreach nor with a do while... Can anyone please assist

Re: [PHP] Get "nice" variables from POST

2004-03-11 Thread trlists
On 11 Mar 2004 Chris Shiflett wrote: > The risk is no greater than what the original poster wants to do anyway: > > $foo = $_POST['foo']; > > Whether $foo is created by register_globals being enabled or by the > previous code, there is no difference in risk. The data should still be > considered

RE: [PHP] More php Questions about PHP 4.3.4 (cli)

2004-03-11 Thread Martin Towell
I don't think this is the problem... The problem is that oci* functions haven't been compiled. You probably have the ora_* functions though... I haven't compiled PHP myself so someone will have to tell you the right make options to use to compile oci support. HTH Martin > -Original Message

Re: [PHP] More php Questions about PHP 4.3.4 (cli)

2004-03-11 Thread Marcelo Pereira Fonseca da Silva
The ocilogon() function should have in third parameter something like $db="(DESCRIPTION= (ADDRESS_LIST= (ADDRESS=(PROTOCOL=TCP) (HOST=HOST_HERE)(PORT=PORT_HERE) ) ) (CONNECT_DATA=(SERVICE_NAME=DATABASE_NAME_HERE)) )"; and two va

[PHP] [Newbie Guide] For the benefit of new members

2004-03-11 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP.  Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en firs

Re: [PHP] looking for DIM people

2004-03-11 Thread daniel
I just tested it, its really slow, i'd go with flash with streaming xml if you want to do this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] More php Questions about PHP 4.3.4 (cli)

2004-03-11 Thread Martin McCormick
I installed the FreeBSD port of php4.3.4. In order to query a remote database server running Oracle8I, I am supposed to use oci commands. I have a test script that one would think should do nothing except briefly connect to the remote server: #!/usr/local/bin/php http://www.php.net/) To u

[PHP] looking for DIM people

2004-03-11 Thread colpete
Hello, I found a nice little php4 program called DIM at sourceforge after looking at about 1600 hundred other programs. I had contacted the author. He told me that he was not working on it any more. I showed alot of hope and support for his program. Now he is coming out with a new version t

Re: [PHP] Re: PHP regular expression

2004-03-11 Thread Michal Migurski
>>> preg_match("/^([a-zA-Z0-9])+([.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-]+)+[a-zA-Z0-9_-]$/",$email); >> >> The / characters are the regex delimiters. This is a throwback to the >> Perl language. Basically, the / show where the beginning and end of the >> regex is. You *MUST* have them. Aft

Re: [PHP] Get "nice" variables from POST

2004-03-11 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: > Yes but register_globals carries substantial security risks since a > hacker can then set any script variable they wish merely by POSTing it > back in response to your form. The risk is no greater than what the original poster wants to do anyway: $foo = $_POST['fo

[PHP] Installing on a .NET server...

2004-03-11 Thread Todd Cary
someone at somewhere dot com 28-Aug-2002 06:02 Installing PHP 4.2.2 on Microsoft Windows .NET Server ... * Download http://us3.php.net/do_download.php?download_file=php-4.2.2-Win32.zip * Extract php-4.2.2-Win32.zip * Copy php.ini-dist %SystemRoot%\php.ini * Copy phpts.dll %SystemRoot%\system32

Re: [PHP] Dumb

2004-03-11 Thread Evan Nemerson
On Thursday 11 March 2004 11:38 am, Jonathan Villa wrote: > Go to rpmfind.net and see if you find one... If not, try rpm.pbone.net. It seems like rpmfind's content has been lacking lately, whereas pbone seems to have everything. rpmfind has a more powerful search, though... > > Or see if you uni

Re: [PHP] Problem with PDFlib

2004-03-11 Thread Evan Nemerson
Someone else had a problem like this a while back- iirc it's caused when permissions are insufficient (ie, failed to open file). Just search google, it's easy to find. On Thursday 11 March 2004 01:12 pm, Teren wrote: > Hi, I just moved a site to a new server. I haven't touched the site forever

Re: [PHP] file management system

2004-03-11 Thread Evan Nemerson
On Thursday 11 March 2004 02:59 pm, Decapode Azur wrote: > hi all, > > I am looking for a file management system. > Does anyone know if such a thing exists? > > The goal is to make a web site with computer graphics resources. Take a look at http://www.abnormis.com/ It's an awesome resource for da

Re: [PHP] apache lookdown

2004-03-11 Thread Marc Greenstock
Thanks for that, I was looking around for ages, could not find it, I'm using a new ensim server with apache 2.0, there are so many httpd config files searching through all of them for something I didn't even know what I was looking for was a nightmare. Marc. "Brian Paulson" <[EMAIL PROTECTED]>

[PHP] Re: Loosing redirect in if...else

2004-03-11 Thread memoimyself
Hello Alex, On 11 Mar 2004 at 10:15, Alex Hogan wrote: > if(empty($_SESSION['sellocation'])){ > > $_SESSION['selloction'] = '0'; Have a close look at the array member above. It's spelled differently from the others (an A is missing). > > } > > $_SESSION['sellocation'] = $_POST['sellocation

[PHP] file management system

2004-03-11 Thread Decapode Azur
hi all, I am looking for a file management system. Does anyone know if such a thing exists? The goal is to make a web site with computer graphics resources. The features we would like to find in it would be these if possible: - the possibility to upload files - the possibility to check the uploa

Re: [PHP] Re: PHP regular expression

2004-03-11 Thread Jason Davidson
I think he meant.. the carrot after the delimiter which means NOT.. like /[^a]/ means match anything thats not an 'a' Jason Justin Patrin <[EMAIL PROTECTED]> wrote: > > Mike Mapsnac wrote: > > > Hello > > > > I found this function online and want to understand how it works. > > I don't under

[PHP] Re: PHP regular expression

2004-03-11 Thread Justin Patrin
Mike Mapsnac wrote: Hello I found this function online and want to understand how it works. I don't understand "/^" and "$/". I know that "^" beginning of the string but what is "/^". Thanks function validEmail($email) { return preg_match("/^([a-zA-Z0-9])+([.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+

[PHP] PHP regular expression

2004-03-11 Thread Mike Mapsnac
Hello I found this function online and want to understand how it works. I don't understand "/^" and "$/". I know that "^" beginning of the string but what is "/^". Thanks function validEmail($email) { return preg_match("/^([a-zA-Z0-9])+([.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-]+)+[a-

Re: [PHP] Visit Counter through .htaccess

2004-03-11 Thread Teren
What i would do is use fwrite() and fopen() and such and store count in a txt or whatever file if that's the way you want to do it. Teren - Original Message - From: "Sakitram" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 11, 2004 1:20 PM Subject: [PHP] Visit Counte

[PHP] Problem with PDFlib

2004-03-11 Thread Teren
Hi, I just moved a site to a new server. I haven't touched the site forever and i forgot how to use PDFlib (using fpdf now). Anyways, i'm getting this error: Fatal error: PDFlib error: function 'PDF_set_info' must not be called in 'object' scope in /home/www/lonestar.seryx.net/https/pdf/invoice.p

[PHP] Loosing $_SESSION vars somewhere...

2004-03-11 Thread Mark Henry
Hello everyone! I'm running PHP v4.3.3 on an Apache server. I'm using $_SESSIONS to track student information while they're in a course. Every once in a while some of the session vars suddenly go blank! What disappears is the information gathered and stored from the login - so it's the "oldest

Re: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Michal Migurski
>> Anyway the last word I'll say on this is that top-posting usually >> results in your message going to the trash can unread (sometimes it may >> be read but it will still be thrown into the trash with digust!) > >Which is just as silly as being stubbornly wrong just because you don't >want to be

RE: [PHP] $_GET, expressions and conditional statements

2004-03-11 Thread Ford, Mike [LSS]
> -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED] > Sent: 11 March 2004 14:19 > > On Thursday 11 March 2004 21:15, I.A. Gray wrote: > > > What I want the > > script to do is set $SPORDER to this value. If > $_GET['ORDER'] is not > > set then it gets the default valu

RE: [PHP] Dumb

2004-03-11 Thread Jonathan Villa
Go to rpmfind.net and see if you find one... Or see if you uninstall all the mysql RPMs and use the ones from mysql.com/downloads. They also have an RPM client. -Original Message- From: PHP [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 1:32 PM To: php Subject: [PHP] Dumb

[PHP] Dumb

2004-03-11 Thread PHP
Hi, I have a dum question. I recently picked up a new RH9 dedicated server. Apache 2, Mysql 3 and php4 are all installed , via rpm I am assuming. I upgraded mysql to version 4, however, php is still using the version 3 client. (from php_info) How do I get php4 to use the mysql4 client? I woul

Re: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Robert Cummings
On Thu, 2004-03-11 at 13:45, Jason Wong wrote: > On Friday 12 March 2004 01:51, Robert Cummings wrote: > > > sheeple == sheeple > > (the sheep like followers in both cases not necessarily thinking and > > choosing for themselves) > > I think this is a reference to the sheeple who accept unquestio

Re: [PHP] Get "nice" variables from POST

2004-03-11 Thread trlists
On 11 Mar 2004 Rob Adams wrote: > Along the same lines, I've found this helpful when inserting into mysql. > > foreach($_POST as $key => $val) > $$key = mysql_escape_string($val); I just wrote a cleanup routine which applies a number of transformations -- it's called at the start of every pag

Re: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Jason Wong
On Friday 12 March 2004 01:51, Robert Cummings wrote: > sheeple == sheeple > (the sheep like followers in both cases not necessarily thinking and > choosing for themselves) I think this is a reference to the sheeple who accept unquestioningly what MS gave them? But sometimes being stubbornly wr

Re: [PHP] Visit Counter through .htaccess

2004-03-11 Thread Michal Migurski
>Is there a way to count the visitors of my homepage without using any PHP >scripts and LOG files? Sure: perl, cgi, shellscripts, etc. >I mean is it possible through .htaccess file? If you mean solely through the .htaccess file, then no - something has to store that hit count someplace. ---

Re: [PHP] Get "nice" variables from POST

2004-03-11 Thread Rob Adams
"Mike Mapsnac" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > >From: Marek Kilimajer <[EMAIL PROTECTED]> > > > >$fields = array('username', 'password', ...); > >foreach($fields as $key) $$key = $_POST[$key]; > > > Thanks. > > It looks much nicer :) Along the same lines, I've fou

[PHP] Visit Counter through .htaccess

2004-03-11 Thread Sakitram
Excuse me Is there a way to count the visitors of my homepage without using any PHP scripts and LOG files? I mean is it possible through .htaccess file? If you have a solution, I kindly request you to answer precisly as I am a baby to PHP. Thank you.

[PHP] Re: creating link

2004-03-11 Thread Justin Patrin
Awlad Hussain wrote: I have a search page display results in the format Search results -- Product ID NameMore Info -- 1

Re: [PHP] Loosing redirect in if...else

2004-03-11 Thread Jason Wong
On Friday 12 March 2004 01:32, Alex Hogan wrote: > >$_SESSION['selloction'] = '0'; > > > >1) Are you sure you don't have a typo above? > > I checked the code and it's just in this post. Fat finger day. Please, in future, whenever you post code use copy and paste. It will save you, and people res

Re: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Robert Cummings
On Thu, 2004-03-11 at 12:28, Jason Wong wrote: > On Thursday 11 March 2004 23:43, Robert Cummings wrote: > > Here we go again. > > > Inline braces or dropped braces? C versus Java? This is a highly > > subjective argument. Go look at the comments on the PHP site... they > > flow in reverse chrono

RE: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Ryan A
Now THIS is more like it. After a good arguement a solution was given that suits quite a few people (me included) I think its good to respect someone elses preferences or if you want them to change...give them "something" to do so not just tell them. BTW, the monster side of me insisted that I top

Re: [PHP] connecting to MySQL from shellscript

2004-03-11 Thread Ian Firla
Thanks everyone for your advice. The problem appears to be with the debian package which I was using. I tried compiling php from source as Adam suggested and the script now runs flawlessly. Ian On Thu, 2004-03-11 at 16:47, Ian Firla wrote: > Hello all, > > I have a shellscript written in php t

RE: [PHP] Loosing redirect in if...else

2004-03-11 Thread Alex Hogan
>$_SESSION['selloction'] = '0'; > >1) Are you sure you don't have a typo above? I checked the code and it's just in this post. Fat finger day. > If you want to set a session variable (and keep it set) when you do a > redirect > you need to the close the session first. Thanks..., alex *

Re: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Jason Wong
On Thursday 11 March 2004 23:43, Robert Cummings wrote: Here we go again. > Inline braces or dropped braces? C versus Java? This is a highly > subjective argument. Go look at the comments on the PHP site... they > flow in reverse chronological order so you don't need to scroll to the > bottom.

Re: [PHP] Question on PDF upload

2004-03-11 Thread Tom Dangler
Try manipulating these values in php.ini to get what you want: post_max_size = 8M upload_max_filesize = 2M max_execution_time = 30 ; Maximum execution time of each script, in seconds max_input_time = 60 ; Maximum amount of time each script may spend parsing request data memory_limit = 8M

Re: [PHP] Installation of 4.3.4

2004-03-11 Thread Jason Wong
On Friday 12 March 2004 00:07, [EMAIL PROTECTED] wrote: > Mine is Fedora Core 1 System ( without any update )... > So, which configure commands ( parameters ) must be compiled with this > system ? ./configure would do fine. If you want bells and whistles then read the output of ./configure

Re: [PHP] Loosing redirect in if...else

2004-03-11 Thread Jason Wong
On Friday 12 March 2004 00:15, Alex Hogan wrote: > case 1: > > if(empty($_SESSION['sellocation'])){ > > $_SESSION['selloction'] = '0'; 1) Are you sure you don't have a typo above? > redirect('cf_survey.php?cf=0'); If you want to set a session variable (and keep it set) w

[PHP] Installation of 4.3.4

2004-03-11 Thread edwardspl
Dear All, Mine is Fedora Core 1 System ( without any update )... So, which configure commands ( parameters ) must be compiled with this system ? Very thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Empty Post Variables

2004-03-11 Thread Trevor Shaw
Thanks to several people who replied. Yes, my initial tests confirm that this is a result of the IE post bug. Turning off HTTP_Keep_Alive in apache seems to have fixed the problem. Trevor >>> Richard Davey<[EMAIL PROTECTED]> 3/11/2004 9:42:04 AM >>> Hello Trevor, Thursday, March 11, 2004, 2:24:

RE: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Chris W. Parker
Jay Blanchard on Thursday, March 11, 2004 7:20 AM said: > Can you all > please stop top posting? It makes the posts harder to follow. Please > break the habit right now. i agree. and for those of you that would like to stop top posting and you also use outlook, ther

[PHP] R: [PHP] Get "nice" variables from POST

2004-03-11 Thread Alessandro Vitale
hi, why don't you simple use the $_POST vars? they are already available to you, so why you should copy them? example: function show_function() { $query = "SELECT * FROM user WHERE user_id = ${_POST['user_id']}"; } at the same time: - you save a lot of time ( you don't need to write

[PHP] Generating Advanced Subheadings

2004-03-11 Thread Nicole
Can we take this one step further and make it so that if you're searching and you want to only see histories with the words "parking" in the title or only the histories between 1500 & 1550 it only puts the year headings for the years that actually have a history that meets this criteria? Thanks Ni

[PHP] Loosing redirect in if...else

2004-03-11 Thread Alex Hogan
Hi All, I know this may be a bad time..., that whole top posting vs. bottom posting debate has got me riveted, (especially after getting a monitor full the other day), but I have a question. I have a page that displays a survey. 11 questions all separated in a switch statement on a page na

Re: [PHP] connecting to MySQL from shellscript

2004-03-11 Thread Adam Voigt
It's trivial, just as if you were compiling for Apache, you just use the --with-mysql flag, and it will "just work". On Thu, 2004-03-11 at 10:47, Ian Firla wrote: > Hello all, > > I have a shellscript written in php that needs to connect to a mysql > database. Everything I've been reading sugges

Re: [PHP] connecting to MySQL from shellscript

2004-03-11 Thread James E Hicks III
On Thursday 11 March 2004 10:47 am, Ian Firla wrote: > I have a shellscript written in php that needs to connect to a mysql > database. Everything I've been reading suggests that this cannot be done > easily. Is this true? I ain't never heard anything like this before. I do it all the time. Just

Re: [PHP] connecting to MySQL from shellscript

2004-03-11 Thread Stuart
Ian Firla wrote: I have a shellscript written in php that needs to connect to a mysql database. Everything I've been reading suggests that this cannot be done easily. Is this true? Not that I know of. I have several cli php scripts that access mysql databases on FreeBSD and Win2k. There must be so

Re: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Brian V Bonini
On Thu, 2004-03-11 at 10:19, Jay Blanchard wrote: > [rant] > I know that I am going to seem the ultimate arse this morning, but I > have grown tired of folks not using basic list etiquette. Can you all > please stop top posting? It makes the posts harder to follow. Please > break the habit right no

[PHP] connecting to MySQL from shellscript

2004-03-11 Thread Ian Firla
Hello all, I have a shellscript written in php that needs to connect to a mysql database. Everything I've been reading suggests that this cannot be done easily. Is this true? The one workaround I've found is: http://www.phpbuilder.com/annotate/message.php3?id=1012940 But it's very inelegant an

Re: [PHP] OOP Get Parent data

2004-03-11 Thread Stuart
Rolf van de Krol wrote: class session { var $test="TEST"; var $browser; function init() { $this->browser = new browser; } } class browser { function parent_test() { return xxx; } } I tried $this->parent->test but it doesn't work. Can anybody help me? There is no implicit reference created

Re: [PHP] $_GET, expressions and conditional statements

2004-03-11 Thread Neil Freeman
How about this - untested by the way: $order = "ASC"; if (isset($_GET["ORDER"])) { $value = $_GET["ORDER"]; if (($value == "ASC") || ($value == "DESC")) { $order = $value; } else if ($value == "RAND") { $order = "RAND

Re: Re[2]: [PHP] Get "nice" variables from POST

2004-03-11 Thread Ryan A
Hey Richard, > See Chapter 7 (Variables) of the PHP manual. I remember reading about variable variables and also remember not understanding them :-) Will go through ch.7 again. Thanks. Cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re[2]: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Richard Davey
Hello Robert, Thursday, March 11, 2004, 3:43:24 PM, you wrote: RC> flat, doesn't make it so. Anyways I'm not targeting you, I think too RC> much time is wasted arguing about top versus bottom posting. Personally RC> I respect the poster's decision to post how they feel is best. Although I don't

[PHP] Re: Get "nice" variables from POST

2004-03-11 Thread Michael Nolan
Ryan A wrote: Does this look nicer? $fields = array('username', 'password', ...); foreach($fields as $key) $$key = $_POST[$key]; Hi Marek, A bit confused...whats the meaning of the double $ for "key"...or is that a typo? Thanks, -Ryan This manual page explains: http://uk.php.net/manual/en/langu

Re: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Robert Cummings
Inline braces or dropped braces? C versus Java? This is a highly subjective argument. Go look at the comments on the PHP site... they flow in reverse chronological order so you don't need to scroll to the bottom. Anyways I always seem the ass when I take the devil's advocate position on this, and y

Re[2]: [PHP] Get "nice" variables from POST

2004-03-11 Thread Richard Davey
Hello Ryan, Thursday, March 11, 2004, 3:29:32 PM, you wrote: >> Does this look nicer? >> >> $fields = array('username', 'password', ...); >> foreach($fields as $key) $$key = $_POST[$key]; RA> A bit confused...whats the meaning of the double $ for "key"...or is that a RA> typo? It creates a vari

RE: [PHP] Eregi question

2004-03-11 Thread Dave Carrera
Thanks da koenich, Although $temp[0] gives me the domain name rather than the tld but thanks very much for your help, I knew it was easy :-) Yours Truly Dave C -Original Message- From: Da Koenich [mailto:[EMAIL PROTECTED] Sent: 11 March 2004 15:19 To: Dave Carrera Cc: [EMAIL PROTECTE

Re: [PHP] Re: DOM XML and php

2004-03-11 Thread Lucian COZMA
I have a question please (I'm trying to clarify something for me): Why do you preffer Sablotron to DOMXML ? As I'm developping XML/XSLT framework applications, I'm trying to understand why would our clients use it instead of DOMXML and adapt to it if there is a good reason for it. I want to know th

Re: [PHP] Get "nice" variables from POST

2004-03-11 Thread Ryan A
> Does this look nicer? > > $fields = array('username', 'password', ...); > foreach($fields as $key) $$key = $_POST[$key]; Hi Marek, A bit confused...whats the meaning of the double $ for "key"...or is that a typo? Thanks, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Eregi question

2004-03-11 Thread Jason Wong
On Thursday 11 March 2004 22:50, Dave Carrera wrote: > I want to end up with a part of a string returned by $_POST to work with in > my function. > > The string might be put into the text box like so, it’s a domain name > checker, > > http://www.domainname.com > > I have already got rid of the htt

[PHP] OT Kinda - Top Posting

2004-03-11 Thread Jay Blanchard
[rant] I know that I am going to seem the ultimate arse this morning, but I have grown tired of folks not using basic list etiquette. Can you all please stop top posting? It makes the posts harder to follow. Please break the habit right now. I know that some of the regulars have quit answering ques

Re: [PHP] Eregi question

2004-03-11 Thread Da Koenich
hi dave, try this: $temp = explode('.',$_POST['variable']); $domainname = $temp[1]; greetz da koenich > Hi List, > > I Know this is basic and I am sorry to bother the list with this question > but I am confused, probably working to hard :-) > > I want to end up with a part of a string returne

Re: [PHP] Get "nice" variables from POST

2004-03-11 Thread joel boonstra
On Thu, Mar 11, 2004 at 02:51:25PM +, Mike Mapsnac wrote: > I have about 10 fields in the form. And I get the fields through POST: > //Get Variable from the form > $username = $_POST['username']; > $password = $_POST['password']; > $password2 = $_POST['password2']; > $email = $_POST['email']; >

Re: [PHP] Get "nice" variables from POST

2004-03-11 Thread Mike Mapsnac
Thanks. It looks much nicer :) From: Marek Kilimajer <[EMAIL PROTECTED]> To: Mike Mapsnac <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] Get "nice" variables from POST Date: Thu, 11 Mar 2004 15:59:07 +0100 Mike Mapsnac wrote: I have about 10 fields in the form. And I get the fiel

Re: [PHP] Get "nice" variables from POST

2004-03-11 Thread trlists
On 11 Mar 2004 Teren wrote: > If you have register_globals on in your php.ini file, you don't need to do > that. You just automatically have access to all of those variables like > $username and $password etc. Whatever the name is on the field is what the > string will be called and the action scr

Re: [PHP] Get "nice" variables from POST

2004-03-11 Thread trlists
On 11 Mar 2004 Mike Mapsnac wrote: > I'm looking for "nice" way to get variables from POST? Well you can do it easily with extract: extract($_POST); This has the same security risks as turning register_globals on, it allows hackers to set any variable they wish. A better method might

[PHP] OOP Get Parent data

2004-03-11 Thread Rolf van de Krol
Hi everybody, In the code below are three x-char in the function parent_test of the class browser. What do I have to type there when I want to get the var $test from the session-object. class session { var $test="TEST"; var $browser; function init() { $this->browser = new browser; } } cla

Re: [PHP] Get "nice" variables from POST

2004-03-11 Thread Teren
If you have register_globals on in your php.ini file, you don't need to do that. You just automatically have access to all of those variables like $username and $password etc. Whatever the name is on the field is what the string will be called and the action script can access those immediately by $

Re: [PHP] Get "nice" variables from POST

2004-03-11 Thread Marek Kilimajer
Mike Mapsnac wrote: I have about 10 fields in the form. And I get the fields through POST: //Get Variable from the form $username = $_POST['username']; $password = $_POST['password']; $password2 = $_POST['password2']; $email = $_POST['email']; $email2 = $_POST['email2']; $nickname = $_POST['name']

RE: [PHP] apache lookdown

2004-03-11 Thread Brian Paulson
I had the same problem when we just moved and were able to solve it with this Options Indexes MultiViews AcceptPathInfo On Hth Thank You Brian Paulson Sr. Web Developer [EMAIL PROTECTED] www.chieftain.com 1-800-279-6397 x 207 -Original Message- From: Marc Greenstock [mailto:[EMAIL

[PHP] Get "nice" variables from POST

2004-03-11 Thread Mike Mapsnac
I have about 10 fields in the form. And I get the fields through POST: //Get Variable from the form $username = $_POST['username']; $password = $_POST['password']; $password2 = $_POST['password2']; $email = $_POST['email']; $email2 = $_POST['email2']; $nickname = $_POST['name']; $city = $POST['city

[PHP] Eregi question

2004-03-11 Thread Dave Carrera
Hi List, I Know this is basic and I am sorry to bother the list with this question but I am confused, probably working to hard :-) I want to end up with a part of a string returned by $_POST to work with in my function. The string might be put into the text box like so, it’s a domain name checke

RE: [PHP] Re: DOM XML and php

2004-03-11 Thread Tassos T
Thanks I use this code and it works. tassos -Original Message- From: Lucian COZMA [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 4:03 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: DOM XML and php It should look something like (pretty much extracted from manual): lalala $ar

RE: [PHP] Empty Post Variables

2004-03-11 Thread Trevor Shaw
When the $variableName is empty so is the $_POST['variableName']. When the data gets to the script, it's available from either method of access. Trevor >>> Jay Blanchard<[EMAIL PROTECTED]> 3/11/2004 9:37:48 AM >>> [snip] I am running PHP / mySQL on Netware 6.5. I have an app that takes a data f

Re: [PHP] Regexp Oddity

2004-03-11 Thread trlists
On 11 Mar 2004 Raditha Dissanayake wrote: > print "Matches: " . preg_match('/((?i)rah)\s+\1/', "RAH RAH") . "\n"; > print "Matches: " . preg_match('/((?i)rah)\s+\1/', "rah rah") . > > > is what you should use. Oh. Of course -- I knew it was obvious! This also works: pr

RE: [PHP] Empty Post Variables

2004-03-11 Thread Trevor Shaw
I'll try that now. Trevor >>> Jay Blanchard<[EMAIL PROTECTED]> 3/11/2004 9:37:48 AM >>> [snip] I am running PHP / mySQL on Netware 6.5. I have an app that takes a data from an HTML form and inserts the data into a database. Unpredictably, however, the variables that should contain the post data

Re: [PHP] Empty Post Variables

2004-03-11 Thread Richard Davey
Hello Trevor, Thursday, March 11, 2004, 2:24:03 PM, you wrote: TS> Unpredictably, however, the variables that should contain the TS> post data are sometimes empty. Register Globals is set to on, and TS> Hitting the refresh button a couple of times seems to get the TS> data into the variables, an

RE: [PHP] Screen Res

2004-03-11 Thread Alex Hogan
> I am trying to get the users screen res into a var for php. And I have > the Javascript that gets the screen res. But when I try to put that into > a var, it puts it in as a string, storing the javascript code instead of > the results of that code. Is there a way to fix this? Here is a link that

[PHP] how classes interact question clarification question

2004-03-11 Thread Adam Reiswig
To clarify my question, can one class directly call a function or change a variable of another class or is the main php file the only way to interact between the two or more classes? Thanks again!! -Adam R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

RE: [PHP] Empty Post Variables

2004-03-11 Thread Jay Blanchard
[snip] I am running PHP / mySQL on Netware 6.5. I have an app that takes a data from an HTML form and inserts the data into a database. Unpredictably, however, the variables that should contain the post data are sometimes empty. Register Globals is set to on, and I can't access the data either th

RE: [PHP] creating link

2004-03-11 Thread Jay Blanchard
[snip] Just say, Dave clicks on the apple to find out more info of this product.. on the product page how do i generate a to take Dave to oil and once Dave is reading oil product details.. he should have to meat any suggestion how i can creating this nav links from the array?? [/snip] Since th

[PHP] Empty Post Variables

2004-03-11 Thread Trevor Shaw
I am running PHP / mySQL on Netware 6.5. I have an app that takes a data from an HTML form and inserts the data into a database. Unpredictably, however, the variables that should contain the post data are sometimes empty. Register Globals is set to on, and I can't access the data either through

[PHP] object oriented php game... how classes interact question

2004-03-11 Thread Adam Reiswig
Hello all. I am getting ready to write a simple online game using html & php. Since I am learning about php classes I thought it would be fun to try my hand at writing all the scripting in object oriented style. I have done as much research as I can find just about and the only thing I have

Re: [PHP] $_GET, expressions and conditional statements

2004-03-11 Thread Jason Wong
On Thursday 11 March 2004 21:15, I.A. Gray wrote: > I know this is probably really simple, but I am not very good at > expressions and conditional statements. I am wanting to show a list from a > MYSQL database. I am using the URL to store the variables that control the > output. The variable $

Re: [PHP] How to make sure a redirect works

2004-03-11 Thread Henry Grech-Cini
Thankyou all, There's a lot of info here but I guess that I can summaries it as follows: 1) Do not redirect if the page is visited as the result of a POST 2) Keep text after header("Location: ...) to an absolute minimum. Namely ... 3) Use absolute URLs not relative ones. 4) If you abide by 1,2&3

Re: [PHP] Back Button produces Parse Error

2004-03-11 Thread Jough P
Just in case anyone is interested, this problem with the BACK button happens with the Safari browser on a Mac OS X machine. I've discovered that the problem can be solved by emptying the browsers cache. On Mar 8, 2004, at 7:43 PM, Jough P wrote: Anyone else had this problem where one of your P

Re: [PHP] If Using PHP CLI to Query Oracle8I DB, is Version Numbe r Critical?

2004-03-11 Thread Martin McCormick
A thousand thanks. This is all starting to make a bit of sense. Martin McCormick "Ford, Mike [LSS]" writes: >For an Oracle 8i database you want the OCI extension, not the Oracle >extension. OCI should be the extension of choice for Oracle version 7 and >later. -- PHP General Mailing L

Re: [PHP] preg_split problem

2004-03-11 Thread Jason Wong
On Wednesday 10 March 2004 19:53, [EMAIL PROTECTED] wrote: > I have a problem separting a text string with the preg_split function > If somebody could help, it would be greatly appreciated. > - > The problem I have is that my code, so far, does the job, except it > recognises ALL ":" and no

Re: [PHP] Re: DOM XML and php

2004-03-11 Thread Lucian COZMA
It should look something like (pretty much extracted from manual): lalala $arguments = array( '/_xml' => $xml, '/_xsl' => $xsl ); // Allocate a new XSLT processor $xh = xslt_create(); // Process the document $result = xslt_process($xh, 'arg:/_xml', 'arg:/_xsl', NULL, $arguments); if ($r

Re: [PHP] Re: DOM XML and php

2004-03-11 Thread Lucian COZMA
If you really want to use Sablotron (although I tried it I not liked it as much as DOMXML, gimme a sign, and I'll debug you. Regards, Lucian COZMA @ InterAKT "Tassos T" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks for your reply but I have another problem > > I have an xm

  1   2   >