Re: [PHP] [Q] Converting SQL Datetimes to timestamps

2004-08-03 Thread John Holmes
1970, you need to be on an OS that supports negative timestamps (not windows, as far as I know). -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [Q] Converting SQL Datetimes to timestamps

2004-08-03 Thread John Nichel
on Windows, some Linux distributions, and a few other operating systems. -- John C. Nichel ÃberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] javascript type cast OT

2004-08-03 Thread John Nichel
of the most curt and > condescending lists I've ever been on. > [/snip] > > Hmmm, you should see the C++ newsgroup(s). Or the qmail listsor usenet. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] javascript type cast OT

2004-08-03 Thread John Nichel
h of information on how to ask smart questions, how to find answers to common problems, etc. If they are not going to use that advice, and just blast the list with an OT question, or one that's been asked a zillion times, why should we take the time out to help those who are not going to he

Re: [PHP] smarty and db

2004-08-03 Thread John Nichel
ts[id].title} > > > {/section} > > Thanks, > Amanda According to this page http://smarty.php.net/manual/en/language.function.if.php you should be able to do something like. { if is_array ( $events ) } do smarty stuff { /if } -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php5: configure --with-pear but there's no pear?

2004-08-03 Thread John Nichel
available'? Did the PEAR directory/files not install? Is your system not finding them? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] javascript type cast OT

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 15:38, Josh Close offered up the following tid-bit of information : > On Tue, 3 Aug 2004 15:30:20 -0400, John Nichel <[EMAIL PROTECTED]> wrote: > > On Tuesday 03 August 2004 14:54, Alex Hogan offered up the following > > tid-bit > > > &g

Re: [PHP] running a script

2004-08-03 Thread John Nichel
> > I am just trying to figure out how to write the SELECT statement for that > script. I am guessing, but I would do: > "SELECT * FROM temp_users WHERE ID=$id" > > Thanks again. > > Aaron If you have register_globals on, you can access it via $id, otherwise us

Re: [PHP] Location header does not work?

2004-08-03 Thread John Nichel
59&Itemid=162"); exit; > } > == > > Am I doing anything wrong with the Location header? What's the error? Is it just not forwarding? Headers already sent? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] running a script

2004-08-03 Thread John Nichel
receiving data from a form (ie. > processForm.php). > > -Ed The thread's been snipped to death. The variable is going to be passed via a link (query string) from an email (the processForm.php was just the 'page name' I used in an earlier example). We could just go with

Re: [PHP] smarty and db

2004-08-03 Thread John Holmes
t;assign("events",$events); (in the template page) {section name=id loop=$events} {$events[id].type}: {$events[id].date|date_format:"%B %e, %Y"}, {$events[id].speaker} {$events[id].title} {/section} {section name="id" loop=$events} ... {section

Re: [PHP] Request for Help/Information

2004-08-04 Thread John Holmes
meta tag to do the redirection since you've already sent content by downloading the file. You won't be able to use a header() style redirection. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] User IP

2004-08-04 Thread John Nichel
be of no use to you, as it's going to be a reserved IP (like me...behind my proxy, I'm 192.168.2.6) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what file holds my databases

2004-08-04 Thread John Nichel
ard-drive, where and/or what file holds > my databases? > > Thanks for any help, > Doug http://dev.mysql.com/support -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Combining two variables...

2004-08-04 Thread John Nichel
I do to enable that? Concatenate? http://us4.php.net/manual/en/language.operators.string.php -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Session Expire...

2004-08-04 Thread John Holmes
hour time limit pretty accurate. On your test server, however, where your the only one hitting the server, garbage collection will not be triggered as much and your session files will last longer. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP Gener

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-04 Thread John Holmes
on the couple of lines before it? What's on the couple of lines after that line that's failing? What does the line with the eval() call look like? Are you doing anything else with $this->The_Template_Sys before it's eval()'d?? -- John Holmes php|architect - The maga

Re: [PHP] Passing user entered data to DB

2004-08-04 Thread John Holmes
be considered secure enough to pass the $securevar to the database, or I should consider something more to be checked before. It'll be safe to put into a database at this point, with the changes above. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.c

Re: [PHP] Re: Session Expire...

2004-08-04 Thread John Holmes
or garbage collection. I know I'm missing something, but cannot find out what. Are you sure your .htaccess setting is working? Look at the output of phpinfo() on a page under the .htaccess file and see if your setting is shown in the "local" column. -- John Holmes php|architect - The magaz

Re: [PHP] unable to pass $submit variable

2004-08-04 Thread John Holmes
CHAN YICK WAI wrote: > I learn to write a small PHP form with "submit" button > for different actions, however, it seems to me variable > can't be passed. Any experience can share for my debugging? Turn on register_globals or use $_REQUEST['action'] --

Re: [PHP] MySql Tables

2004-08-05 Thread John Nichel
On Thursday 05 August 2004 08:51, DIFF FanneHH offered up the following tid-bit of information : > How many records can be in a MyIsam table? > Thanks I'm sure they could tell you on the MySQL mailing list. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] --

Re: [PHP] Optimizing Tips

2004-08-05 Thread John Nichel
fic. Three, hardware? Chances are, this has very little to do with php/html. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What does \\0 means?

2004-08-05 Thread John Nichel
On Thursday 05 August 2004 10:03, John W. Holmes offered up the following tid-bit of information : > oo.ooo... can I do it?? ;) > > \\0 is actually the entire string that was matches. \\1 would be the > first parenthesized substring, \\2 the second, etc. > > Don't worr

Re: [PHP] MySql Tables

2004-08-05 Thread John Nichel
te, my table hit a wall after a gazillion records. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need Some Direction

2004-08-05 Thread John Nichel
something like this before any output to the browser if ( ! isset ( $_SESSION['loggedin'] ) || ! $_SESSION['loggedin'] ) { header ( "Location : /unauthorized.php" ); exit; } -- John C. Nichel ÃberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] --

Re: [PHP] filling out HTML forms

2004-08-05 Thread John Nichel
ers entered on our form to fill out the other > form. Do you have access to the code for the 'other form'? Is the 'other form' on the same box as 'your form'? Does 'your form' submit it's data to the 'other form'? -- John C. Nichel Übe

Re: [PHP] filling out HTML forms

2004-08-05 Thread John Nichel
On Thursday 05 August 2004 13:43, John W. Holmes offered up the following tid-bit of information : > You can use cURL or one of the PEAR classes to have your PHP script fill > out the form on the remote computer... will take some work, but it's > possible. > > Actually, you c

Re: [PHP] filling out HTML forms

2004-08-05 Thread John Nichel
On Thursday 05 August 2004 14:03, John W. Holmes offered up the following tid-bit of information : > You'd have to know what elements are in the form. You wouldn't actually > fill out the form, just create the appropriate request to the page that > does the form processing. As

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread John Holmes
rns the result. What are the _exact results_ when you use file_get_contents()? $output = preg_replace('/\{CONTENT\}/',file_get_contents('blah.php'),$text); -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List

Re: [PHP] Re: IMPORTANT: Please Verify Your Message

2004-08-06 Thread John Holmes
Josh Acecool M wrote: Stop E-Mailing me. http://www.acecoolco.com/legal.php Stop pestering us with your "eval a secret file with a secret string... i can't tell you anything" problems, then. :) Please consider this spam. I'd love to see you enforce your "legal"

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-06 Thread John Holmes
http://www.metaconsultancy.com/whitepapers/smtp.htm and see where you encounter the error. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SQL Join query

2004-08-07 Thread John Holmes
where there arent no comments and the field num_comments should be 0. Need a LEFT JOIN SELECT pics.*, pic_comments.*, count(*) AS num_comments FROM pics LEFT JOIN pic_comments on pics.id = pic_comments.pic_id WHERE pics.category = 1 GROUP BY pic_comments.pic_id -- John Holmes php|architect - The

Re: [PHP] Flush()....go to bottom of page (might be 0T)

2004-08-07 Thread John Holmes
the output below Not with PHP. Use Javascript's scroll properties/methods/whatevers... :) -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Function Mail

2004-08-08 Thread John Holmes
Juan Pablo Herrera wrote: I have a cuestion about the features on function mail. I think that it send the email one to one address. Is it ok?. Yes. It is all ok. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http

Re: [PHP] php_check_syntax loads functions and classes

2004-08-08 Thread John Holmes
it's own and the foo() call outputs "test.php::foo"... I'm going to open up a bug report and go over some of this. Seems like a very handy function to have if it worked correctly. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP

Re: [PHP] php_check_syntax loads functions and classes

2004-08-08 Thread John Holmes
(http://bugs.php.net/bug.php?id=27406) which has the answer we're all looking for: Don't misuse the function. Very helpful, eh? I added a comment to please enlighten us what the proper usage was, so maybe that'll help. -- John Holmes php|architect - The magazine for PHP professionals - ht

Re: [PHP] Local version works - production breaks [SOLVED]

2004-08-08 Thread John Holmes
the end of the page. It may not work this way with every version of PHP, but I've experienced issues like that in the past. There are other issues with sessions and switching register_globals settings, too, so if you're program relies upon them heavily, that may be the problem. -- John Ho

Re: [PHP] PHP 5 - $_REQUEST undefined???

2004-08-08 Thread John Holmes
n ini option to turn it off. I'm in the process of upgrading from PHP4 to 5, and this script works ok in 4 - the error is just in 5. See if it's a mod_bandwidth problem like in the "POST superglobal is empty" thread we've been seeing all week. -- John Holmes php|archit

Re: [PHP] Header list

2004-08-08 Thread John Holmes
request your files and take note of what the content type headers are. Replicate them. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] urlencode - urldecode

2004-08-08 Thread John Holmes
above (that whole string) will be in $_GET['a'] on process.php. Since you asked, though, you use urldecode() like this: $decoded = urldecode($_GET['a']); That's a lot of information to be sending through the URL, btw. I think there's a max of 1024 characters, general

Re: [PHP] any javascript gurus?

2004-08-08 Thread John Holmes
Aris Santillan wrote: i need help on this Okay... You have an empty

Re: [PHP] hosting provider won't enable ftp_connect()

2004-08-10 Thread John Nichel
rovider that allows these extensions? JTL does... http://www.jtlnet.com/ Their php info page http://www.jtlnet.com/phpinfo.php -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SQL Functions

2004-08-10 Thread John Nichel
John W. Holmes wrote: Change that to: $array = array(); $results = mysql_query( $sql, DB::connect() ); while($data = mysql_fetch_array($result)) { $array[] = $data; } return $array; Would there be any speed/performance issuse with using something like... array_push ( $array, $data ); vs. $array

Re: [PHP] SQL Functions

2004-08-10 Thread John Nichel
$bracket_total / $bracket_size; echo ( "array_push() averaged " . $push_average . " seconds when running the test " . $push_size . " times\n" ); echo ( "array[] averaged " . $bracket_average . " seconds when running the test " . $bracket_size

Re: [PHP] You can all take a look

2004-08-10 Thread John Holmes
PHPDevX wrote: Do you think such a paid support system is needed? Needed? No. Can you pay me to answer questions? Hell yeah. Will anyone pay me to answer questions? Hell no. Didn't see the option to vote that way.... -- John Holmes php|architect - The magazine for PHP professionals -

Re: [PHP] Global persistent variables

2004-08-10 Thread John Holmes
f they are read/write, use a database... -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] You can all take a look

2004-08-10 Thread John Nichel
John Holmes wrote: PHPDevX wrote: Do you think such a paid support system is needed? Needed? No. Can you pay me to answer questions? Hell yeah. Will anyone pay me to answer questions? Hell no. Didn't see the option to vote that way Why would anyone pay you when all of your answers are

Re: [PHP] Global persistent variables

2004-08-10 Thread John Holmes
same request as you just made for a website (including cookies, IP, etc, which is possible), then as far as the web server is concerned, the requests came from the exact same person. Oh, and -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP Gener

Re: [PHP] You can all take a look

2004-08-10 Thread John Holmes
John Nichel wrote: Why would anyone pay you when all of your answers are wrong? ;) Hey! At least I'm consistanly wrong! I'm dependable like that... -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.ph

Re: [PHP] download script

2004-08-10 Thread John Nichel
Aaron Todd wrote: "; echo basename($file); echo "No File Found"; } ?> Where are you opening the file? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] download script

2004-08-10 Thread John Nichel
Aaron Todd wrote: "; echo basename($file); echo "No File Found"; } ?> Belay my last post...you're using readfile and not fread. Okay, what error is the script outputting? You should remove the '@' from in front of readfile() so that it will output an error

Re: [PHP] php tools

2004-08-10 Thread John Nichel
Naty wrote: Hi!! I'm trying to find editors or IDE that let me create and develop a php project. Somebody can recommned me tools ? Regards Naty I can recommend the 'Newbie Guide'. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (htt

Re: [PHP] Re: preg_match_all but no preg_replace_all?

2004-08-10 Thread John Nichel
greedy by default. You have to specify the 'g' for it to be greedy. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php tools

2004-08-10 Thread John Nichel
ead, and plug a FireWire cable into my ear. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php tools

2004-08-10 Thread John Nichel
John W. Holmes wrote: From: "Jay Blanchard" Open http://www.google.com in the browser of your choice Type "PHP IDE" in the little box that appears there. Click on the links of returned results. I clicked on all of the links and nothing happened except for some web pages

Re: [PHP] embedded php

2004-08-10 Thread John Nichel
is broken. My bet is 2. Please do not send e-mails twice. It will more often than not double the chances that your question will receive no response. PEBKAC? ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] PHP performance

2004-08-10 Thread John Nichel
Jay Blanchard wrote: [snip] Any recommendations on how to make PHP run faster? [/snip] A multiple CPU box. (It's a legitimate answer!) Lot of good that did. I just threw 8 socket 7 AMD processors into a box, and PHP isn't even the slightest bit faster. -- John C. Nichel ÜberGeek Ke

Re: [PHP] Re: php tools

2004-08-10 Thread John Holmes
Ed Lazor wrote: >From: "John Holmes" From: "Jay Blanchard" Open http://www.google.com in the browser of your choice Type "PHP IDE" in the little box that appears there. Click on the links of returned results. I clicked on all of the links and nothing happened ex

Re: [PHP] weird error, might be javascript?

2004-08-11 Thread John Holmes
line 597 of that page. That's a JavaScript error. Look at line 597 of the HTML source, not the PHP source, to find the error. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Date and time

2004-08-11 Thread John Holmes
If so, you can use SELECT yourcolumn + INTERVAL 7 DAY FROM yourtable ... in your query. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] weird error, might be javascript?

2004-08-11 Thread John Holmes
Angelo Zanetti wrote: yes but even If I take the page source, its not anywhere near 597 lines long...any other ideas? Sorry forgot to mention it in initial post. Do you have a URL? It's a Javascript error, either way. -- John Holmes php|architect - The magazine for PHP professionals -

Re: [PHP] redirecting to another frame using php header function

2004-08-11 Thread John Nichel
displayed in another frame. didn't find anything from google/php.net Can't do this with php. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] redirecting to another frame using php header function

2004-08-11 Thread John Holmes
bruce wrote: can anyone point me to a way to do a page redirect using the php 'Header' function to another frame. No. Use Javascript. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Mailinglists are honey for Spammers

2004-08-11 Thread John Holmes
SPAM wrote: Currently i'm working on a php script You forgot the part where you ACTUALLY ASK A QUESTION... -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] updating a frame from within php...

2004-08-11 Thread John Nichel
d the DOM. PHP does not have access to the client side. The best you can hope to do is have php output some JavaScript to make the client act as you wish. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Adjust two or more mysql rows ?

2004-08-11 Thread John Holmes
hink you have a seriously flawed database structure. There is no "row 1" in a database, you know that, right? Pretty sure you can do what you're after, though, you'll just have to involve about four different queries and some PHP magic in the middle... -- John Holmes p

Re: [PHP] Adjust two or more mysql rows ?

2004-08-11 Thread John Holmes
$result2 = mysql_query($query) or die(mysql_error()); } You'll have to grab what shipments or other information you want as you loop through the results, of course. I'd recommend you use InnoDB tables so you can wrap the whole thing in a transaction, also (or use a database abstrac

Re: [PHP] updating a frame from within php...

2004-08-11 Thread John Nichel
eted as reloading in the same frame. which is not what i want to occur!!! i've seen some references to meta-tag attributes within the HEADER that alude to being able to specify the target window for the content... It *CANNOT* be done with php. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675

Re: [PHP] Changing MySQL Date Format

2004-08-12 Thread John Holmes
ev.mysql.com/doc/mysql/en/Date_and_time_functions.html -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mod rewrite urls

2004-08-12 Thread John Nichel
Jay Blanchard wrote: a. Have you sent this to an Apache list? 2. I just almost cannot bring myself to say it, but this relates to PHP how? Didn't you get the memo? To be PC, we now have to answer all questions releated to php or not. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856

[PHP] Help Loading MySQL Extension with PHP5/Apache1.3

2004-08-12 Thread John Holmes
/php/ext/php_mysql.dll' 'c:\php\ext\php_mysql.dll' './php_mysql.dll' 'c:/php/ext/php_mysql.dll' 'c:\php\ext\php_mysql.dll' 'c:/php/ext\php_mysql.dll' 'c:/php/ext\php_mysql.dll' '\php\ext\php_mysql.dll' 'c:/php/ext/php_mys

Re: [PHP] Help Loading MySQL Extension with PHP5/Apache1.3

2004-08-12 Thread John Holmes
John Holmes wrote: Okay... I've done this before but can't get it working now. I've got PHP5 working correctly, but I'm trying to load the MySQL php_mysql.dll file. I'm using Apache 1.3 on Windows XP. Nevermind... (&^(&(*(*&^%%$^% libmysql.dll [EMAIL PR

Re: [PHP] mod rewrite urls

2004-08-12 Thread John Nichel
Jason Wong wrote: On Thursday 12 August 2004 21:37, John Nichel wrote: Jay Blanchard wrote: a. Have you sent this to an Apache list? 2. I just almost cannot bring myself to say it, but this relates to PHP how? Didn't you get the memo? To be PC, we now have to answer all questions releated t

Re: [PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread John Nichel
raditha dissanayake wrote: I vote this list be renamed as php-general-apache-mysql-imap-iis discussion list. all those not in favour please flame. We could just move this list to a Yahoo! group, then we can answer questions for any topic, and have the trolls too. ;) -- John C. Nichel ÜberGeek

Re: [PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread John Nichel
have a winner. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [discuss] Rename this list

2004-08-12 Thread John Holmes
raditha dissanayake wrote: I vote this list be renamed as php-general-apache-mysql-imap-iis discussion list. all those not in favour please flame. If I give a big donation, can I get my name in there, too??? Imagine all the people that'll want to post to a John Holmes list!!! -- ---John H

Re: [PHP] string manipulation

2004-08-12 Thread John Nichel
o learn. But I searched the manual for strings, and all I got was results for threads. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] str_split()

2004-08-12 Thread John Nichel
: str_split() in /home/virtual/site341/fst/var/www/html/test.php on line 12 "; echo "$parsed[0]-$parsed[1]-$parsed[2]$parsed[3]"; ?> What version of php is your webserver running? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General

Re: [PHP] str_split()

2004-08-12 Thread John Nichel
the file) and you can see the version of php, as well as all the configuration options. Also, if you have the cli installed, you can type this in via a shell php -v and that will give you version info. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mail

Re: [PHP] str_split()

2004-08-12 Thread John Nichel
Aaron Todd wrote: HAH...I found it. I have version 4.3.3 Does that version not have this function or something? Thanks, Aaron According to the manual... http://us4.php.net/str_split str_split() is a php5 function. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP

Re: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread John Nichel
g the php-mysql rpm, you will need to do that. Best solution, ditch the rpm's and install from source. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread John Nichel
Eric L. Sammons wrote: No I see no mysql section in my phpinfo page. I am in the process of rebuilding php to see if this resolves the problem. Did you restart Apache after installing the php-mysql rpm? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] Page Referer question

2004-08-12 Thread John Holmes
a saved page in the session and if it's there, redirect to that page instead of the normal one. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: [PHP-FIREWALL] Page Referer question

2004-08-12 Thread John Holmes
Curt Zirzow wrote: You know.. I still wonder on earth why on hell a firewall has this duty. What's this got to do with PHP ;) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP Ge

Re: [PHP] Template Question

2004-08-13 Thread John Holmes
t any suggestions? eval() -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] access a file

2004-08-13 Thread John Holmes
work . what should i have to do ? The PHP script runs as the Apache user, which is generally 'nobody', so it probably doesn't have permission to execute the requested command. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: T

Re: [PHP] mail() and the From: attribute...

2004-08-13 Thread John Nichel
work on all recipients... BUT.. ..." From: justaname"); Works on others... but not all...? Surely this can't be? I've never come accross this before? Any ideas what's up? My guess would be that it's on the client end. Have you tried formatting it like this... F

Re: [PHP] mail() and the From: attribute...

2004-08-13 Thread John Nichel
t, message [, additional_headers [, additional_parameters]]) There are examples on the manual page. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Email Address Testing

2004-08-13 Thread John Nichel
database on a Mac OS X box. Then, you have to execute that Perl script via Netscape running thru IIS on that Mac box. Once that is done, you have to change the oil in your car, make sure to use 10W-30 Oh wait, this is a php mailing list, right? -- John C. Nichel ÜberGeek KegWorks.com

Re: [PHP] Email Address Testing

2004-08-13 Thread John Nichel
try to trick you like that. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newb PHP Question

2004-08-13 Thread John Nichel
#x27;m unsure... That means php is install, and running just fine. Why don't you show us the code for the page that is throwing errors. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Open all subdirectories in a directory

2004-08-14 Thread John Holmes
not working for more than 1 level. I tested it in windows server. Expecting your help, Expecting your code... Have you looked at the opendir manual page to see if there are any examples, there? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine

[PHP] php die function for MySQL connection errors

2004-08-14 Thread John Gostick
ted to do something like this, but I can't find any references online to anything other than simple text error messages. I'm relatively new to PHP but not programming in general so please don't be afraid to fire big words at me. Thanks in advance! John G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Template Question

2004-08-14 Thread John Holmes
Jonathan Haddad wrote: eval takes a string and evaluates it as PHP, which I also thought would work. But this is a file of mixed PHP and HTML. If your file starts off in HTML mode, then: $file = file_get_contents('yourfile.php'); eval('?>'.$file.' -- ---Jo

[PHP] Anyone know of a PHP Dictionary Password Generator

2004-08-14 Thread John Holmes
it myself if anyone can point me to a "dictionary" of english words that I could use populate a text file or database to choose from. Thanks. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.

Re: [PHP] Language Searching

2004-08-14 Thread John Holmes
return strtr( strtr($string, 'ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝàáâãäåçèéêëìíîïñòóôõöøùúûüýÿ', 'SZszYAACNOOYaacnooyy'), array('Þ' => 'TH', 'þ' => 'th', 'Ð' => 'DH', 'ð'

Re: [PHP] Log parsing

2004-08-14 Thread John Holmes
? average time between updates? how many zeros are in your file? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Log parsing

2004-08-14 Thread John Holmes
nd you can calculate your percentages from there. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Log parsing

2004-08-14 Thread John Holmes
John Holmes wrote: Watty wrote: >> We know because the IP check run every 5 minutes by >> cron, and if it has no run within 5:01 minutes then >> the computer is off, or the script isn't working. >> But we should assume that the computer is off is there >> is

Re: [PHP] PHP not working with apache2

2004-08-14 Thread John Holmes
nd apache2 installed on my system, and I suspect some key PHP things may have been set up for apache instead of apache2. Does anyone have any pointers? http://us2.php.net/manual/en/install.unix.php -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Ma

<    16   17   18   19   20   21   22   23   24   25   >