[PHP] compiling php 4.2 with apache 2.0.35

2002-04-23 Thread Michal Dvoracek
Hello, i have problem with %subj%. It's possible to build php without apxs2 ? Building php with apxs2 - apxs must be instaled before (e.g. apache must be instaled first ?) Regards, Michal Dvoracek [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

[PHP] How to connect to mysql through JAVA?

2002-04-23 Thread Balaji Ankem
Hi, What is the command to connect to mysql through java. Thanks and Regards Balaji **Disclaimer Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by

[PHP] Re: PHP session / JavaScript conflict

2002-04-23 Thread Yasuo Ohgaki
Larry Linthicum wrote: > I am finding that the simple > > is causing pages with JavaScript menus to load with 'error on page" and the > JavaScript to not work > > the session without the JavaScript seems fine, as does the JavaScript > without the session ( I can do other things in PHP without c

RE: [PHP] Re: Help PHP 4.2: No more error messages

2002-04-23 Thread Mark W. Humphries
CC, Thanks! That was what I needed. Cheers, Mark -Original Message- From: CC Zona [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 2:39 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Help PHP 4.2: No more error messages In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Mark

[PHP] Trimming text

2002-04-23 Thread Ashley M. Kirchner
I have a variable ($description) that contains text data (pulled from an MySQL DB). I need to delete the last few lines from that data. Prior to the data getting submitted to the DB (during a different routine), the following information gets added: $description .= "\n\n< span class=

RE: [PHP] Combining Variables

2002-04-23 Thread Jason Soza
Well that was embarrassing. I guess [CTRL]+[ENTER] sends mail in Outlook! Let's try that again: Okay, I think this is an easy thing but I can't figure it out: I have a script that will be uploading (up to) 4 files: $file1 $file2 $file3 $file4 Each $file variable has associated $original_name, $

[PHP] Re: Help PHP 4.2: No more error messages

2002-04-23 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Mark W. Humphries) wrote: > I am running PHP 4.2 and Apache 1.3.23 on Win2k. > I am generating png files. Before upgrading to PHP 4.2 whenever I had a bug > in a png generating script I would get back an error message, now I only get > back a bl

[PHP] Combining Variables

2002-04-23 Thread Jason Soza
Okay, I think this is an easy thing but I can't figure it out: I have a script that will be uploading (up to) 4 files: $file1 $file2 $file3 $file4 Each $file variable has associated $original_name, $filesize, and $filename variables. Each file: $original_name = $HTTP_POST_FILES['userfile1']['na

[PHP] Help PHP 4.2: No more error messages

2002-04-23 Thread Mark W. Humphries
I am running PHP 4.2 and Apache 1.3.23 on Win2k. I am generating png files. Before upgrading to PHP 4.2 whenever I had a bug in a png generating script I would get back an error message, now I only get back a blank page. I have error reporting set to E_ALL. Thanks, Mark -- PHP General Mailing

Re: [PHP] Arrays in forms {?!}

2002-04-23 Thread Miguel Cruz
On Wed, 24 Apr 2002, Liam MacKenzie wrote: > > while ( $element = each( $games ) ) > { > echo $element["value"]; > echo ""; > } > > > I tried this too, it gave the same results as the above... > > if (is_array($games)) { > for ($z=0;$z echo "$games[$z]"; > } > } > else { > echo "$game

[PHP] Arrays in forms {?!}

2002-04-23 Thread Liam MacKenzie
Hi all, I have a form, with about 40 checkboxes, I want to write a PHP document that processes the submission and displays the values of the checkboxes that were checked. Pretty basic stuff, I've tried a few different things, some work but display "Array" at the top of the list of values. C

[PHP] Re: how to give vars to a php(shell env) script?

2002-04-23 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi NG! > > how could i give some vars to a php script, that is directly executed by > php-parser. for instance: > > #!/usr/bin/php -q > echo "$SOME_VAR"; > ?> > > is it possible at all? > > thanx for advance. > > Hermann Bier > >

Re: [PHP] Re: Display large text fields in html

2002-04-23 Thread Ray Hunter
What type of database are you using? You might want to look into the creating temp tables and accessing them... "Jan Peuker" <[EMAIL PROTECTED]> wrote in message 00e101c1eb0a$9a50c730$7ca990d4@toshiba">news:00e101c1eb0a$9a50c730$7ca990d4@toshiba... > Ok, but true frames load very slow - not on a

[PHP] Re: how to give vars to a php(shell env) script?

2002-04-23 Thread Ray Hunter
Pass the variables at the command line... $ARGV[i] and $ARGC deteremines the number of variables passed... Try it and see what happens "Hermann Bier" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi NG! > > how could i give some vars to a php script, tha

RE: [PHP] SQL Warning

2002-04-23 Thread Martin Towell
The reason why I said that is 'cause the array was inside quotes, so quoting again would break out of the original quotes -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 2:03 PM To: Jason Murray Cc: [EMAIL PROTECTED] Subject: RE: [PHP] SQL W

RE: [PHP] SQL Warning

2002-04-23 Thread Miguel Cruz
On Wed, 24 Apr 2002, Jason Murray wrote: > {$config["prefix"]} > > I think this should be > > ${config["prefix"]} Those are equivalent. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] SQL Warning

2002-04-23 Thread Martin Towell
or make it $config[prefix] -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 1:51 PM To: 'Jennifer Downey'; [EMAIL PROTECTED] Subject: RE: [PHP] SQL Warning > Would you please direct your attention to this URL > > http://testphp.netfirms.

RE: [PHP] SQL Warning

2002-04-23 Thread Jason Murray
> Would you please direct your attention to this URL > > http://testphp.netfirms.com/code1.html > > Look at the bottom where the big orange commented syntax is > and explain what is going on there? {$config["prefix"]} I think this should be ${config["prefix"]} ... also, it's handy to actual

[PHP] SQL Warning

2002-04-23 Thread Jennifer Downey
Hi all, Would you please direct your attention to this URL http://testphp.netfirms.com/code1.html Look at the bottom where the big orange commented syntax is and explain what is going on there? Thanks Jennifer -- The sleeper has awaken --- Outgoing mail is certified Virus Free. Checked by A

Re: [PHP] file permissions on counter?

2002-04-23 Thread Tyler Longren
Hi Antonio, try this for your fopen(): $file=fopen("counter.txt","r+") Incase you're interested, here's the code I use whenever I need to use a simple text-file based counter: Tyler Longren Captain Jack Communications www.captainjack.com [EMAIL PROTECTED] - Original Message - From: "A

Re: [PHP] authentication

2002-04-23 Thread Justin French
I believe your choices are either: 1. use .htaccess authentication, which is usually constant for the time the browser program is open. 2. develop your own user/pass system with sessions I don't believe the two can work hand-in-hand. Justin French - http://indent.com.au h

RE: [PHP] 4.2.0 release and bug #15983

2002-04-23 Thread John Holmes
I read through the changelog (4.2 -> 4.0.6) and didn't see any mention of it. ---John Holmes... > -Original Message- > From: Chris Cameron [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 23, 2002 5:56 PM > To: [EMAIL PROTECTED] > Subject: [PHP] 4.2.0 release and bug #15983 > > I was

Re: [PHP] file permissions on counter?

2002-04-23 Thread Bogdan Stancescu
You should check the whole path and make sure Apache has enough rights to read through all directories. Bogdan Antonio wrote: > Hi, I have to read a simple counter on my server, but the server >responses that I haven't permissions to open the file which contains the >data in write mode. This f

[PHP] file permissions on counter?

2002-04-23 Thread Antonio
Hi, I have to read a simple counter on my server, but the server responses that I haven't permissions to open the file which contains the data in write mode. This file (counter.txt) it has all the permissions (777). I don't know how to do, could somebody help me? I execute this file on server:

Re: [PHP] how to give vars to a php(shell env) script?

2002-04-23 Thread Hermann Bier
Martin Towell wrote: > try setting an environment variable before calling your script > > > -Original Message- > From: Hermann Bier [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 24, 2002 12:34 PM > To: [EMAIL PROTECTED] > Subject: [PHP] how to give vars to a php(shell env) scrip

[PHP] 4.2.0 release and bug #15983

2002-04-23 Thread Chris Cameron
I was wondering if anyone could tell me if bug #15983 has been fixed in this new PHP release. I'd check myself, but I'm a bit short on time (thanks to this very bug). http://bugs.php.net/bug.php?id=15983 Specifically. If ever there was a more maddening bug to run across.. Thanks, Chris --

RE: [PHP] how to give vars to a php(shell env) script?

2002-04-23 Thread Martin Towell
try setting an environment variable before calling your script -Original Message- From: Hermann Bier [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 12:34 PM To: [EMAIL PROTECTED] Subject: [PHP] how to give vars to a php(shell env) script? Hi NG! how could i give some vars

[PHP] how to give vars to a php(shell env) script?

2002-04-23 Thread Hermann Bier
Hi NG! how could i give some vars to a php script, that is directly executed by php-parser. for instance: #!/usr/bin/php -q is it possible at all? thanx for advance. Hermann Bier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpnuke still around?

2002-04-23 Thread Miguel Cruz
On Tue, 23 Apr 2002, Dennis Gearon wrote: > http://www.phpnuke.org/ doesn't respond. Is it still a valid > project/product? Where is it? You just tried it this once, or over a period of days? Perhaps they're upgrading their web server at the moment. The machine is up. miguel -- PHP General M

Re: [PHP] Question for Linux users...

2002-04-23 Thread Mark Gallagher
Jason Soza wrote: > Don't want to start a war or anything, so e-mail me your responses > offlist if necessary, but I'd like to know what Linux distro you like > best and why. Wouldn't you rather ask a less inflammatory question - like "which is better? Emacs or vi[0]?" :o) > Anyhow, I've u

Re: [PHP] Re: Wich Database abstration layer?

2002-04-23 Thread Manuel Lemos
Hello, Martin Towell wrote: > > I hope we're not going to get into the "this db class is better than that > one" thread again That was not what the original poster asked. Let him judge and ask further questions if he wants to. Regards, Manuel Lemos > > -Original Message- > From: Manu

[PHP] Re: Wich Database abstration layer?

2002-04-23 Thread Manuel Lemos
Hello, Javier wrote: > > Can anybody recomend me a "nice" DB abstraction layer that is not > included in phplib? You may want to try looking at Metabase. It assures true database portability. http://www.phpclasses.org/metabase Regards, Manuel Lemos -- PHP General Mailing List (http://www.ph

RE: [PHP] Re: Wich Database abstration layer?

2002-04-23 Thread Martin Towell
I hope we're not going to get into the "this db class is better than that one" thread again -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 9:28 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Wich Database abstration layer? Hello, Javier wr

[PHP] Re: Wich Database abstration layer?

2002-04-23 Thread Manuel Lemos
Hello, Javier wrote: > > Can anybody recomend me a "nice" DB abstraction layer that is not > included in phplib? You may want to try looking at Metabase. It assures true database portability. http://www.phpclasses.org/metabase Regards, Manuel Lemos -- PHP General Mailing List (http://www.ph

RE: [PHP] ASP to PHP

2002-04-23 Thread Martin Towell
I used it for a site I did. The code wasn't doing anything too funky. Just simple accesses to adodb and also simple form manipulation - worked like a treat. Although, the database stuff, it converts it the standard PHP functions, but I had some classes for that, so I still had to manually go thro

RE: [PHP] Out of memory error message

2002-04-23 Thread Mullin, Reginald
Guys, I've finally been able to solve this problem. See: http://franklin.oit.unc.edu/cgi-bin/lyris.pl?visit=freetds&id=178084891. The problem was being caused by http://www.freetds.org/faq.html#textdata. I solved it by modifying my SQL statement like so: $sql = "SET TEXTSIZE 2048 SELECT Item.It

[PHP] phpnuke still around?

2002-04-23 Thread Dennis Gearon
http://www.phpnuke.org/ doesn't respond. Is it still a valid project/product? Where is it? PLEASE cc me. -- If You want to buy computer parts, see the reviews at: http://www.cnet.com/ **OR EVEN BETTER COMPILATIONS**!! http://sysopt.earthweb.com/userreviews/products/ -- PHP General Mailing Lis

RE: [PHP] ereg() not matching same text each time script is run...

2002-04-23 Thread John Holmes
Someone gave me the preg_match equivalent preg_match( '/([-_a-z]+)\.([a-z]+)$/i', $row['site'], $match2 ); I tried that and it took care of the problem, as far as I can tell. To me, that narrows it down to a problem (bug?) with ereg... anyone else have any ideas? ---John Holmes... > -Ori

RE: [PHP] mySQL Data Limits

2002-04-23 Thread John Holmes
TEXT has a limit of 65535 characters. BLOB TEXT A BLOB or TEXT column with a maximum length of 65535 (2^16 - 1) characters. See section 6.5.3.1 Silent Column Specification Changes. See section 6.2.3.2 The BLOB and TEXT Types. MEDIUMBLOB MEDIUMTEXT A BLOB or TEXT column with a

Re: [PHP] Regular Expressions

2002-04-23 Thread Evan Nemerson
Uhhh... something like ereg("[_a-zA-Z\-]+\@[\.a-zA-Z\-]+\.com",$variable); SHOULD work... If you want to make sure they're @domain.com instead of any domain, try... ereg("[_a-zA-Z\-]+\@[\.a-zA-Z\-]+domain\.com",$variable); if you want to validate e-mail address formats, there is (if memory se

[PHP] mySQL Data Limits

2002-04-23 Thread JSheble
I have a database with a TEXT field in it, and I've been using it this way for over three years... today was the first time an INSERT was truncated on this field... It was an unusually large INSERT, and due to the truncation I'm now has wondering what are the limits (if any) on inserting data

[PHP] Regular Expressions

2002-04-23 Thread Devin Atencio
I need to check a variable to see if the format fits one of the following: [EMAIL PROTECTED] or *@domain.com or *@*.domain.com How can I do this with regex? Any help would be greatly appreciated. Devin Atencio -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] ereg() not matching same text each time script is run...

2002-04-23 Thread John Holmes
Okay...I'm really at a loss for this... (PHP 4.0.6 on Redhat Linux) I've written a little script that shows the top referrers for http://www.falkware.com. Problem is...the script is supposed to take "www.domain.com" and strip out only the "domain" to show. It does this, but only some of the tim

Re: [PHP] Question for Linux users...

2002-04-23 Thread Jason Soza
I actually need to apologize for this post. Wasn't intended for this list. If you do feel like responding, please offlist. Sorry, Jason Soza - Original Message - From: Erik Price <[EMAIL PROTECTED]> Date: Tuesday, April 23, 2002 1:49 pm Subject: Re: [PHP] Question for Linux users... >

[PHP] Re: upload a file from a pc

2002-04-23 Thread B U Y - H P
Try this. Upload File: Please click only once and wait for confirmation /carsten "Dave" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Whats the easiest way to create a script to upload a file from my home PC to > my web server using PHP?

Re: [PHP] Question for Linux users...

2002-04-23 Thread Erik Price
On Tuesday, April 23, 2002, at 05:40 PM, Jason Soza wrote: > Anyhow, I've used both Mandrake and Slackware distros, but am now > leaning toward Debian or SuSe. If you have other suggestions or > whatever, please share. Remember, NO HOLY WARS! Offlist is okay if you > think your comments might s

Re: [PHP] PHP 4.1.2 problem with IE

2002-04-23 Thread Richard Archer
At 9:02 AM -0400 23/4/02, Dave Sugar wrote: >I disagree with your assessment of the situation being related to the >index.html. If I browse directly to >http://gdpim.glencoe.com/login/login.php (using IE 6.0 on Windows) I get an >error from IE (not from the webserver) saying 'The page cannot be

[PHP] Question for Linux users...

2002-04-23 Thread Jason Soza
Don't want to start a war or anything, so e-mail me your responses offlist if necessary, but I'd like to know what Linux distro you like best and why. I'm currently using Win2K Pro/Apache as my server platform and... Well, after 5 months I remember why I originally had Linux on there. I just

Re: [PHP] Re: {PHP] Empty $_SESSION and $_POST??

2002-04-23 Thread Erik Price
On Tuesday, April 23, 2002, at 02:28 PM, Andre Dubuc wrote: > I tried with "VALUES ($_GET['sfname'] etc, etc " and got a T_Variable > error > as you said would happen. I've yet to try what you've suggested, but > since > the "Test to ensure your PHP binary is working" shows that it is indeed

Re: [PHP] Re: Display large text fields in html

2002-04-23 Thread Jan Peuker
Ok, but true frames load very slow - not on an intra, but on internet. The select is not the problem, I use cursors to output every line. At first I did an implementation like yours but users said it's to uncomfortable (they like static VB-Tools). Then I asked JS to reload a frameset using a LIMIT

[PHP] Re: Display large text fields in html

2002-04-23 Thread Julio Nobrega Trabalhando
If you have over 1000 entries, each one with ~10 lines of text, I would go with frames. Not inline-frames, but a true frames. So each change can load the frame and show the information. Also, a with 1000 entries? Break it apart. For example make one with (imagine this is a select in your bro

Re: [PHP] Re: What's wrong with the PHPSESSID?????

2002-04-23 Thread Alexander Skwar
»Julio Nobrega Trabalhando« sagte am 2002-04-23 um 16:59:18 -0300 : > Also, on your tag, I didn't see the PHPSESSID part. Also, it's a Do a echo SID. SID contains both the session_name() and the session_id() suitable for inclusion in a GET request. > good idea to use double quotes for html e

RE: [PHP] arrays in a class

2002-04-23 Thread Leotta, Natalie (NCI/IMS)
I'm just glad it's working! It's hard to debug when you can't see what's in the arrays :-) The {} way is definitely not as nice looking - at least this way when some other poor soul works with my code they have a chance at understanding what was going on! Thanks again! -Natalie -Original

Re: [PHP] What's wrong with the PHPSESSID?????

2002-04-23 Thread Alexander Skwar
»Scott Fletcher« sagte am 2002-04-23 um 14:45:17 -0400 : > Hi! I have the PHPSESSID working on every web page except one and it baffle > me. Have anyone have this problem before? Anyone know of a way around the > problem? > > Here is what happen. On the HTML post, I use the Post String, > >

RE: [PHP] problem compiling Apche 2.0.35 and PHP 4.2.0

2002-04-23 Thread Michael Geier
I definitely think MySQL could be the problem... RPM installation of 3.23. Does anyone have any suggestions (other than installing from source)? I have a few databases running on that machine right now and would rather not have to port them over to a new installation, if I can help it. A 'wher

Re: [PHP] arrays in a class

2002-04-23 Thread Alexander Skwar
»Leotta, Natalie (NCI/IMS)« sagte am 2002-04-23 um 16:37:37 -0400 : > Wow. Now I'm feeling dumb... It does work with my non-array vars though - Yes, it doesn't suprise me that it works with non arrays. The parser doesn't seem to be clever enough to catch that you want to pass [0] as the array

Re: [PHP] Re: {PHP] Empty $_SESSION and $_POST??

2002-04-23 Thread Alexander Skwar
»Andre Dubuc« sagte am 2002-04-23 um 14:28:56 -0400 : > I tried with "VALUES ($_GET['sfname'] etc, etc " and got a T_Variable error if that's part of a string, than it's for sure broken. The correct way would be "VALUES (" . $_GET['sfname'] > non-cumulative and specific to the page from which

[PHP] Display large text fields in html

2002-04-23 Thread Jan Peuker
Hi List, I want to display large text fields if a user changes wants to, like a dictionary. for example, a php-database generated page hosts a combobox filled with ids, if a user changes it, a text otherwhere changes. Simple Javascript would you say, but what's if this combobox has about >1000 en

RE: [PHP] arrays in a class

2002-04-23 Thread Leotta, Natalie (NCI/IMS)
Wow. Now I'm feeling dumb... It does work with my non-array vars though - I guess laziness caught me. Thanks!! -Original Message- From: Alexander Skwar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 4:36 PM To: Leotta, Natalie (NCI/IMS) Cc: [EMAIL PROTECTED] Subject: Re: [PH

Re: [PHP] arrays in a class

2002-04-23 Thread Alexander Skwar
»Leotta, Natalie (NCI/IMS)« sagte am 2002-04-23 um 16:27:46 -0400 : > ImageString($this->im,1,65,5,"apcs[0] = $this->apcs[0]",$this->black); Hm, try to use proper syntax here, ie: ImageString($this->im,1,65,5,"apcs[0] = " . $this->apcs[0],$this->black); Alexander Skwar -- How to quote:

RE: [PHP] authentication

2002-04-23 Thread Fifield, Mike
If you go to a site that has a password protected directory and you access a file in that directory, you have to enter your user name and password. After you have entered your user name and password, as long as you keep the browser window open you can navigate to any other file that is in the pass

Re: [PHP] Which Database abstration layer?

2002-04-23 Thread Alexander Skwar
»Javier« sagte am 2002-04-23 um 17:09:56 -0300 : > Can anybody recomend me a "nice" DB abstraction layer that is not > included in phplib? PEAR http://pear.php.net http://php.weblogs.com/php_pear_tutorials ADOdb http://php.weblogs.com/adodb Alexander Skwar -- How to quote: http://learn.to/qu

[PHP] arrays in a class

2002-04-23 Thread Leotta, Natalie (NCI/IMS)
Do I have to do anything different to access an array in a class? I have var $apcs = array(); at the top of my class I set it using $line1->adj_array[$pos] = (integer) $value; in the read-in part of the app that uses the class ($line1 is the object, $pos is just a number) Later o

[PHP] Which Database abstration layer?

2002-04-23 Thread Javier
Can anybody recomend me a "nice" DB abstraction layer that is not included in phplib? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fw: [PHP] upload a file from a pc

2002-04-23 Thread Kevin Stone
Nope it's a bit more involved than a simple command. The easiest way would be to download a script from PHPBUILDER.COM or ZEND.COM. Many free scripts available and easy to install. Of course if you want to learn how to do this start in the php manual at PHP.NET. Good luck, Kevin - Origina

[PHP] Wich Database abstration layer?

2002-04-23 Thread Javier
Can anybody recomend me a "nice" DB abstraction layer that is not included in phplib? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP session / JavaScript conflict

2002-04-23 Thread Larry Linthicum
I am finding that the simple is causing pages with JavaScript menus to load with 'error on page" and the JavaScript to not work the session without the JavaScript seems fine, as does the JavaScript without the session ( I can do other things in PHP without conflict) Lastly... "refreshing" the

[PHP] Re: Question and PHP DOMXML and Apache

2002-04-23 Thread Christian Stocker
In <[EMAIL PROTECTED]>, Sebastian A. wrote: > Have the new DOM XML functions been included in the latest version of > PHP (4.2) when I try to use one of the new functions, such as > domxml_open_file() I get an error message saying I am calling and > undefined function. Has anyone successfully use

[PHP] Re: What's wrong with the PHPSESSID?????

2002-04-23 Thread Julio Nobrega Trabalhando
Insn't inside a function, therefore confliting with the scope? Or maybe you have to use $_GET['PHPSESSID']? Also, on your tag, I didn't see the PHPSESSID part. Also, it's a good idea to use double quotes for html element properties, & instead of &, and always echo the var instead of the shor

Re: [PHP] What's wrong with the PHPSESSID?????

2002-04-23 Thread Kevin Stone
If what you say is true then clearly the variables are being parsed correctly. And you say that it is working on other pages. So it is unlikely that the error has anything to do with PHP its self. My guess is that you have some sort of syntax error on that one page. -Kevin - Original Mess

[PHP] Re: What's wrong with the PHPSESSID?????

2002-04-23 Thread J Smith
Are you using the just-released PHP 4.2.0? A problem has been found with the sessions extension; it should be fixed soon, likely via a patch. J Scott Fletcher wrote: > Hi! I have the PHPSESSID working on every web page except one and it > baffle > me. Have anyone have this problem before?

Re: [PHP] authentication

2002-04-23 Thread Miguel Cruz
On Tue, 23 Apr 2002, Morten Ronseth wrote: > Anybody know how to revoke the HTTP authentication, i.e. log people out, > using PHP? With most browsers, you can send HTTP status 401 and re-send your realm in the WWW-Authenticate header. The browser will assume its cached credentials have become i

Re: [PHP] problem compiling Apche 2.0.35 and PHP 4.2.0

2002-04-23 Thread heinisch
My 2 eurocents, Start compiling without mysql, esoob ( what´s that??) and see if it works. - write a bug report - try to get a rpm from redhat and see if this will work. - check out which sources they used, maxbe there´s a difference to the one you have. So you can try it with the sorces from the

Re: [PHP] authentication

2002-04-23 Thread Michael Kimsal
Brian Drexler wrote: > Use javascript and close the browser, that's all I can think of. > I wasn't aware you could close an entire browser - only a specific window. If the browser instance has any open windows, I believe the authentication will still be active. Michael Kimsal http://www.ph

RE: [PHP] authentication

2002-04-23 Thread Brian Drexler
Use javascript and close the browser, that's all I can think of. -Original Message- From: Michael Kimsal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 3:04 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] authentication Morten Ronseth wrote: > Anybody know how to revoke the HTTP

RE: [PHP] urldecode(0 and urlencode()

2002-04-23 Thread Collins, Robert
you could do a stripslashes () Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 3:06 PM To: [EMAIL PROTECTED] Su

Re: [PHP] authentication

2002-04-23 Thread Michael Kimsal
Morten Ronseth wrote: > Anybody know how to revoke the HTTP authentication, i.e. log people out, > using PHP? > You can't --- Michael Kimsal http://www.phphelpdesk.com Guaranteed PHP support when you need it 734-480-9961 -- PHP General Mailing List (http:

[PHP] urldecode(0 and urlencode()

2002-04-23 Thread Anthony Ritter
In the following script, if the user types in Mike O'Hara in the name textbox the final output is: Mike O\'Hara I am using the urlencode() and urldecode() functions. If anybody can offer a suggestion how to lose the slash I would greatly appreciate it. Thanking all in advance. Tony Ritter

[PHP] upload a file from a pc

2002-04-23 Thread Dave
Whats the easiest way to create a script to upload a file from my home PC to my web server using PHP? Example - I want to copy a graphic called "TITLE.GIF" from my pc to my web page by using PHP. Is there a command to do this easily? Please help. Dave -- PHP General Mailing List (http://w

[PHP] Re: transfering a file from one host to another

2002-04-23 Thread R. Visser
Yes there is, you can use fopen() with ftp username and password like this: fopen("ftp://username:[EMAIL PROTECTED]/path/to/yourfile";, "w"); Using this you also can open files on a HTTP server with Basic Authentication, code will be then: fopen("http://username:[EMAIL PROTECTED]/path/to/your

Re: [PHP] Empty $_SESSION and $_POST??

2002-04-23 Thread Andre Dubuc
Hi Eric, First off, my apologies for the bloat replies, and for the re-write of this thread -- your last reply accidentally was deleted. My actual INSERT command (for page 1): $query = "INSERT INTO sponsor (sid, sfname, ssname, sinit, saddr1, saddr2, scity, sprov, scountry, scode, sstatus, sda

[PHP] Re: {PHP] Empty $_SESSION and $_POST??

2002-04-23 Thread Andre Dubuc
Hi Eric, First off, my apologies for the bloat replies, and for the re-write of this thread -- your last reply accidentally was deleted. My actual INSERT command (for page 1): $query = "INSERT INTO sponsor (sid, sfname, ssname, sinit, saddr1, saddr2, scity, sprov, scountry, scode, sstatus, sda

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
I have it. I actually got it! I had the if statement in the wrong place. Here is what I did: if($quantity <1) { echo "Sorry I can't seem to locate this item"; } else { //check if form has been submitted if($submit) { } else { //if the form has not been submitted run the following echo ""

Re: [PHP] authentication

2002-04-23 Thread Morten Ronseth
Anybody know how to revoke the HTTP authentication, i.e. log people out, using PHP? Cheers, -Morten --- Rayon Interactive AS http://www.rayon.no Morten Lerskau Rønseth mailto:[EMAIL PROTECTED] Karenslyst Allé 16d

[PHP] What's wrong with the PHPSESSID?????

2002-04-23 Thread Scott Fletcher
Hi! I have the PHPSESSID working on every web page except one and it baffle me. Have anyone have this problem before? Anyone know of a way around the problem? Here is what happen. On the HTML post, I use the Post String, -- clip -- -- clip -- Then on the next page, after executing hte post

Re: [PHP] authentication

2002-04-23 Thread heinisch
At 23.04.2002 09:52, you wrote: > >I have one directory that is protected with an .htaccess file on my server >where I store all member content. What I want to do is have a page where >members can log in, and after they have entered there user name and password >I what the php script to authentic

Re: [PHP] If else question

2002-04-23 Thread Jason Soza
I don't know how much this is worth, but it helped me deal with an if/else statement that was killing me. I just coded a very simple if/else statement like so: And I made SURE that worked. Once it did, I started adding things, making sure it worked after each change until I got it where I wa

Re: [PHP] If else question

2002-04-23 Thread Miguel Cruz
The form is outputting as a consequence of the condition in: if($submit) testing false. Maybe this is happening because you don't have register_globals turned on so that $submit never gets populated from the form element. miguel On Tue, 23 Apr 2002, Jennifer Downey wrote: > Ok I have har

AW: [PHP] If else question

2002-04-23 Thread Red Wingate
H. I might be wrong but : > $ret = mysql_query($query); > while($row = mysql_fetch_array($ret)) > { > $user = $row['name']; > > $query = "SELECT uid, id, iname, image, quantity, type FROM {$config["prefix"]}_my_items WHERE uid={$session["uid"]} AND id = '$id' ORDER BY id"; >

Re: [PHP] If else question

2002-04-23 Thread heinisch
Aeh, sorry - but is the 1 you test for actual a number or is it a string? I had made this mistakes earlier, so also try if ( $quantity == "1") Maybe I´m absolutely wrong, (PHP 3 knowledge) but Oliver At 23.04.2002 10:48, you wrote: >Ok you asked for it. >Don't say I didn't warn you. > >ses

[PHP] Why is ibase_fetch_object() so slow?

2002-04-23 Thread Todd Cary
The time for getting the result set from a 850,000 row table is about 1.5 seconds. The execution of the ibase_fetch_object() takes about 18 seconds. Is there any way to speed this up? Todd $start_time = getmicrotime(); $dbh = db_open($host, $user, $password); if ($dbh) { if (

[PHP] AW: [PHP-DB] auto-increment question

2002-04-23 Thread Red Wingate
You could consider to use zerofill, this would create ID's like 0001 0002 0003 etc. -Ursprüngliche Nachricht- Von: Dan Swensen [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 23. April 2002 7:22 AM An: php Betreff: [PHP-DB] auto-increment question Hi all, I'm wondering if there is a way

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
Ok I have hard coded $quantity so it does = 0 and else still prints. "Maxim Maletsky )" <[EMAIL PROTECTED]> wrote in message 004701c1eaf1$c915c6b0$92e3021a@machine52">news:004701c1eaf1$c915c6b0$92e3021a@machine52... > > Try this, Jennifer: > > Without messing the rest of your code, change the line

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
You are on the right track. "-Bd-" <[EMAIL PROTECTED]> wrote in message 00a301c1eaf3$b181a260$[EMAIL PROTECTED]">news:00a301c1eaf3$b181a260$[EMAIL PROTECTED]... > am i off on the wrong track here? i thought the original problem was that > both clauses in the if statement were exectuting (the 'if'

RE: [PHP] If else question

2002-04-23 Thread Maxim Maletsky \(PHPBeginner.com\)
Jennifer, satus! People are nervous here! Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 7:48 PM To: [EMAIL PROTECTED] Subject: Re: [PHP]

Re: [PHP] If else question

2002-04-23 Thread -BD-
am i off on the wrong track here? i thought the original problem was that both clauses in the if statement were exectuting (the 'if' and the 'else')? > Now, we're getting somewhere!!! > > First, have you printed out $query to ensure it contains what you expected? > Show us. > > Second, are y

Re: [PHP] If else question

2002-04-23 Thread Richard Emery
Now, we're getting somewhere!!! First, have you printed out $query to ensure it contains what you expected? Show us. Second, are you certain the mysql_query() is successful? I ask, because you don't have the "or die()" that SHOULD be on all queries. Third, have you printed out all the values f

RE: [PHP] If else question

2002-04-23 Thread Maxim Maletsky \(PHPBeginner.com\)
Try this, Jennifer: Without messing the rest of your code, change the line: $quantity = $row['quantity']; With this one: $quantity = 0; In other words: hardcode it for testing. If "else" always prints, then you are missing something in your query. Otherwise y

AW: [PHP] MSSQL help w/ auto_increment

2002-04-23 Thread Red Wingate
Try : news_id int(11) auto_increment -Ursprüngliche Nachricht- Von: Miguel Cruz [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 23. April 2002 5:16 PM An: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Betreff: Re: [PHP] MSSQL help w/ auto_increment Unfortunately there is a lot of variation from

RE: [PHP] If else question

2002-04-23 Thread Maxim Maletsky \(PHPBeginner.com\)
Oh well. The line I mentioned was not the right one. I misSAW your comment. Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 7:48 PM To:

  1   2   >