Re: [PHP] Strange Problem

2003-07-13 Thread Curt Zirzow
Haseeb <[EMAIL PROTECTED]> wrote: > > > Hi all, > this is a very strange problem. i don't know where i am doing something that > is causing this. the problem is that i am working on a web portal entirely > in php. i have a few hidden pages. that do the queries to the DB. now when > i redirect

Re: [PHP] elegant way of doing something else the last time through a loop?

2003-07-14 Thread Curt Zirzow
Marek Kilimajer <[EMAIL PROTECTED]> wrote: > I always do it this way: > > $condition=''; > foreach ($phrases as $key=>$val) { > if (($val != "the") && ($val != "and")) { > $condition.= "name like '%$val%' $logic"; > } > } > $condition=substr($condition, 0, strlen($

Re: [PHP] Send mail using external server

2003-07-14 Thread Curt Zirzow
Maria Garcia Suarez <[EMAIL PROTECTED]> wrote: > > [...] > > >talk2server("MAIL FROM: ".$from."\n"); > > >if (listen2server() == "250") > > > talk2server("RCPT TO: ".$to."\n"); You must send the rctp to's bfore you start sending the data. To be a more stable smtp client there should

Re: [PHP] Send mail using external server

2003-07-14 Thread Curt Zirzow
Juan Nin <[EMAIL PROTECTED]> wrote: > From: "Maria Garcia Suarez" <[EMAIL PROTECTED]> > [...] > > but, IMHO, that script isn't well coded as you have already seen, and I also > don't like the way it's programmed, it's very rudimentary... I would use > phpmailer as someone told you before instead..

Re: [PHP] timestamp problem !!

2003-07-14 Thread Curt Zirzow
Nabil <[EMAIL PROTECTED]> wrote: > thanks Jason, you've been always helping me ... > > Please i still have some fog regading this.. can u expaling me more about > the timestamp and unix timestamp... mysql's timstamp in this case is in the format: MMDDHHMMSS Unix timstamp number of secon

Re: [PHP] security- ports, your comments will be appreciated

2003-07-14 Thread Curt Zirzow
Nabil <[EMAIL PROTECTED]> wrote: > I have an Linux server running Apache/PHP/MySQL. > and I need to connect to another server running MSSQL server 7 > > THE POINT IS the only way I have to connect is throu ODBC connection > because the network administrator only allowed me to connect thru port 1

Re: [PHP] A MySQL question

2003-07-14 Thread Curt Zirzow
zavaboy <[EMAIL PROTECTED]> wrote: > Ok, I want to delete only 1 row off of a database table... > Example: > I have a table with columns "user" and "item"... > Lets say the table contains the following rows (user | item): > 582-668243 | Toothbrush > 582-668243 | Toothbrush Note the 'LIMIT' part in

Re: [PHP] Capturing Windows Login Details

2003-07-14 Thread Curt Zirzow
Jonathan Wilkes <[EMAIL PROTECTED]> wrote: > Why would you want to do this ? > > > > -Original Message- > From: Gary Ogilvie [mailto:[EMAIL PROTECTED] > Sent: 11 July 2003 13:35 > To: [EMAIL PROTECTED] > Subject: [PHP] Capturing Windows Login Details > > > Hi All, > > I need to captur

Re: [PHP] Text file manipulation question.

2003-07-14 Thread Curt Zirzow
Lloyd Bayley <[EMAIL PROTECTED]> wrote: > Greetings All! > > I'm still in the learning stages of PHP and require some help with a small > problem. > > I need to take a text file which looks like this (and no I can't get it > output in CSV - damn and blast!) > > user1 26:48:59

Re: [PHP] Grabbing info from other Sites

2003-07-14 Thread Curt Zirzow
Ow Mun Heng <[EMAIL PROTECTED]> wrote: > Hi, > > Mind my ignorance but what is webservices?? hmm... I was wondering that myself... http://www.w3.org/2002/ws/ A google search on 'Web Services stock quote' returns some interesting pages. > > Cheers, > Mun Heng, Ow > H/M Engineering > West

Re: [PHP] any danger in overwriting $_GET ?

2003-07-14 Thread Curt Zirzow
Justin French <[EMAIL PROTECTED]> wrote: > Hi, > > Is there any danger in overwriting the $_GET array? Will it still > remain a superglobal in all circumstances? yes and yes. see below for explaination > > // Example 1: > $_GET['foo'] = base64_decode($_GET['foo']); // modify a valu

Re: [PHP] console script html tags?

2003-07-14 Thread Curt Zirzow
Larry Brown <[EMAIL PROTECTED]> wrote: > How can I rid myself of the html tags around error messages when writing > console scripts? (Besides avoiding errors) You can set up another system or user php.ini for the php binary to read then pass the location of the php.ini to the php binary: php -c

Re: [PHP] any danger in overwriting $_GET ?

2003-07-14 Thread Curt Zirzow
Justin French <[EMAIL PROTECTED]> wrote: > On Tuesday, July 15, 2003, at 01:24 PM, Curt Zirzow wrote: > [...] > I'm fully aware of the reasons why one would use $_GET['foo'] over > $foo, but as stated in the OP, i'm interested in using > search-eng

Re: [PHP] How to use ph to set meta tags ?

2003-07-15 Thread Curt Zirzow
Daniel Szasz <[EMAIL PROTECTED]> wrote: > Hello > > I wish to create be able to put in the meta tags value from functions. > How can be done ? > > Here is part of the code : > > >function mAuthor() { > $Author = "Daniel Szasz"; > return $Author; > }; > ?> > [...] > > > > > >

Re: [PHP] How can I display an image within a script?

2003-07-15 Thread Curt Zirzow
Dan Anderson <[EMAIL PROTECTED]> wrote: > Because of restrictive safe mode settings I cannot display images from > their folder. Is there a way to embed them within a web page? I'm not entirely clear what you mean by not being able to display images from their folder, can you explain that more.

Re: [PHP] HTML email with Outlook

2003-07-15 Thread Curt Zirzow
Tim Thorburn <[EMAIL PROTECTED]> wrote: > Hi, > > I've made a PHP script that sends out an automatic email through my servers > cron system, it works well, but I thought I'd try to do some HTML email to > get things to line up a little better. > > To do so, I added the following line in my mail

Re: [PHP] value not passed

2003-07-15 Thread Curt Zirzow
Joaco <[EMAIL PROTECTED]> wrote: > Can anyone tell me why the addDivName field is always passed as a blank... > This is killing me. > > > > This isnt getting submited when you press the link. > > > "> > width="58" h

Re: [PHP] Insert leading zeros

2003-07-15 Thread Curt Zirzow
Matt Palermo <[EMAIL PROTECTED]> wrote: > I have a string of digits that looks like something like these: 0025, > 1234, 0001, 1003, and so on. They are all 4 digits in length. Then > when I increment one of them by 1, I want to still have 4 digits for the > value (it should insert the leading ze

Re: [PHP] multiple databases

2003-07-15 Thread Curt Zirzow
Paulo Neves <[EMAIL PROTECTED]> wrote: > Hi, > > > > How can I set up PHP to work with multiple databases in the same page? > (not tables) $dbh1 = server_connect(params...); $dbh2 = server_connect(params...); Just be sure to pass the optional $dbh1 or $dbh2 to the appropriate query. $result

Re: [PHP] How can I display an image within a script?

2003-07-15 Thread Curt Zirzow
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Yes, the method below would work just fine if you only needed to display > one image. Trying it on a second image within the same generated page > would give you a "headers already sent" error. > > > [...] > > > > So your script will generate htm

Re: [PHP] How can I display an image within a script?

2003-07-15 Thread Curt Zirzow
Curt Zirzow <[EMAIL PROTECTED]> wrote: > [...] > if (file_exists($file) ) { > header('Content-Yype: image/jpeg'); ooops -^ > readfile($file); > } else { > header('Content-Yype: text/html'); ditto -^ Curt -- :%s/-Yyp

Re: [PHP] Mailparse functions. How in the 4.3.1 php version ?

2003-07-16 Thread Curt Zirzow
Valentina <[EMAIL PROTECTED]> wrote: > Hello to everybody. > Somebody can tell me how , in the new version of php, were substitued the > mailparsing functions ? > I use, actually, the 4.3.1. > The php manual tells me that the mailparsing functions run only in the > 4.1.0. or 4.1.2 version of php. >

Re: [PHP] get size of variable n bytes

2003-07-16 Thread Curt Zirzow
Petre Agenbag <[EMAIL PROTECTED]> wrote: > Hi List > > Sorry, tried to find it in manual... > > I'd like to query a db and and see how big the result is in bytes. How > can I do that? how big as in how many records are back from the query? look for _num_rows(), replacing dbserver with your data

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Curt Zirzow
Justin French <[EMAIL PROTECTED]> wrote: > If you care about performance at all, try and find away around the > problem without regular expressions... > > I tested > > if( (strlen($str) == 6) && (is_int($str)) ) > > vs > > if(ereg('^[0-9]{6}$',$str)) > > > ...on my LAN test serve

Re: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread Curt Zirzow
um.. sorry for the off topic discussion.. John Manko <[EMAIL PROTECTED]> wrote: > You will note that I did say that I was looking for a PHP solution to > this, anyhow. > > >HTML isn't smart enough to figure that out and this is a PHP list, anyhow. > > > > Thank you for the info. I still think

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Curt Zirzow
Brent Baisley <[EMAIL PROTECTED]> wrote: > I'm pretty sure there will be a problem with using the is_int() > function. A similar problem was discussed a few weeks ago on this list > and is_int() will return true for a "number" like 1000e2. The "e" being > treated as an exponential representation

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Curt Zirzow
Ford, Mike [LSS] <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Curt Zirzow [mailto:[EMAIL PROTECTED] > > Sent: 16 July 2003 15:17 > > > > Justin French <[EMAIL PROTECTED]> wrote: > > > If you care abo

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Curt Zirzow
Justin French <[EMAIL PROTECTED]> wrote: > If you care about performance at all, try and find away around the > problem without regular expressions... > > I tested > > if( (strlen($str) == 6) && (is_int($str)) ) > I did some more tests on this problem is that $str is still considered a st

Re: [PHP] PHP explodes without using isset()

2003-07-16 Thread Curt Zirzow
John Manko <[EMAIL PROTECTED]> wrote: > I've tried checking if $_POST and $_GET vars are set with just > > if($_POST['yuck']) > > When 'yuck' is not present my code always explodes with > *"Notice*: Undefined index: yuck" on the page output. You can use the @ error suppressor. if (@$_POST['yuck

Re: [PHP] Opening a Window with JavaScript

2003-07-16 Thread Curt Zirzow
Todd Cary <[EMAIL PROTECTED]> wrote: > [...] > However, if I use an anchor, the form is submitted. Is there a way to > prevent this? Here is the code I tried: > > I believe you can put something like (not tested): > > Todd > -- Curt -- -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Regex and variable usage

2003-07-16 Thread Curt Zirzow
Gerard Samuel <[EMAIL PROTECTED]> wrote: > Has anyone had any success with using variables in a regex shown below?? > > $foo = 3; > $bar = 4; > preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{$foo, $bar}$/', $some_string) You have single quotes, so php wont expand the variables inside. > > or even > pre

Re: [PHP] Regex help needed

2003-07-16 Thread Curt Zirzow
Sid <[EMAIL PROTECTED]> wrote: > Hello, > > Well I am doing by first reg ex operations and I am having problems which I just > cannot figure out. > > For example I tried > echo eregi_replace ("(\s*)\s* size=\"2\">\s*purchasing power parity", '%POWER%', 'sdsdss bgcolor="#f8f8f1">Purchasing power

Re: [PHP] Anyone for cookies and milk? :-)

2003-07-16 Thread Curt Zirzow
Ryan A <[EMAIL PROTECTED]> wrote: > Hey, > Am just getting into PHP cookies and have gotten a problem...(surprise > surprise) > > Am trying to set a basic cookie to see exactly how things work before I > start using it in my apps, heres the code i am using: > (SetCookieEx.php) > setcookie("name1"

Re: [PHP] bcc on php

2003-07-16 Thread Curt Zirzow
Ralph Guzman <[EMAIL PROTECTED]> wrote: > Just include Bcc in the extra headers. Take a look at > > Example 4. Sending complex email > http://www.php.net/manual/en/function.mail.php > um.. don't use that example, it is the incorrect way to send a bcc. for one it wont work and two the people will

Re: [PHP] bcc on php

2003-07-16 Thread Curt Zirzow
Louie Miranda <[EMAIL PROTECTED]> wrote: > hello, > > how do you make a bcc on php on a form 2 email settings.. I would suggest: http://phpmailer.sourceforge.net/ Curt -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fwrite not working in php3

2003-07-16 Thread Curt Zirzow
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > hi there i have a little problem writing files on a php3 server this code > worked yesterday but isnt > > $handle = fopen("/www_tools/apache/htdocs/phptest/temp_real/test.inc",'a'); Test your $handle to see if you successfully opened the file. if (!

Re: [PHP] How unsafe is register_globals?

2003-07-16 Thread Curt Zirzow
Paul Chvostek <[EMAIL PROTECTED]> wrote: > > I've got this new server running with folks from all over uploading PHP > code. I don't know all the folks, so I've turned on safe_mode, set an > open_basedir to each user's documentroot, and left register_globals at > its default. > > And now I'm get

Re: [PHP] STRING FORMATTING QUESTION

2003-07-16 Thread Curt Zirzow
Dale Hersh <[EMAIL PROTECTED]> wrote: > My question is regarding strings in php. I have this form in which the user > fills in a description. The problem is that if the user uses any > aprostrophe's or any other unusual characters in the form, the string can > not be inserted into my ms sql databas

Re: [PHP] Display HTML/PHP code on a web page

2003-07-16 Thread Curt Zirzow
Jason Paschal <[EMAIL PROTECTED]> wrote: > I've googled for it, but nothing came up. How do I display code on a page > without it being executed? This has to do with how your webserver is set up, because it see's that its a php file it runs it thruough php. > i want the page to display HTML cod

Re: [PHP] Anyone for cookies and milk? :-)

2003-07-16 Thread Curt Zirzow
Nomadeous <[EMAIL PROTECTED]> wrote: > From the official doc: > http://www.php.net/manual/en/function.setcookie.php > All the arguments except the name argument are optional. You may also > replace an argument with an empty string ("") in order to skip that > argument. Because the expire and secure

Re: [PHP] Interesting question re HTTP Ranges and PHP

2003-07-17 Thread Curt Zirzow
Dan Goodes <[EMAIL PROTECTED]> wrote: > Hi folks, > > I currently have an interesting dilemma - any help is appreciated (if > possible, CC directly to [EMAIL PROTECTED] as well as the list). > > What Ive got is a PHP wrapper script that performs authetication, and uses > "readfile()" to return

Re: [PHP] XML

2003-07-17 Thread Curt Zirzow
Ray Hunter <[EMAIL PROTECTED]> wrote: > > > 1. How efficient is to use XML+XSLT solution? Does it > > add processing overhead to the system? > > The efficientcy is relative to many factors, however I can stress this. > The style sheets can be cached client side and then only xml data can be > sen

Re: [PHP] really no way to get byte size of variable?

2003-07-17 Thread Curt Zirzow
Petre Agenbag <[EMAIL PROTECTED]> wrote: > Hi List > Just want to make sure: > > Is there no way for me to easily determine the byte size occupied by a > variable (regardless of type)? > > It might be trivial, or I'm missing the point (as per usual)... I think I'm missing the point. I'm not sur

Re: [PHP] Recomposed per instructions??? jpeg photo file upload problem

2003-07-17 Thread Curt Zirzow
John T. Beresford <[EMAIL PROTECTED]> wrote: > Hi All, Hi > > [...] > > The relevent PHP code from my system for the checking is: > > if ($type != "image/jpeg") { > $ReturnSaying = "!! The file is not a JPEG picture. Please try again"; > include("photo_error.php"); > exit; where is the varia

Re: [PHP] 4.3.2 fopen() problem/limit?

2003-07-17 Thread Curt Zirzow
MIKE YRABEDRA <[EMAIL PROTECTED]> wrote: > > > I just upgraded to 4.3.2 and one of my scripts will not work now. > > The script basically used fopen to get a file, then it would write it to a > static page (cutting down on DB access). The script has worked fine for > months under 4.3.0, but not

Re: [PHP] outputting a carriage return

2003-07-17 Thread Curt Zirzow
bob pilly <[EMAIL PROTECTED]> wrote: > Hi all > Can someone tell me why if i echo a line like this: > > > echo "this is a \n newline"; > the output is: > this is a > newline. > > But if i do this: $text="this is a \n newline"; > echo $text; > the output is: > this is a newline? works fine

Re: [PHP] PHP/HTML Question

2003-07-17 Thread Curt Zirzow
Nick Couchman <[EMAIL PROTECTED]> wrote: > I have a quick question about PHP and HTML. I have a page that is > supposed to update the "status" of hosts by pinging each host and > displaying the result. I would like to get the page to the point that I > can have something (either PHP or JavaScr

Re: [PHP] How unsafe is register_globals?

2003-07-17 Thread Curt Zirzow
Paul Chvostek <[EMAIL PROTECTED]> wrote: > > But those are APACHE directives. What I'm looking for is finer-grained > control over what php_flag lines will be accepted. > > A quick test wrapped in a APPEARS not to be at risk, but I'd > rather get confirmation of this before I rely on it. this

Re: [PHP] Protecting files with PHP

2003-07-17 Thread Curt Zirzow
Maria Garcia Suarez <[EMAIL PROTECTED]> wrote: > Hi there! > > I'm developing an application to which you can upload > files. Right now the destination folder of those files > is at /public_html/files which makes them visible from > the internet. > > I thought of putting that ./files/ folder outs

Re: [PHP] back button and session variables

2003-07-17 Thread Curt Zirzow
Jason Wong <[EMAIL PROTECTED]> wrote: > On Thursday 17 July 2003 23:03, John Carpenter wrote: > > I am having a hard time understanding what effect the back button has on > > session variables. I have noticed that on some of my pages the back button > > does not cause my application to have problem

Re: [PHP] Perl to PHP (Was XML Parsing)

2003-07-17 Thread Curt Zirzow
Doug La Farge <[EMAIL PROTECTED]> wrote: > [...] > After that, how would this convert: > > $quote{class_name} = $text; > quote is a hash where class_name is the key. Php treats arrays and hashes the same, infact there really isn't any difference with them. so the syntax is always the same for ha

Re: [PHP] PHP and secure transactions

2003-07-17 Thread Curt Zirzow
Mike Joseph <[EMAIL PROTECTED]> wrote: > Hey everyone, > > Anyone have any tips on books, sites, news groups... anything where I > can get some *good* information on using PHP to process secure > transactions (the real ones, with an RSA Certificate). Not exactly sure what you mean.. do you wan

Re: [PHP] Reading files question

2003-07-17 Thread Curt Zirzow
Beauford.2005 <[EMAIL PROTECTED]> wrote: > I have a file that has the 130 lines which follows the example below. > > Barnaby > > What I need to do is read this file, remove one line, add another line, > and then resave it. I have tried the different fget functions etc. to > read the file, but all

Re: [PHP] Array key names - can they be called as strings?

2003-07-17 Thread Curt Zirzow
Evan Nemerson <[EMAIL PROTECTED]> wrote: > I kinda skimmed, but I think what you want is > > foreach ( array_keys($SAVEVARS) as $key ) > $query = "update table set $key=$SAVEVARS[$key];"; > should be: $query = "update table set $key='{$SAVEVARS[$key]}';"; -- PHP General Mailing List (h

Re: [PHP] Too much of $GLOBALS[] a problem??

2003-07-17 Thread Curt Zirzow
Ow Mun Heng <[EMAIL PROTECTED]> wrote: > Hi All, > > Just a quick question on this. In my scripts, I'm using A LOT Of > $GLOBALS['my_parameter'] to get the declared values/string. 1 example below > : > > function display_menu_html() > { > echo ''."\n"; > echo ''."\n"; > e

Re: [PHP] Still problem with files

2003-07-17 Thread Curt Zirzow
Beauford.2005 <[EMAIL PROTECTED]> wrote: > Hi, Hello > > Sorry for the extra emails, but I thought I had this licked, but now > other problem pop up. As I said, I have a file with many lines like > Alfredsson in it. I have been able to read the file > into an array and display it, but I am tryin

Re: [PHP] Still problem with files

2003-07-17 Thread Curt Zirzow
Jason Wong <[EMAIL PROTECTED]> wrote: > On Thursday 17 July 2003 12:18, Beauford.2005 wrote: > > > > So using the example above what would I use where the question marks are > > if I wanted to display everything but this line - > Value="3">Alfredsson. I have tried a variety of ways to do this: >

Re: [PHP] Still problem with files

2003-07-17 Thread Curt Zirzow
Curt Zirzow <[EMAIL PROTECTED]> wrote: > Beauford.2005 <[EMAIL PROTECTED]> wrote: > > > > i.e > > > > $p = "Alfredsson"; And watch out for case sensitive issues 'Option' != 'option' Curt -- -- PHP General Mailing

Re: [PHP] problem matching multiple times

2003-07-17 Thread Curt Zirzow
Vince LaMonica <[EMAIL PROTECTED]> wrote: > Hi All, hello > [...] > function vjencode($message) { > > $message = " " . $message ; > > ##--- [b] and [/b] for bolding text. > $message = preg_replace("/\[b\](.*?)\[\/b\]/si", "\\1", $message); > > ##--- [i] and [/i] for italicizing text. > $

Re: [PHP] redirecting to a url..

2003-07-17 Thread Curt Zirzow
Louie Miranda <[EMAIL PROTECTED]> wrote: > I have this form with 2 values under 1 name ColTemplate. I was hoping if i > can redirect it to another url? on the ?? if templateone or templatetwo. header('Location: http://domain/file'); Curt -- -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] popping up download dialog box

2003-07-18 Thread Curt Zirzow
Binay Agarwal <[EMAIL PROTECTED]> wrote: > Hi every body ! > > I am writing a script which pops up download dialog box on click of a Link. > > Headers i m sending out for downloading jpegs are: > > header("Cache-control: private"); > header("Content-Type: image/jpeg"); >

Re: [PHP] problem matching multiple times

2003-07-18 Thread Curt Zirzow
Vince LaMonica <[EMAIL PROTECTED]> wrote: > On Fri, 18 Jul 2003, Curt Zirzow wrote: > > [snip] > } > } The only solution I can think of is while your looping through the > } images they have build more pattern/replacemen array items > } > } foreach (row in db)

Re: [PHP] Re: Recovering from a time out

2003-07-18 Thread Curt Zirzow
Anthony <[EMAIL PROTECTED]> wrote: > change PHP's timeout value in php.ini : > > max_execution_time = 30 ; Maximum execution time of each script, in > seconds > max_input_time = 60 ; Maximum amount of time each script may spend parsing > request data > > don't know if you can have php do some

Re: [PHP] Multidimensional arrays

2003-07-18 Thread Curt Zirzow
Gary Broughton <[EMAIL PROTECTED]> wrote: > Hi > > Many thanks for your time Matt. I tried that method amongst a few > others, and couldn't seem to get it right. What I have eventually come > across is the function 'array-push' (bizarre!) to add a new array line > for each record (after it's bee

Re: [PHP] Performance and require / include

2003-07-18 Thread Curt Zirzow
Infoman: Thorsten Koch <[EMAIL PROTECTED]> wrote: > Hello List, > > i have a question about the require / include functions and > performance. > > I try to divide my application into several files (e.g. templates and > common config files) and they are included with the require statement. > But i

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Curt Zirzow
Reuben D. Budiardja <[EMAIL PROTECTED]> wrote: > Anything simple, and fast? xml is simple, and fast to implement. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] echo statements

2003-07-18 Thread Curt Zirzow
Jay Fitzgerald <[EMAIL PROTECTED]> wrote: > When echoing html code that will include variables from a while or if loop, > which method is best? > Method 1: echo " class=\"dbtables\">$employer"; > OR > Method 2: "$employer"; ?> method 2a: > If you would, please give reasons why to support you

Re: [PHP] classes v. functions

2003-07-18 Thread Curt Zirzow
Andu <[EMAIL PROTECTED]> wrote: > > > --On Friday, July 18, 2003 14:28:02 -0700 Chris Shiflett <[EMAIL PROTECTED]> > wrote: > > >--- Andu <[EMAIL PROTECTED]> wrote: > >>This may show my ignorance or my refusal to take for granted > >>something I don't fully understand but I have a hard time > >

Re: [PHP] CSV > MySQL

2003-07-18 Thread Curt Zirzow
John Wulff <[EMAIL PROTECTED]> wrote: > How would I go about taking a 6 field CSV and inserting each row into a > MySQL DB? http://php.net/fgetcsv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Nested page calls

2003-07-18 Thread Curt Zirzow
Lee Elenbaas <[EMAIL PROTECTED]> wrote: > I would like to perform nested page calls, where a page does conditional > includes to itself > The problem is how to avoid stepping over the variables not sure why but um.. $current_scope++; if ($condition) { include(__FILE__): } $scoped_vars[$current_

Re: [PHP] Securing File Uploads Was: Is it possible to test an uploaded file to check the type?

2003-07-18 Thread Curt Zirzow
Gerard Samuel <[EMAIL PROTECTED]> wrote: > Jason Wong wrote: > > >In a response to your previous posts on this matter, I suggested that you > >search freshmeat/sourceforge for a PHP-based media file metadata extractor > >(yes one does exist). I'm putting forward the same suggestion again. > > >

Re: [PHP] Enough is Enough.......

2003-07-18 Thread Curt Zirzow
Beauford.2005 <[EMAIL PROTECTED]> wrote: > Hi, Hello > [...] > > $list = preg_replace('/(<.*?>)(.*)/', '$2$1', $list); > sort ($list); > $list = preg_replace('/(.*?)(<.*>)/', '$2$1', $list); what is list after the first preg and after the second one, that regex doesn't look sa

Re: [PHP] Re: classes v. functions

2003-07-19 Thread Curt Zirzow
Sam Baum <[EMAIL PROTECTED]> wrote: > Hi, > > am Friday 18 July 2003 23:08 schrieb Andu: > > > This may show my ignorance or my refusal to take for granted something I > > don't fully understand but I have a hard time figuring out the advantage > > of using classes as opposed to just functions. I

Re: [PHP] caching question

2003-07-19 Thread Curt Zirzow
Jean-Christian IMbeault <[EMAIL PROTECTED]> wrote: > I am using Apache 1.3.27 and PHP 4.3.3.RC1 and someone has told me that > my web page cannot be cached but I cannot figure out why. My friend > tells me my pages all keep sending this in their headers: > > Cache-Control: post-check=0, must-rev

Re: [PHP] HOW TO -- ARRAY UPDATE MYSQL

2003-07-19 Thread Curt Zirzow
Suresh Babu.A [Support] <[EMAIL PROTECTED]> wrote: > > HI ALL, > > I want to update a mulitple row from a HTML Table to MYSQL Database. > > L1 V1 T1 > L2 V2 V2 > L3 V3 V3 Can you expand on this a little more, it's a bit vague. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] else needed?

2003-07-19 Thread Curt Zirzow
Larry Brown <[EMAIL PROTECTED]> wrote: > On if statements, I periodically don't want anything to happen if the > requisite is not met. In most cases just writing the statement in the > format if (this) { do that; } and nothing more will work. However, I > periodically get weird results with this

Re: [PHP] Sending email with the windows version of php

2003-07-19 Thread Curt Zirzow
Ivan Carey <[EMAIL PROTECTED]> wrote: > hello, > > My client is wanting to transfer their web site from a system that uses: freebsd, > apache, mysql and php, to a windows based hosting service. > Did you tell them this is a bad idea. > So I was wondering if the Windows version of PHP sends e-m

Re: [PHP] Setting total db size to a variable.

2003-07-19 Thread Curt Zirzow
Jason Martyn <[EMAIL PROTECTED]> wrote: > I have a question in regards to finding the total db size and setting it to a > variable. This is rather vague in several aspects. Please expand on your question with more details, otherwise it makes it hard to help with with your question. > > How woul

Re: [PHP] Segfault on 4.1.2 on RH 7.2

2003-07-19 Thread Curt Zirzow
Roger B.A. Klorese <[EMAIL PROTECTED]> wrote: > Yes, yes, I know it's ancient -- but it's also what's out there for > RPMs, and if I need to go to source I will, but for now... hmm.. yeah you might want to upgrade to a newer version. > #1 0x402959e2 in __libc_realloc (oldmem=0x8343c80, bytes=3

Re: [PHP] Segfault on 4.1.2 on RH 7.2

2003-07-19 Thread Curt Zirzow
* Thus wrote Roger B.A. Klorese ([EMAIL PROTECTED]): > Curt Zirzow wrote: > > >Roger B.A. Klorese <[EMAIL PROTECTED]> wrote: > > > > > >>Yes, yes, I know it's ancient -- but it's also what's out there for > >>RPMs, and if I need

Re: [PHP] Forms and PHP

2003-07-19 Thread Curt Zirzow
* Thus wrote Justin French ([EMAIL PROTECTED]): > This is done with javascript... without getting too off topic... JS can > get the contents of the textarea, and submit it via get (maybe post as > well) to another (pop-up) window. the pop-up window can highlght > misspelled words, and even make

Re: [PHP] Setting total db size to a variable.

2003-07-19 Thread Curt Zirzow
* Thus wrote Jason Martyn ([EMAIL PROTECTED]): > I have a question in regards to finding the total db size and setting it to a > variable. > > How would I go about this? http://www.mysql.com/doc/en/SHOW_TABLE_STATUS.html Curt -- "I used to think I was indecisive, but now I'm not so sure." --

Re: [PHP] URL correctimizer ... how to make one?

2003-07-19 Thread Curt Zirzow
I know this isn't your code but... * Thus wrote Justin French ([EMAIL PROTECTED]): > [...] > > // test the URL > // it's important that you dont put http:// or it will not work > // the 2nd paramater is how long to test the URL b4 timing out > $found = fsockopen($url, 10); $found = fsockopen($ho

Re: [PHP] Re: classes v. functions

2003-07-19 Thread Curt Zirzow
* Thus wrote Simon Fredriksson ([EMAIL PROTECTED]): > [...] > just got confused. Then, suddenly I got some class for something, > checked out the code and my brain just snapped. "aaah, THAT's how it's > done!". It wasn't well documented, just nicely structured and easy to > read and understand.

Re: [PHP] list server problem

2003-07-20 Thread Curt Zirzow
* Thus wrote Andu ([EMAIL PROTECTED]): > Is it just me getting some messages 3 times? > I also noticed that there is no Reply-To in the headers so every time I > want to reply to the list I have to copy/paste the list's address, clicking > the Reply button would send my message to the poster, not

Re: [PHP] Jumping between HTTP and HTTPS

2003-07-20 Thread Curt Zirzow
* Thus wrote John Manko ([EMAIL PROTECTED]): > I'm having a little trouble understanding how to accomplish this. > Should the entire browsing session be HTTPS after login, or just for > important functions like "login" and "checkout" > If noly for those function, who should I design to jump back a

Re: [PHP] Jumping between HTTP and HTTPS

2003-07-20 Thread Curt Zirzow
I'm curious as to why your email has these headers: References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> In-Reply-To: <[EMAIL PROTECTED]> My email program thinks your discussing db sized and how you can get it into a variable in php. Curt -- "I used to think I was indecisive,

Re: [PHP] URL correctimizer ... how to make one?

2003-07-20 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > > btw, the above code is copyrighted so dont use it. Sorry, i shouldn't and try and make jokes in the furture... I was a little tired last night and kinda needed to lighten up my email a little (but it backfired on me).. Again, so

Re: [PHP] Auto session timeout

2003-07-20 Thread Curt Zirzow
* Thus wrote Tan Ai Leen ([EMAIL PROTECTED]): > Hi, Can someone confirm that php does not have a auto timeout feature? > Meaning something like session will auto expire irregardless of > whether the browser is close or not? > two php ini variables that effect this: ; Lifetime in seconds of cooki

Re: [PHP] Forms and PHP

2003-07-20 Thread Curt Zirzow
* Thus wrote Yasir Malik ([EMAIL PROTECTED]): > I'm working with forms using PHP and HTML. I've noticed that there is a > limit of the length of a URL that can sent to browser (I'm passing many > many things as arguments across pages). Is there a way to get across the > limit or am I doing someth

Re: [PHP] mail function

2003-07-20 Thread Curt Zirzow
* Thus wrote Peda ([EMAIL PROTECTED]): > I put this PHP script on web server: > > TRUE) print("U redu je"); else print("Greska"); ?> > > But It seems that mail function doesn't work. I don't get any e-mail. > > Can anyone tell me what is wrong. What does your sendmail_path say in your config,

Re: [PHP] Jumping between HTTP and HTTPS

2003-07-20 Thread Curt Zirzow
* Thus wrote John W. Holmes ([EMAIL PROTECTED]): > Curt Zirzow wrote: > > >On and advanced note, there are ways to protect a users password on a > >normal http connection. The authentication program I helped > >developed and use has the abilty to make a hash of the passwo

Re: [PHP] Mail From option in PHP.ini

2003-07-20 Thread Curt Zirzow
* Thus wrote Lowell Allen ([EMAIL PROTECTED]): > return-path for emails is something like "Return-Path: > <[EMAIL PROTECTED]>". I had accepted that I could not change > the return-path value with PHP, but reading about this fifth parameter > renewed my hope that I could. > > I tried adding a fifth

Re: [PHP] POSIX seteuid and similar

2003-07-20 Thread Curt Zirzow
* Thus wrote David Goodchild ([EMAIL PROTECTED]): > Hi, > > I am trying to create a small php program where I can control users > processes. As far as I see I require Apache to run as root in order to do > this (Note: I wish to access it via a webpage run through a browser). At > the moment all

Re: [PHP] Re: mail function

2003-07-21 Thread Curt Zirzow
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]): > > >Does mail() return true? I mean, do you get printed "U redu je"? If so, > > > > When PHP sends an email to a non existing email address such as > > [EMAIL PROTECTED], the warning mail you normally get returned often does not > > arrive in your mail

Re: [PHP] File download by php header...

2003-07-21 Thread Curt Zirzow
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]): > Hi! > > I'm using PHP 4.3.2 and IIS 5.0. I'm using the PHP header to > cause the webserver to download the file to the web browser. Some > of the time it work and some of the other time, it doesnt. I > haven't figured out why un

Re: [PHP] Register Globals

2003-07-21 Thread Curt Zirzow
* Thus wrote stfmoreau ([EMAIL PROTECTED]): > Hi, > > include this code in your header file : > // _GET > if (isset($_GET)) > while (list($key, $val) = each($_GET)) > { > eval ("$".$key." = '".$val."';"); > } > // _P

Re: [PHP] Re: Help?

2003-07-21 Thread Curt Zirzow
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]): > I want to warn you though, PHP depricates the use of register_globals = On, > so it would be recommendable to use your modified script and keep coding > using $_POST, $_GET and these kind of global variables. So php is removing that feature? Curt

Re: [PHP] SQL select

2003-07-21 Thread Curt Zirzow
* Thus wrote Jiøí Nìmec ([EMAIL PROTECTED]): > > and I need only first row of each component order by type. so: > > cooler aa1317 f > cpu cpu177 f > gk NULL i > mb mb f > ram me1112 f > > has somebody some idea hot to select? Suggestion: invest in a SQL book. Curt -- "I used to think I wa

Re: [PHP] help with ad serving

2003-07-21 Thread Curt Zirzow
* Thus wrote electroteque ([EMAIL PROTECTED]): > hi there my next project at work is to build an ad server for both image and > flash , i am storing each ad entry into a banner_ads table then another > table media to store each of the banners into which links to the banner , > although in the creat

  1   2   3   4   5   6   7   8   9   10   >