[PHP] html table

2001-01-25 Thread Mike
How do I get every other column to be a different color (or font ect.)when I'm populating a table from a db(different field counts all the time) Thanks Mike [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

[PHP] conjecate a variable to a string in a function

2001-03-09 Thread Mike
Whats wrong with this? $MaxID="select Max($Table.'ID') from $Table"; MikeP [EMAIL PROTECTED] -- 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] Not isset

2001-03-09 Thread Mike
how do I write a Not isset as in: if != isset($order) { $order=$Table."ID"; } mikep [EMAIL PROTECTED] -- 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:

[PHP] Web Page/MySql

2001-03-13 Thread Mike
I have a Mysql Database on a web site.On very large record retrieval I want to split the recorset so there is "Page 1, Page 2"links at the bottom.This is the only part I dont have.Any Suggestions? Thank Mike P [EMAIL PROTECTED] -- PHP General Mailing List (http://w

[PHP] Mysql Show SQL

2001-03-13 Thread Mike
query($query); while ($row = mysql_fetch_row($result)); { for ($i =1;$imysql_num_fields($result);$i++) {echo $row[$i]; }} ? Thanks Mike [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PHP] Why not 'file_exists()' for URLs?

2001-03-20 Thread Mike
On 19 Mar 2001 06:53:00 -0800, [EMAIL PROTECTED] ("David G.") wrote: Since fopen/fread/fclose all work with standard URLs, why not allow file_exists() to work with URLs as well? What is the procedure to make such a request? Try this: function url_exist($url) { $url_parts =

[PHP] Re: PHP software tool

2001-12-22 Thread Mike
TextPad is another good text editor for all types of programming languages. Unforuntatly it is not free but the demo my work for you. http://www.textpad.com It supports multiple languages like PHP, JAVA and HTML -Mike Laserjetter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]"

[PHP] Tracking Problem -- Force full script execution?

2002-06-07 Thread mike
Hi, I am trying to track every user who visits my site (over 100,000 per minute..), and I have over 25 queries in my tracking script... and I have a feeling some users are closing the script before it finishes executing, even though my script loads very quickly.. and its causing some of my MySQL

Re: [PHP] Tracking Problem -- Force full script execution?

2002-06-07 Thread mike
Hi, Not porn, but advertising. We only use about 20mbit/sec. Thanks, - Original Message - From: Miguel Cruz [EMAIL PROTECTED] To: mike [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, June 07, 2002 6:00 PM Subject: Re: [PHP] Tracking Problem -- Force full script execution

[PHP] Which costs more: connecting to a DB or accessing the file system?

2002-06-21 Thread mike
I was reading somewhere (can't remember where) that connecting to a db is a pretty costly transaction. DB queries aside, does anyone know of any benchmarks that demonstrate file access vs. db connections? Similarily, while DB queries offer alot of power, would it be cheaper (faster) to drop

Re: [PHP] Which costs more: connecting to a DB or accessing the file system?

2002-06-21 Thread mike
that filesystem access is faster. Michael Erik Price [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Friday, June 21, 2002, at 11:19 AM, mike wrote: I was reading somewhere (can't remember where) that connecting to a db is a pretty costly tra

Re: [PHP] Which costs more: connecting to a DB or accessing the file system?

2002-06-21 Thread mike
George, George Whiffen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm not quite sure what you are trying to achieve, but if holding the data in a file is realistically an option i.e. your data is static, then why not consider holding your final output

[PHP] CANT GET STUFF TO WORK

2002-07-09 Thread Mike
Hello, I am wondering if you could help me... I can't seem to figure out how to get sessions working. Thank You, Mike

Re: [PHP] CANT GET STUFF TO WORK

2002-07-09 Thread Mike
on the next page.. does that help out? Thank You, Mike - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: 'Mike' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 3:25 PM Subject: RE: [PHP] CANT GET STUFF TO WORK http://www.php.net/manual/en/ref.session.php

Re: [PHP] CANT GET STUFF TO WORK

2002-07-09 Thread Mike
I used both a post and a get (using print a href=\$PHP_SELF\.session_name().=.session_id(). click here/a;) and a post, but they don't seem to work. Mike - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: 'Mike' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002

[PHP] The code to the pages that I can't figure out.

2002-07-09 Thread Mike
in admin is: http://counter.funyon.com/autocounter/include/getcounters.phps which makes links to: http://counter.funyon.com/autocounter/signup/editcounter.phps There you go, I hope that I can get some insight ;) Mike

Re: [PHP] CANT GET STUFF TO WORK

2002-07-09 Thread Mike
in admin is: http://counter.funyon.com/autocounter/include/getcounters.phps which makes links to: http://counter.funyon.com/autocounter/signup/editcounter.phps There you go, I hope that I can get some insight ;) Mike - Original Message - From: Lee [EMAIL PROTECTED] To: Mike

Re: [PHP] CANT GET STUFF TO WORK

2002-07-10 Thread Mike
Running Slakware linux 2.4.7 kernel... if you want more info you can go to http://www.funyon.com/phpinfo.php and see the phpinfo page. Thanks, Mike - Original Message - From: Naintara Jain [EMAIL PROTECTED] To: Mike [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 12

Re: [PHP] CANT GET STUFF TO WORK

2002-07-10 Thread Mike
- Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 10:25 AM Subject: Re: [PHP] CANT GET STUFF TO WORK On Wednesday 10 July 2002 21:58, Mike wrote: Please do not top post (ie add your comments/reply at the top), it makes

[PHP] PHP gd-2.0

2002-07-10 Thread Mike
for any help, Mike --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.371 / Virus Database: 206 - Release Date: 6/13/02 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Compile errors with php 4.2.1 and gd

2002-07-11 Thread Mike
=/usr/local --enable-ftp any help would be appreciated greatly, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Compile errors with php 4.2.1 and gd

2002-07-11 Thread Mike
oops, ok, I was being stupid... forgot to do a make install on gd 2 ;( Mike - Original Message - From: Mike [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Thursday, July 11, 2002 5:52 PM Subject: [PHP] Compile errors with php 4.2.1 and gd Hello, I have followed all

[PHP] Problems with apache and php

2002-07-11 Thread Mike
I have a small problem, I can make the cgi version of php fine, it runs and installs perfectly, but when I try to make the apache module (i.e. --with-apxs=/path/to/apxs) php crashes apache. can anyone give me any insight on this? Thanks, Mike -- PHP General Mailing List (http://www.php.net

[PHP] String Manipulation

2002-07-25 Thread Mike
(substr($tartist,$bracketpos+3)); } ? I know that there has to be a shorter version of this, can anyone help me out with it? Thank You, Mike [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] String Manipulation

2002-07-25 Thread Mike
Thanks, it worked like a charm ;) Mike -Original Message- From: Tech Support [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 11:39 AM To: Mike; PHP List Subject: Re: [PHP] String Manipulation I tested this out with success. $string = ereg_replace

RE: [PHP] String Manipulation

2002-07-25 Thread Mike
for future reference is there a way that you could return the string with all the parentheses stripped out? Thank You again, Mike [EMAIL PROTECTED] And what would be -Original Message- From: Tech Support [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 11:39 AM To: Mike; PHP List

RE: [PHP] String Manipulation

2002-07-25 Thread Mike
Wow, Thank you for the explanation, it helped out a lot ;) I don't know regex very well, but I hope that this will give me a better understanding of it. Thank you Yet again, Mike -Original Message- From: Tech Support [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 12:26 PM

RE: [PHP] Need regular match help - possibly

2002-07-25 Thread Mike
Hi for the first case - using \n, try : ereg_replace('\n+', '\n\n\n', $str) This is right, apart from the fact that \n characters will no be parsed with single quotes. Try this... ?php ereg_replace(\n+, \n\n\n, $str); ? Sorry, just a minor thing. Mike -- MGS2 Online http

[PHP] slow reading from socket

2002-07-25 Thread Mike
is working? help me! Thanks, Mike -- MGS2 Online http://www.mgs2online.f2s.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Selecting databases

2002-07-25 Thread Mike
You need to look at mysql_list_dbs(), this returns an array of all available databases on a connection. -- MGS2 Online http://www.mgs2online.f2s.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: placing data outside the server root

2002-04-15 Thread Mike
= @fopen($file,r); if ($imagep) header(Content-type: image/gif); while(!feof($imagep)) $buffer = fread($imagep,4096); echo $buffer; } fclose($imagep); } Something like that. Good luck, Mike [EMAIL PROTECTED] Hi

Re: [PHP] Variables not working

2002-04-26 Thread Mike
I do a link to http://blah.com/do.php?varbiable=passed I'm not sure of any docs though, sorry. Mike - Original Message - From: baldey_uk [EMAIL PROTECTED] To: Nathan [EMAIL PROTECTED]; Rasmus Lerdorf [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, April 26, 2002 10:29 PM Subject: RE

Re: [PHP] Authentication with register_globals OFF

2002-05-11 Thread Mike
Thanks, Stuart. I'll admit I don't fully I understand register_globals. Beyond that, I am sure I am not clear on the value of NOT using register_globals. I am wading through the docs constantly. Haven't quite finished. Regardless, thanks for the assist. Mike - Original Message

Re: [PHP] php.net sloooooooowwww

2002-05-18 Thread mike
Seems to be an old main page on php.net too, us2.php.net shows 4.2.1 released, php.net doesn'.t :) Mike - Original Message - From: Miguel Cruz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 19, 2002 1:35 AM Subject: Re: [PHP] php.net sl On Sat, 18 May 2002

Re: [PHP] cron: No such file or directory

2002-06-03 Thread mike
Actually, /usr/lib/php is a directory most likely. You need to make sure you compiled the binary at compile time, and then (on Linux) it would be installed to /usr/local/bin/php. Thanks, - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Monday,

[PHP] Probs with MIME multipart/alternative generated with PEAR mime.php

2002-06-03 Thread mike
is that the problem originates from either my MTA, or the script itself. But, I just don't know enough about MIME multipart/alternative to diagnos the problem. A raw version of the email is below. Any MIME gurus out there? Thanks, mike From [EMAIL PROTECTED] Mon Jun 3 05:27:54 2002 Return

Re: [PHP] Probs with MIME multipart/alternative generated with PEAR mime.php

2002-06-03 Thread mike
Henry, Thanks for the reply. I tryed tweaking the pearMime.php class to handle correctly with no luck. As a temporary solution, I didtched the Mime.php class and just simpley added my own headers. $hdrs = array( 'MIME-Version' = 1.0, 'From' =

[PHP] Re: Probs with MIME multipart/alternative generated with PEAR mime.php (bug)

2002-06-04 Thread mike
. Altough I have not had a chance to test this fix with my clients who have complained of this issue, my rudimentry research shows this to be the case. Regards, Michael Mike [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Hi, I just don't know enough about MIME encoded email

[PHP] There has to be a more elegant way of doing this

2002-07-31 Thread Mike
Heya, I was just wondering If there is a more elegant way of doing this... $string = str_replace('%mp3number%',$ARRAY['mp3number'],str_replace('%file_size%', $file_size,str_replace('%url%',$url,str_replace('%title%',$title,str_rep lace('%artist%',$artist,$format) Thank You, Mike [EMAIL

RE: [PHP] Re: There has to be a more elegant way of doing this

2002-07-31 Thread Mike
Sweet! You rock! It worked perfectly and now I don't have this giant line in the middle of my script :) Thanks, Mike [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: lallous [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 10:11 AM To: [EMAIL PROTECTED] Subject

[PHP] Intermentant problems with getting information out of a string.

2002-08-15 Thread Mike
Channels : 2 String is ** substr($string,0,1) = * * String is *+OK* substr($string,0,1) = *+* If I wasn't good at explaining myself please tell me. Thank You, Mike [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Can anyone help me out? I am really getting frustrated!

2002-08-15 Thread Mike
be appreciated. Thank You, Mike [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Can anyone help me out? I am really getting frustrated!

2002-08-15 Thread Mike
There were 2 equal signs, when I sent It outlook must have made them into one. Mike -Original Message- From: Matt Schroebel [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:48 PM To: 'Mike'; [EMAIL PROTECTED] Subject: RE: [PHP] Can anyone help me out? I am really getting

[PHP] Is there a better way of doing this?

2002-08-21 Thread Mike
== ){ $tim = $te[0] ..0. $te[1]; }else{ $tim = (string)$t ... (string)$te .m); } }else{ if($debug){ print got else!; } Thank You, Mike [EMAIL PROTECTED] [EMAIL

RE: [PHP] Is there a better way of doing this?

2002-08-21 Thread Mike
-Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 4:56 PM To: Mike; [EMAIL PROTECTED] Subject: Re: [PHP] Is there a better way of doing this? Hello Mike, parse a string similar to 4,31m) figure out if it is numeric

RE: [PHP] Re: An if statment that someone else designed and I can't parse ;(

2002-08-27 Thread Mike
. Thanks, Mike -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 24, 2002 7:36 PM To: Mike Cc: [EMAIL PROTECTED] Subject: [PHP] Re: An if statment that someone else designed and I can't parse ;( This may not be the best place to post this question

[PHP] header problem

2002-08-31 Thread mike
X-Priority: 1 X-MSMail-Priority: High X-Mailer: Just My Server this must mean that i have written the headers wrong, can someone point me in the right direction thanks | Mike | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] COM

2001-09-29 Thread Mike
Hi All Where is some good info on useing COM or DCOM with PHP? Both of my scripts bellow fail and I cannot seem to find why. ?php $Instance = new COM (string Word.Application, string 216.0.0.0); ? or ? $word = new COM(word.application) or die(Unable to instanciate Word); print Loaded Word,

[PHP] Server wont execute my PHP files!!

2001-11-29 Thread Mike
I am being hosted by South West Bell, and my php files are not even recognized. They are stored in the correct folder, but SWB ONLY allows read/write permissions, and NO chmod access. The tech support guy told me that I have to code the Execute permission in my php file. Is that true? and if

[PHP] How do I put a path to Sendmail in php script??

2001-11-29 Thread Mike
The server that I am using has Sendmail in a different place than their path to php. Also, you have to run php scripts with a cgi magic line (#!/usr/bin/php). I am using the mail() function to send mail, but I don't know how to put the path to Sendmail into the script so that mail() finds it.

RE: [PHP] looong date formatting for MySQL

2001-08-17 Thread mike
?php $a = date( Y\-m\-d ); print( $a ); ? should do the job... there is lot's of things that you can incorporate in the date function... look it up at www.php.net/date -Original Message- From: CGI GUY [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 4:16 PM To: [EMAIL

[PHP] help with php mysql and images...

2001-08-22 Thread Mike
figure out what I have to do. You see the guy that programmed that page before, did it all In asp. And I don't know anything about asp, and I was told Not to learn anything about asp because it is dumb (no offense To anyone intended) Any help appreciated... mike -- PHP General Mailing List

[PHP] GET / POST strange error

2001-08-24 Thread Mike
i have written a login page for a members area on my site - the code is as follows... ? require_once(backend.php); if (!$userid || !$password) { include(loginform.php); exit; } else { $login = $authlib-login($userid, $password); if ($login != 2) { $error = $login; include(loginform.php);

[PHP] PC MAG article

2001-05-09 Thread Mike
As a devoted php programmer I was surprised how bad PC MAG blasted php this month.It sound as if it doesnt scale very well(Ive never had more than a few people on my site at once).Any comments??? Thanks Mike [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Problem with the MAIL command

2001-05-17 Thread Mike
Its OK gang I have solved it - It was a mail-relay problem ! Mike @toye.php.net sexygeek ) nospam (sexygeek @btinternet.com wrote in message 9e0mtb$pqn$[EMAIL PROTECTED]">news:9e0mtb$pqn$[EMAIL PROTECTED]... Hi I have a simple mail command which I can see my SMTP (IIS5) server is pi

[PHP] String problem

2001-02-19 Thread Mike
I get this error Parse error: parse error, expecting `']'' in /on this. $Q= "Update $HTTP_POST_VARS[$keys[1]] Set $updateString Where $keys[0] =$HTTP_POST_VARS[$keys[0]]"; all my brackets are closed [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

[PHP] Include files

2001-04-04 Thread Mike
I'm trying to use html "include" syntax in a php page.If I use .shtml the php gets ignored .If I use php the !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this without using the php include function? Thanks Mike P [EMAIL PROTECTED] -- PHP

[PHP] Include Files

2001-04-04 Thread Mike
I'm trying to use html "include" syntax in a php page.If I use .shtml the php gets ignored .If I use php the !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this without using the php include function? Thanks Mike P [EMAIL PROTECTED] --

[PHP] Include Files

2001-04-04 Thread Mike
I'm trying to use html "include" syntax in a php page.If I use .shtml the php gets ignored .If I use php the !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this without using the php include function? Thanks Mike P [EMAIL PROTECTED] --

[PHP] Include Files

2001-04-04 Thread Mike
I'm trying to use html "include" syntax in a php page.If I use .shtml the php gets ignored .If I use php the !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this without using the php include function? Thanks Mike P [EMAIL PROTECTED] --

[PHP] TEST

2001-04-04 Thread Mike
My posts seem to joined to a thread all of a sudden although I'm starting a new post each time Mike P [EMAIL PROTECTED] -- 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

[PHP] Another include ?

2001-04-05 Thread Mike
. I tried to add both: AddType text/x-server-parsed-html .phtml AddType application/x-httpd-php .phtml but that doesnt seem to work.Is this possable?? Mike P [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

[PHP] Parse error

2001-04-10 Thread Mike
Im getting a "missing )" error on line 77 but cant seem to find it.Am I missing something else thats causing it? for ($i =1;$i=15;$i++) { if(!(isset(${'R'.$i.'P'};)))// line 77 { ${'R'.$i.'P'};="NULL"; } } Thanks Mike [EMAIL PROTECTED] -- PHP

Re: [PHP] Looking for a framework

2007-10-23 Thread mike
On 10/23/07, Larry Garfield [EMAIL PROTECTED] wrote: I don't think any really integrate with PHP better or worse than others, since all of them can only speak HTTP. I will say that in my professional PHP work I've standardized on jQuery because jQuery itself rocks, and doesn't try to turn

Re: [PHP] How can I load this XML file into an array? (and. . . how do I reference the values?)

2007-10-26 Thread mike
On 10/26/07, John A DAVIS [EMAIL PROTECTED] wrote: I've found simple examples on the web that work a simple XML file (song, title, etc) but I need one that will parse an XML file into elements of an array. And then, I need to reference these elements to validate against a database. The data

Re: [PHP] How can I load this XML file into an array? (and. . . how do I reference the values?)

2007-10-26 Thread mike
On 10/26/07, John A DAVIS [EMAIL PROTECTED] wrote: this works: $xml_data = file('xml_edwr2.xml'); var_dump($xml_data); I can get the var_dump to work for 1 sample, but I guess there are a many samples in one xml file which turns into something like this(so, there is no way for me to

Re: [PHP] How can I load this XML file into an array? (and. . . how do I reference the values?)

2007-10-26 Thread mike
On 10/26/07, John A DAVIS [EMAIL PROTECTED] wrote: simplexml won't work for our version of PHP. planning on upgrading once we get the new server then i guess if you need it now, it's probably easiest to look for a PEAR module. however... gophp5.org! :) -- PHP General Mailing List

Re: [PHP] Perl style chomp()

2007-11-01 Thread mike
() ? seems unnecessary to reinvent the wheel. if you want an array one, just make it recurse like you did. - mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP advice: Tips webpage valid?

2007-11-13 Thread mike
On 11/13/07, Dotan Cohen [EMAIL PROTECTED] wrote: I came across this page today: http://reinholdweber.com/?p=3 It covers a lot of flammable material (echo vs. print) but I wonder how valid some of the advice is. Can anyone elaborate? Thanks. funny you should post this, I've recently been

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread mike
you want javascript. i'd recommend using jquery (jquery.com) put an id=username on the username box. then do script type=text/javascript $(document).ready(function() { $(#username).focus(); }); /script voila On 11/13/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi all: This may or may

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread mike
Mike: you want javascript. i'd recommend using jquery (jquery.com) I'll look into this. Thanks. put an id=username on the username box. then do script type=text/javascript $(document).ready(function() { $(#username).focus(); }); /script voila Hmmm

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread mike
yeah, but adding in jquery will open up his entire world :) the example below will work without jquery. personally though i try to stick with jquery since i usually need it for more throughout my site. On 11/13/07, Chris [EMAIL PROTECTED] wrote: It only works if you have included the jquery

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread mike
in my experience it never stops at a single focus event on a login box... but yes, i should have replied with the simpler solution first. On 11/13/07, tedd [EMAIL PROTECTED] wrote: At 5:49 PM -0800 11/13/07, mike wrote: yeah, but adding in jquery will open up his entire world :) It could

Re: [PHP] Open Source BTS??

2007-11-15 Thread mike
On 11/15/07, Randy Patterson [EMAIL PROTECTED] wrote: Hey, I am needing to install a bug tracking system on a web server and looking for a good PHP open source solution. Looking for a pretty mature system that still has active development. Thanks for any suggestions. http://www.mantisbt.org/

Re: [PHP] How to ask if private IP?

2007-11-25 Thread mike
i did this once $ip = sprintf(%u,intval(ip2long($_SERVER['REMOTE_ADDR']))); and then did checks to see if it was between the ranges for 10.0.0.0, 192.168 etc... apparently i lost that code. but it was pretty simple. http://www.faqs.org/rfcs/rfc1918.html 10.0.0.0- 10.255.255.255

Re: [PHP] parsing text for special characters

2007-11-29 Thread mike
On 11/29/07, Adam Williams [EMAIL PROTECTED] wrote: I've got an html form, and I have PHP parse the message variables for special characters so when I concatenate all off the message variables together, if a person has put in a ' or other special character, it won't break it when it used in

Re: [PHP] zip codes and lat/longs

2007-12-05 Thread mike
Here's code I had, but it recently stopped working It takes the zip code for the user and the user you're viewing, looks them up from the data table (z_data_zips) and does the calculation. The formula is in a handful of places - I converted mine from a MySQL example (I think, or vice versa) You

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread mike
After reading this I decided to figure out what the issue was. It was the MySQL result set. Somehow the columns changed and messed up the float values. So I just whipped this up quick to reload the data (and possibly update it too) Here's the quick-and-dirty: 1) download ZCTA (the text version)

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread mike
IN($ziplist); } } db_free($uchk); On 12/6/07, Daniel Brown [EMAIL PROTECTED] wrote: On Dec 6, 2007 11:02 AM, mike [EMAIL PROTECTED] wrote: [snip!] 1) download ZCTA (the text version) from http://www.census.gov/geo/www/gazetteer/places2k.html [snip

Re: [PHP] How to look for unused methods/functions and variables/constants.

2007-12-14 Thread mike
Well you can use get_defined_vars() to find all the variables defined inside of each scope (for instance global scope) that don't really need to be defined... http://php.net/get_defined_vars They can help you unset() or find variables you otherwise don't need to use. But that's the best I think

Re: [PHP] utf-8 in $_POST

2008-01-07 Thread mike
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 My experience is that this does not affect only the displayed characters, but the way the form fields are transported. But perhaps I am wrong, Iv This works for me as well. Put in utf-8 and you should be good to go. You

Re: [PHP] iphone.facebook.com PHP inquiry

2008-01-07 Thread mike
It's probably using IUI (the iPhone UI CSS/JS that Joe Hewitt created, now being maintained at http://code.google.com/p/iui/) which allows you to request the page to be loaded via AJAX based on how you setup the link. a href=foo.phpthis will load via AJAX/a a href=foo.php target=_selfthis will

Re: [PHP] iphone.facebook.com PHP inquiry

2008-01-07 Thread mike
/08, Steve Finkelstein [EMAIL PROTECTED] wrote: Thanks for the reply Mike. I suppose ultimately I'd need to dig into the JavaScript (hopefully it's not compressed) to figure out the PHP routing. I believe re-writing my application with the framework would be quite extensive and just

Re: [PHP] utf-8 in $_POST

2008-01-07 Thread mike
maybe look at iconv functions but the meta content-type is the only thing i set, and it works 100% fine. all javascripts, forms, etc. inherit it from the looks of it properly. On 1/7/08, Olav Mørkrid [EMAIL PROTECTED] wrote: i specify iso-8859-1 in both header and body: meta

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread mike
that is a horrible method. it works in zeus and apache, but not lighttpd, from my experience. it's just not a good idea. technically that should only be file paths, and i would expect it to load a file named x.cgi?want=ssilinks although fopen wrappers can confuse that further... in my opinion i

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread mike
On 1/9/08, Liam [EMAIL PROTECTED] wrote: mike wrote: that is a horrible method. Thanks for the nice positive, refreshing and most helpful response. read the sentence below it. in my opinion i would say redesign it properly. Well what the hell do you suggest I do??? The script is MEANT

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread mike
On 1/9/08, Liam [EMAIL PROTECTED] wrote: The cgi script IS perl. Oh, RE: the sentence below it: I'm running apache, and it DOESN'T work. The reason I am trying to call it in php is to include it on a webpage. So, tell me, how am I supposed to pre-generate the contents in a flatfile

Re: [PHP] Re: Scratch that

2008-01-09 Thread mike
On 1/9/08, Liam [EMAIL PROTECTED] wrote: Liam wrote: 1: It mustn't count as a http hit, it's going to and 2: I need to only get what is between the body tags. now you're just asking the list to code something for you... my suggestions again: look into rewriting it to be more reusable

Re: [PHP] Re: Scratch that

2008-01-09 Thread mike
the site statistics!) and 3) I also need to know how to run a expression-ish thing so that when I 'parse' the text, it returns all text between x and y, but parse it BEFORE it gets 'included'. Note: fOpen is NOT enabled, and I CAN'T enable it. Thanks in advance P.S. Sorry mike for my previous

Re: [PHP] Re: Scratch that

2008-01-10 Thread mike
you're still issuing an HTTP request to get it, or executing perl on the command line... if it's a true non-profit 503(c)(3), you could offer someone the chance to write off their services... non-profits may not have a lot of money to spare but they do typically have money to fund things in the

Re: [PHP] Get Parameters in Includes [SOLVED!!!]

2008-01-10 Thread mike
yeah - well you said you can't issue an http request although it depends - if your reporting is javascript/browser-executable, or if it's a server-side increment. if it's javascript, no worries, the curl request won't execute it. On 1/10/08, Liam [EMAIL PROTECTED] wrote: mike wrote: you're

Re: [PHP] SMTP vs mail()

2008-01-11 Thread mike
On 1/11/08, Richard Heyes [EMAIL PROTECTED] wrote: Assuming you're talking delivery to a local MTA (which will subsequently do the remote delivery), is speed really important? For the amount of email I'm looking at (1000s, growing), yes. one word: phpmailer

Re: [PHP] SMTP vs mail()

2008-01-15 Thread mike
i can vouch. postfix rocks. i send it non-stop 30,000+ emails at a time (a loop from a database that does a popen(/usr/sbin/sendmail) on the local machine (also postfix) which then relays it to my actual public smtp server (running postfix) - and it just throws it all into the queue and chews on

Re: [PHP] Encryption failing

2008-01-15 Thread mike
me too - it was a space. i changed it to + and it worked fine. $cookie = str_replace(' ', '+', $_COOKIE['foo']); On 1/15/08, Bastien Koert [EMAIL PROTECTED] wrote: are you base64 encoding the resultant encryption string? I have found that there are problems with certain characters that can

Re: [PHP] Re: [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-15 Thread mike
Why not look at phpmailer? Probably more robust than some random classes. http://phpmailer.codeworxtech.com/ Not to bash on Manuel, but I find phpclasses to be littered with lots of crappy code and is too ad-laden and hard to use for me to bother. On 1/15/08, Wang Chen [EMAIL PROTECTED] wrote:

Re: [PHP] Encryption failing

2008-01-15 Thread mike
if ($EorD == D) { $text_out = mdecrypt_generic($cypher,$text); $text = base64_decode($text); shouldn't this be base64_decode($text_out) ? :) } else { $text= base64_encode($text); $text_out = mcrypt_generic($cypher,$text);

Re: [PHP] Re: [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-15 Thread mike
This list is democratic as well. Personal experience has led me there from many Google queries, and none of the code has been usable. I give you props for creating a site and classes on it and such, but this list is for people to ask and share opinions. I said it was not to badmouth you but my

Re: [PHP] Re: [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-15 Thread mike
On 1/15/08, Manuel Lemos [EMAIL PROTECTED] wrote: You are missing my point. One thing is disliking somebody's work for whatever reasons, another this is acting disrespectfully and call it crappy in a public forum. If you don't know how to act respectfully with other PHP developers, I have

Re: [PHP] Encryption failing

2008-01-15 Thread mike
On 1/15/08, Andrés Robinet [EMAIL PROTECTED] wrote: 1 - Mike is right about first encrypting and then doing a base64_encode (then saving results to DB, cookies, etc). I don't know why replacing to + for decrypting, though. we have an application which sets an encrypted cookie in .NET

Re: [PHP] utf-8 in $_POST

2008-01-16 Thread mike
you don't have to have your files in utf-8 for it to work, just the browser header. although any utf-8 characters in your files will look funky. it just depends where the content comes from... you could always use #174; for the (r) registered symbol for example. i'd be more apt to figuring out

  1   2   3   4   5   6   7   8   9   10   >