RE: [PHP] Pricing for PHP programming???

2001-02-03 Thread John Meyer
Interesting, that, since I will be graduating with majors in Computer Information Systems _and_ Mass Communications, but I still need a graphic artist. Does anybody where I can get a good wife? *JK* -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday,

RE: [PHP] Converting String to Variable

2001-03-03 Thread John Meyer
Here's my question: why do you want to do this, and is there a better way to do this, say a hash list or something? BTW, isn't monday defined as a constant that always equals "blah!" It always has for me. -Original Message- From: Randy Johnson [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] last inserted record

2001-03-07 Thread John Meyer
Assuming that you do have a primary key, how can you grab the last record you inserted? Can you use @@IDENTITY, or something like that? "Christian Reiniger" [EMAIL PROTECTED] wrote in message 01030310383101.00589@chrisbig">news:01030310383101.00589@chrisbig... On Saturday 03 March 2001 05:16,

[PHP] script output doesn't show up

2001-03-12 Thread John Meyer
Here is the code ?php $connectionid = odbc_connect("usctoday","",""); $resultid = odbc_do($connectionid,"SELECT S_FNAME, S_LNAME, S_BIO FROM STAFF;"); $numrows = odbc_num_rows($resultid); for ($i = 1; $i=$numrows;$i++) { odbc_fetch_row($resultid); $fname =

[PHP] Variable variables

2001-03-13 Thread John Meyer
Okay, I read about this feature in the php manual. What I can't figure out is why in the world would anybody want to use this feature? Not to start a flame war, just would like an explanation of why this feature is useful. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Variable variables

2001-03-13 Thread John Meyer
Okay, that makes a little sense, but isn't there some sort of collection that will do the same thing (coming from vb). -Original Message- From: Jason Stechschulte [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 13, 2001 6:38 AM To: John Meyer Cc: [EMAIL PROTECTED] Subject: Re: [PHP

RE: [PHP] Good Free PHP Editor?

2001-03-13 Thread John Meyer
Actually, I picked up htmlkit when it was mentioned in this group and it's just as good as Visual InterDev, in my opinion. -Original Message- From: Jens Nedal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 13, 2001 6:58 AM To: Angerer, Chad; 'Simon Garner'; Boget, Chris; [EMAIL

Re: [PHP] Re: PHP vs. ASP

2002-01-10 Thread John Meyer
) as long as they are basing it on the facts and there particular needs; what I don't like are advocates (read a**holes) turning this into a heated debate devoid of any facts or basis in reality. BTW, I use both and have used both. I'm more concerned with results, not egos. John Meyer Q: What do

Re: [PHP] mailing to 19000 users

2002-01-27 Thread John Meyer
How about croning the job and splitting up the load as you go. - Original Message - From: Mostafa Al-Mallawani [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 27, 2002 11:23 PM Subject: [PHP] mailing to 19000 users hi, does anyone know how to send mail to 19000 users

Re: [PHP] php vs asp

2002-01-28 Thread John Meyer
You can use ASP with Mysql, as long as you have myodbc installed on your machine. For me, ASP has been a bit slower, but you can still use it. - Original Message - From: liz lynch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 28, 2002 7:14 AM Subject: [PHP] php vs asp

Re: [PHP] Php is serversided????

2002-02-14 Thread John Meyer
Two ways this is possible: 1. The user has selected an item and hit the submit button, thereby sending everything to the server and it is working there. 2. The user comes in from a different link, different server, or has a cookie on their machine. - Original Message - From: Morten

Re: [PHP] Why can't this code display my result?

2001-08-09 Thread John Meyer
Could you please give us some error messages, please? ?php $connect = mysql_connect(localhost,user_name,password); $select_data = mysql_select_db(ardani_cd_collection); $query = SELECT * FROM main where description = '$song_title'; $result = mysql_query($query); while($row =

[PHP] Code works fine on Apache, but not on PWS.

2001-08-14 Thread John Meyer
Instead of posting the code, I'll give you the link: http://www.phpbuilder.com/columns/bealers2904.php3?page=1 Short and long of it is the subject line. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] problem with a hacker

2001-08-16 Thread John Meyer
I'm currently running my site on a win2k server, I'm using PHP for my tag board. Today a hacker managed to overwrite the text file I was using to store all the messages, which really isn't that big a surprise considering the permissions to the folder it is kept in are wide open thanks to my

Re: [PHP] Printf fails on large files

2001-08-17 Thread John Meyer
At 05:14 PM 8/17/01 -0300, Inércia Sensorial Trabalhando wrote: Hi All, A friend of mine said his printf is failing when he parses a variable from a 4.5 mega file. On smaller files, it works fine. There's a limit on the printf or somewhere else? Thanks. Is he throwing the

Re: [PHP] Protecting include files

2001-08-18 Thread John Meyer
At 08:26 PM 8/18/01 -0700, Rasmus Lerdorf wrote: Files ~ \.inc$ Order allow,deny Deny from all BTW, .inc files can include PHP code that is executed, right? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] Checking FTP server response

2001-08-20 Thread John Meyer
At 03:03 PM 8/20/01 -0700, CC Zona wrote: To test for a valid http address, I open a socket, pass a HEAD or GET request, and look for a status code in the response headers. What should I send to an FTP server to do a similar test? Why not just try and connect to it? -- PHP General Mailing

Re: [PHP] php-counter

2001-08-22 Thread John Meyer
At 05:49 PM 8/22/01 +0200, you wrote: hi! do you know an easy-to-use-php-counter, which uses mysql to store the data? gert Not off hand, but I could probably program one within the day. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

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

2001-08-22 Thread John Meyer
A couple of things: 1. ASP is not dumb. It was just written by Microsoft. Seriously, though I'd learn both, it would make you much more marketable. 2. First off, create the database. Then ask yourself what are the steps that you have to go through. What your probably looking at right now

Re: [PHP] strange error

2001-08-22 Thread John Meyer
At 03:12 PM 8/22/01 -0400, you wrote: Hi, I get an error message which I can't figure out. Its a Parse error: on line 142 which is the last line of the page containing absolutly no code. The last line of code is simply /HTML..Did anyone have a similar experience? Can anyone help me out

Re: [PHP] Any point in learning ASP/JSP etc?

2001-08-22 Thread John Meyer
At 01:10 AM 8/23/01 +0100, you wrote: Or is PHP the be-all and end all? I know its strong points, but what are the WEAK points of PHP? - seb PHP isn't default on Microsoft systems You have to learn a new language for PHP: ASP is basically either VBScript or JScript around some objects. To

RE: [PHP] Any point in learning ASP/JSP etc?

2001-08-22 Thread John Meyer
At 01:29 AM 8/23/01 +0100, you wrote: Ah ha, but am I better off becoming a PHP guru or a jackofalltrades-notverygoodatanyofthem kind of person ;-) I don't know. I've learned both PHP and ASP, and neither of them have decreased the other in terms of learning. The fact is, you are going to

Re: [PHP] RE: What development environment do you use for PHP?

2001-08-27 Thread John Meyer
At 01:21 PM 8/27/01 -0700, you wrote: I keep my web documents in a CVS repository on a Linux box, and use WinCVS (GNU) to check files in and out on my WinNT desktop. I use ConTEXT (freeware) for editing. Documentation and help are always available at php.net and google.com. I have an Apache

Re: [PHP] PWS

2001-08-28 Thread John Meyer
At 07:27 AM 8/28/01 -0700, you wrote: I have installed PHP CGI 4.0 on my Win 98 machine with PWS and tried this script that I put in the wwwroot directory and called test.php3: ?php $myvar = Hello World; echo $myvar; ? I called the page from my browser like this: http://localhost/test.php3 Why

RE: [PHP] What does PHP stand for?

2001-08-28 Thread John Meyer
At 05:15 PM 8/28/01 +0228, you wrote: It's actually a recursive acronym, like GNU: From the manual: PHP, which stands for 'PHP: Hypertext Preprocessor', is an HTML-embedded scripting language. J Am I making things up, or Did it stand for Perl Hypertext Preprocessor at one time? -- PHP

[PHP] Suppressing error messages

2001-08-29 Thread John Meyer
It seems to have slipped me little mind, but how do you suppress error messages? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Posting to oneself

2001-08-29 Thread John Meyer
Two questions: 1. Can I tell a form to post to itself without specifying the name of the web page? 2. If I have a function on one page called by another, will this resolve correctly? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Posting to oneself

2001-08-29 Thread John Meyer
At 12:07 AM 8/30/01 +0200, you wrote: So sprach »John Meyer« am 2001-08-29 um 15:57:02 -0700 : Two questions: 1. Can I tell a form to post to itself without specifying the name of the web page? form action=?php echo $PHP_SELF;? I am getting this error: Undefined variable: PHP_SELF

Re: [PHP] Posting to oneself

2001-08-29 Thread John Meyer
At 03:18 PM 8/29/01 -0700, you wrote: if you are within a function, try doing this first: global $PHP_SELF; Tried that, same error. BTW, FYI: Apache 1.3.20 (Win32) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] determining the pixel width of a string

2001-08-30 Thread John Meyer
Is there anyway to determine the pixel width of a string? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Is there anything in here that could be considered a parse error?

2001-08-30 Thread John Meyer
if (empty($DidSurvey[$p_surveyid])) { if (is_array($p_answers)){ foreach($p_answers as $value) { error line-- $sql = INSERT INTO RESULTS(SURVEY_ID, ANSWER_ID) VALUES( . $p_surveyid . , . $value . );;

Re: [PHP] File read Parser error

2001-08-30 Thread John Meyer
At 11:53 PM 8/30/01 +0200, you wrote: Gary wrote: Can someone tell me why I am getting an error for the second line below. It works locally but not live. ?php $filename = www/name/test/free.txt $toread = fopen($filename, 'r'); $contents =

[PHP] Re: Lists are back up

2001-06-18 Thread John Meyer
At 12:15 PM 6/18/2001 -0700, Rasmus Lerdorf wrote: We have re-enabled the PHP mailing lists. They are now running from a temporary machine sitting on the floor of my spare bedroom. A more permanent home is in the works. -Rasmus Does this also refer to the news server? John Meyer [EMAIL

Re: [PHP] Is there a user group in Colorado?

2001-06-23 Thread John Meyer
At 11:24 AM 6/22/01 -0600, Unni wrote: Is there a user group in Colorado? Thanks If there is one, I'd like to be a part of it. John Meyer [EMAIL PROTECTED] Programmer If we didn't have Microsoft, we'd have to blame ourselves for all of our programs crashing -- PHP General Mailing List

Re: [PHP] Percentages

2001-06-24 Thread John Meyer
On Sun, 24 Jun 2001, David Robley wrote: On Mon, 25 Jun 2001 12:04, Tim Thorburn wrote: Hi, Working on a site that needs some billing information. Once upon a time done in ASP where we had the option to use the FormatPercent command - is there an equivalent command within PHP?

Re: [PHP] How to prevent people from downloading images

2001-07-03 Thread John Meyer
of the graphic, then require payment before you give the the high res one. --- John Meyer [EMAIL PROTECTED] Programmer Those who sacrifice liberty for security deserve neither -- Ben Franklin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] How to prevent people from downloading images

2001-07-04 Thread John Meyer
a screenshot on windows machines, as someone else mentioned) Agreed, but how about only showing a very small image. Large enough for them to know what it is, but not large enough that saving it would do them much good. -- John Meyer [EMAIL PROTECTED] Programmer Those who sacrifice liberty

Re: [PHP] Problem writting to file...

2001-07-06 Thread John Meyer
($fp, $counter . \n); $counter = $counter +1; } fclose ($fp); ? Is it writing anything out? -- John Meyer Programmer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

[PHP] foreach loop

2001-07-07 Thread John Meyer
= AddSlashes($value); } will the values be changed outside of the loop? John Meyer [EMAIL PROTECTED] Programmer If we didn't have Microsoft, we'd have to blame ourselves for all of our programs crashing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Global Variables -- why not have them?

2001-07-07 Thread John Meyer
, you should be trying to limit your need of global variables, so that your program can count on the integrity of the variables. John Meyer [EMAIL PROTECTED] Programmer If we didn't have Microsoft, we'd have to blame ourselves for all of our programs crashing -- PHP General Mailing List (http

[PHP] arrays in forms.

2001-07-07 Thread John Meyer
? John Meyer [EMAIL PROTECTED] Programmer If we didn't have Microsoft, we'd have to blame ourselves for all of our programs crashing -- 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

Re: [PHP] arrays in forms.

2001-07-07 Thread John Meyer
mysql_auery($query) or die(echo mysql_error()); By the way, I know this line should be mysql_query John Meyer [EMAIL PROTECTED] Programmer If we didn't have Microsoft, we'd have to blame ourselves for all of our programs crashing -- PHP General Mailing List

Re: [PHP] how can i creat a file and write a string to it!

2001-07-15 Thread John Meyer
At 06:27 PM 7/15/01 +0100, sunny AT wde wrote: i've been looking for an adequate answer all morning in the archives, fwrite($file, $articletext); Don't you have to do a fopen beforehand? John Meyer [EMAIL PROTECTED] Programmer If we didn't have Microsoft, we'd have to blame ourselves

Re: [PHP] Example high-profile PHP sites

2001-07-26 Thread John Meyer
. I'm sorry, but the latter tactic seems like a jumping on the bandwagon approach. John Meyer [EMAIL PROTECTED] Programmer If we didn't have Microsoft, we'd have to blame ourselves for all of our programs crashing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] separating strings from extensions

2008-02-17 Thread John Meyer
Daniel Brown wrote: On Feb 17, 2008 5:37 PM, nihilism machine [EMAIL PROTECTED] wrote: i am using this code to get the extension of a filename: $extension = strtolower(strrchr($fileName,.)); how can i get the text BEFORE the . (period) You can STFW and RTFM. This list should

Re: [PHP] separating strings from extensions

2008-02-17 Thread John Meyer
Børge Holen wrote: On Monday 18 February 2008 00:10:30 John Meyer wrote: Daniel Brown wrote: On Feb 17, 2008 5:37 PM, nihilism machine [EMAIL PROTECTED] wrote: i am using this code to get the extension of a filename: $extension = strtolower(strrchr($fileName,.)); how can

Re: [PHP] how PHP is batter?

2007-07-03 Thread John Meyer
Muhammad Hassan Samee wrote: ASP.net VS PHP? how PHP is batter? Without context that question is meaningless and only serves as troll bait. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Swear filter ideas

2007-07-03 Thread John Meyer
Richard Lynch wrote: Don't. Trying to solve a social problem with software hacks never works out well. :-) Taking the emotion out of this, if you wanted to catch any list of words (the Esperanto dictionary, the words to that last song that got ground into your head), how would you do

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread John Meyer
On Monday 16 July 2007, Richard Davey wrote: As a published author I would *rather* people read a PDF of my work, than not read it at all because they couldn't afford the printed version. But that is my choice to make, not yours. I would never be so two-faced as to rant about pirates and

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread John Meyer
David Powers wrote: Richard Davey wrote: First off, I'd like to know where you got that 2,000 number. Closest I could find was 456 on TPB, and I'm guessing that's 456 people that have downloaded the torrent. Not necessarily 456 that have completely downloaded the book. I didn't post that

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread John Meyer
tedd wrote: At 9:26 AM -0500 7/17/07, Larry Garfield wrote: On Tuesday 17 July 2007, tedd wrote: Once I have written code or words, the time I have spent on that is gone. I will never get that time back, regardless of whether or not I get paid for it after the fact. Ok, then it would be

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread John Meyer
Richard Lynch wrote: On Mon, July 16, 2007 7:15 am, tedd wrote: I have to agree with Col on this one. Books are not shareware, freeware or open source. They are written for profit and anyone wanting to pirate the books are stealing, plain and simple. And if anyone thinks people will buy the

Re: [PHP] Re: Pirate PHP books online?

2007-07-18 Thread John Meyer
There is a very very important difference. Stealing/theft is a criminal offence. Copyright infringement is not. For you to be prosecuted for copyright infringement the injured party must bring a civil case. This is a fundamental difference. The reason everyone thinks the terms theft and

Re: [PHP] Re: Pirate PHP books online?

2007-07-18 Thread John Meyer
Larry Garfield wrote: On Wednesday 18 July 2007, tedd wrote: And just because they do, doesn't make it any less accurate either. I don't care if Hitler agreed with me, there is a fundamental wrongful act of taking something that is not yours regardless of what you, and others, may call it.

Re: [PHP] Class ADODB - Method GenID() in MySQL

2006-07-19 Thread John Meyer
Renne Rocha wrote: Hello, I am using the ADODB class to connect to a MySQL server. I am trying to generate an ID with the method GenID(), but when I tried this: $id = $db-GenID('table'); The value of $id is equal to zero. I know that MySQL doesn't use sequences like PostgreSQL does (I've

Re: [PHP] Class ADODB - Method GenID() in MySQL

2006-07-19 Thread John Meyer
Wouldn't this: $id = mysql_insert_id(); $query = UPDATE tablename SET id= . ($id + 1); $result = mysql_query($query); Be a little simpler. But like I said, I'm confused over the need for this in the first place, seeing as how an auto_incremented primary key is self-descriptive. or are you saving

Re: [PHP] Basic PHP knowledge test

2006-07-20 Thread John Meyer
John Nichel wrote: What does $_POST['x'] mean? What does $ in front of a string of chars without quotes mean? That does register globals mean? Is it possible to run php as a cgi script? When it is necessary to use 'var' in php code? I would probably agree that a problem would be better.

Re: [PHP] Difference between 2 time entries

2006-07-20 Thread John Meyer
|Found this on the PHP web site, you can add the conversions as the first lines in the functions. function callDuration($dateTimeBegin,$dateTimeEnd) { $dif=$dateTimeEnd - $dateTimeBegin; $hours = floor($dif / 3600); $temp_remainder = $dif - ($hours * 3600); $minutes

RE: [PHP] OT promotion candidates needed

2006-08-06 Thread John Meyer
Director, nah. Wait until you are promoted to Dictator of IT. That's where the real power begins. BWAHAHAHAHAH...cough. Enough maniacal laughing for now, back to work. -Original Message- From: Ligaya Turmelle [mailto:[EMAIL PROTECTED] Sent: Sunday, August 06, 2006 7:16 PM To: Jay

[PHP] RE: non-text data

2006-08-13 Thread John Meyer
Gd, BTW, came into this late, have we gotten the old store your images in the filesystem and save the file name in the database argument yet? -Original Message- From: Dave Shariff Yadallee - System Administrator a.k.a. The Root of the Problem [mailto:[EMAIL PROTECTED] Sent: Sunday,

RE: [PHP] RE: non-text data

2006-08-13 Thread John Meyer
Depends on how pugnacious I'm feeling, awscrewit, you go for it. -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Sunday, August 13, 2006 10:41 PM To: John Meyer Cc: 'Dave Shariff Yadallee - System Administrator a.k.a. The Root of the Problem'; '[php] PHP General List

[PHP] readdir() question

2006-08-15 Thread John Meyer
I have a script to list the files in a directory: select name=letters ?php $open = opendir(.); while ($file = readdir($open) != false) { ? option value=?=$file??=$file?/option ?php } ? /select /form And all I am getting are 1s. I think I'm doing it right, what is

Re: [PHP] readdir() question

2006-08-15 Thread John Meyer
Richard Lynch wrote: On Tue, August 15, 2006 12:04 pm, John Meyer wrote: I have a script to list the files in a directory: select name=letters ?php $open = opendir(.); while ($file = readdir($open) != false) { ? option value=?=$file??=$file?/option ?php } ? /select

Re: [PHP] readdir() question

2006-08-15 Thread John Meyer
Richard Lynch wrote: Do you really mean opendir() or do you mean readdir() ??? readdir(). The point is why do you need to put it as !== vs. != -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Trying to create an encryption method

2006-11-04 Thread John Meyer
I'm trying to create this encryption method for puzzles (nothing super secret, just those cryptograms), but this seems to time out, can anybody point out what I'm doing wrong here: for ($i=1;$i=26;$i++) { $normalAlphabet[$i] = chr($i); } //now, to shuffle for

Re: [PHP] Trying to create an encryption method

2006-11-05 Thread John Meyer
Modified the script, and that's what I needed, thanks. Jochem Maas wrote: $secret = HalloWorld; $encoded = ; $a = $b = range(a,z); shuffle($b); $c = array_combine($a, $b); foreach (str_split(strtolower($secret)) as $v) $encoded .= isset($c[ $v ]) ? $c[ $v ] : $v; var_dump($c,

Re: [PHP] Trying to create an encryption method

2006-11-06 Thread John Meyer
Adapted something from this list and that worked, thanks for the help. Richard Lynch wrote: On Sat, November 4, 2006 10:15 pm, John Meyer wrote: I'm trying to create this encryption method for puzzles (nothing super secret, just those cryptograms), but this seems to time out, can anybody

Re: [PHP] How do you do the ? mark after a filename

2006-11-11 Thread John Meyer
the ? is a delimiter between the url and the get variables, which are set by the script itself, either through forms or by scripts. Thomas Bonham wrote: Hi All, I keep seeing the ? mark after many file names index.php?id=234. So what I would like to know is how do you make them. I have

Re: [PHP] one click - two actions?

2006-11-13 Thread John Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Not to be rude or anything, but if you want to do two things with one click, wouldn't the javascript list be the place you would want to go? Mel wrote: Could someone please help me figure out how to show some description (where applicable) at the

[PHP] Regular expressions

2006-11-14 Thread John Meyer
Is there a way to make a regular expression to match on a particular way the letters are arranged? For instance, if you had a word: THAT It could match on any word in the dictionary that had the form: 1231 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Regular expressions

2006-11-15 Thread John Meyer
Darrell Brogdon wrote: Can you elaborate a little? Do you mean that you want certain letters to have a numeric representation? -D no, what I was meaning was in relationship to each other, whether they are the same letter or not. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Regular expressions

2006-11-15 Thread John Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Okay, what I am referring to is cryptograms, where one letter is substituted for another. I would like to be able to list all the words in a dictionary that have that arrangement of their letters. Later on, I would like to be able to do an entire

Re: [PHP] Coding...

2006-11-18 Thread John Meyer
I'd pick up a book Web Database Applications with PHP and MySQL, otherwise known as the Platypus Book, and use that. That will teach you a lot about logins, sessions, as well as using MySQL and PHP together. As far as the database name goes, that has nothing to do with the PHP file name. Jeff

Re: [PHP] reading MS Excel?

2006-12-28 Thread John Meyer
On a side note, but going on the basis that the users are uploading .xls files and don't understand how to convert. Would it be better to use php's routines or to automate excel, convert it inside there, and then use the result? Leonard Burton wrote: On 12/28/06, Jiffy Slides Leonard Burton

Re: [PHP] Hello

2007-01-13 Thread John Meyer
Edward wrote: How do I create a php document so that people in my nonprofit can vote on issues online through the organization's website? Thanks, Edward Start with PHP, add MySQL or your database of choice, mix and prepare. Serves 500+. -- PHP General Mailing List (http://www.php.net/)

[PHP] Not able to load the extensions

2008-07-30 Thread John Meyer
Apache 2.2 PHP 5.2.6 (as a module) Windows Relevant parts of php.ini ; Directory in which the loadable extensions (modules) reside. extension_dir = I:\php\ext extension=I:\php\ext\php_mssql.dll extension=I:\php\ext\php_mysql.dll Note: I did try it with just the name (php_mysql.dll) but it

Re: [PHP] Linux distributions and tools for Linux/Apache/PHP/MySQL dev

2006-03-01 Thread John Meyer
Chris Lott wrote: Thanks for the advice-- I've run Linux without a GUI for a long time, so I'm quite familiar with hand compilations-- but I always wondered if I was just missing something with packaging systems that it seemed to REQUIRE hand-compilation to get a workable development LAMP

Re: [PHP] max unique number

2006-03-07 Thread John Meyer
Philip Hallstrom wrote: [snip] How do i get a unique max number from a mysql table column? [/snip] SELECT MAX(number) FROM table LIMIT 1; That might not be unique though... I'm wondering if the original poster is looking for AUTO_INCREMENT (ie. sequences) to ensure a unique id to use for

Re: [PHP] where php at?

2006-03-27 Thread John Meyer
tedd wrote: Hi: Related to my cron problem -- where do you get the path to php? My phpinfo() says: http://www.xn--ovg.com/info.php reports it as: /usr/lib/php:/usr/local/lib/php If you're on a linux box, have you tried which php? -- PHP General Mailing List (http://www.php.net/)

[PHP] Amazon WSDL

2006-04-25 Thread John Meyer
Hey, is it possible to use the Amazon WSDL within PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Amazon WSDL

2006-04-25 Thread John Meyer
Richard Collyer wrote: John Meyer wrote: Hey, is it possible to use the Amazon WSDL within PHP? Lookie what the first google entry for Amazon WSDL php was: http://www.onlamp.com/pub/a/php/2003/07/03/php_amazon_soap.html Richard Nice, now I need to navigate the bloody Amazon web

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread John Meyer
Should we really have this arguement about a standard way of writing the code? This is PHP, an open-source project. Isn't that like asking existentialists to adopt a uniform code of conduct? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Configuring the error suppression

2006-05-08 Thread John Meyer
Is there anyway to make PHP normally suppress errors, but a piece of code that would show errors on a particular page? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Configuring the error suppression

2006-05-09 Thread John Meyer
IG wrote: John Meyer wrote: Is there anyway to make PHP normally suppress errors, but a piece of code that would show errors on a particular page? Sorry forgot to mention how you show errors on a particular page- you would use- ini_set('display_errors', '1'); But are you sure you want

[PHP] Exceptions in PHP

2006-05-14 Thread John Meyer
I have the following script: try { $conn = mysql_connect(localhost,webuser,testme) or die(Could not connect); mysql_select_db(bookcollection,$conn) or die(Could not select database); //first, check to see if there is an author if ($_POST[neworoldauthor] == new) { $sql =

[PHP] Narorwed down my problem to one statement:

2006-05-16 Thread John Meyer
$sql = INSERT INTO BOOKS(CopyrightYear,CoverType,DatePurchased,EditionNumber,ISBNNumber,Notes,Pages,Publisher,LOCNumber) VALUES(\ . $_POST[copyrightyear] . \,\ . $_POST[covertype] . \,\ . $_POST[datepurchased] . \, . $_POST[editionnumber] . ,\ . $_POST[isbn] . \,\ .

Re: [PHP] OO purism sucks - this is a rant for anyone who is allergic to that kind of thing...

2006-06-01 Thread John Meyer
John Nichel wrote: Do what I do, and don't do OO. ;) In other words, do what works, realizing that 99 percent of the time that you're doing indivdual sites, and ignore dogma? Hmm, what a concept! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] HTML form

2006-06-01 Thread John Meyer
Martin Marques wrote: Sorry for the OT, but this is PHP output anyway :-) I have a bunch of code to input and modify data through an HTML form. When I modify the options, some are in text, others in textarea, and some are in select options. Now wat I did is make the current value be the

Re: [PHP] OO purism sucks - this is a rant for anyone who is allergic to that kind of thing...

2006-06-01 Thread John Meyer
Robert Cummings wrote: On Thu, 2006-06-01 at 19:14, Jochem Maas wrote: Robert Cummings wrote: Ahh yes, I do like the elegance of prototypes too. They're a different kind of beast, but a very flexible one. the more I get in it the pretty it gets - javascript doesn't just give you a revolver

Re: [PHP] If value is odd or not

2006-06-02 Thread John Meyer
Steven Osborn wrote: $odd = array(1,3,5,7,9); if(inarray(substr($var,strlen($var)-1,1),$od) { //haha } else { //even } How about this if ($var % 2 == 0) { //it's even } else { //it's odd } -- Online library -- http://pueblonative.110mb.com 126 books and counting. -- PHP General

Re: [PHP] Cookie Question

2006-06-24 Thread John Meyer
tedd wrote: At 6:26 PM -0400 6/23/06, Tom Ray [Lists] wrote: I've run into something rather odd with cookies today. I'm working with this admin section on a site and I'm setting a cookie that is supposed to be good for one hour. So in the cookie I have time()+3600 and all was well or that was

Re: [PHP] uploading...

2006-06-26 Thread John Meyer
BBC wrote: Fatal error: call to a member function an o non object in /url/data.php on line 34 and the syntax is in line 34, so what can I do..? Could you point out which line is line 34? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-26 Thread John Meyer
Jay Blanchard wrote: [snip] I am going to do some thinking (typing) out loud here because I need to come up with a solution to double-clicking on a form button issue. [/snip] Isn't there a javascript method that you could use to accomplish the same thing? Either that, or on the first click,

Re: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-27 Thread John Meyer
Jay Blanchard wrote: [snip] JavaScript can't be used for such things, or at least it can't be relied upon. What if the user has disabled JavaScript? Or what if the user has specifically disabled the JavaScript behaviour you are relying on? [/snip] Egg Zachary. That was why I wanted a PHP

Re: [PHP] Multiple if() statements

2006-06-29 Thread John Meyer
Larry Garfield wrote: switch is fine if your elseif comparisons are equality based. If they're not equality based, then they don't map to switch as well. In other words, if you look at a logical ladder as the roots of the tree, as long as each root has the same number of forks (say each

Re: [PHP] Functions

2006-06-29 Thread John Meyer
Two things: 1. You're not returning anything from the function. 2. You're not even using the function. [EMAIL PROTECTED] wrote: I am trying to create a function to clean up variables that are user inputted from a form. I am not getting this script to work. Can anyone help. ---Start

[PHP] PDF documentation

2005-12-25 Thread John Meyer
Hi, does the PHP document come in a PDF form? -- Dr. Joseph Dolan: Isn't there a children's book about an elephant named Babar? Fletch: I don't know. I don't have any. Dr. Joseph Dolan: No children? Fletch: No, elephant books. -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: [PHP-DB] Re: Inserting a php file into a mysql database

2005-12-26 Thread John Meyer
On Monday 26 December 2005 8:26 am, El Bekko wrote: Use file_get_contents() I'd say... but you'll have the problem the file executes :S Which is why I told him just to treat the php file like a text file (which is what it really is) and use fopen to grab the file, read its contents into a

Re: [PHP] load testing tools

2005-12-27 Thread John Meyer
On Tuesday 27 December 2005 12:45 pm, Jared Williams wrote: Anyone have any opinions or suggestions on cheap/free load testing tools for dynamic sites? Microsoft WAST http://www.microsoft.com/technet/archive/itsolutions/intranet/downloads/web stres.mspx Jared You violated one of the Ten

[PHP] Creating a new file (apologies to anybody on php-db who got this)

2005-12-27 Thread John Meyer
On Tuesday 27 December 2005 4:07 pm, James Lumb wrote: Hi, Does anyway know whether there is a PHP function which creates a new file? i know there is fwrite, fopen etc but is there any way of creating a new file? Thanks, James fopen() will create a new file if you open it for writing and it

  1   2   >