Re: [PHP] numerics

2003-02-10 Thread Steve Werby
ntry to alphanumeric characters. I've seen better JS code to do the same so if it's not suitable keep looking. http://javascript.internet.com/forms/val-char.html -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] automatically delete records from a table

2003-02-10 Thread Steve Werby
o that you don't need to send a request to the web server. I figure you know how to write the script and that it's just a matter of scheduling it. If not please be specific about the problem. This is asked pretty frequentl on php-general so between the archives and Google you should find

[PHP] If no record in MySQL how to?

2003-02-11 Thread Steve Jackson
ing documents with this article mail us for more information"; } else //Display table with array of linked files. { print "$documents[name]"; } } // end check for documents

RE: [PHP] If no record in MySQL how to?

2003-02-11 Thread Steve Jackson
Thanks Marek, That is the solution I was looking for. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] > Sent: 11. helmikuuta 2003 1

Re: [PHP] string to array

2003-02-12 Thread Steve Werby
r favorite looping construct. You could also easily convert it to an array at that point, but unless you need each character as an array element for a later operation it doesn't seem very efficient. I don't think explode() will let you use a separator of '', but you might

[PHP] sorting multi-dimensional array

2003-02-13 Thread Steve Buehler
ls ,1 15,35,U12 Girls UEFA Cup ,1 16,53,U14 Girls UEFA Cup ,1 17,52,U14 Girls Premiership ,1 18,38,U13 Boys ,2 19,110,U16 Boys ,2 Is this possible? I have looked at array_multisort and unless I am reading it wrong, it doesn't look like it would do what I needed. Thank You Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Process array after form submission problem

2003-02-13 Thread Steve Jackson
that $grant will be an array? (am I right?) so how do I use PHP to look at $grant as an array in my processing script rather than an ordinary variable? I can get the DB to update if there is only one checked box but otherwise it updates the DB with the value of the last checkbox. Any ideas? Steve

RE: [PHP] Process array after form submission problem

2003-02-13 Thread Steve Jackson
Cheers, Solved the problem exactly how I wanted it. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From: Matt Schroebel [mailto:[EMAIL PROTECTED]] > Sent: 13. helmikuuta 2003 2

[PHP] Threads in PHP? URL call from PHp?

2003-02-14 Thread Steve Vernon
Any other ideas? Which is the best way? What is the PHP way! If I was doing something like this in Java, probably set a class running in another thread. Many thanks, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sorting multi-dimensional array

2003-02-19 Thread Steve Buehler
Boys ,1 11,56,U15 Boys ,1 12,24,U11 Girls ,1 13,42,U13 Girls ,1 14,60,U15 Girls ,1 15,35,U12 Girls UEFA Cup ,1 16,53,U14 Girls UEFA Cup ,1 17,52,U14 Girls Premiership ,1 18,38,U13 Boys ,2 19,110,U16 Boys ,2 Is this possible? I have looked at array_multisort and unless I am reading it wrong, it doesn

RE: [PHP] sorting multi-dimensional array

2003-02-20 Thread Steve Buehler
This would work (and might still if I changed things), but the part that calls it is in another function also. Steve At 02:35 PM 2/20/2003 +, you wrote: > -Original Message- > From: Steve Buehler [mailto:[EMAIL PROTECTED]] > Sent: 20 February 2003 05:25 > > Ahhh...

[PHP] sorting multi-dimensional array part 2

2003-02-20 Thread Steve Buehler
The following "Seems" to work. But does anybody know how reliable this might be? Baically, I have a multi-dimensional array and want to sort by one column first, than another than another. Right now, I am using a temporary table in MySQL, but want to speed things up if possible. The command

Re: [PHP] Rounding

2003-02-20 Thread Steve Keller
At 2/21/2003 05:29 AM, Jason Wong wrote: > To round to the nearest 5: > > Divide by 5 > Round to the nearest integer > Multiply by 5 Modulus by 5 Subtract the result from the original number. Of course, my way depends on whether you're rounding up or down. -- S. Keller UI Engineer The Healt

Re: [PHP] Threading

2003-02-22 Thread Steve Vernon
time out, but the user will sit there being boored. Is it possible to call a URL from PHP? And just ignore it? I mean call another PHP script that takes ages, but wont affect he initial script ending? Steve - Original Message - From: "Greg Donald" <[EMAIL PROTECTED

[PHP] Renaming an uploaded file

2003-02-24 Thread Steve Jackson
suggestions? Kind regards, Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Renaming an uploaded file

2003-02-24 Thread Steve Jackson
OK, Thanks that helped. I've sorted that part of the problem. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED] > Sent: 24. helmikuuta 2

[PHP] Using a PHP mime email attachment

2003-02-24 Thread Steve Jackson
t processing your subscription. Please email us and we will send you a copy of the file as soon as possible."; // carry variables into do_html_index() function in output_fns. do_html_index($PageTitle, $BodyText, $Picture1, $Picture2, $CatID, $SECTION_NAME); // put the page footer in position do_html_footer(); exit; } Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP PDF attachment

2003-02-25 Thread Steve Jackson
nt to the message $message .= "--{$mime_boundary}\n" . "Content-Type: {$fileatt_type};\n" . " name=\"{$fileatt_name}\"\n" . //"Content-Disposition: attachment;\n" . //" filename

[PHP] Re: new to php, need help..

2003-02-25 Thread Steve Magruder
he PHP constructs are dealt with on the server-side and never make it to the client. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Memory exceeding

2003-02-25 Thread Steve Magruder
eing placed into session vars and how long sessions are being cached. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: MIME help needed please...

2003-02-26 Thread Steve Jackson
his->parts[$i]). "--$boundary"; } return $multipart.= "--\n"; } /* * void send() * Send the mail (last class-function to be called) */ function send() { $mime = ""; if (!empty($this->from)) $mime .= "From: ".$this->from. "\n"; if (!empty(

RE: [PHP] to Bryan Lipscy Re: [PHP] how___??

2003-02-26 Thread Steve Jackson
variables $localhost (with your servername) $user (your username) password (you guessed it your password) and $DBName with the name of your database. Then when you want to connect to the DB in php you just call db_connect(); The guys are right though for this level of questions you should read t

[PHP] Re: resizing .jpg file in php

2003-02-26 Thread Steve Magruder
age-related functions (and the GD library). Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: resizing .jpg file in php

2003-02-26 Thread Steve Magruder
"Anthony Ritter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > -- > > > Steve Magruder wrote in message : > > To reduce its display size in an img tag, specify 640 * .75 for the width > > (assuming 640 is for width) and 480 *

[PHP] Re: PHP graphs

2003-02-28 Thread Steve Magruder
lt; 4.1.0: $HTTP_SERVER_VARS['REMOTE_ADDR'] Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] testing for < 0

2003-02-28 Thread Steve Buehler
I have a form that has input for minutes. My problem is that I am trying to test to see if the field is blank or not and if they enter a "0" (zero), my test always show it as blank. I have tried !$timemb and !is_numeric($timemb). Thank You Steve -- PHP General Mailing

RE: [PHP] testing for < 0

2003-02-28 Thread Steve Buehler
There we go. Thank You so much. I also found that I had another error in my script and !is_numeric($timemb) did work after all. Steve At 10:41 AM 2/28/2003 -0800, you wrote: See isset() and empty() -Original Message- From: Steve Buehler [mailto:[EMAIL PROTECTED] Sent: Friday

[PHP] Free email service Plus get Paid while using it!!!!

2003-03-02 Thread steve adamian
I thought you would enjoy this new web site that I have found and started using recently. zWallet.com is a free email service provider that pays its members to email. It's really great, we do it anyway, why not get paid for it. And the best thing of all, zWallet.com not only pays you to email bu

Re: Re[2]: [PHP] Supressing a session id in link

2003-03-05 Thread Steve Magruder
t; >> > >> G> TIA > >> G> Gary > >> > >> It's the '&' that they are objecting to, change this line in your php.ini to the > >> following: > >> > >> arg_separator.output = "&" > >> > >

Re: [PHP] Session variable under PHP 4.0.6

2003-03-05 Thread Steve Magruder
#x27;s running fine on both 4.0.5 and 4.2.3 servers with register_globals set to "On". His code _should_ work. I think there's some other setting in php.ini that's causing an issue here. Henry, could you do a phpinfo() and show us the results? Steve -- PHP General

[PHP] Problem updating

2003-03-06 Thread Steve Jackson
Been on this a couple of hours... anyone see what I'm doing wrong? I get a result of 1 when I echo $result but it doesn't want to update at all. The action of this form index.php?action=update-account is just a switch case Which asks you to use the function update_subscriber_account() below...

RE: [PHP] Problem updating

2003-03-06 Thread Steve Jackson
Actually it didn't need the globals, But I did need to pass the variables into the function! Update_subscriber_account($var1, $var2 etc) I feel a right plonker now! Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343

[PHP] strange behaviour with login page

2003-03-09 Thread Steve Pollard
php 4.2.1), on the host server (linux, apache, php 4.1.2) I get the login screen twice before I get redirected. My hunch is that it's something to do with when session variable become available after registering them. (I'm using the sesssion management functions built in to php 4). TIA

[PHP] delete from array

2003-03-10 Thread Steve Buehler
(times) in them and would like to be able to delete a specific item out of them too. Thanks Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Converting HMLT to Text in PHP

2003-03-13 Thread Steve Vernon
ty or layed out nice, but id prefer it to be better than just removing the tags. Thanks, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql_connect issue

2003-03-14 Thread Steve Shead
r=($reverse)?'ORDER BY date DESC':''; if ($esearch!=NULL) { $query="select * from syslog where message like '%$vsearch%' $sortOrder limit $lo_val, $hi_val"; } else { $query="select * from syslog $sortOrder limit $lo_val,$hi_val"; } echo ""; echo ""; echo ""; echo ""; $result=mysql_query($query); $n=$hi_val-$lo_val; if ($n==0) {htmlerror();exit;}; echo "  Stats generated for "; echo $hostname; echo " on "; echo date("F d, Y"); $time_end = getmicrotime(); $time = $time_end - $time_start; echo ", in $time seconds. (total rows available: $maximum)"; mysql_data_seek($result,0); echo ""; echo ""; for ($i=0; $i<$n; $i++) { $row=mysql_fetch_array($result); if (($i%2)==0) { echo ""; } else { echo ""; }; echo ($row["date"]); echo ""; if (($i%2)==0) { echo ""; } else { echo ""; }; echo ($row["message"]); echo ""; } echo ""; echo ""; echo ""; echo ""; echo " ";echo ""; echo ""; $clear=unlink("/tmp/mesaje"); ?> Thanks ~Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] strip white space

2003-07-02 Thread Steve Buehler
. Leading spaces 2. Ending spaces 3. Double (or more) spaces in the variable leaving only one space between words. Does php have any built in function that I can not find that will do this? Thank You in Advance Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] strip white space

2003-07-02 Thread Steve Buehler
uot;&" in wsstrip(&$str). Does that mean that it takes the input to the function as Global and changes it Globally? I am assuming that because that is what the whole function seems to do for me. Thanks again everybody Steve At 11:49 AM 7/2/2003 -0500, you wrote: I am not sure how

[PHP] Re: PHP user group

2003-07-03 Thread Steve Magruder
Erich Kolb wrote: > Does anyone know of a PHP user group near Gurnee, IL. I found one in > Chicago, but its a little far to go and they meet in the middle of > the day on Sat. Take a look at http://php.meetup.com - perhaps there's a PHP meetup near you. Steve -- Steve Magru

[PHP] How to insert a variable into a PHP template.

2003-07-07 Thread Steve Jackson
$BodyText = "{$array["BodyText"]}"; $Picture1 = "{$array["PictureOne"]}"; $Picture2 = "{$array["PictureTwo"]}"; $CatID = "{$array["CatID"]}"; } // then write the function to call the page here ///

RE: [PHP] How to insert a variable into a PHP template.

2003-07-07 Thread Steve Jackson
including ";''=}{[] etc"; And then calling the string with fwrite? Or am I going to run into serious problems? Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message---

Re: [PHP] Spammer! Re: [PHP] ANNOUNCING: Rekall V2.0.0 for Linux/UNIX....

2003-07-07 Thread Steve Keller
At 7/7/2003 03:07 PM, Apollo (Carmel Entertainment) wrote: > If you are charing for your product and your source is not open, you have no place on > opensource lists. Just out of curiosity, where did you get the idea this is an "open source" mailing list? There are plenty of commercial PHP prod

Re: [PHP] Spammer! Re: [PHP] ANNOUNCING: Rekall V2.0.0 for Linux/UNIX....

2003-07-07 Thread Steve Keller
At 7/7/2003 04:09 PM, Apollo (Carmel Entertainment) wrote: > Well, lets see. I want free advertising too. How about I go to all the lists I > am member of and send emails like John from Rekall did "announcing" widgets or > services my company does. How will you react to that? Your level of read

Re: [PHP] New to PHP

2003-07-07 Thread Steve Keller
At 7/8/2003 03:30 AM, Hiren Mehta wrote: > Thnx alot guys You have been of great help :D And don't forget this list! There are a lot of really talented people on this list, so if you're trying to figure something out and haven't been able to find an answer on your own, don't hesitate to ask

[PHP] Fputs problem

2003-07-08 Thread Steve Jackson
ndex($PageTitle, $BodyText, $Picture1, $Picture2, $CatID, $SECTION_NAME);\n // put the page footer in position\n do_html_footer();\n ?>\n"; $filename = 'test.txt'; $fp = fopen($filename, "a"); $write = fputs($fp, $string); fclose($fp); } generate_page($formid

[PHP] Permissions on server

2003-07-08 Thread Steve Jackson
as a PHP file however it occurred to me while I was doing this that chmod 777 the root might not be a good idea. Anyone have a simple fix or idea for this? Kind regards, Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +3

Re: [PHP] New to PHP

2003-07-08 Thread Steve Magruder
onths ago". And the corollary to is: Most of what constitutes value in commented code is the code itself, which exhibits well-named variables, methods, etc. and well-structured, well-encapsulated algorithms. When code is structured appropriately, then the only actual comments needed are to ex

Re: [PHP] Removing Arrays With Certain Keys From Larger Array

2003-07-08 Thread Steve Keller
At 7/8/2003 02:18 PM, jwulff wrote: > I have an array exampled below. I want to remove and use certain nested > arrays from the larger array where the key == title, size, day, etc... How > does an idiot like myself accomplish this? You can reference it the same as you reference any other array.

RE: [PHP] Please assist - been on this for hours - Permissions on server

2003-07-09 Thread Steve Jackson
> On Tue, 2003-07-08 at 07:21, Steve Jackson wrote: > > If I set permissions of my server root to chmod 777 that's > a security > > risk right? How do I set my server to allow me to write a > file to my > > web root from another directory using PHP? Or is it a

[PHP] Headers and server

2003-07-09 Thread Steve Jackson
t;../$pagename.php"); // end of function. } // call the function. generate_page($formid, $pagename); ?> The page generates great and everything is hunky dory if the root is chmoded 777 but I have a feeling I'm wasting my time with this route unless someone has a better idea. Steve Jack

RE: [PHP] PHP forum

2003-07-09 Thread Steve Jackson
I should also add that another 685 posts would say RTFM about lightbulbs. Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From: Richard Baskett [mailto:[EMAIL PRO

[PHP] Re: NEW SPAMMER -> [PHP] New Krysalis version released

2003-07-09 Thread Steve Magruder
Ryan A wrote: > Didnt we just have a thread about spamming like this on the list? If it's a PHP-related product being announced, it isn't spam to me (and in fact, it's rather valuable), unless the announcement posts become repetitive. Steve -- Steve Magruder

RE: [PHP] Please assist - been on this for hours - Permissions on server

2003-07-10 Thread Steve Jackson
> But _why_ do you need to write to the root directory? Why not > just write to a directory where you *do* have permission to write to? I can already do that. My problem is that I need to move or copy/delete the file from the place I do have permission to write to to the root. I have generated

RE: [PHP] Please assist - been on this for hours - Permissions on server

2003-07-10 Thread Steve Jackson
> The root of the problem (pun intended) Oh dear! ;o) > is that you're trying to > write to the > root (/) directory which is usually only possible if you're the root user. > > Again, the question is _why_ do you need to write to the root directory? > Wouldn't your file function if it wasn't

RE: [PHP] Please assist - been on this for hours - Permissions onserver

2003-07-11 Thread Steve Jackson
meone typed: http://www.mysite.com/generated.php They would get the page. Not (as I can currently do) http://www.mysite.com/cms/generated.php Thanks. Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159

RE: [PHP] Please assist - been on this for hours - Permissions onserver

2003-07-11 Thread Steve Jackson
p";, "r"); <<<< Line 59. $move = fputs($fp2, $final_url); fclose($fp2); // end of function. and get a really odd error: Warning: fopen("ftp://172.16.2.4/~stephenj/misc/webpage/cms/this_wont_work.php","; r") - Inappropriate ioctl for device on lin

RE: [PHP] Please assist - been on this for hours - Permissions onserver

2003-07-11 Thread Steve Jackson
h this method? All I wanted was for a file to be written into a safe directory and then moved automatically to the webroot. Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Messag

RE: [PHP] Please assist - been on this for hours - Permissions onserver

2003-07-11 Thread Steve Jackson
f there is a way to do what you suggest without a security risk I'd buy you a beer and send it to you via ASDL if you'd tell me how ;o). Cheers, Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] So in summary this can't be done due to permission problems?

2003-07-11 Thread Steve Jackson
around that due to permission settings on the webroot? So there is no way that PHP can write to the server unless the directory it's writing in is executable? Thanks for continued help. Cheers, Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [

[PHP] multiple versions

2003-07-15 Thread Steve Lane
Hello all: Is there any convenient way to have a single install of Apache on Linux/Intel use multiple copies of PHP? I need to test different versions of PHP and would rather not have to build a separate server for each. It would be great if I could build multiple copies of PHP, install them all,

Re: [PHP] IE Issues

2003-07-22 Thread Steve Magruder
Curt Zirzow wrote: > Dont use the font tag.. they are evil... and besides depricated. And they're deprecated too. :) Steve -- Steve Magruder Consulting - http://consulting.stevemagruder.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] Opinon please - Host refuses to install a later version than 4.2.3 - says they're too buggy.

2003-07-23 Thread Steve Childs
in a production environment." If that's the case, why hasn't 4.3.2 been fixed since late May? Or is my hosting company just making up excuses? I would like to get away from 4.2.3, just wondering what people's thoughts on the current version of php are. Thanks & Regards S

Re: [PHP] Opinon please - Host refuses to install a later version than 4.2.3 - says they're too buggy.

2003-07-23 Thread Steve Childs
this probably isn't the right place to do so) - why is the latest Debian APT package 4.3.2? Tis rather old. -- Regards Steve Childs, "Justin French" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This really should be asked on a MySQL list for starters, but

[PHP] cookies on localhost WinXP

2003-07-30 Thread Steve Buehler
in my php.ini file or my browsers? The program works fine on my RedHat/Apache/PHP/MySQL server. Thanks Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Steve Buehler
uot;coach_access[login_id]", "coach",0,"/","localhost"); ?> That doesn't seem to work either. I am using two browsers for testing. Netscape 7.1 and MS IE 6.0.2800. Netscape 7.1 has a cookie manager that will let me see all cookies that are set and it doesn&#x

[PHP] Refresh a page in another frame

2003-07-30 Thread Steve Fulleylove
Hi all, I have a PHP web site that uses frames. I can use the header() function to redirect the user to a new page, but can I use this function to load a page into a different frame ? Thanks in advance, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Steve Buehler
with "coach_access[login_id]" as the cookie name. On another note, why would this work on the RedHat, but not the WinXP Apache/PHP? Thanks Steve At 12:34 PM 7/30/2003 -0700, Chris Shiflett wrote: Can you try this example? Let's call the file cookie_test.php \n";

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Steve Buehler
can as: header('Set-Cookie: coach_access_login_id_=coach'); but again, I would have to re-write a lot of script. Thanks Steve At 12:34 PM 7/30/2003 -0700, Chris Shiflett wrote: Can you try this example? Let's call the file cookie_test.php \n"; echo "Test\n";

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Steve Buehler
That still won't work for me for some reason. I am just going to rewrite parts of the script to use a cookie name with out a [something] IN the name. I will rename it to ca_id or something like that. Thanks for your help Steve At 01:38 PM 7/30/2003 -0700, you wrote: --- Steve Buehler &l

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Steve Buehler
es, but not the type you are thinking of. It is just the name of a column in a table. I haven't figured out how to use session id's yet. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] check for duplicate databases

2003-07-30 Thread Steve Buehler
there someone out there that can help me to write it? Thanks Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Refresh a page in another frame

2003-07-31 Thread Steve Fulleylove
Thanks Mehdi, Works a treat. Steve "Mehdi Achour" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Steve Fulleylove wrote: > > > Hi all, > > > > I have a PHP web site that uses frames. I can use the header() function to > > redir

[PHP] Cookies on WinXP

2003-07-31 Thread Steve Buehler
kie with the "header" line with no problem, but either one of the "setcookie" lines will not set the cookie. Has anybody seen this? Does anybody know why this might be happening? BTW, no, I do not try to set all of these at once. Just showing the lines that I use. The &qu

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Steve Buehler
main name to my laptop and put that domain name in the "string domain" parameter and it still didn't work. Steve At 05:53 PM 7/31/2003 -0500, Steve Buehler wrote: I still can't figure something out. I am using WinXP/Apache 1.3.24/PHP 4.2.3 on my laptop and my cookies s

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Steve Buehler
multiple names and values. // after the page reloads, print them out if (isset($_COOKIE['cookie'])) { foreach ($_COOKIE['cookie'] as $name => $value) { echo "$name : $value \n"; } } /* which prints three : cookiethree two : cookietwo one : cookieone */ ?>

Re: [PHP] String parsing help

2003-08-20 Thread Steve Edberg
Or (untested): $String = 'NORTH LITTLE ROCK AR 72118-5227'; $Bits = split(strrev($String), '[[:space:]]+', 3); $Zip = strrev($Bits[0]); $State = strrev($Bits[1]); $City = strrev($Bits[2]); ...could also use preg_split() - steve At 4:44 PM -0400 8/20/03, "CPT

[PHP] case insensitive sort

2003-08-26 Thread Steve Buehler
e the results of the search: Buehler, Steve Buehler, Steve Teste, Teste a, a asdf, adsf asdf, asdf dsdlkj, sd Here is the code to sort: $GLOBALS[sortterm]="cont_name"; usort($logins, "cmp"); function cmp ($a, $b) { GLOBAL $sortterm; return strcmp($a[$sortterm], $b[$sortterm]

Re: [PHP] case insensitive sort

2003-08-26 Thread Steve Buehler
Ok. Now I REALLY feel like an idiot. Thanks so much for your help. Steve At 05:46 PM 8/26/2003 +0200, you wrote: It right there under your nose: strcasecmp() Steve Buehler wrote: I am using the following function for a sort on an array. I hope someone can help me out here and let me know

Re: [PHP] Force refresh of graphic - how?

2003-03-17 Thread Steve Magruder
too? (Said he without > having time to test either approach!) Yes, that should work. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php file writting ?

2003-03-18 Thread Steve Keller
At 3/14/2003 12:53 PM, Ron Petty wrote: > Here is the code, maybe I am just missing something (this is the part > where it writes and then opens again... >> for($i = 0; $i < count($users); $i++) >> { >> for($k = 0; $k < count($grouplines);$k++) >>

Re: [PHP] php file writting ?

2003-03-18 Thread Steve Keller
At 3/18/2003 11:46 AM, Steve Keller wrote: > >> for($i = 0; $i < count($users); $i++) > >> { > >> for($k = 0; $k < count($grouplines);$k++) > >> { > >>

Re: [PHP] PDF Creation

2003-03-18 Thread Steve Keller
At 3/13/2003 01:05 PM, Christopher J. Crane wrote: > I am just getting into PDF creation and I am having some issues. Can anyone > send me a simple script that creates a PDF doc. I would like it to open in > the browser after creation, not create a file. Try the EZPDF class. It does just that, ser

Re: [PHP] no phun intended!!!

2003-03-18 Thread Steve Keller
At 3/9/2003 09:11 AM, Niels Andersen wrote: > LOL > > I like PHP, but I also like wet girlies. But the two are not interchangable, > which is a pitty, becouse sometimes I really could use a wet girl, and I > only have PHP If god wanted geeks to procreate, women would be accept C includes. -- S

Re: [PHP] no phun intended!!!

2003-03-18 Thread Steve Keller
At 3/18/2003 02:30 PM, Pete James wrote: > Steve and Niels, > > I personally don't think that this sort of garbage has any place on this list. The PHP lists > are for the promotion and assistance of the PHP community. In our small ways, we are > all ambassadors for PHP

[PHP] sorting an array

2003-03-20 Thread Steve Buehler
ty Community College, A 8, Johnson County Girls Athletic Assoc, D 6, Johnson County Girls Athletic Assoc, B 7, Johnson County Girls Athletic Assoc, C 5, Johnson County Girls Athletic Assoc, A 9, Shawnee Civic Center, 1 1, Tomahawk Sports Dome, 1 2, Tomahawk Sports Dome, 2 3, Tomahawk Sports Dome, 3 4, Toma

Re: [PHP] web services

2003-03-21 Thread Steve Magruder
et paper... just my experience, for what it's worth. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Steve Jackson
> Haven't the faintest idea what you mean by "direct from the > web" and "a secure > Intranet mysql db" and "web DB". > Sorry. What I mean is that we have an externally hosted website. Currently all the forms etc update tables in the web hosted mysql DB. I am in the process of building a small

RE: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Steve Jackson
t line but not any of the thread you refer to. Don't suppose you could regurgitate it could you? I must have trawled through about 1 messages. I was back to Nov 2001! The above two links don't really help me that much, I just need the process explained so I know I'm on the right t

RE: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Steve Jackson
Thanks to those that have helped thus far. To clarify what we need: Our CRM system (really a prospect gathering system) needs to internally hosted, be realtime and needs to be updated automatically. Our website (hosted externally) is *one of many* tools which we are going to use to gather informat

RE: [PHP] Passing data between the web to an Intranet

2003-03-27 Thread Steve Jackson
e thing, however the only way I can think of to do that is display the submissions on a page and and somehow parse that into SQL to insert it. Any ideas on how I can go about that? Cheers, Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 34

[PHP] Re: Please point me in the right direction

2003-03-27 Thread Steve Magruder
t that Kylix isn't "catching up" with Linux releases. On top of that, you don't have to upgrade Linux just because Red Hat puts out a new release. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] last questions

2003-03-28 Thread Steve Jackson
Here's a function you could use. The input from your form should be email ($email in this script). function valid_email($email) { // check an email address is possibly valid if (ereg("[EMAIL PROTECTED]", $email)) return true; else return false; } HTH Steve Jackso

RE: [PHP] Connecting to a remote server

2003-03-28 Thread Steve Jackson
ew server. If it's remotely hosted ask your administrator what these variables are. If you have admin and root rights you should be able to configure your password and find out the information yourself. Regards, Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com

[PHP] Other PHP developers in Louisville, KY?

2003-03-28 Thread Steve Magruder
lot of fun. Regards, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file

2003-03-28 Thread Steve Keller
At 3/28/2003 10:26 AM, Diksha Neel wrote: > i have a simple program to open and write a file. > but the file is not getting created. > can anyone please spot the mistake? > echo"hi?how are u doing??"; > $fp = fopen ("sandrew.html", "w"); > string="hii am $string = > fine"; > $contents=fwrite($f

Re: [PHP] Random Password Making.

2003-03-28 Thread Steve Keller
At 3/28/2003 11:32 PM, Philip J. Newman wrote: > Whats the best way to make a random password with 4 letters and 2 numbers? I don't know what the "best" way is, but I had fun doing this one. I filled the first 4 elements of an array with random letters by using the minimum ASCII value of a lett

Re: [PHP] Theme selector?

2003-04-01 Thread Steve Keller
At 3/30/2003 12:42 PM, Lars Tvedt wrote: > i would have used templates: heres one http://smarty.php.net > "Liam Gibbs" <[EMAIL PROTECTED]> wrote in message > > I'd store your themes in stylesheets instead. Question, Lars, does Smarty allow for easy template changing? I haven't used it very much.

Re: [PHP] Theme selector?

2003-04-02 Thread Steve Keller
At 4/1/2003 08:49 PM, [EMAIL PROTECTED] wrote: > Also, I've not convinced anyone where I'm at now to use smarty. In my > mind they are penny-wise and pound foolish. The real little extra > time you might need to use a template system is richly rewarded in > code re-use and future changes to the s

RE: [PHP] PHP Email Attachment problem

2003-04-03 Thread Steve Jackson
I also had a similar problem and it was simply because the directory holding the attachment didn't have permission to send the attachment, so check the permissions on the directory. Once I changed it it sends fine. Cheers, Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystem

Re: [PHP] chill out

2003-04-03 Thread Steve Keller
At 4/3/2003 01:14 PM, [EMAIL PROTECTED] wrote: > We subscribe to a few email lists on various languages. Why do people assume that because they subscribe to a mailing list with their work address that the mailing list must hold to their company's standards? > This list would have to be the wor

<    1   2   3   4   5   6   7   8   9   10   >