Re: [PHP] Temporarily turning off magic quotes?

2001-02-24 Thread mwaples
Ben Cheng wrote: > > If I have magic quotes turned on for post/get/etc. in my php.ini, is > there any way to temporarily turn it off for one page? For example, > I have a preview page inbetween my data entry page and the page that > actually saves to db. I don't want magic quotes turned on when

Re: [PHP] isset()

2001-02-24 Thread Mark Maggelet
On Sat, 24 Feb 2001 17:51:07 +0100, Christian Reiniger ([EMAIL PROTECTED]) wrote: >On Saturday 24 February 2001 17:18, PHPBeginner.com wrote: >> in my preceding email I've written: >> >> if($var!='') >> >> will fix your all your worries without an intervention of a strings >> function. > >Except t

Re: [PHP] Unwanted Characters

2001-02-24 Thread mwaples
Clayton Dukes wrote: > > How do I remove unwanted/unprintable characters from a variable? > > $sometext = "ThÀe cØar röøan over mÖy dog" > needs to be filtered and reprinted as: > "The car ran over my dog" > > Thanks :-) > Clayton Dukes will print what you asked - of course you may not want

Re: [PHP] Cookie References?

2001-02-24 Thread mwaples
Jeff Oien wrote: > > Could you give me some URLs for tutorials related > to cookies and good reference material? www.cookiecentral.com/faq/ has some good general info rfc2109 - more technical but useful http://www.cis.ohio-state.edu/htbin/rfc/rfc2109.html > > One question I have is can a cook

Re: [PHP] really weird html - was "extract() help"

2001-02-24 Thread Jaxon
gak. everyone ignore me. idiocy is setting in this late at night. stoopid me put a tag INSIDE the loop. and thanks CC Zona for the pointer on the var_dump() - very helpful! regards, jaxon On 2/25/01 2:38 AM, "Jaxon" <[EMAIL PROTECTED]> wrote: > I replaced extract() with $row[] - much better.

Re: [PHP] Unwanted Characters

2001-02-24 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Joe Stump) wrote: > Look at the chr() function - figure out what the character is (number wise) > and > then do an ereg_replace(chr(),'',$string) (from the hip - you can do a > replace > with chr() on one of the replaces, I've done it before)

[PHP] really weird html - was "extract() help"

2001-02-24 Thread Jaxon
I replaced extract() with $row[] - much better. Now I have the strangest thing happening - the html formatting only applies to the first iteration in the loop, even though it shows up in the html source!! regard, jaxon html generation: for ($i = 1; $i <= 5; $i++)

Re: [PHP] extract() help

2001-02-24 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jaxon) wrote: > the following function is supposed to build an html table, creating a > content row for every row in a database table. It is creating a table with > the correct number of rows, but NO content is being echoed... > $sql="

Re: [PHP] session_register in function

2001-02-24 Thread Jeff Lacy
I had this same exact problem just today. It all stems from the variable namespace, I think A similar code 'snippet' is shown below. I just made it up, but I think it illustrates my point. Good luck with whatever you are doing, Jeff Lacy ""Jon Rosenberg"" <[EMAIL PROTECTED]> wrote in

[PHP] extract() help

2001-02-24 Thread Jaxon
Hi PHPers, the following function is supposed to build an html table, creating a content row for every row in a database table. It is creating a table with the correct number of rows, but NO content is being echoed... I think I must be using the extract() function inside the for loop wrong... a

[PHP] MYSQL HELP!!!

2001-02-24 Thread Felipe Lopes
Hi! Here I am again...I have a problem to insert user name, password and host into mysql...I'd like to know what commands I need to do that (since the command to start mysql on my computer) so that way I won't be able to do anything wrong! Thank you Felipe Lopes MailBR - O e-mail do Bras

Re: [PHP] Escaping double quotes?

2001-02-24 Thread Joe Stump
addslashes() usually works for me... --Joe On Sun, Feb 25, 2001 at 01:46:30AM -0500, Ben Cheng wrote: > How do you escape double quotes? I have the following which is > supposed to make any " in a string into \" but it doesn't seem to > work. What's wrong with it? > > $tmp_string = str_repl

[PHP] Escaping double quotes?

2001-02-24 Thread Ben Cheng
How do you escape double quotes? I have the following which is supposed to make any " in a string into \" but it doesn't seem to work. What's wrong with it? $tmp_string = str_replace ("\"", "\\\"", $tmp_string); -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] php and apache 2.0

2001-02-24 Thread jeremy
will php 4.0.4 build as a module with apache 2.0? - jeremy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Unwanted Characters

2001-02-24 Thread Joe Stump
Look at the chr() function - figure out what the character is (number wise) and then do an ereg_replace(chr(),'',$string) (from the hip - you can do a replace with chr() on one of the replaces, I've done it before) --Joe On Sun, Feb 25, 2001 at 12:34:21AM -0500, Clayton Dukes wrote: > > How do

[PHP] Unwanted Characters

2001-02-24 Thread Clayton Dukes
How do I remove unwanted/unprintable characters from a variable? $sometext = "ThÀe cØar röøan over mÖy dog" needs to be filtered and reprinted as: "The car ran over my dog" Thanks :-) Clayton Dukes

Re: [PHP] Detecting JavaScript

2001-02-24 Thread Mitchell Hagerty
wps didn't check to see what was in my paste buffer sorry: http://www.asphyxia.com/ mitch - Original Message - From: Ed Lazor <[EMAIL PROTECTED]> Date: Saturday, February 24, 2001 11:12 pm Subject: Re: [PHP] Detecting JavaScript > I couldn't find anything about phpclient sniffer o

Re: [PHP] Temporarily turning off magic quotes?

2001-02-24 Thread Zeev Suraski
You can do it using .htaccess (or equivalent) directive: php_flag magic_quotes_gpc off On Sat, 24 Feb 2001, Ben Cheng wrote: > If I have magic quotes turned on for post/get/etc. in my php.ini, is > there any way to temporarily turn it off for one page? For example, > I have a preview page

Re: [PHP] Detecting JavaScript

2001-02-24 Thread Mitchell Hagerty
I think phpclient sniffer can do that... found here: http://www.php.net/manual/en/ref.imap.php mitch - Original Message - From: Jochen K?chelin <[EMAIL PROTECTED]> Date: Saturday, February 24, 2001 10:37 pm Subject: [PHP] Detecting JavaScript > Who can give me a PHP-Script to > detect

php-general Digest 25 Feb 2001 04:49:28 -0000 Issue 532

2001-02-24 Thread php-general-digest-help
php-general Digest 25 Feb 2001 04:49:28 - Issue 532 Topics (messages 41497 through 41541): Re: Class methods in PHP 41497 by: Christian Reiniger 41501 by: Kevin Beckford 41505 by: Aaron Tuller Re: isset() 41498 by: Christian Reiniger Re: DIsplaying page bef

[PHP] Temporarily turning off magic quotes?

2001-02-24 Thread Ben Cheng
If I have magic quotes turned on for post/get/etc. in my php.ini, is there any way to temporarily turn it off for one page? For example, I have a preview page inbetween my data entry page and the page that actually saves to db. I don't want magic quotes turned on when going from the data ent

[PHP-CVS] cvs: php4 /ext/imap config.m4 php_imap.c php_imap.h

2001-02-24 Thread Dan Kalowsky
kalowskySat Feb 24 20:41:19 2001 EDT Modified files: /php4/ext/imap config.m4 php_imap.c php_imap.h Log: Updating the IMAP client to include quota support via the imap c-client2000 libraries. # Y2K support is good... Removes the SA_QUOTA and SA_Q

Re: [PHP] generate e.g. circles on the fly with coordinates for postioning

2001-02-24 Thread Joe Conway
>Subject: [PHP] generate e.g. circles on the fly with coordinates for postioning > >Can php + what modules do this and >has anybody succeeded to do something like the followingbefore? > >I want to generate simple images on the fly, e.g. a 50px circle on a transparent background of 200x200 px usin

[PHP] Detecting JavaScript

2001-02-24 Thread Jochen Kächelin
Who can give me a PHP-Script to detect if JavaScript is enabled? It should work with both, IE and NN! thanks -- Ihr WEBberater Stuttgarter Str.3, D-73033 Göppingen Tel. +49(0)7161-929594 - Fax. +49(0)7161-929598 http://www.wa-p.de ** mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http

[PHP] generate e.g. circles on the fly with coordinates for postioning

2001-02-24 Thread Helmut Ott
Can php + what modules do this and has anybody succeeded to do something like the followingbefore? I want to generate simple images on the fly, e.g. a 50px circle on a transparent background of 200x200 px using php. I want to position the circle on the background using x and y coodinates. Is

[PHP] Detecting if JavaScript is enabled

2001-02-24 Thread Jochen Kächelin
Who can give me a PHP-Script to detect if JavaScript is enabled? It should work with both, IE and NN! thanks -- Ihr WEBberater Stuttgarter Str.3, D-73033 Göppingen Tel. +49(0)7161-929594 - Fax. +49(0)7161-929598 http://www.wa-p.de ** mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http

[PHP] compiling in imap probs

2001-02-24 Thread Mitchell Hagerty
ok last email from me for awhile :) everyone on this list has been great and i've gotten some great tips and advise! tks i'm trying to compile in imap support --with-imap freebsd 4.2 apache_1.3.14 php4.0.4pl1 followed the directions on http://www.php.net/manual/en/ref.imap.php and php compiled

Re: [PHP] comparing numbers

2001-02-24 Thread Clayton Dukes
Ahh, cool, thanks :-) - Original Message - From: "Joe Stump" <[EMAIL PROTECTED]> To: "Clayton Dukes" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, February 24, 2001 10:03 PM Subject: Re: [PHP] comparing numbers > just replace the [] with () > > if($id <= 59) > { > $id =

[PHP] PHP4 install question

2001-02-24 Thread Ed Lazor
I've had PHP installed through the RedHat RPMS listed below. php-imap-4.0.4pl1-3 php-manual-4.0.4pl1-3 php-4.0.4pl1-3 php-ldap-4.0.4pl1-3 php-mysql-4.0.4pl1-3 Unfortunately, I discovered there's a bug in this version, so I need to remove the rpms and install PHP by compiling the source. I've b

RE: [PHP] comparing numbers

2001-02-24 Thread David Harrison
Do you mean something like: --dave -Original Message- From: Clayton Dukes [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 25, 2001 12:54 PM To: [EMAIL PROTECTED] Subject: [PHP] comparing numbers How can I do something like the following shell script, in PHP? (I know this won't w

Re: [PHP] comparing numbers

2001-02-24 Thread Joe Stump
just replace the [] with () if($id <= 59) { $id = 81; } --Joe On Sat, Feb 24, 2001 at 09:54:08PM -0500, Clayton Dukes wrote: > > How can I do something like the following shell script, in PHP? (I know this won't >work normally, but you get the idea). > > if [ $id <= 59 ]; then > $id=81 >

[PHP] comparing numbers

2001-02-24 Thread Clayton Dukes
How can I do something like the following shell script, in PHP? (I know this won't work normally, but you get the idea). if [ $id <= 59 ]; then $id=81 TIA! Clayton Dukes

Re: [PHP]

2001-02-24 Thread Kath
Don't forget to close the . Netscape doesn't like it without that sometimes. - Kath - Original Message - From: "PHPBeginner.com" <[EMAIL PROTECTED]> To: "Peter Houchin" <[EMAIL PROTECTED]>; "PHP MAIL GROUP" <[EMAIL PROTECTED]> Sent: Saturday, February 24, 2001 1:16 AM Subject: RE: [PHP]

Re: [PHP] Database Paging using MSSQL 2000

2001-02-24 Thread Manuel Lemos
Hello Ankur, On 21-Feb-01 06:09:04, you wrote: >I am implementing a database application using PHP4 and MSSQL2000. I have a >database table which has a large no. of tuples. I want to display the data in >the form of pages with Prev Next buttons. >I wanted to know if there is some syntax in the

Re: [PHP] Please help - File Uploads, 2nd try

2001-02-24 Thread Koncz Ádám
Sorry, wrong link was added in my prev mail. > To find a _possible_ patch visit: http://marc.theaimsgroup.com/?l=php-dev&m=98233943916254&w=2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

Re: [PHP] Please help - File Uploads, 2nd try

2001-02-24 Thread Koncz Ádám
As Ed Lazor wrote: > I upgraded my web server and now file uploads don't work. A test script is > listed below. It puts the file on the server, but the file has > Content-Type: image/pjpeg^M > ^M > pre-pended to it, thus breaking the file. Do you know why it's doing this > and how to fix it?

Re: [PHP] Please help - File Uploads, 2nd try

2001-02-24 Thread Ed Lazor
At 06:44 PM 2/24/2001 +, Gustavo Vieira Goncalves Coelho Rios wrote: >Ed Lazor wrote: > > > > I upgraded my web server and now file uploads don't work. A test script is > > listed below. It puts the file on the server, but the file has > > > > Content-Type: image/pjpeg^M > > ^M > > > > pre-p

[PHP] persistant user tracking

2001-02-24 Thread Mitchell Hagerty
What are some methods for persistant user tracking? I need to limit the number of times a person can search for certain material without forcing them to create a login. Currently I am using cookies to limit the number of searches a person can do but, quiting and removing the cookie file ea

Re: [PHP] C vs PHP

2001-02-24 Thread Michael Kimsal
http://www.zend.com/zend/art/under-php4-hood.php and http://www.zend.com/zend/art/ref-count.php are articles that go into a bit more depth on this topic. Maybe not as detailed as you'd like, but they explain a bit more about how/why "PHP does it for you" is a valid reply to your question. Gusta

Re: [PHP] Cookie References?

2001-02-24 Thread php3
Addressed to: <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from <[EMAIL PROTECTED]> Sat, 24 Feb 2001 16:42:09 -0600 > > Could you give me some URLs for tutorials related > to cookies and good reference material? Not directly, but there are a number of tutorial links at:

Re: [PHP] checking $more still does not work !

2001-02-24 Thread Simon Garner
From: "Web Admin" <[EMAIL PROTECTED]> > Hi Kaab, > There must be another problem, it should work. Maybe it helps if > you send your code here. To see how a simple script works, try > this tiny script named test.php: > > > > > if ($more) {print "Submit is pressed"; }; > ?> > > If you first

Re: [PHP] $result = $$function

2001-02-24 Thread Simon Garner
From: "Peter Van Dijck" <[EMAIL PROTECTED]> > Hi, > I'd like to do: > $function = "build_result()"; > $result = $$function; > but it doesn't seem to work. Try: Cheers Simon Garner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Cookie References?

2001-02-24 Thread Jeff Oien
Could you give me some URLs for tutorials related to cookies and good reference material? One question I have is can a cookie never expire? Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] T

[PHP] Inserting user name and password into mysql...

2001-02-24 Thread Felipe Lopes
Hi! Here I am again...I have a problem to insert user name, password and host into mysql...I'd like to know what commands I need to do that (since the command to start mysql on my computer) so that way I won't be able to do anything wrong! Thank you Felipe Lopes MailBR - O e-mail do Bras

RE: [PHP] C vs PHP

2001-02-24 Thread James Moore
> As you may know, C does not provide any kind of support for garbage > collection, every thing you want to be done you have to tell (in C) by > yourself. But in PHP i have no ideia about how it manages memory. for > instance: You dont need to worry about mem mangement as PHP does it all for you

Re: [PHP] Using while as for...

2001-02-24 Thread Steve Edberg
At 12:44 PM -0800 2/24/01, Felipe Lopes wrote: >I was trying to code the following script using while instead of for, >but I'm havig a lot of problems...Is it possible to do what I want? > >for ($count = 0; $count <= 10; $count++){ >echo "Number is $count \n"; >} > >Could anyone tell me how is it

Re: [PHP] Please help - File Uploads, 2nd try

2001-02-24 Thread Gustavo Vieira Goncalves Coelho Rios
Ed Lazor wrote: > > I upgraded my web server and now file uploads don't work. A test script is > listed below. It puts the file on the server, but the file has > > Content-Type: image/pjpeg^M > ^M > > pre-pended to it, thus breaking the file. Do you know why it's doing this > and how to fix

[PHP] searching Oracle 8i CLOB columns

2001-02-24 Thread Chris Murtland
Does anyone have any example code for searching Oracle 8i CLOB fields? Do I have to create a stored procedure to be able to do this? I want to be able to search a separate varchar column in addition to searching the CLOB column. Thanks, Chris Chris Murtland Studio Moxie, L

[PHP] CLOB update difficulties

2001-02-24 Thread Chris Murtland
Hello, I am trying to update an Oracle 8i CLOB field. I have looked at previous messages on the list and am trying the following: $sql="update murtland.articles set title='$title',release_date=TO_DATE('$release_date','-MM-DD'),body=:body text,sections='$sections',mod_date=TO_DATE('$m

[PHP] C vs PHP

2001-02-24 Thread Gustavo Vieira Goncalves Coelho Rios
Hi folks! I am a used C programmer and now my company decide to switch every non performance critical web stuf to php. Since i am just a php beginner i have some questions i could not find anywhere! As you may know, C does not provide any kind of support for garbage collection, every thing you w

[PHP] Please help - File Uploads, 2nd try

2001-02-24 Thread Ed Lazor
I upgraded my web server and now file uploads don't work. A test script is listed below. It puts the file on the server, but the file has Content-Type: image/pjpeg^M ^M pre-pended to it, thus breaking the file. Do you know why it's doing this and how to fix it? -Ed File Upload T

Re: [PHP] file handle error? or something else?

2001-02-24 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("rick - SomersNet, Inc.") wrote: > $sp=fsockopen($host,80) or brake; > socket_set_timeout($sp, 600) or brake; > fputs($sp,"GET $filename HTTP/1.1\n") or brake; Hmm. What's that 'or brake' stuff? 'brake' is used as a constant, b

[PHP-CVS] cvs: php4 /ext/standard datetime.c

2001-02-24 Thread Sascha Schumann
sas Sat Feb 24 13:18:29 2001 EDT Modified files: /php4/ext/standard datetime.c Log: Don't assume that tzname exists, if tm_zone does not exist. PR: #9380 Index: php4/ext/standard/datetime.c diff -u php4/ext/standard/datetime.c:1.66 php4/ext/standar

[PHP-CVS] cvs: php4 /main network.c

2001-02-24 Thread Sascha Schumann
sas Sat Feb 24 13:14:18 2001 EDT Modified files: /php4/main network.c Log: Declare inet_aton properly, if the system lacks support for it. PR: #9382 Index: php4/main/network.c diff -u php4/main/network.c:1.14 php4/main/network.c:1.15 --- php4/main/

[PHP] file handle error? or something else?

2001-02-24 Thread rick - SomersNet, Inc.
Hello All... I wanted to write a program that would search google for specific keywords from my database, and report to me if it found my domain, and if so what page it was on. Well it works, and it's very cool I might add, but then it fails... :( But it doesn't fail right away.. I have had

[PHP-CVS] cvs: php4 /ext/midgard mgd_internal.h midgard.c oop.c php_midgard.h

2001-02-24 Thread David Guerizec
davidg Sat Feb 24 13:12:11 2001 EDT Modified files: /php4/ext/midgard mgd_internal.h midgard.c oop.c php_midgard.h Log: fixed the error reporting. added custom log to the lib Index: php4/ext/midgard/mgd_internal.h diff -u php4/ext/midgard/mgd_internal.h

[PHP-CVS] cvs: php4 /ext/standard basic_functions.c php_ext_syslog.h syslog.c /main php_syslog.h

2001-02-24 Thread Sascha Schumann
sas Sat Feb 24 13:08:15 2001 EDT Modified files: /php4/ext/standard basic_functions.c php_ext_syslog.h syslog.c /php4/main php_syslog.h Log: Actually compile on systems without syslog. PR: #9412 Index: php4/ext/standard/basic_functions.c diff

[PHP-CVS] cvs: php4 /sapi/cgi cgi_main.c

2001-02-24 Thread Sascha Schumann
sas Sat Feb 24 13:07:07 2001 EDT Modified files: /php4/sapi/cgi cgi_main.c Log: php_register_command_line_global_vars only needs file scope. Index: php4/sapi/cgi/cgi_main.c diff -u php4/sapi/cgi/cgi_main.c:1.92 php4/sapi/cgi/cgi_main.c:1.93 --- php4

[PHP-CVS] cvs: php4 /sapi/cgi cgi_main.c /sapi/servlet servlet.c

2001-02-24 Thread Sascha Schumann
sas Sat Feb 24 13:05:01 2001 EDT Modified files: /php4/sapi/cgi cgi_main.c /php4/sapi/servlet servlet.c Log: Neither the CGI nor the Servlet SAPI module call syslog, so remove references to the syslog include files. Index: php4/sapi/cgi/cgi_

[PHP] function mail

2001-02-24 Thread Augusto Cesar Castoldi
$sent=mail("[EMAIL PROTECTED]", $subject, $msg, $from); if $sent==1 --> the e-mail was sent if $sent==0 --> problem when sending e-mail?? how this works? When the function mail will have a problem? if the "to" mail are wrong? regards, Augusto Cesar Castoldi -- PHP General Mailing List (

[PHP-CVS] cvs: php4 /ext/ircg ircg.c

2001-02-24 Thread Sascha Schumann
sas Sat Feb 24 12:37:20 2001 EDT Modified files: /php4/ext/ircg ircg.c Log: Replace the sixth and seventh parameter of ircg_pconnect() with a connection-detail array. Currently, you can set realname, password, ident. Those information are used dur

Re: [PHP] Help with mass import to MySQL using PHP

2001-02-24 Thread Clayton Dukes
the first field, ID, is just for keeping a standard sequence and isn't called from any web pages. The second ($docid) is a random field which is called from a web page, which makes it harder (if not impossible) to guess/hack. This makes it a bit more secure. A note about the old docid #'s, my int

Re: [PHP] Help with mass import to MySQL using PHP

2001-02-24 Thread Clayton Dukes
1. Local Server 2. Either one, I'm trying to learn PHP 3. Yes, this is just a project for which I am not making any money, but I can pay someone in respect and admiration ;-) - Original Message - From: Todd Pillars To: Clayton Dukes Sent: Saturday, February 24, 2001 2:25 PM

[PHP] parsing multiple xml documents

2001-02-24 Thread Daniel Convissor
Hi Folks: I just wrote a basic XML parser using the parse_xml() function set. Does what I want on the first document. But, if I try to run a second document through, it chokes saying "junk after document element." All of the files are valid and parse okay if I just send one file through. Also

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-02-24 Thread Sascha Schumann
sas Sat Feb 24 11:53:41 2001 EDT Modified files: /CVSROOTgen_acl_file.m4 avail Log: php-gtk karma for zimt Index: CVSROOT/gen_acl_file.m4 diff -u CVSROOT/gen_acl_file.m4:1.104 CVSROOT/gen_acl_file.m4:1.105 --- CVSROOT/gen_acl_file.m4:1.104 Sat

Re: [PHP] Class methods in PHP

2001-02-24 Thread Aaron Tuller
that's not true. you can call a static method with the "::" notation. like ClassName::method(); there's doesn't need to be an instance to do that. not sure if that's true for all of PHP4 or just 4.04 or whatnot. -aaron At 11:56 AM -0500 2/24/01, Kevin Beckford wrote: >Well I meant class func

Re: [PHP] Help with mass import to MySQL using PHP

2001-02-24 Thread richard merit
No answer, but a question. I noticed you're using, in effect, two id's for each entry, a id number and a doc id number. The first is accomplished thru auto-increment. Wouldn't it be easier to us just one id number, a=LAST_INSERT_ID(id+b) and reserve the first 10k numbers (b), whatever is needed

[PHP] Help with mass import to MySQL using PHP

2001-02-24 Thread Clayton Dukes
Hi everyone,   I'm working on converting my site to PHP/MySql.     I need to figure out a way to import several thousand text files into the database while applying certain PHP functions to them.     From now on, when a user submits a new document, it gets a random docid assigned to it using

[PHP] Fwd: Binding A Socket

2001-02-24 Thread Kyndig
I posted this message, but it never went through: Not sunny on this end, abit drab today, I'm workin up a socket bind for a MUD game. Heh, why not, nothin ta do wright now. I've taken the main socket() call off of php.net page as an example to bind a port. The script functions, but when I tel

Re: [PHP] Class methods in PHP

2001-02-24 Thread Kevin Beckford
Well I meant class functions that do not need an object to be declared... but don't worry about it - I found out. There are none in php. - Original Message - From: "Christian Reiniger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>out Sent: Saturday, February 24, 2001 11:49 AM Subject: Re: [

Re: [PHP] DIsplaying page before script finnished

2001-02-24 Thread Fredrik Wahlberg
I think if you use flush() you can send it continually. Rembember to end every line or the browser will not understand that it shall show it. Tables can also give you problems, they do not show until they are closed. /Fredrik On Sat, 24 Feb 2001, David Tandberg-Johansen wrote: > Hello! > > I wo

RE: [PHP] DIsplaying page before script finnished

2001-02-24 Thread James Moore
> -Original Message- > From: David Tandberg-Johansen [mailto:[EMAIL PROTECTED]] > Sent: 24 February 2001 16:34 > To: [EMAIL PROTECTED] > Subject: [PHP] DIsplaying page before script finnished > > > Hello! > > I wonder if there are any way to display the page before the script is > finish

Re: [PHP] isset()

2001-02-24 Thread Christian Reiniger
On Saturday 24 February 2001 17:18, PHPBeginner.com wrote: > in my preceding email I've written: > > if($var!='') > > will fix your all your worries without an intervention of a strings > function. Except that it will throw a warning in PHP4 if $var is not set. => isset () should be used. -- Ch

Re: [PHP] Class methods in PHP

2001-02-24 Thread Christian Reiniger
On Saturday 24 February 2001 17:05, Kevin Beckford wrote: > Is there class methods in php? Well, there are classes, classes can have methods, there are methods to handle classes, methods to inspect methods, methods to inspect classes and propably more. I have no idea what you mean with your qu

php-general Digest 24 Feb 2001 16:44:33 -0000 Issue 531

2001-02-24 Thread php-general-digest-help
php-general Digest 24 Feb 2001 16:44:33 - Issue 531 Topics (messages 41431 through 41496): Re: Download PHP from Linux machine? 41431 by: Simons 41437 by: ..s.c.o.t.t.. Re: Using while as for... 41432 by: ..s.c.o.t.t.. 41436 by: Andrew Hill 41438 by:

Re: [PHP] DIsplaying page before script finnished

2001-02-24 Thread Kevin Beckford
try using flush() - Original Message - From: "David Tandberg-Johansen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 24, 2001 11:34 AM Subject: [PHP] DIsplaying page before script finnished : Hello! : : I wonder if there are any way to display the page before the s

Re: [PHP] DIsplaying page before script finnished

2001-02-24 Thread Kyndig
On Sat, 24 Feb 2001, David Tandberg-Johansen wrote: > Hello! > > I wonder if there are any way to display the page before the script is > finished? > > I have a loop in my script,and I want to display the resoult for each loop. Try the REFRESH meta tag > > Thanks > > David :-) > > > > --

[PHP] DIsplaying page before script finnished

2001-02-24 Thread David Tandberg-Johansen
Hello! I wonder if there are any way to display the page before the script is finished? I have a loop in my script,and I want to display the resoult for each loop. Thanks David :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

[PHP] session_register in function - addendum

2001-02-24 Thread Jon Rosenberg
The code snippet below is from a file that is the post action of a login form the login form also has session_start(); - Original Message - From: "Jon Rosenberg" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Saturday, February 24, 2001 11:16 AM Subject: [PHP] session_regist

Re: [PHP] Can't connect php to mysql on linux

2001-02-24 Thread php3
Addressed to: "George Alexander" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "George Alexander" <[EMAIL PROTECTED]> 24 Feb 2001 05:40:59 - > > Hi, > > I working on Redhat Linux 6.1 and I've installed > MySQL-3.23.33-1.i386.rpm and MySQL-client-3.23.33-1.i386.r

[PHP] session_register in function

2001-02-24 Thread Jon Rosenberg
The variable I register before the function becomes available in the session to other pages...the variable I register inside the function are not accessible in the session to ohter pages. Is this normal? How can I work around this? Thanks! PHP4.0.4pl1 on Linux. sample code: -- PHP Genera

RE: [PHP] isset()

2001-02-24 Thread PHPBeginner.com
in my preceding email I've written: if($var!='') will fix your all your worries without an intervention of a strings function. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- Fro

[PHP] Class methods in PHP

2001-02-24 Thread Kevin Beckford
Is there class methods in php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] getting result set of a stored procedure

2001-02-24 Thread Kevin Beckford
I have been working with mysql for a while, and now I am working with Sybase ASE. I have some stored procedures that I can run, but I would like to know how to access the result set of such a call. In mysql, the result set is just another table, and I can fetch it as a hash or object to get what I

Re: [PHP] isset()

2001-02-24 Thread Joe Stump
For the last time - put an input box on a page and submit with NOTHING in the box. Now I want SOMETHING in that box (like a name) - isset() will return true even though it's empty. --Joe On Sat, Feb 24, 2001 at 04:32:11PM +0900, PHPBeginner.com wrote: > Whatever they input is not the objects, ri

Re: [PHP] status page between submit and results

2001-02-24 Thread Web Admin
Here?! Sunny today! ;-) I highly suggest you use client side scripting in this case. onLoad Event handler. A load event occurs when Navigator finishes loading a window or all frames within a tag. The onLoad event handler executes JavaScript code when a load event occurs. Here's a sample code

[PHP] status page between submit and results

2001-02-24 Thread Mitchell Hagerty
Blizzard here, hows the weather there? :) The website I am working on has several forms, a search, and a login that can take close to a minute depending on much traffic it is recieving. I've noticed on other sites ("paypal" for instance) that when you submit it throws up a "loading..." page

Re: [PHP] redirect to another page not using headers

2001-02-24 Thread Joe Njeru
HI, why don't you implement some client side script in your page for example: echo ("function Relod1(){window.location='your.php?url=default.php';}") Joe Njeru, Nairobi Kenya ""kaab kaoutar"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi! > i'm working

Re: RE: [PHP] special characters with perl,mysql,php

2001-02-24 Thread Christian Reiniger
On Saturday 24 February 2001 07:49, Mitchell Hagerty wrote: > The special character I'm concerned with at the moment is the back tick > ` which mysql doesn't like on an insert. I was looking for a way not to > parse the entire file evertime I inserted or extracted them from the > database. Its sim

Re: [PHP] checking $more still does not work !

2001-02-24 Thread Web Admin
Hi Kaab, There must be another problem, it should work. Maybe it helps if you send your code here. To see how a simple script works, try this tiny script named test.php: Submit is pressed"; }; ?> If you first load the php page, you don't see anything rather than a submit button. If you press

Re: [PHP] $result = $$function

2001-02-24 Thread Web Admin
Hi, I didn't get why you haven't used this: switch $var case something: $result=$build_result(); break; case somethingelse: $result=$build2(); break; blah blah blah... Ahmad - Original Message - From: Peter Van Dijck To: php gen list Sent: Saturday, February 24, 2001 4:0

[PHP] checking $more still does not work !

2001-02-24 Thread kaab kaoutar
Hi! i have a submit button called "more" in a page that calles itself i try to check whether the page was just loaded or called by clicking on that button using : if ($more) {echo "hi";} it never echo hi any idea ? Thanks ___

Re: [PHP] Change dir mode to writable for uploading..

2001-02-24 Thread Web Admin
Hi Dhaval, You said in your previous e-mail 'C:\'. Are you using a NT based server or Unix based? If your server is a unix based one, consider trying this command: chmod 777 /path/to/directory Warning, this is a bit dangerous and might be vulnerable, are you running your webserver with nobody? Any

[PHP-CVS] cvs: php4 /ext/midgard page.c

2001-02-24 Thread David Guerizec
davidg Sat Feb 24 05:42:00 2001 EDT Modified files: /php4/ext/midgard page.c Log: fixed a possible memory leak Index: php4/ext/midgard/page.c diff -u php4/ext/midgard/page.c:1.7 php4/ext/midgard/page.c:1.8 --- php4/ext/midgard/page.c:1.7 Thu Feb 22 09:

[PHP-CVS] cvs: php4 /ext/midgard article.c calendar.c event.c person.c topic.c

2001-02-24 Thread David Guerizec
davidg Sat Feb 24 05:39:30 2001 EDT Modified files: /php4/ext/midgard article.c calendar.c event.c person.c topic.c Log: fixed some possible memory leaks. Index: php4/ext/midgard/article.c diff -u php4/ext/midgard/article.c:1.7 php4/ext/midgard/article.c

[PHP] redirect to another page not using headers

2001-02-24 Thread kaab kaoutar
Hi! i'm working on Windows NT workstation with PWS§ Therefore header does not work ! but i want to redirect to another page! any server isde idea ? Thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail

[PHP] splitting email on MIME format

2001-02-24 Thread n e t b r a i n
Hi all, anyone could show me how to split an multi-part email in mime format using imap funct? I need to take an email in html format with embedded images and store its html,text and etc. in a mysql db simple script, class, tutorial or specified howto are very welcomed many thanks in advan

[PHP-CVS] cvs: php4 /sapi/aolserver README

2001-02-24 Thread Sascha Schumann
sas Sat Feb 24 05:14:27 2001 EDT Modified files: /php4/sapi/aolserverREADME Log: Change the default to assumption that people don't use AOLserver 3.0 anymore. Index: php4/sapi/aolserver/README diff -u php4/sapi/aolserver/README:1.4 php4/sapi/aols

[PHP-CVS] cvs: php4 /ext/ircg ircg.c

2001-02-24 Thread Sascha Schumann
sas Sat Feb 24 04:37:19 2001 EDT Modified files: /php4/ext/ircg ircg.c Log: Add the ability to set a connection password Index: php4/ext/ircg/ircg.c diff -u php4/ext/ircg/ircg.c:1.34 php4/ext/ircg/ircg.c:1.35 --- php4/ext/ircg/ircg.c:1.34 Wed Feb

[PHP] $result = $$function

2001-02-24 Thread Peter Van Dijck
Hi, I'd like to do: $function = "build_result()"; $result = $$function; but it doesn't seem to work. The reason why I think I need it is that I have a generic function, but within it I have to call another function depending on who called it. I could build a switch within the generic function de

  1   2   >