Re: [PHP] Reliability of sessions

2002-04-05 Thread Michael Virnstein
On the page you start the session, ${session_name()} isn't set. so if you need that on the first page too, you should do the following "Thomas Deliduka" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I use them because 'sid' isn't always populated and, w

[PHP] Re: strip_tags() problem

2002-04-05 Thread Michael Virnstein
try the following: $text = ""; $fp = fopen("http://www.yahoo.com";, "r"); while (!feof($fp)) { // read a line and strip all php and html tags // there's a third optional parameter, which // allowes to specify tags not to be replaced $text .= fgetss($fp, 4096); } fclose($fp); echo

[PHP] Re: strip_tags() problem

2002-04-05 Thread Michael Virnstein
ple below, if connection could not be established. so $fp = fopen("http://www.yahoo.com";, "r"); should be $fp = fopen("http://www.yahoo.com";, "r") or die ("Could not connect"); or you get an endless while loop on the feof if connection fails.

Re: [PHP] getting lines from the highest ID in a database?

2002-04-05 Thread Michael Virnstein
this should do the trick: SELECT MAX(field) from table you have to use MAX to get the highest value in field. Michael "Jason Wong" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED]... > On Friday 05 April 2002 18:27, Hawk wrote: > > Lets say I have a g

Re: [PHP] Re: preventing "back" button usage?

2002-04-05 Thread Michael Virnstein
orm again. So if you want the user to be able to submit this form again but preventing him from submitting the same data again, you have to do a little more than what i mentioned above. Regards, Michael "Erik Price" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]&q

[PHP] Re: Directory to array to select box...

2002-04-05 Thread Michael Virnstein
how about that: $file\n"; } ?> in your example there are two mistakes: 1. "while ($file = readdir($dir))" is wrong and should be "while (false !== ($file = readdir($dir))". (see php manual readdir) 2. "$file_count .="$file";" is not inside the loop, so you will only get the

[PHP] Re: Directory to array to select box...

2002-04-05 Thread Michael Virnstein
ok, i'll try to help, but first use "while (false !== ($file = readdir($dir))". ;) why do you need hidden fields on that page? to determine which file the user has selected? hmmm...ok, let's see: The user sees your form, selects the desired file and submits the form. Now the page processing the re

[PHP] Re: Javascript and PHP??

2002-04-05 Thread Michael Virnstein
sure you can use javascript in your php. php is serverside and produces the page. the webserver sends then this produced page to the client. so javascript is the same as html for php. it's just some lines of text. "Joe Keilholz" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:

Re: [PHP] Any ideas on combining arrays????

2002-04-05 Thread Michael Virnstein
perhaps: $FFR = array("TU4R" => array("data" => array(array("count" => "TU4R is 0"), array("count" => "TU4R is 1"), array("count" => "TU4R is 2"))), "PH01" => array("data" => array(array("count

[PHP] Re: What's wrong with the Array? I"m baffled!

2002-04-05 Thread Michael Virnstein
> $number = $sumItUp[$name]; > $number++; > $sumItUp[$name] = $number; this could be done easier: $sumItUp[$name]++; :) "Scott Fletcher" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi! > > I'm a little baffled on why the array is not working t

[PHP] Re: Headers not working

2002-04-06 Thread Michael Virnstein
this might be because you use the cgi version of php. to be able to send e.g. 404 header, you have to run php as webserver module which currently only works with apache and linux afaik. otherwise these headers get send by the webserver and you cannot affect them. if you use php with apache as mod

RE: [PHP] WebMail server question

2002-04-07 Thread Michael Geier
You are probably thinking about IMP (http://www.horde.org) This message is actually being sent from an IMP 3.0 installation and our company is very pleased with the product. -- Michael Geier CDM Sports, Inc. - Systems Administrator email: [EMAIL PROTECTED] Quoting Chris Kay <[EM

[PHP] Re: Copying Directory

2002-04-08 Thread Michael Virnstein
# # # boolean copy_dirs ( string src_dir, string target_dir ) # # # copy shopdirectories into a new shop # # Function Parameters

[PHP] Re: Copying Directory

2002-04-08 Thread Michael Virnstein
there was a typo...this one should work # # # boolean copy_dirs ( string src_dir, string target_dir ) # # # copy a directory with subdirectories to a target directory

[PHP] Re: Newbie Question

2002-04-08 Thread Michael Virnstein
try this: Solid "); print("".$data[0].""); print(""); print("."$data[2].""); print("".$data[3].""); print("".$data[4].""); print("".$data[5].""); print(""); } } ?> "Hubert Daul" <[EMAIL PROTECTED]> schrieb im Newsbeitra

[PHP] Re: sessions and passing variables

2002-04-08 Thread Michael Virnstein
sure. if all users should have access to this instance of your object, then you could store the serialized object in a file, everyone has access to and unserialize it if needed.But don't forget to include your object-surcecode before unserializing the object, or you'll lose your methods. If users

Re: [PHP] Adding "a" in "try.jpg"! Problems!

2002-04-08 Thread Michael Virnstein
$myrow[ilmage] = eregi_replace("(\.[^\.]+)$", "a\\1", $myrow[ilmage]); and if ilmage isn't a constant use $myrow["ilmage"]. "Thomas Edison Jr." <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Thanks for your relies. There are a couple of > proble

Re: [PHP] Adding "a" in "try.jpg"! Problems!

2002-04-08 Thread Michael Virnstein
but if $myrow["ilmage"] = "hallo.hmm.gif"; your code won't work. so better: while ($myrow = mysql_fetch_array($result)) { $img = explode('.',$myrow[ilmage]); $img[count($img) - 1] .= "a"; echo ""; } "Richard Baskett" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EM

Re: [PHP] Adding "a" in "try.jpg"! Problems!

2002-04-08 Thread Michael Virnstein
typo..this one's right :) while ($myrow = mysql_fetch_array($result)) { $img = explode('.',$myrow[ilmage]); $img[count($img) - 2] .= "a"; echo ""; } "Michael Virnstein" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]&q

[PHP] Re: php and html image tag...

2002-04-08 Thread Michael Virnstein
Please post more code. Can't help any further in the moment. "Jas" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ok here is my problem, I have a piece of code that queries the database > pulls the results of a table into an array, on another file the res

[PHP] Re: Directory check

2002-04-08 Thread Michael Virnstein
file_exists will perform a check if the file, no matter if it's a directory, a regular file or a symlink. if you want to know if it is a directory use is_dir($file) or refer to the php manual"Hiroshi Ayukawa" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] Banning javascript?

2002-04-08 Thread Michael Peters
I don't have an answer for you, but I want to ban javascript from the world. It's OK when used correctly, but used correctly means the site isn't dependant upon it and is still fully functional in non visual browsers (like what visually impaired would use) and it seems that almost no one does

[PHP] Re: sablotron XMl XSLT

2002-04-09 Thread Michael Kimsal
voicemail at my ISP ;) > > thanks, > You could use function_exists() to test if xslt_create() is a defined function. If not, then error out. If so, carry on. It's not limited to sablotron checking - check for GD, PDF, etc. Michael Kimsal http://www.phphelpdesk.com P

Re: [PHP] XML HELP

2002-04-10 Thread Michael Virnstein
Why don't you use this class...it's really good! http://sourceforge.net/projects/phpxpath/ "Analysis & Solutions" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hey Christopher: > > On Mon, Apr 08, 2002 at 09:14:08PM -0400, Christopher J. Crane wrote: >

[PHP] Re: Scoping functions in PHP

2002-04-10 Thread Michael Virnstein
No, there's nothing like private or public functions/methods. There's no way preventing someone using your private functions/methods. "Eric Starr" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 000e01c1e041$d931cc20$[EMAIL PROTECTED]">news:000e01c1e041$d931cc20$[EMAIL PROTECTED]... I am a Java progra

[PHP] Re: mailing list using mail()

2002-04-10 Thread Michael Virnstein
> Should I just use one message and append the BCC: line of the one message? this could probably be the best way. "Petre Agenbag" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > the combination of PHP and mysql and the ease of use of the mail() > f

[PHP] Re: Is While needed in MySQL Result with a Limit of 1

2002-04-10 Thread Michael Virnstein
It seems that you don't understand why mysql_fetch_array is most often used inside a loop. The loop is not required! if you don't put mysql_fetch_array inside a loop, you can only get the first row and that's it, because calling mysql_fetch_array will return the next row in your result. if you exp

[PHP] Re: PHP Sessions/P3P Questions

2002-04-10 Thread Michael Kimsal
hat the slime who *will* sell your name and email and whatever other info they gather will have no compunction about creating a false P3P policy file. Michael Kimsal http://www.phphelpdesk.com 734-480-9961 Guaranteed PHP support when you need it -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: arguments against php / mysql?

2002-04-10 Thread Michael Kimsal
you? They may have a reseller program which means they'll make a couple hundred bucks off the sale of CF and want to push that. (just a guess - you haven't given any more info). For the money you'd spend on CF, you could do worse than to buy a machine to run LAMP on and go with that

Re: [PHP] Re: arguments against php / mysql?

2002-04-10 Thread Michael Kimsal
ot; products a bad image. No one expects ASP to run on anything but IIS (chilisoft notwithstanding). If the server HAS to be Windows, use ActiveState's Perl or something else with a company behind it and just go down that road. Having PHP run poorly under Windows will just make PHP look bad, even if it's Windows' fault. Michael Kimsal http://www.phphelpdesk.com 734-480-9961 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Free PHP Hosting

2002-04-10 Thread Michael Andersson
Try http://www.spaceports.com/ and sign up for a cgi-bin account "Php" <[EMAIL PROTECTED]> skrev i meddelandet news:8heamp$3b5$[EMAIL PROTECTED]... > Does anyone know a free PHP hosting company who is also offering any > database? > > -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] Re: unsetting an instance from within its class

2002-04-11 Thread Michael Virnstein
you can use unset($this), but it'll only work if there are no other variables referencing to this object. unset only unsets the reference to value, not the value itself. PHP will unset the value totally, if there are no references to it anymore. so using $this = null; , is perhaps the better solut

[PHP] Re: passing array to another php file

2002-04-11 Thread Michael Virnstein
first serialize and then base64encode your array. send this encoded string to the next page and base64decode it there first and then unserialize it. ... and sample2.php: "Hirono Tanaka" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, does anyone k

Re: [PHP] String?

2002-04-11 Thread Michael Virnstein
see what's wrong here: ereg('(^[0-1231]$).jpg$',$file_name) [] meens a group of characters, so in your case 0,1,2 and 3 are valid characters. you haven't defined any modifer like ?,*,+ or{}, so one of this characters has to be found exactly one time. you're using ^ outside the [] so it meens the

[PHP] Re: Temporary off...

2002-04-11 Thread Michael Virnstein
jup, that's what i am using. much better! no email spam and i can keep track of threads more easily. and i can "David Robley" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In article , > [EMAIL PROTECTED]

[PHP] Re: Getting values of duplicate keys in array

2002-04-11 Thread Michael Virnstein
ok, here we go. you normaly say this i suppose: while ($row = mysql_fetch_array($result) { //your html inserts here } if you'd use oracle, i'd suggest using a cursor, but you're using MySql, so you probably have to do it a bit different: (Not tested, could contain some errors!!!) // you'll

[PHP] Re: Getting values of duplicate keys in array

2002-04-11 Thread Michael Virnstein
ble m, $praxTable p WHERE m.$prax = p.$id GROUP BY m.prax, m.$preName, m.$sureName, m.$title, p.$town, p.$zip, p.$phone, p.$description ORDER BY m.$prax, m.$preName"; "Michael Virnstein" <[EM

[PHP] Re: Limits and PHP

2002-04-11 Thread Michael Virnstein
ok, if you're using mysql you can use the LIMIT function in your statement: SELECT * FROM table LIMIT 0, 30 would show 30 rows starting from row 1. you can set a variable telling your php script how many entries per page you will show: $showlines = 10; and telling your script where to start the

[PHP] Re: Getting values of duplicate keys in array

2002-04-11 Thread Michael Virnstein
// print names of docs here using $docrow array } //print address of praxis here using $row array } } "Michael Virnstein" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > typo in the querystring,

Re: [PHP] Getting values of duplicate keys in array

2002-04-11 Thread Michael Virnstein
hmm...he has a table for premises and one for doctors, hasn't he? > FROM $medTable m, > $praxTable p "Justin French" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Just a quick note, you wouldn't base it upon $description would you? > It reall

[PHP] Re: Serializing Binary Data

2002-04-11 Thread Michael Kimsal
ble to run base64_encode() and base64_decode() on the data first, then serialize it. Or heck, just store that ascii version that is the base64'd version directly - no need to serialize. Michael Kimsal http://www.phphelpdesk.com Guaranteed PHP support when you need it 734-480-9961 -- PHP Gener

Re: [PHP] String?

2002-04-11 Thread Michael Virnstein
and i'd suggest using eregi instead, because then also .Jpg or .JPG will be found. "Michael Virnstein" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > see what's wrong here: > ereg('(^[0-1231]$).jpg$',$fi

[PHP] Re: howto call php script from cgi script

2002-04-11 Thread Michael Virnstein
doesn't it have to be: # md5.php #!/usr/bin/php (path to your php) and have you test your cgi using "su - webuser" before? perhaps some file permission problems, when called from the web. "Sanjay" <[EMAIL PROTECTED]> schrieb im

[PHP] Re: Getting values of duplicate keys in array

2002-04-11 Thread Michael Virnstein
FROM $praxTable p, $medTable m WHERE p.id = m.prax GROUP BY p.id, p.$town, p.$zip, p.$phone, p.$description"; "Michael Vir

[PHP] Re: pages compressed with zlib

2002-04-11 Thread Michael Kimsal
y > Netscape 4.x *says* it supports compression, but it doesn't uncompress when printing, so if you use the compression method, your netscape 4 users will be at a loss if they want to print. Maybe this will force them to upgrade (finally) but probably not. Michael Kimsal http://www.p

Re: [PHP] chechking to see if a directory already exists

2002-04-11 Thread Michael Kimsal
Kevin Stone wrote: > Wouldn't it be more helpful to assume that the individual is simply > uninformed? So isntead of flaming him and calling him stupid you could say, > "Check the PHP manual at www.php.net". > -Kevin > The definition of a question assumes the person is uninformed - else, why a

[PHP] Re: Sending HTML from PHP with 'mail' as a cron job

2002-04-12 Thread Michael Virnstein
i'd suggest using PEAR's mail class. It'll fit for all your needs and is easy to use. <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > $headers = "Content-type: text/html\n"; > $fromEmail = urlencode( $dbQuery->adminEmail ); > $subject = "Your new eStore i

Re: [PHP] Re: php+myslq+IDE

2002-04-12 Thread Michael Andersson
Try homesite, its all worth the money "Brian Drexler" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm a big Edit Plus fan as well. Really though, it's just a fancy text > editor with color coding and autocompleting, and IMHO the autocompleting can > ge

[PHP] Re: variable scoping...

2002-04-12 Thread Michael Virnstein
why do you have more than one class with the same name? would be easier using different names for different classes. or define a base class template and extend it in the files as desired, but give them unique names. how do you know later, which class does what in which way, when they have the same

[PHP] Re: string...

2002-04-12 Thread Michael Virnstein
any character at the beginning between 0 and unlimited times, followed by an _, followed by 4 characters between 0 and 9 followed by a dot, followed by jpg which has to be at the end of the string. Michael "Jas" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:

[PHP] Re: string...

2002-04-12 Thread Michael Virnstein
's meening. and there's nothing like preg_matchi to check case-insensitive. this has to be done using modifiers after the ending /. in the example above it's i for case-insensitive. "Michael Virnstein" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]&quo

[PHP] Re: Formatting timestamp date in MySQL

2002-04-12 Thread Michael Andersson
I´m kind of new to this mysql stuff but anyway... I have a row in a table with a timestamp of 14 chars and i dont know how to convert the row named 'tidsstampel' into something like this: select DATE_FORMAT('1997-10-04 22:23:00', '%W %M %Y'); i dont wanna use a static date for this, id rather u

[PHP] Re: Php + Mysql Hosting problem

2002-04-12 Thread Michael Andersson
To use php+mysql on spaceports you have to sign up for a cgi-bin account and store your files on that server.. /Micke "Simonk" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have made a web site containing Php and Mysql script > And I have applied for a

[PHP] Re: Upload problem

2002-04-12 Thread Michael Andersson
Have you tried to change the defualt timeout value from 30 secs to something larger or even -1 in the php.ini file? Could be a problem to upload 4mb in 30 secs if your on a slow conn.. /Micke "FyiÎ?rk µérkt" <[EMAIL PROTECTED]> skrev i meddelandet 004001c1e12d$43ca16a0$020296c2@actarus">news:

[PHP] Re: functions

2002-04-12 Thread Michael Virnstein
like you call every function in php. "Alia Mikati" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi > i would like now how can we call a function within another function in > php? > thx a lot > > -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Php/Mysql

2002-04-12 Thread Michael Andersson
Myabe you should assign "some string to a variable: $string = "some string"; insert into mytable values ($string) /Just a noob trying to help out "Torkil Johnsen" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Just a noob php/mysql question... (I suppose

[PHP] Re: Empty delimiter error - ??

2002-04-15 Thread Michael Virnstein
this means in your case, that $email is an empty string "Rich Pinder" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm totally unfamiliar with php, and making some slight modificiations > to Chris Heilmann's nice v 1.1 Newsleterscript. > > What exactly

[PHP] Re: Understanding If conditional statements

2002-04-15 Thread Michael Virnstein
if ($sql_result = 0) if you want to compare $sql_result with 0 you have to do it: if ($sql_result == 0) = is an assignment operator, == is a comparision operator "Lmlweb" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm trying to get my code to print

[PHP] Re: register_shutdown_function

2002-04-15 Thread Michael Virnstein
afaik there is no way to call a class method with register_shutdown_function. simply use a function which calls your constructor function _shutdown() { xmysql::~xmysql(); } register_shutodown_function("_shutdown"); "Hayden Kirk" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 000501c1e40b$694ca

[PHP] Re: phpMyAdmin protection

2002-04-15 Thread Michael Virnstein
you can use the built in auth system. see phpmyadmin manual "Mantas Kriauciunas" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hey PHP General List, > > Can anybody point me to tutorial or real good explanation site how > to keep Http://localhost/ph

[PHP] Re: evaluate my mailing list attempt?

2002-04-15 Thread Michael Virnstein
looks fine but i would change this: > $to=$list2[1];//set "to" to email address > $subject="Newsletter"; > $msg="Hello $list2[0], bla bla bla"; //include name in message > mail("$to,$subject,$msg"); //individual mail during to > $subject="Newsletter"; > $msg="Hello $list2[0], bla bla bla"; //in

[PHP] Re: Session problem

2002-04-15 Thread Michael Virnstein
> Warning: Cannot send session cache limiter - headers already sent > (output started at /path/to/my/little/session.inc:9) in > /path/to/my/little/session.inc on line 10 this means that there is output before session_start() was called. look at your include files, and make sure that there is no

[PHP] Re: Writing Cross DB application

2002-04-15 Thread Michael Virnstein
PEAR::DB(); "Arcadius A." <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hello ! > I'm planning to write a database application for MySQL, and then port it to > PostrgeSQL. > Is there any library or class that could help me to write/maintain just one

[PHP] Re: "What date/time was it 7 hours ago"?

2002-04-15 Thread Michael Kimsal
o. How do I make a function that takes in -MM-DD HH:MM:SS and spits out > the -MM-DD HH:MM:SS minus... for instance, 7 hours? > > "What date/time was it 7 hours ago"? > > function timebefore($time,$hours=7) { $x = strtotime($time) - ($hours * 360

[PHP] Server performance

2001-10-18 Thread Michael Bonfert
php scripts or helps me locating a bad script? Michael -- 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] unset Cookies

2001-10-22 Thread Michael . Thanry
Hello everyone! Is there a way to unset or expire a cookie which was not set by my pages? Michael -- 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

[PHP] is_int() and is_double

2001-10-24 Thread Michael George
14.8 ) $partNum: 12 does appear to be a number, and not a double $serial: 14 does appear to be a number, and not a double ------- Why is the function is_double() failing? I have an analagous problem with the is_int() function.

[PHP] Trying to subtract...no luck. (Long Code)

2001-10-24 Thread Michael O'Neal
$result=DB_query($sql,$db); while ($myrow=DB_fetch_array($result)){ if ($myrow["PlayerID"]==$TaskChampion){ echo "" . $myrow["PlayerName"]; } else { echo "" . $myrow["PlayerName"]; } } echo "\n"; echo "S

Re: [PHP] Trying to subtract...no luck. (Long Code)

2001-10-24 Thread Michael O'Neal
Thanks all...I got what I needed. I'm amazed at how many different ways there are to do the same thing! mto -- Michael O'Neal Web Producer/ Autocrosser ST 28 '89 Civic Si - M A N G O B O U L D E R - http://www.thinkmang

[PHP] Retrieving text file

2001-10-29 Thread Michael Benbow
elp! I am desperate!! The file definently exists but I am stuck. Thank you, Michael. -- 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] How I made My First Million

2001-10-31 Thread Michael Dawson
here, you can only gain, but this might just solve all of your problems. http://www.begingame.com Thank you for reading this letter. Sincerely yours, Michael _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

[PHP] A way to simulate modem speeds?

2001-10-31 Thread Michael Hall
I apologize for the only-vaguely-PHP-related nature of this, but I'm endlessly impressed with the knowledge here. I'm looking for a way to clamp down a network machine (we're on a T1) to modem speeds (28 to 52 K) for testing purposes. Is there software (preferably for Windows) that would do this

Re: [PHP] Comparing strings

2001-11-01 Thread Michael Egan
I feel fairly new to this as well but I think that, whilst your logic is right, the syntax may be a little off. if ($action == "textstring) { echo "true"; } else { echo "false"; } Above should show how the syntax will rok. Good luck Michael phantom wrote: > &g

[PHP] Sendmail entry in PHP.ini

2001-11-03 Thread Michael, Jason
Does anyone know what the correct entry for the php.ini that allows you to to use sendmail in OSX 10.0.4 Server? Thanks, Jason -- 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 admin

[PHP] #!/usr/local ignore option?

2001-11-11 Thread Michael Rice
Hi All, I have a kind of unique problem that I've had trouble finding information on around the net. I have a site that I pay a hosting company for that expects my php scripts to have #!/usr/local/bin/php at the beginning of each script which works fine. Now, I'd like to keep a development serv

[PHP] Frames and Sessions

2001-11-13 Thread Michael Hall
I have tried starting a session in the main frameset file, then adding to the URLs of the frame files, which sort of works but breaks where JavaScript is used for buttons in one of the frames. JavaScript doesn't seem to cope with the PHP tags. Thanks Michael -- #####

[PHP] Redeclare a Function

2001-11-13 Thread Michael Cronström
Hi everybody, I would like to "declare/redeclare" a function twice in the same doc. Is it possible to "unset/undeclare" the function and include it again a second time? I have searched the manual but can´t find anything useful, any ideas? TIA Michael -- PHP Genera

Re: [PHP] Redeclare a Function

2001-11-13 Thread Michael Cronström
Thanks Joffrey "You learn everyday...." Michael >its possible to create lambda-style functions with create_function() and >redeclare the variable functions > >--- >$funct = create_function('$x', 'return ++$x;'); >echo $funct(10); > >$funct

[PHP] Parsing XML

2001-11-13 Thread Michael Harris
Can anybody tell me if there is a way to build an array or some other means of collecting the attributes from the Start Element Handler so I can return them back to my main application? Thanks for any help, -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] High-Volume Newsletter Techniques?

2001-11-14 Thread Michael Sims
ist on your MTA and have the PHP script send the message to one address, the mailing list, and have your MTA (Sendmail, for example) have the responsibility of forwarding the message to all it's intended recipients... -----

Re: [PHP] Error with Netscape 6.2

2001-11-14 Thread Michael Stearne
That is not an error you get from a browser, that is an error generated by the server. Netscape or IE are just reporting that. Are you sure the app works in IE (try Shift+Refresh on IE and Shift+Reload on NS). It sounds like there is a problem in your code. Michael Anthony wrote: >

Re: [PHP] php- cgi

2001-11-21 Thread Michael Sims
At 03:54 PM 11/21/2001 +, Caspar Kennerdale wrote: >I have a script that when I execute via a browser retrieves information. > >Ultimately I want this automated. There has been mention on these lists >about compliling php as cgi, which I think may help I saw the following somewhere and saved

Re: [PHP] strip php out of html

2001-11-22 Thread Michael Sims
At 02:28 PM 11/23/2001 +1030, David Robley wrote: >It sounds like you want to capture the output of the script - so you just >end up with what you would see in View Source??? If that is what he wants to do, I think this would be an easy way: $ lynx -source http://host/file_to_be_captured.php > r

Re: [PHP] pipe email to php?

2001-11-24 Thread Michael Geier
The real question is why? What is the purpose of piping the email to a PHP script? Are you trying to insert emails into a database? Are you trying to deal with emails automatically based on subject? Are you trying to deal with emails from a specific source? The answers to these questions will c

Re: [PHP] Can php do this?

2001-11-24 Thread Michael Sims
At 10:04 PM 11/24/2001 -0500, [EMAIL PROTECTED] wrote: [snip] >Sort of like cron doing what you would do if you visited >page.php and once it's hit, it emails specified users in a database >Would I need path to php in the cron script to do this? >Or am I just living a dream? It sure can. There's

Re: [PHP] Can php do this?

2001-11-25 Thread Michael Sims
At 09:22 AM 11/25/2001 -0400, Miles Thompson wrote: >I've followed this with interest, but unless you specifically need some >properties of PHP to do this, use an easier tool. > >Python has modules for both MySQL and PHP. They are easily invoked and >don't involve calling Lynx & feeding it the s

Re: [PHP] Creating a new file & saving it with date & time name

2001-11-26 Thread Michael Hall
Something like this ...? $time = time(); // UNIX timestamp $filename = $time . ".txt"; $string = "your content here"; $file = fopen("$filename","w"); fputs($file,$string); fclose($file); Michael On Mon, 26 Nov 2001, Kevin Garrett wrote: &g

Re: [PHP] Infomation wanted

2001-11-26 Thread Michael Hall
be hard to hack one up. Michael On Mon, 26 Nov 2001, De Necker Henri wrote: > I want to know where can i find a script that will allow a user to login > every certain time period! > I just cant get it right! > > -- #### Michael Hall [EMAIL PROTECTE

[PHP] php apache module and file writing vs security ?

2001-11-27 Thread Michael Blower
le is php4.4 version. Michael -- 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] Apache 2.0.28 and PHP 4.0.6

2001-11-27 Thread Michael Hall
- > Lars > When mailing me, remember there is no truth in my mail! > > > > -- Michael Hall [EMAIL PROTECTED] [EMAIL PROTECTED] http://openlearningcommunity.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTEC

[PHP] HELP: Writing Files securely from apache php module

2001-11-28 Thread Michael Blower
Can some one explain how to write file php in the apache module version of php ? I don't want to make the directories world writable, or writable by web clients. How is this accomplished. Sorry if the is a really newbie question. Michael Blower [EMAIL PROTECTED] [EMAIL PROTECTED] 70

Re: [PHP] Query Help Needed

2001-11-29 Thread Michael Hall
x27;$job_title', '$org_name', > '$address1', '$address2', '$address3', '$address4', '$city', '$region', > '$postal_code', '$country', '$email', '$mob_phone', '$

[PHP] database question

2001-11-29 Thread Michael Hall
ing that? Mick -- ######## Michael Hall [EMAIL PROTECTED] [EMAIL PROTECTED] http://openlearningcommunity.org -- 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 adminis

[PHP] color problems when resizing image with GD

2001-11-29 Thread Michael Hall
img,"../images/property/property_".$id.".jpeg"); Michael Hall Web Development Manager / Sr. Programmer Prairie Fire Internet Technologies [EMAIL PROTECTED] 605.357.9700 ext. 14 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: [PHP] Sending fax with php, is it possible?

2001-11-29 Thread Michael Geier
. HylaFAX homepage: http://www.hylafax.org NOTE: This is a UNIX-based solution. -- Michael Geier CDM Sports, Inc. - Systems Administrator email: [EMAIL PROTECTED] phone: 314.991.1511 x 6505 pager: 314.318.9414 || [EMAIL PROTECTED]  [EMAIL PROTECTED] wrote: > Hi all! > > I have

Re: [PHP] Mass Mailing

2001-12-03 Thread Michael Cronström
OK Nathan, I have a couple of scripts that will do the job for you, if you are interested! Web inventor Michael Cronstrom At 22:51 02/12/01, you wrote: >I started writing a set of scripts that would send out mutiple emails to a >list of customers. I then realized that most likel

[PHP] Dynamically created dropdowns

2001-12-04 Thread Michael Egan
tabase, one for manufacturers and one for models with the latter containing a field for the manufacturer ID. Is this possible? Michael Egan -- 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 ad

Re: [PHP] Dynamically created dropdowns

2001-12-04 Thread Michael Hall
that. Michael On Tue, 4 Dec 2001, Michael Egan wrote: > Hope this isn't an inappropriate message to send to this list. I suspect > the response will largely concern JavaScript. > > Is there a way of altering the contents of one drop down menu according > to the item selec

Re: [PHP] php vbulletin and postgres

2001-12-04 Thread Michael Hall
was written in the first place. Michael On Tue, 4 Dec 2001, shaun murphy wrote: > hey, > > me again. I am going to set up a vbulletin site and I understand it uses php > along with mysql. I can get php and postgres hosting so I was wondering what > the differences are in postgres

Re: [PHP] Dynamically created dropdowns

2001-12-05 Thread Michael Egan
Michael, Many thanks for your help. I've opted for the 'straight PHP' route and, in the process, saved myself a lot of time pointlessly trying to see if JavaScript could read from the database. Michael Egan Michael Hall wrote: > > You can certainly do what you want i

<    7   8   9   10   11   12   13   14   15   16   >