[PHP] To the person who told me about HTMLdoc

2005-12-27 Thread John Meyer
Do I run it as htmldoc -f pdfmanual.pdf --book in that directory with the HTML 
files, or what?  And secondly, do I use the multiple pages or the continuous 
one page?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Graphically displayed number to confirm user is a human

2006-01-04 Thread John Meyer

Duncan Hill wrote:

On Wednesday 04 January 2006 16:56, Dave M G wrote:

  

First, is there a term for these kinds of images, or that kind of
verification system? What would be the best search terms to look for
source scripts?



captcha

  

I've been looking for this term for a while as well.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] input validation?

2006-01-12 Thread John Meyer

Stut wrote:
Ok, you're clearly missing my point and while I don't want this to 
degrade into the usual pissing contest I do feel I need to clarify 
what I was saying.


I completely agree that in this case Javascript should be used to 
provide the user with feedback as to how close to the limit they are. 
However, in your post you described the solution as either Javascript 
*or* PHP when the best solution is both. What I was pointing out is 
that while Javascript is a better solution from a usability point of 
view, not doing the validation with PHP is dangerous regardless of 
whether the length is validated using Javascript or not.


I certainly don't believe that PHP is the total solution for most 
situations, but when it comes to input validation you *need* to do 
validation on the server-side regardless of what validation you do 
with Javascript since you have no control over whether the Javascript 
gets executed.


This sounds almost like the old DB vs. Application logic debate I see on 
several mailing lists; whether you should store more logic in the DB 
Server through triggers or through application logic.  My point on this 
is that it boils down to how important that data is.  If it's somebody's 
comments on their blog or on a post, I'd just leave it on the 
application _or_ trim it down to the 300 characters and input it in.  
bank transactions, I'd have so many triggers going it would be unreal.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Perl script passing variables to a PHP script

2006-01-15 Thread John Meyer
Hi,  If I have a perl script to rip off the mp3 tag information, can I
have that script then pass them into the PHP file?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Perl script passing variables to a PHP script

2006-01-15 Thread John Meyer
David Dorward wrote:
 John Meyer wrote:
 
 Hi,  If I have a perl script to rip off the mp3 tag information, can I
 have that script then pass them into the PHP file?
 
 PHP::Interpreter looks like it will do the job.
 http://www.annocpan.org/~GSCHLOSS/PHP-Interpreter-1.0.1/lib/PHP/Interpreter.pm
 

Thanks, I'll be looking into that.  I also went to phpclasses.org and
found something that may be useful as well.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Truncate words in multiple paragraphs

2006-02-03 Thread John Meyer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Verdon Vaillancourt wrote:
 Hi :)
 
 I am using the following function (that I found in the user comments on
 php.net manual) for trimming the number of words accepted via a form field
 
 // Truncation is by word limit, not character limit. So if you limit
 // to 255, then it will cut off a text item to 255 words, not 255
 characters
 function trim_text ($string, $truncation=250) {
 $string = preg_split(/\s+/,$string,($truncation+1));
 unset($string[(sizeof($string)-1)]);
 return implode(' ',$string);
 }


How about
$string = nl2br($string);
$string = trim_text($string);
$string = str_replace(br /,\n,$string);
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD45Hzj60GAoLuoDkRAjSqAKCxvGlJmSCVHozWBDjjZnKMEZOfSwCfenVj
lRSChtsMRqRnOYdZpk5YQ0c=
=Dnly
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] x as a multiplier

2002-12-03 Thread John Meyer
Code:

$newwidth . x  . $newheight


What I want to get out is a string, like 89x115.  All I am getting though,
is one number, even though  if I do this

$newwidth .  x   . $newheight

It prints out just fine.  What is going on here?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] x as a multiplier

2002-12-03 Thread John Meyer
Exactly.  But it's only giving me one of the numbers without the space
between the numbers and the x.

-Original Message-
From: Adam Williams [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 3:48 PM
To: Kevin Stone
Cc: John Meyer; [EMAIL PROTECTED]
Subject: Re: [PHP] x as a multiplier


I don't think he's trying to multiply, I think he wants to print #x#, like
800x600 or 1024x768, etc...

Adam

On Tue, 3 Dec 2002, Kevin Stone wrote:

 Is it possible you're mistaken somehow?  x isn't an operator in PHP.
 Executing $a x $b will give you a parse error.  Anything in quotes is
 automatically casted as a string.
 -Kevin

 - Original Message -
 From: John Meyer [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, December 03, 2002 3:20 PM
 Subject: [PHP] x as a multiplier


  Code:
 
  $newwidth . x  . $newheight
 
 
  What I want to get out is a string, like 89x115.  All I am getting
though,
  is one number, even though  if I do this
 
  $newwidth .  x   . $newheight
 
  It prints out just fine.  What is going on here?
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Nigerian oil scams

2002-12-12 Thread John Meyer
php

How did a Nigerian oil scam e-mail get on this list, anyway?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] AIM and PHP

2002-12-15 Thread John Meyer
does anybody know of a class or a PEAR module to check the status of an AIM
user and see if they are online or offline.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] forcing .html pages to go through the PHP parser

2002-10-28 Thread John Meyer
how do you configure apache to force all .html pages to go through the php
parser?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] preg_replace (underscore)

2002-10-28 Thread John Meyer
i've just used str_replace for underscores and it's worked wonderfully.

-Original Message-
From: Shawn McKenzie [mailto:nospam;mckenzies.net]
Sent: Monday, October 28, 2002 4:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP] preg_replace (underscore)


Why does preg_replace(^\W^,,$str); not remove undescores _ ?  Are they
alpha-numeric?

I had to do this preg_replace(^\W|_^,,$str);

TIA,
Shawn



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] MySQL and images

2002-10-29 Thread John Meyer
Assuming that I have to for some unknown reason, are there any articles on
storing images in the database and retrieving them?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] MySQL and images

2002-10-29 Thread John Meyer
Know that, believe that, been preaching that, but I just want to know just
in case.
Actually found the article.
-Original Message-
From: Rick Emery [mailto:remery;emeryloftus.com]
Sent: Tuesday, October 29, 2002 8:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] MySQL and images


In order to speed-up queries, it is suggested that you DO NOT store images
in the
database.  Rather, store the images in files and store file names in the
database.
- Original Message -
From: John Meyer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 9:32 PM
Subject: [PHP] MySQL and images


Assuming that I have to for some unknown reason, are there any articles on
storing images in the database and retrieving them?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] array question

2002-10-30 Thread John Meyer
When retrieving an array from $_POST, which is the right way:

$arrInterests = $_POST[interests[]];

or 
$arrInterests = $_POST[interests];

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] array question

2002-10-30 Thread John Meyer
Either way, I'm not getting the interests.

-Original Message-
From: Rick Emery [mailto:remery;emeryloftus.com]
Sent: Wednesday, October 30, 2002 9:34 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] array question


What happened when you tried both methods?

- Original Message - 
From: John Meyer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 30, 2002 10:29 AM
Subject: [PHP] array question


When retrieving an array from $_POST, which is the right way:

$arrInterests = $_POST[interests[]];

or 
$arrInterests = $_POST[interests];

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] test

2002-10-30 Thread John Meyer
Do I get a cookie for passing this test?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Changing the key

2002-10-31 Thread John Meyer
How do I change the key in an array without having a duplicate key=$value?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] using mysql_field_type to disginguish between a blob and a text field.

2002-10-31 Thread John Meyer
I've recently found out that mysql returns blob for both blobs and text
fields.  Now, how do I distinguish between the two?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] SQLInsert and recover the ID

2002-10-31 Thread John Meyer
use mysql_insert_id().  Much more reliable when and if you use the system
with more than one person inserting at the same time.

-Original Message-
From: Christian Ista [mailto:mailing-list;istasofts.com]
Sent: Thursday, October 31, 2002 2:12 PM
To: [EMAIL PROTECTED]
Subject: [PHP] SQLInsert and recover the ID


Hello,

In a table, I have some fields and the primary key is an autoincrement
field. I insert an row and I'd like to recover the ID used for the last
record I inserted.

For the moment, I do a select max(Id) just after the insert but there
is, my be a best way to do it.

Thanks for your help

Christian,



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] regular expression question

2002-11-01 Thread John Meyer
I've got a regexp:

(EV[0-9]{2})!([0-9]{4}-[0-9]{2}-[0-9]{2})!(GR[0-9]{2}).txt


My question is, will it match this:


EV01!2002-11-09!VR01!GR01.txt



And anything formatted like this: (EV02, and so forth).

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] image submit buttons

2002-11-04 Thread John Meyer
(isset($_POST[Submit])) is this the way to check a submission image to see
if it's been set?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Extracting first eight characters of a string

2002-11-07 Thread John Meyer
How do I extract only the first eight characters (alpha-numeric) in a string.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Extracting first eight characters of a string

2002-11-07 Thread John Meyer
how about this:

$cutstring = substr(preg_replace(\W,,$originalstring),0,8);


-Original Message-
From: Adam Voigt [mailto:adam;cryptocomm.com]
Sent: Thursday, November 07, 2002 8:10 AM
To: John Meyer
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Extracting first eight characters of a string


Umm, this won't check, only blindly pull the first 8, but:

$cutsring = substr($originalstring,0,8);

Adam Voigt
[EMAIL PROTECTED]

On Thu, 2002-11-07 at 10:06, John Meyer wrote:
 How do I extract only the first eight characters (alpha-numeric) in a
string.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP and JavaScript

2002-11-07 Thread John Meyer
On a PHP event, does the onLoad event in a document run before or after the
page is parsed, created, and sent to the user?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] getting changed to \ when pulled from a text area

2002-11-07 Thread John Meyer
That's probably the way that you want it to be, if you're inserting the data
into a database.  When you retrieve it, you use stripslashes().


-Original Message-
From: Brandon Orther [mailto:orther;webintellects.com]
Sent: Thursday, November 07, 2002 1:16 PM
To: PHP User Group
Subject: [PHP]  getting changed to \ when pulled from a text area


Hello,

When trying to save data from a form, the quotations () get change to
(\)

Is there a function that will fix this?


Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED] 800-994-6364
www.webintellects.com http://www.webintellects.com/




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] getting changed to \ when pulled from a text area

2002-11-07 Thread John Meyer
yep, mea culpa, just thinking of MySQL.

-Original Message-
From: Marco Tabini [mailto:marcot;inicode.com]
Sent: Thursday, November 07, 2002 2:25 PM
To: John Meyer
Cc: Brandon Orther; PHP-General
Subject: RE: [PHP]  getting changed to \ when pulled from a text
area


That's not necessarily true--if you're using MSSQL quotes are escaped
with quotes, I think.


Marco
-- 

php|architect - The magazine for PHP Professionals
The first monthly worldwide  magazine dedicated to PHP programmer

Come visit us at http://www.phparch.com!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] What am I missing with this code?

2002-11-08 Thread John Meyer
for($i=1;$i13;$i++) {
?
lia 
href=categoryresult.php?condition=?=urlencode(where
month(UserDOB)= . $i)??=jdmonthname($i,0)?nbsp;(?=$i?)/a/li
?php
}
?

All it's printing out is November and December, even though the month is
incrementing.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] DHTML and PHP

2002-11-08 Thread John Meyer
I want to get the top layer to appear right on top of where the other two
are.  How do I do this?

  div id=More?=$row[UserID]? style=visibility: visible; zIndex:1a
href=javascript:show('Layer?=$row[UserID]?');show('layerhide?=$row[Us
erID]?');show('ViewFullProfile?=$row[UserID]?');hide('More?=$row[Use
rID]?')Want
to know more about me? Click here!/a
  /div/font
  /b
  div id=ViewFullProfile?=$row[UserID]? 
style=visibility:hidden;
z-index:-1;a
href=userinfo.php?username=?=$row[UserAIM]?strongfont
color=#33CC00 size=2ptWant
to view more, click here to
view/font/strong/a/div

  div id=layerhide?=$row[UserID]? style=z-index:-1;
visibility:hiddena
href=javascript:hide('Layer?=$row[UserID]?');hide('layerhide?=$row[Us
erID]?');hide('ViewFullProfile?=$row[UserID]?');show('More?=$row[Use
rID]?')strongfont color=#FF size=2ptNot
interested, click here to hide/font/strong/a/div


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] How good is PHP to ASP?

2002-11-10 Thread John Meyer
First off, I wouldn't go comparing one language to another as better (a
jihad has broken out on another list between Perl and PHP, substituting
belief for anything remotely resembling a civilized and intelligent
discussion), but if you want to convince them about the merits of PHP, look
up the news stories about Yahoo abandoning its own  proprietary language for
PHP.  Also, if any of your clients have experience with Perl, you can use
the comparison about regular expression handling there.  You can also refer
to http://www.php.net/usage.php for a description of the popularity of PHP.

-Original Message-
From: Wee Keat [Amorphosium] [mailto:weekeat;amorphosium.com]
Sent: Sunday, November 10, 2002 6:42 PM
To: PHP [General]
Subject: [PHP] How good is PHP to ASP?


Hi all,

I'm not too sure if this is the right place to get my answers but I really
need to know this:

How can I convince my clients that PHP is really good? I mean not a lot
of non-programmers have heard of PHP language. Most of them only heard of
things like C/C++, ASP and the like. So, how can I prove to them that PHP is
a much better language to use?
Can anyone point me to the right resources for me to show and prove to
my clients?
Thanks a lot and sorry if this is the wrong place to ask this question.


Yours,

Wee Keat Chin

---
Don't find a fault; find a remedy


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] h/1 tag

2002-11-10 Thread John Meyer
I'm doing some PHP work, and I've come across the h/1 tag.  What, exactly,
is this?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] h/1 tag

2002-11-10 Thread John Meyer

Actually, it's a product of Microsoft Frontpage that a client sent me.
-Original Message-
From: John W. Holmes [mailto:holmes072000;charter.net]
Sent: Sunday, November 10, 2002 9:33 PM
To: 'John Meyer'; [EMAIL PROTECTED]
Subject: RE: [PHP] h/1 tag


 I'm doing some PHP work, and I've come across the h/1 tag.  What,
 exactly,
 is this?

It is probably just a typo for an h1 tag. It's nothing that PHP would
create on its own.

---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] test

2002-11-11 Thread John Meyer

I never do well on tests.  Always forget my pencil.

-Original Message-
From: James Johnson [mailto:james;owell.com]
Sent: Monday, November 11, 2002 11:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP] test


test



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Curl and post

2002-11-11 Thread John Meyer
I need to send a post array to another page.  How do I do this using CURL?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] redirecting a user to a page after a password popup

2002-11-12 Thread John Meyer
Hi, I'm generating a 401 header for a few pages, and if they click cancel, I
want to send them to a 401 page.  How do I do this?  I've tried a header
after those headers, but that just redirects them automatically.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] multiple forms on the same page

2002-11-13 Thread John Meyer
hi,
I have multiple forms on a page that refers to itself on the action.  The
only difference is that one has one extra field.  The two have every other
name in common.  Will this be difficult to handle?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Is there any way to resize an image?

2002-11-13 Thread John Meyer
Basically, my question for PHP.  Anything in the libraries that can do that?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] date difference

2004-07-15 Thread JOHN MEYER
Hello,
Is there a function to determine the difference between two dates?  I am 
asking so I can do some date verification for COPA.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] mysql connection question

2004-07-15 Thread JOHN MEYER
Hi,
For a long time, on all of my mysql pages, I've done something like this
$conn = mysql_connect($server,$username,$password) or die(Could not 
connect)
mysql_select_db($db);

I've finally put that into its own script file, moved it to my include 
files, and simply included it whereever I needed a connection.  My question 
is, could this get me into trouble if multiple people access the database at 
the same time?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Retrieve The Last Record in a Table

2004-07-27 Thread JOHN MEYER
Or you could retrieve that information prior to inserting the login 
information, say, as soon as they type in their login name, store that, then 
present it.

From: Jason Davidson [EMAIL PROTECTED]
To: Harlequin [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] Retrieve The Last Record in a Table
Date: Tue, 27 Jul 2004 08:17:19 -0700
You could LIMIT 2, using the order on a column, the first record would
be last, the second would be second last.  Kinda dirty way to do it,
however, off hand, cant think of an alternative, ill post it if i do
think of one though.
Jason
On Tue, 27 Jul 2004 09:59:21 +0100, Harlequin
[EMAIL PROTECTED] wrote:
 Thanks for that Jason

 Any suggestions on how I would retrieve the next to last entry...? The 
last
 time prior to this session that the user logged in...?

 --
 -
  Michael Mason
  Arras People
  www.arraspeople.co.uk
 -
 Jason Davidson [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]


  as mentioned already, use a column in the table to order the query and
  then use LIMIT to only to return one record. Best columns to use would
  be an auto_increment or a datetime field type.
 
  Jason
 
  On Mon, 26 Jul 2004 18:27:25 +0100, Harlequin
  [EMAIL PROTECTED] wrote:
  
  
   I would like to retrieve the last entry in a login table and present
 that to
   a user so they can verify the date we have when they last logged in.
  
   Is this possible...?
  
   --
   -
   Michael Mason
   Arras People
   www.arraspeople.co.uk
   -
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  
  

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] most powerful php editor

2007-01-21 Thread John Meyer
Dear god  Arnot, would you like to stand back for a moment and consider
how retarded those statements are, or would you like for me to do it for
you?

Whether you use a powerful IDE or not, you still have to use the same
compiler underneath.  In PHP, that compiler is the web server.  Unless
you buy an IDE that contains a mini-server for you to test the files,
yoru comparison between IDEs and word processors is ludicrous at best.

 
 On Mon, 2007-01-22 at 01:22 +0200, Arno Kuhl wrote:
 For me the analogy goes something like this: if you type the occasional
 letter or note then Wordpad is perfectly adequate, but if your livelihood
 is
 churning out professional well-formatted heavy-weight documents then it
 pays
 you to invest in a top-class word processor and supporting tools. The same
 goes for an IDE.
 
 I think I just vomited in my mouth...
 
 Yep, tastes like bile :|
 
 Cheers,
 Rob.
 --
 
 Hope you get over it :)
 
 So you don't think EditPlus or UltraEdit or Notepad++ (some of the proposed
 editors that I consider Wordpad-type editors) would be a bit inadequate
 for more complex project developments? Some people who've never been exposed
 to a really good IDE think this is as good as it gets.
 
 Arno
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] most powerful php editor

2007-01-24 Thread John Meyer
Jochem Maas wrote:
 Curt Zirzow wrote:
 On 1/20/07, Vinicius C Silva [EMAIL PROTECTED] wrote:
 hi everyone!

 i'd like to ask something maybe commonly asked here. what is the most
 powerful php editor?

 So now we have a 4 day thread of discussing nothing but, this is what i
 use
 
 let see if we can make it a full week :-P


If we want to argue about this, let's set a few guidelines as to what
powerful means.  I propose these guidelines

1. Syntax highlighting
2. Web server integration
3. Link checking
4. Browser check in the top three (Mozilla-IE-Opera)

Now maybe you disagree, maybe you agree.  I'd love to just use vi and
type away, but quite frankly I'm not that smart.  And if you have your
own guidelines, let's hear them.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Problem outputting MySQL Date field

2009-08-28 Thread John Meyer
Is there anything special I have to do to output a mysql date field as 
text?  When I try to output it nothing appears on the web page.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Converting URL's to hyperlinks.

2009-08-28 Thread John Meyer
What sort of function would I need if I wanted to convert those URLs 
from plain jane text?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problem outputting MySQL Date field

2009-08-28 Thread John Meyer

Devendra Jadhav wrote:
No need to do anything special. It should display date as string. Can 
you provide little more information or code snippet?
$tweettable .= 
preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', 
'a href=$1$1/a',$row[TWEET_TEXT]) . br . Sent at:  . 
$rowqry[TWEET_CREATEDAT];
   $tweettable .= brSent Using:  . $row[TWEET_CREATEDBY] . 
/td/tr;


And I checked the database.  The date is there.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: [PHP-WIN] Re: [PHP] Problem outputting MySQL Date field

2009-08-28 Thread John Meyer

Keith Davis wrote:

But how are you getting the data from the db?

Does $rowqry represent a call using the mysql_fetch_array() function?


mysql_fetch_assoc()

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] שנה טובה!

2009-09-19 Thread John Meyer
Unfortunately, it doesn't look like we have a Hebrew mailing list.

-Original Message-
From: LuKreme [mailto:krem...@kreme.com] 
Sent: Saturday, September 19, 2009 2:51 PM
To: php-general@lists.php.net
Subject: Re: [PHP] שנה טובה!

On Sep 19, 2009, at 10:09, Dotan Cohen dotanco...@gmail.com wrote:

 ניצן, תזהר לא לכלול את תפוצות הדואר  
 כשאתה שולח דברים אלו. תודה.

 שנה טובה!

I think this is an English language list.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] DailyWTF - Maybe I Needing Later

2009-12-23 Thread John Meyer

On 12/22/2009 9:10 PM, Daevid Vincent wrote:

http://thedailywtf.com/Articles/Maybe-I-Needing-Later.aspx
   



Read this, just loved it.  Moral of the story (though some may turn it 
racist or otherwise moronic): maybe hiring at the lowest possible bidder 
isn't always the best idea.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] What's the best way to extract HTML out of $var?

2010-01-14 Thread John Meyer
On 1/14/2010 7:15 PM, alexus wrote:
 What's the best way to extract HTML out of $var?
 
 example of $var
 
 $var = a href=http://http://stackoverflow.com/Stack Overflow/a
 I want
 
 $var2 = http://starckoverflow.com/;
 example: preg_match();
 
 what else?
 

Actually what it looks like you want are the URLs, not the HTML. This
regular expression will match them up for you:

https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: MySQL ID -- what happens when you run out of range?

2010-01-25 Thread John Meyer

On 1/25/2010 1:19 PM, Nathan Rixham wrote:

Parham Doustdar wrote:

Hello there,
A friend called me today and was wondering what happens if the ID colomn of
an MYSQL database, set to autoinc reaches the int limit. Will it return and
begin choosing the ID's that have been deleted, or... what?


you change it to bigint before that happens :)

for a more accurate answer ask on the mysql forum?



Or the e-mail list: my...@lists.mysql.com (though I understand the 
cross-pollination)



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] REQUEST

2013-05-29 Thread John Meyer

Jim Giner wrote:

On 5/29/2013 5:45 PM, Tedd Sperling wrote:


PS: I think it probably best not to rise to the bait from people who 
forgot to turn off their cap's key.




You call it bait?  I call it stupidity.  Once no, more than once YES.



Why not both?

Cue cute taco shell girl.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] strlen ?

2013-07-05 Thread John Meyer

Jim Giner wrote:
Trying to manage line breaks in some output I'm generating and using 
strlen to measure the lengths of the strings I'm printing. Discovered 
something strange (to me!) in that strlen is returning +1 more than it 
should.


The strings are from a query of my database - simple name fields. But 
everyone of them is coming back with a length that is one more than I 
see.


Ex.

Mike Hall  comes back as 10, not 9
F.B. comes back as 5, not 4.

I've looked at my data and counted the chars - there is no extra space 
at the beginning or end in my table.


Anyone have an explanation?


Does strlen count the line feed?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] strlen ?

2013-07-05 Thread John Meyer

MOTS:  never take any input on faith.


Jim Giner wrote:

On 7/5/2013 3:02 PM, Stephen wrote:

On 13-07-05 02:50 PM, Jim Giner wrote:


Now the question is - how the heck did I put that in there? Certainly
not intentionally.  The data is captured from a d/e screen I wrote and
it simply grabs the post value and inserts a new record with that
value along with some other values.  And I don't see anything
concatenating a LF to my string.


Is this a browser being used for input? Never assume what a browser will
do.

It is good practice to validate and condition data before inserting into
a database.

Consider trimming the data before doing the INSERT.

I do validate my data by quoting it but I never expected to have to do 
a trim to remove a LF.  Especially on an iphone for input, since it's 
not easy to enter a LF.





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Algorithm Help

2013-10-01 Thread John Meyer

On 10/1/2013 12:51 PM, Floyd Resler wrote:

Here's my task: A group of kids is going to be staying with different host 
families throughout the next 8 months.  The number of kids staying with a host 
family can range from 2 to 10.  When deciding which kids should stay together 
at a host family, the idea is for the system to put together kids who have 
stayed with each other the least on past weekends.  So, if a host family can 
keep 5 kids, then the group of 5 kids who have stayed together the least will 
be chosen.

I can't think of an easy, quick way to accomplish this.  I've tried various 
approaches that have resulted in a lot of coding and being very slow.  My idea 
was to give each group of kids a score and the lowest score is the group that 
is selected.  However, this approach wound of iterating through several arrays 
several times which was really slow.  Does anyone have any ideas on this puzzle?

Thanks!
Floyd


Whatever solution you're going with will probably involve a relational 
database of some sort.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



<    1   2