RE: [PHP] Variable Next To Variable?

2001-07-11 Thread Matthew Luchak
how about : if ((isset($number ))&&($number <= $max)){ while ($number > 0;$number -- ) { echo 'Last Name';} } if you're not crazy about having the fields labled in reverse order you could push to an array and then arsort the array. Ma

RE: [PHP] Mail Bcc to a $variable?

2001-07-11 Thread Chadwick, Russell
Yeah, and it might even be picky about the spacing BCC: $recipients\n whenever I've had a mail problem, its solved by viewing the headers. See if your BCC is making it into the headers and then make sure its spaced like the other fields or the mail server/client may not be using the field. >Fr

Re: [PHP] Mail Bcc to a $variable?

2001-07-11 Thread Marcus James Christian
Like this... $headers = "From: Me <[EMAIL PROTECTED]>\nBCC:$recipients\n"; Or somewhere else? Thanks, Marcus Russell Chadwick wrote: > Try a newline at the end of $headers > > -Original Message- > From: Marcus James Christian [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 200

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread Chadwick, Russell
you should make the form names C_Last_Name1, C_Last_Name2, C_Last_Name3 and then have a hidden variable saying the maximum, then make a small routine on the receiving page which loops 1 to the max and uses array_push to make an array of children names. Check for empty() so that way is someone f

RE: [PHP] Speed of loding PHP pages

2001-07-11 Thread scott [gts]
well... ahem... netscape 4.x is 1996-97 technology. 4-5 years since the last major release of netscape is an eternity of internet time in those years, microsoft has been pouring money and time into their browser no duh it kicks the crap outta netscape 4.x :) > -Original Message

RE: [PHP] Duplication Results When LEFT JOIN is Used Between MultipleTables

2001-07-11 Thread Chadwick, Russell
Sounds like you want a GROUP BY bibID, then you'll have to put group by functions on all the items you are selecting. -Original Message- From: Mike Gifford [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 10:00 AM To: Kamil Choma Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Duplicat

RE: [PHP] Function call from a hyperlink

2001-07-11 Thread scott [gts]
i agree that putting it all into one file is usually bad form, but for small sites that dont change much, it's usually OK to do something like: file.php?page=Main file.php?page=News file.php?page=Contact anything above 5-10 pages probably requires a separate-page-per-section or fusebox-style de

Re: [PHP] Duplication Results When LEFT JOIN is Used Between MultipleTables

2001-07-11 Thread Mike Gifford
I added DISTINCT to the code (as per below): Kamil Choma wrote: > Mike Gifford wrote: >>However, when I run this query: >>mysql_query("SELECT DISTINCT >> WLPbib.bibID, >> WLPbib.title, >> WLPbib.publisher, >> WLPbib.publicationDate, >> WLPaddress.city,

FW: [PHP] Variable Next To Variable?

2001-07-11 Thread Jeff Oien
What I'm doing is having a form page ask, "How many children do you want to sign up?" Then it spits out form fields for as many children as they asked for. So each field has name="C_Last_Name$x" and $x in incremented for each child. Should I make it name="C_Last_Name[$x]" ? Jeff Oien > you should

AW: [PHP] Speed of loding PHP pages

2001-07-11 Thread Sebastian Stadtlich
recently heard of a review which measured that IE 6(on win) was 3 times faster with 'tricky'-pages then everything else on win & linux. looking at HTML specifications it also won with 93% of supported html-standard the review as in a linux mag/webpage ( even opera which runs VERY nice in

Re: [PHP] Speed of loding PHP pages

2001-07-11 Thread Inércia Sensorial
No. It also depends on the internal engine used by the browser to 'contruct' the elements. On Windows plataforms, Netscape are slower to render cached pages. But IE has an advantage, it is built around some native windows functionalities, one of the reasons it is faster. I don't know for other

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread Chadwick, Russell
I think you want if (!(${"C_Last_Name$y"})) { or if (!(${"C_Last_Name".$y})) { -Original Message- From: Jeff Oien [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 10:22 AM To: PHP Subject: RE: [PHP] Variable Next To Variable? I like this idea but it's giving me a parse error

[PHP] PArsing xml document with php

2001-07-11 Thread Francis Fillion
I'm trying to parse a xml document in php and to get in an array, but it sometime give me really strange result. Like if I have: $simple=" test "; $parser = xml_parser_create(); xml_parser_set_option($parser,XML_OPTION_SKIP_WHITE,1); xml_parse_into_struct($parser,$simple,$vals,$index); xml_par

[PHP] XSLT compiler for PHP

2001-07-11 Thread Steven Roussey
Hi all, I was curious if anyone was aware of a XSLT compiler that outputs PHP source? XSLTC which Sun donated to Apache Foundation creates Java source and is part of the Xalan project. Java is slow and we are all PHP here. Thanks! Sincerely, Steven Roussey Network54.com http://network54.com/?p

RE: [PHP] Function call from a hyperlink

2001-07-11 Thread Chadwick, Russell
another way is to do eval () on $function but that kinda stuff is really bad for security. Also bad to get carried away with making one file that passes tons of different function names so your whole website's in one file :) There should be some criminal punishment for doing that. -Original

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread Jeff Oien
I like this idea but it's giving me a parse error on this code: if (!{$C_Last_Name}{$y}) I'm looking at the other ideas also. Jeff Oien > > if (!$C_Last_Name$y) { > > The form submitting information to this code has field name like > > C_Last_Name1 C_Last_Name2 depending on how many Child

RE: [PHP] Function call from a hyperlink

2001-07-11 Thread scott [gts]
you can't. you have to write handler code to read in the information being passed to the script and properly execute a function. (if anyone could arbitrarily execute any function they wanted just by passing in the function name, havoc would be wreaked on PHP programs everywhere :) > -Origin

RE: [PHP] Mail Bcc to a $variable?

2001-07-11 Thread Chadwick, Russell
Try a newline at the end of $headers -Original Message- From: Marcus James Christian [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 10:15 AM To: [EMAIL PROTECTED] Subject: [PHP] Mail Bcc to a $variable? Hello, Ok I've got a script going to a Bcc but can't seem to get it to

RE: [PHP] Speed of loding PHP pages

2001-07-11 Thread Brian S. Dunworth
Are IE and Netscape both set the same as far as caching? - Brian S. Dunworth Sr. Software Development Engineer Oracle Database Administrator The Printing House, Ltd. (850) 875-1500 x225 <[EMAIL PROTECTED]>

[PHP] Mail Bcc to a $variable?

2001-07-11 Thread Marcus James Christian
Hello, Ok I've got a script going to a Bcc but can't seem to get it to work when it's like this? \nBCC:$recipients"; include("password.inc"); if($mailusername == $username && $mailpassword == $password); { mail($to, $subject, $bodytext, $headers); }; ?> So how do I get mail to Bcc a variabl

RE: [PHP] Function call from a hyperlink

2001-07-11 Thread Shrout, Ryan
Why not just pass a variable: and then in the PHP file do: if ($function) { function(); } Ryan Shrout Amdmb.com -Original Message- From: Geer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 1:17 PM To: [EMAIL PROTECTED] Subject: [PHP] Function call from a hyperlink

[PHP] Function call from a hyperlink

2001-07-11 Thread Geer
Hi, Does someone know how I can call a function in a PHP script using a hyperlink with text The function is in the same PHP script as the link. Many thanks, Geer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: [PHP] Speed of loding PHP pages

2001-07-11 Thread Alexander Wagner
Don wrote: > Has anyone tries any test loading PHP pages into IE 5.x and Netscape > 4.7x? This is in no way related to PHP. It's just the old Netscape taking lots of time for +rendering large pages, especially with nested tables. regards Wagner -- Madness takes its toll. Please have exact cha

[PHP] Re: Wierd Cookies

2001-07-11 Thread david jarvis
hmm, still no luck. The problem is not that the cookie in in memory, the problem is that its still on the hard drive. for example: User Logs On, User Logs off = cookie still on hd (even if you close the browser) example2: User restarts browser, User does not log on (cookie info still on hd), Us

RE: [PHP] Wierd cookie behiavor

2001-07-11 Thread scott [gts]
are you setting the cookie expire time and blanking out the cookie's value properly when the user logs off? even if you have the user "logged in", to the browser, it's just another webpage, and the browser shouldnt handle cookies any differently no matter what type of HTML you give it... >

Re: [PHP] Variable Next To Variable?

2001-07-11 Thread Francis Fillion
You could use an array: like Way better this way and you oculd do: $y=1; while($y > Sorry if this has been brought up 100 times. > > I want to do this: > > $y = "1"; > > while ($y <= "$Number_Children") { > if (!$C_Last_Name$y) { > error stuff; > $

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread scott [gts]
you should change the form field names to $Children_Last[1], $Children_Last[2] instead of hardcoding $Children_Last1 to make iteration thru the form easier and handling of the data easier... you can handle it all like this: $Number_Children = 5; $i = $Number_Children; while ($i--) { i

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread Boget, Chris
> if (!$C_Last_Name$y) { > The form submitting information to this code has field name like > C_Last_Name1 C_Last_Name2 depending on how many Children > are signing up for something. So I need $y to represent the number. You want this: if (!{$C_Last_Name}{$y}) { The {} surrounding the var

[PHP] Variable Next To Variable?

2001-07-11 Thread Jeff Oien
Sorry if this has been brought up 100 times. I want to do this: $y = "1"; while ($y <= "$Number_Children") { if (!$C_Last_Name$y) { error stuff; $y++; } } The form submitting information to this code has field name like C_Last_Name1 C_Last_Name2

Re: [PHP] Speed of loding PHP pages

2001-07-11 Thread infoz
Netscape is notoriously slug-like when it comes to loading large tables (i.e. the output of phpinfo()). - Tim > As an experiment, I have a page that issues a phpinfo(). WIth I.E. 5.5, > it takes about 3 seconds. With Netscape 4.77, it takes almost 20 > seconds. -- PHP General Mailing List

RE: [PHP] counter using PHP or Javascript?

2001-07-11 Thread Chadwick, Russell
http://www.devshed.com/ClipScripts/results/l_2/c_6/ -Original Message- From: Zhu George-CZZ010 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 9:42 AM To: [EMAIL PROTECTED] Subject: [PHP] counter using PHP or Javascript? Hi, Is there a way to create a counter to count the

RE: [PHP] counter using PHP or Javascript?

2001-07-11 Thread scott [gts]
of course ;) try this method: link to the counter with an IMG from your page have counter.php increment a log file and output an image showing the current number of hits that "pagename" has gotten, so that the IMG SRC will be digits. (although, this is like reinventing the wheel, there are pl

[PHP] Speed of loding PHP pages

2001-07-11 Thread Don
Hi, Has anyone tries any test loading PHP pages into IE 5.x and Netscape 4.7x? As an experiment, I have a page that issues a phpinfo(). WIth I.E. 5.5, it takes about 3 seconds. With Netscape 4.77, it takes almost 20 seconds. Thanks, Don -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Wierd cookie behiavor

2001-07-11 Thread scott [gts]
if you dont specify an expiration time, the cookie will hang around in memory until the browser is closed... even if it's an empty cookie. (AFAIK) if you really want it deleted, when the user "logs out" setcookie("membership", "", time()-1); that'll set the expire time to one second in the past,

[PHP] date change for unix platforms on sept 9th

2001-07-11 Thread scott [gts]
Has anybody heard if this will affect PHP in any way? Copied from the "Unix Guru mailing list": -=-=-=-=-=-=-=-=-=-=-=- The unix time() value becomes 10 digits for the first time on Sun Sep 9 01:46:40 2001 For the first time in modern computer history, the timestamp will be something besid

[PHP] counter using PHP or Javascript?

2001-07-11 Thread Zhu George-CZZ010
Hi, Is there a way to create a counter to count the number of accesses for a apecific page using PHP or Javascript? Thanks. -- 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 adm

RE: [PHP] Bit-flags in tables?

2001-07-11 Thread Don Read
On 11-Jul-01 Lasse wrote: > > Ok, after a lot of R'ing TFM, I'm more confused than I was before... Seems > MySQL plays pretty loose with most datatypes and stores half the numeric > types as strings, so > > I want e.g. a 16 bit field where I can use the individual bits for various > flags. How

[PHP] About fasttemplate class and templates

2001-07-11 Thread BlackLord
Hi, I have a problem with fasttemplate class. I am doing a list page which contains dynamic block to list the rows from my db. Everything is ok until there are no records on my db. If there are no records on my db, fasttemplate class doesn't delete the dynamic block and it remains like this:

[PHP] Wierd cookie behiavor

2001-07-11 Thread david jarvis
I have a logout page that sends this cookie setcookie("membership") So that "membership" shoud be empty. However, if you login so that the cookie membership is created, and then try to logout without restarting the browser, it wont delete the cookie. But if you restart the browser and try to

Re: [PHP] Duplication Results When LEFT JOIN is Used Between Multiple Tables

2001-07-11 Thread Mike Gifford
Hi Max, Maxim Maletsky wrote: > not to give you the solution, but there's something you can simplify in your > query: > USING(field) I like the idea of using USING... however I've run into some problems. > mysql_query("SELECT >WLPbib.bibID, > WLPbib.title, > WLPb

Re: [PHP] Duplication Results When LEFT JOIN is Used Between MultipleTables

2001-07-11 Thread Kamil Choma
Mike Gifford wrote: > However, when I run this query: > > mysql_query("SELECT > WLPbib.bibID, > WLPbib.title, > WLPbib.publisher, > WLPbib.publicationDate, > WLPaddress.city, > WLPaddress.state, > WLPprofile.firstName, >

[PHP] Bit-flags in tables?

2001-07-11 Thread Lasse
Ok, after a lot of R'ing TFM, I'm more confused than I was before... Seems MySQL plays pretty loose with most datatypes and stores half the numeric types as strings, so I want e.g. a 16 bit field where I can use the individual bits for various flags. How should I set the MySQL datatype and attri

RE: [PHP] Any banner system?

2001-07-11 Thread Michel 'ZioBudda' Morelli
On Tue, 10 Jul 2001, Robert V. Zwink wrote: >http://www.phpwizard.net/ has something called phpAds. Seems to cover your >requests. on my italian portal I'm using phpAdsNew. It's cool... on sourceforge.com bye -- Il 50% della vita e' cercare la giusta domanda... l'altro 50% e' non trovare la r

RE: [PHP] File Download IE behavior

2001-07-11 Thread Chadwick, Russell
If you want it to automatically be saved to disk, send the header("Content-type: octet/stream"); If there is a problem with the open I would think its on the client side since theres nothing mor the server can do but specify a content type. -Original Message- From: Warren Vail [mailto:[

RE: [PHP] Duplication Results When LEFT JOIN is Used Between Multiple Tables

2001-07-11 Thread Maxim Maletsky
not to give you the solution, but there's something you can simplify in your query: USING(field) mysql_query("SELECT WLPbib.bibID, WLPbib.title, WLPbib.publisher, WLPbib.publicationDate, WLPaddress.city, WLPaddress.state, WLP

[PHP] Duplication Results When LEFT JOIN is Used Between Multiple Tables

2001-07-11 Thread Mike Gifford
Hello, I'm making some headway on joining three MySQL tables. (Thanks to responses from this list early this morning) However, when I run this query: mysql_query("SELECT WLPbib.bibID, WLPbib.title, WLPbib.publisher, WLPbib.publicationDate, WLPa

Re: [PHP] Reading the content.

2001-07-11 Thread Gustavo Carreno
> Are you sure? I tested posting to a script which simply did a > print_r($GLOBAL), and didn't see the posted data listed. Yeaps, if the content-type is known the $HTTP_RAW_POST_DATA is empty and does not show on the $GLOBALS. Try this C program in Linux and you'll get surprised: -- htt

Re: [PHP] Reading the content.

2001-07-11 Thread Chris Lambert - WhiteCrown Networks
Are you sure? I tested posting to a script which simply did a print_r($GLOBAL), and didn't see the posted data listed. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Gustavo

RE: [PHP] What the heck is this

2001-07-11 Thread Ben Bleything
Ack! The travesty! Opportunities for OOP are literally everywhere! => => Ben -Original Message- From: Adam [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 12:26 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] What the heck is this ahh so it's for classes, then i'm fine because

RE: [PHP] Authentication

2001-07-11 Thread David Baldwin
Ideally I could just have php do the info gathering and send the input, user and pass, to apache for authenticating them. But I really don't know what is best. If I set up an index file to ask for a password that still does not secure (or at least ask for a password) anything else in the directo

[PHP] Re: Rename a File?

2001-07-11 Thread Henrik Hansen
[EMAIL PROTECTED] (Randy Johnson) wrote: > How do I rename a file on Linux in PHP? > you mean using a php function? php.net/rename -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

RE: [PHP] Undefined index?

2001-07-11 Thread Philip Olson
If one has : $arr = array('a','b','c'); And calls upon the following : $arr[b] (as opposed to $arr['b']) Then the following will result : Warning: Use of undefined constant b - assumed 'b' in ./tmp.php on line 13 Warning: Undefined index: b in ./tmp.php on line 13 Always use quotes ar

Re: [PHP] Rename a File?

2001-07-11 Thread Tyler Longren
mv filename newfilename - Original Message - From: "Randy Johnson" <[EMAIL PROTECTED]> To: "Randy Johnson" <[EMAIL PROTECTED]>; "Chris Lambert - WhiteCrown Networks" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, July 13, 2001 12:53 PM Subject: [PHP] Rename a File? > How do I ren

RE: [PHP] how to hide dbconnect file if its in published directory?

2001-07-11 Thread scott [gts]
try putting an .htaccess file into that directory. or (as someone else already suggested) tell apache to disallow access to *.inc files (or to the entire directory) > -Original Message- > From: Noah Spitzer-Williams [mailto:[EMAIL PROTECTED]] > Subject: [PHP] how to hide dbconnect file if

RE: [PHP] ODBC Function equivalent to MySql_Fetch_Array

2001-07-11 Thread Bob Horton
Well, if you noticed the function I wrote and included as part of my original post ... it already uses odbc_field_name but I'm not sure how I would use it in connection with odbc_fetch_into. My 2 key questions were: 1) Is there some function that I missed that does the equivalent of mysql_fetch_

[PHP] Rename a File?

2001-07-11 Thread Randy Johnson
How do I rename a file on Linux in PHP? Thanks Randy -- 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] ODBC Function equivalent to MySql_Fetch_Array

2001-07-11 Thread Andrew Hill
Bob, Perhaps use odbc_field_name or even odbc_specialcolumns with odbc_fetch_into? I do agree that mysql_fetch_array is quite useful. Dan - what do you think? Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data In

RE: [PHP] ODBC Function equivalent to MySql_Fetch_Array

2001-07-11 Thread Andrew Hill
Bob, Perhaps use odbc_field_name or even odbc_specialcolumns with odbc_fetch_into? I do agree that mysql_fetch_array is quite useful. Dan - what do you think? Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data In

[PHP] File Download IE behavior

2001-07-11 Thread Warren Vail
When generating a download file from PHP to IE (Netscape is not used by my client base) the browser prompts with an option to download the file or open the file where it is. Opening the file fails and I am forced to download the file to my local drive before receiving another prompt to open the

[PHP] mkstemp

2001-07-11 Thread Randy Johnson
I see mkstemp() mentioned in the tempnam page in the online manual but cannot find it anywhere? Where is the docs for this? -- 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 admi

RE: [PHP] Easy question...grabbing variables...

2001-07-11 Thread Sam Masiello
If you want to pass more than one variable via GET, you need to use an ampersand (&) character for the variables after the first one (still using a question mark for the first). So in your case, you can have this: http://wwbl.hyrum.net/send_email.php?to=4&from=25 Then within your send_email.ph

RE: [PHP] ODBC Function equivalent to MySql_Fetch_Array

2001-07-11 Thread Bob Horton
odbc_fetch_into gives me an array but it doesn't give the column names. While many might consider that a small point I find that it helps substantially in making my code self documenting. $row[2] is much less readable than $row[Name] > -Original Message- > Bob, > > Why doesn't odbc_fetch

[PHP] File Download Mouse Behavior

2001-07-11 Thread Warren Vail
When using PHP to generate a download file, the PHP program generates the headers and the actual text content of the file and this all works just fine. However, after the file download is complete, positioning the mouse anywhere over the browser (still showing the previous page) it appears as an

Re: [PHP] MAIL to a Bcc: ???

2001-07-11 Thread Marcus James Christian
Sebastian, Thanks and do you know of a place where I can get a printed book of the actual PHP manual, already printed? I hate printing out those huge PDF files and I can't stand reading on screen directions while trying to learn them. Thanks, Marcus Sebastian Wenleder wrote: > At 18:02 Uhr -0

RE: [PHP] Reading the content.

2001-07-11 Thread Bruin, Bolke de
To my knowledge you *only* get $HTTP_POST_RAW_DATA when the content-type is unknown. Not if there are nor vars in the POST (which is possible as empty vars are not being send) Bolke -Oorspronkelijk bericht- Van: Gustavo Carreno [mailto:[EMAIL PROTECTED]] Verzonden: Wednesday, July 11, 20

Re: [PHP] Reading the content.

2001-07-11 Thread Gustavo Carreno
"Chris Lambert - Whitecrown Networks" <[EMAIL PROTECTED]> wrote in message 000b01c109fc$1857cb60$6401a8c0@server">news:000b01c109fc$1857cb60$6401a8c0@server... > As far as I know, you don't. :-( And as far as you know, you are wrong :)) If there is no variables on the post the whole content o

[PHP] Easy question...grabbing variables...

2001-07-11 Thread Jeff Lewis
Um, been using PHP for awhile now and don' even know how to grab these: http://wwbl.hyrum.net/send_email.php?to=4;from=25 I have usually only passed one variable before so all I've need to do is $toID=$to but how do I get from? I know I should know this but I am either having a major brain fa

[PHP] Re: Mcrypt fails to run

2001-07-11 Thread Gigi
Hi, Try upgrading to 4.0.6. I think there are known pb with 4.0.4 and mcrypt. Regards, --Gildas. -- /-*-\ | Systèmes & Technologies | Tél: +33 2 96438787 | | Informatiques du Ponant | Fax: +33 2 96438788 | | 27, rue

Re: [PHP] PHP Conference in California

2001-07-11 Thread Uri Even-Chen
Does it cost money to participate in the Microsoft vs RedHat Open Source Debate and other events, or is the entrance free? I am also interested in participating in this event. I would also like to participate in the entire conference, but the prices are so high... Just the General Conference Fee i

RE: [PHP] Re: http referer [ stats !!! ]

2001-07-11 Thread Johnson, Kirk
Statistics, hard data - yeah! Thanks, Don! Kirk > -Original Message- > From: Don Read [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 3:54 AM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Re: http referer [ stats !!! ] > > mysql> select conv(PASSWORD('[NO REFERRING URL]'),16

Re: [PHP] Cookie Not Setting..

2001-07-11 Thread Magnus Hammar
Some things to keep in mind: 1. The cookie can't be read untill the next time you access a page. 2. The cookie can only be red in the same level as it is set (I guess), that means that if you set a cookie in "/my/pages/index.php" you can't read the cookie from a page in "/my/index.php". 3. To r

RE: [PHP] deletion of temp files

2001-07-11 Thread Randy Johnson
How do you associate a temp file with a session so PHP automatically deletes it when garbage collection occurs -Original Message- From: Chris Lambert - WhiteCrown Networks [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 11:36 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] deletion of

Re: [PHP] Cookie Not Setting..

2001-07-11 Thread Jeff Lewis
Actually, nevermind. I got it. I was calling a function and sent the variable with the function so it worked :) - Original Message - From: "Jeff Lewis" <[EMAIL PROTECTED]> To: "Magnus Hammar" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 9:38 AM Subject: Re: [PH

[PHP] XSLT - sablot - 4.0.6

2001-07-11 Thread Francis Fillion
I have been looking around for this for all day, now I need your help. I just compiled php 4.0.6 with those extension: ./configure --enable-track-vars --with-gd=../gd-1.8.3 --with-swf=../php4-swf --with-mysql --enable-xslt --with-xslt-sablot=../Sablot-0.60 --with-apxs --enable-sablot-err

RE: [PHP] Undefined index?

2001-07-11 Thread Adrian Ciutureanu
If I know well, "Undefined index" is a warning, not an error. If you have error_reporting = E_ALL in php.ini (not error_reporting = E_ALL & ~E_NOTICE) $a = array('a' => 'xxx', 'b' => 'yyy'); and you try to access $a['c'], then PHP will report that you are trying to access an undefined index array.

RE: [PHP] ODBC Function equivalent to MySql_Fetch_Array

2001-07-11 Thread Andrew Hill
Bob, Why doesn't odbc_fetch_into give you what you want? Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Integration Technology Providers > -Original Message- > From: Bob Horton [mailto:[EMAIL PROTECT

[PHP] Undefined index?

2001-07-11 Thread Ivo Stoykov
Hi everybody Does anybody knows what means "Undefined index" error? I couldn't find it in docs neither in php online doc site. Thank you Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

[PHP] Re: include nubie question - need help

2001-07-11 Thread Ivo Stoykov
Thanks Rehuel: Yes I guess that is the name has not been typed the $user_name will be empty and the line is if($HTTP_POST_VARS["user_name"]) { do something... } but I received this error Warning: Undefined index: user_name in H:\tenjo\public_html\sales\login.php on line 98 for the if line!

[PHP] Cookie Not Setting..

2001-07-11 Thread Jeff Lewis
Ok, I've used cookies before and have never had a problem with them but for some reason this doesn't seem to be setting! Here is the start of the file called after logging in to my site. In another file I have echo $wwblCookie and have also tried echo $HTTP_COOKIE_VARS["wwblCookie"] but no lu

Re: [PHP] Re: Cookie Expiry Dates?

2001-07-11 Thread James Holloway
You're right, I did... Still suffering from the effects of a manic dentist this morning. ;) James - Original Message - From: "Adrian Ciutureanu" <[EMAIL PROTECTED]> To: "James Holloway" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 1:58 PM Subject: RE: [PHP

RE: [PHP] Re: Cookie Expiry Dates?

2001-07-11 Thread Adrian Ciutureanu
you probably mean $cookie_expire = time() + 86400 * 365; > -Original Message- > From: James Holloway [mailto:[EMAIL PROTECTED]] > Sent: 11 iulie 2001 16:02 > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Cookie Expiry Dates? > > > Hi Jeff, > > Yes, use time() > > Example 86400 secon

[PHP] gettext functions

2001-07-11 Thread Daniel Reichenbach
Hy, i would like to use the gettext functions but i have no hint, where i have to put the locale files and how to tell php where they are. Is ther any sample implementation available for this? Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

[PHP] Re: Cookie Expiry Dates?

2001-07-11 Thread James Holloway
Hi Jeff, Yes, use time() Example 86400 seconds in a day. 3600 in an hour. Use some basic maths: $cookie_expire = time() * 86400 * 365; // Sets cookie for a year (365 days). James. "Jeff Lewis" <[EMAIL PROTECTED]> wrote in message 006101c10a08$874f93c0$76a1a8c0@LEWISJCIT">news:006101c10

RE: [PHP] Cookie Expiry Dates?

2001-07-11 Thread Adrian Ciutureanu
int setcookie (string name [, string value [, int expire [, string path [, string domain [, int secure]) expire = time() + 3600*24*30; Note that 'expire' is the client relative to GMT time. So, if the client has the local time set to 01/01/1985, your cookie will be born dead ;) > -Origina

[PHP] Cookie Expiry Dates?

2001-07-11 Thread Jeff Lewis
I'd like to set a cookie that never expires or at least one that lasts a month, how can I set it? Does it have to be with time? I am using SetCookie. Jeff

[PHP] Re: GetImageSize

2001-07-11 Thread Matt Simpson
Here is the function, but there is nothing wrong with the function I don't think. Here is the function: function GetURLImageSize($urlpic) { return GetImageSize($urlpic); } Here is how we call it: GetURLImageSize ("http://www.domainname.com/admin/showimg.php?s=17&type=category&image=70";

[PHP] Gettin' User Name

2001-07-11 Thread thiagols
Is there a function that returns me the name of the user that is logged in the operating system? I wanaa put in my database the users name when he try to login thee application. thanks a lot Thiago ___ Mensagem enviada com Globa

[PHP] Downloading Data from Database

2001-07-11 Thread Randy Johnson
I am adding a feature to my site where members can download their information from the database. What is the best way to accomplish this? Create a text file every time a member wants to download their info?I thought about this ..how would I handle deleting the text files when I was finished

Re: [PHP] need help on system()

2001-07-11 Thread Marc van Duivenvoorde
hhhm, I played around a little and found another solution which you might find usefull \n"; $num++; } ?> This way you can execute any command and put the output to an array, in the while loop you can print any line in the array. Marc van Duivenvoorde At 01:38 PM 7/11/2001 +0200, M

[PHP] Question

2001-07-11 Thread James W Greene
Hi All, I have an e-mail message stored in the var $message How can I grep for say the From lines and such in $message using PHP. I tried using preg_grep, but I could not seem to get it to work. Thanks Jim G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] need help on system()

2001-07-11 Thread Marc van Duivenvoorde
I would do it this way . Marc van Duivenvoorde At 04:21 PM 7/11/2001 +0800, you wrote: >I run the php script as following: >//test.php > system("/usr/bin/sudo /usr/bin/quota -v test") >?> >php < test.php - I can get the output >in the browser: http://localhost/test.php - I cannot see any o

Re: [PHP] Newbie: how to upload files in safe mode?

2001-07-11 Thread Arto Hiltunen
I asked the ISP if I could do that, but they said: nope... Life is hard (and then you die). AH "Adrian Murphy" <[EMAIL PROTECTED]> wrote in message 003101c109f5$4b6f2fe0$02646464@ade">news:003101c109f5$4b6f2fe0$02646464@ade... > I'm afraid you'll have to run your upload script as a cgi. > try a

[PHP] Re: examples of using PHP to control .htaccess

2001-07-11 Thread Inércia Sensorial
Once I was looking for a similar solution and found none enough powerful to my needs. Anyway this was the only satisfactory that I found: http://php.vamsi.net/show_source.php?url=htpasswd_admin.php Also if you have Perl/CGI, you can use this one (much better, including admin interface,

Re: [PHP] Reading the content.

2001-07-11 Thread Chris Lambert - WhiteCrown Networks
As far as I know, you don't. :-( /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Gustavo Carreno <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 6:5

[PHP] File upload & content type problem

2001-07-11 Thread Prokop Vlašín
Hi all. This is the first time I write something to newsgroups. I've this problem: After upgrading PHP3 ->PHP4 and changing the variables to array ($file_type -> $HTTP_POST_FILES['file']['type'] ) The variables that are automatically created when uploading a $file have all worked properly exept

Re: [PHP] Re: http referer

2001-07-11 Thread Henrik Hansen
[EMAIL PROTECTED] (Soeren Nielsen) wrote: >> I though every browser supported it, do you have an example on one >> that does not? > > I Opera the user can choose to disable the use of referer ohh I did not know that, maybe be because I never tried it :) now i know :) -- Henrik Hansen --

[PHP] Reading the content.

2001-07-11 Thread Gustavo Carreno
Hi tere, Imagine that someone does the following post: ---8<- POST /bla.php HTTP/1.0 host: bla.com content-type: text/xml content-length: ## ---8<- With what function, variable, server variable or whatever do I have access to that

Re: [PHP] Re: http referer

2001-07-11 Thread Soeren Nielsen
> I though every browser supported it, do you have an example on one > that does not? I Opera the user can choose to disable the use of referer /Soeren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: [PHP] Joining a number of tables in a MySQL query

2001-07-11 Thread Chris Lambert - WhiteCrown Networks
SELECT WLPaddress.city, WLPaddress.state, WLPbib.publisher, WLPbib.title, WLPbib.publicationDate, WLPprofile.firstName, WLPprofile.lastName, WLPprofile.organization, WLPcountry.languageName FROM WLPbib LEFT JOIN WLPprofile ON WLPprofile.profileID = WLPbib.profileID LEFT JOIN WLPaddr

Re: [PHP] Getting the title of a web page

2001-07-11 Thread Chris Lambert - WhiteCrown Networks
(.*)\<\/title\>/i", implode("", file("http://www.php.net/";)), $title);?> /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Heiko Wilms <[EMAIL PROTECTED]> To: <[EMAIL PROTECTE

<    1   2   3   >