Re: [PHP] Re: Crazy Serialize/Header/$_POST PHP Error - Is this a bug?

2004-08-24 Thread John Holmes
, here you can see how the length and value are correct. If you're not seeing the same thing with 4.3.3, then upgrade. -- ---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

Re: [PHP] Sessions vs. IE security

2004-08-24 Thread John Holmes
. -- ---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] Closing my Window after Download

2004-08-24 Thread John Holmes
From: PHP Junkie [EMAIL PROTECTED] Anyone's got any tips for me? Find a JavaScript list? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread John Holmes
permission to write to it? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regular expression help

2004-08-25 Thread John Holmes
on the web for hours and reading everything I can find on regular expressions, but I just can't wrap my brain around it. Thanks. preg_match_all('/#([^\s{]+)/',$style_sheet,$matches); $matches[1] should have all of the matches... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry

Re: [PHP] session cookie paths

2004-08-25 Thread John Holmes
From: Ian Firla [EMAIL PROTECTED] Answered my own question. Creating an .htaccess file containing: php_value session.name uniqueSESSIONname takes care of the problem. You could also use -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session cookie paths

2004-08-25 Thread John Holmes
() in each of the scripts. http://www.php.net/manual/en/function.session-set-cookie-params.php ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Odd behaviour of non-existent keys?

2004-08-25 Thread John Holmes
or do you need a deeper explanation (that I probably can't provide!) ;) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[2]: [PHP] Odd behaviour of non-existent keys?

2004-08-25 Thread John Holmes
and compare that, but there must be a more elegant way, surely? How about is_array()? if(is_array($foo['one']['two'])) { echo 'multi dimensional array found'; } You also have is_string(), empty(), etc... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread John Holmes
bet the manual has instructions on things like this... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is javascript enable?

2004-08-25 Thread John Holmes
enabled it in the browser. So set a form/URL variable with JavaScript and see if your PHP page receives it. Hidden iframe would probably work, or image, etc... You'll need a page refresh or redirect in between though to detect it. ---John Holmes... -- PHP General Mailing List (http://www.php.net

Re: [PHP] Array?

2004-08-25 Thread John Holmes
both. have fun. Don't break anything. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is javascript enable?

2004-08-25 Thread John Holmes
. Sometimes you don't get what you want. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] summarized results

2004-08-25 Thread John Holmes
From: Erik Meyer [EMAIL PROTECTED] Here is my function Where? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is javascript enable?

2004-08-25 Thread John Holmes
From: Marcos Thiago M. Fabis [EMAIL PROTECTED] i need this because i´m developing a system that require some security I surely wouldn't rely on JavaScript, something that can be turned on and off, to have anything to do with security. ---John Holmes... -- PHP General Mailing List (http

Re: [PHP] summarized results w/function

2004-08-25 Thread John Holmes
of HTML or can anything be in the text? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Setcookie variable use issue after moving php app to different server

2004-08-26 Thread John Holmes
From: Shapiro, David We are trying to move our php app to a different server. For some reason, when we type in the login/password/ account number info and click submit, it does not seem to set the variables. The magic 8-ball says register_globals is OFF on the new server... ---John Holmes

Re: [PHP] download filesize problem with IE

2004-08-26 Thread John Holmes
and/or are you using sessions? I've came across problems like this before and the solution was changing the session.cache_limiter, IIRC. Although my issue did not depend upon large file sizes, it happened for any file. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Setcookie variable use issue after moving php app to different server

2004-08-26 Thread John Holmes
the right file. If it's just a path, then that's where PHP is expecting to find php.ini, but did not. Hope that helps. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Setcookie variable use issue after moving php app to different server

2004-08-26 Thread John Holmes
? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP: Undefined Variables Error Message

2004-08-26 Thread John Holmes
a known-good php.ini from another server and the same behavior exists. I am running IIS in Windows 2000. Any ideas? Does the output of phpinfo() show that register_globals is ON? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] PHP: Undefined Variables Error Message

2004-08-26 Thread John Holmes
you're talking about. If it says $var is undefined, where to you define $var or how do you think/feel $var is being defined? I have mind reading turned off for the time being. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for a TODO: parser.

2004-08-26 Thread John Holmes
From: Rick Fletcher [EMAIL PROTECTED] This recursively gets you file path/name, line number, the matching line and the 2 that follow it. $ grep -HrnA 2 TODO: /path/to/code/root I get a parse error when I put that in my PHP file... ---John Holmes... -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP: Undefined Variables Error Message

2004-08-26 Thread John Holmes
Jeff - Webmaster wrote: Another website dies on line 4 here: $headers .= MIME-Version: 1.0\r\n; Well, in this case it's becaue $headers is undefined, yet you're trying to concatinate another string to it. Thus the warning... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry

Re: [PHP] PHP: Undefined Variables Error Message

2004-08-26 Thread John Holmes
Jeff - Webmaster wrote: Intersting. This is the same pair of html and php files that was functional on another server. Can you think of any reason that could account for the difference? default error_reporting levels... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry

Re: [PHP] PHP: Undefined Variables Error Message

2004-08-26 Thread John Holmes
-Version: 1.0\r\n; and 12 - $message = stripslashes($message); Line 4 would not produce that message. If $message is undefined, how are you going to stripslashes from it? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals

Re: [PHP] PHP Oficial Certification

2004-08-26 Thread John Holmes
, this could give employers a base idea of what you should be capable of. The actual interview and your portfolio will seal the deal, eh? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing

Re: [PHP] problem with front page files downloaded to dev machine OT

2004-08-26 Thread John Holmes
Curt Zirzow wrote: Top posting is like this. Please don't top post. -- ---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

Re: [PHP] PHP Oficial Certification

2004-08-26 Thread John Holmes
Yann Larrivee wrote: If you wanna show if you can programme well, sun would do the job. I burn easily. HTF is a Sun certification going to help you get a PHP job? Like Curt said, take the practice test and then decide. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E

Re: [PHP] PHP Oficial Certification

2004-08-27 Thread John Holmes
From: Dan Joseph [EMAIL PROTECTED] I just saw that: http://www.phparch.com/cert/ Hmm... there are no practice exams posted... See here: http://www.phparch.com/discuss/index.php/t/710/235/ ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] PHP Oficial Certification OT

2004-08-27 Thread John Holmes
From: Jay Blanchard [EMAIL PROTECTED] Probably Holmes. Not officially. Might look into it, though, but this is really just a hobby for me. :) I think that if you've been on the list for over a year, you should be certified automatically. heh... ---John Holmes... -- PHP General Mailing List

Re: [PHP] Newbie Question: DHTML client Http Post to PHP running under Apache/Win XP

2004-08-27 Thread John Holmes
needs watering around line 45. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strcasecmp()

2004-08-29 Thread John Holmes
Anthony Ritter wrote: ? $first_name = Hello; $second_name = Hello; if(strcasecmp($first_name,$second_name)) { echo words are equal; } else { echo words are not equal.; } ? if(strcasecmp($first_name,$second_name)===0) { echo 'words are equal'; } else { echo 'words are not equal'; } -- ---John

Re: [PHP] Hire a developer

2004-08-29 Thread John Holmes
] with . (_2_) with @ ps with sp little with big % with k ! with m * with j ;) -- ---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

Re: [PHP] Hire a developer

2004-08-29 Thread John Holmes
John Nichel wrote: John Holmes wrote: I am interested. Can you please contact me at *hn[foo]hl!$s(_2_)littler$dpsar%[foo]c! replacing: $ with e with o [foo] with . (_2_) with @ ps with sp little with big % with k ! with m * with j ;) There's got to be a regular expression in there somewhere

Re: [PHP] Hire a developer

2004-08-29 Thread John Holmes
... if I may...you hear what I say? lol.. you guys crack me up. Wouldn't str_replace(array_keys($rplc),$rplc,$eml); be better, though? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread John Holmes
. I have 5.0.0 installed and will install 5.0.1 just for you if you can give me the smallest amount of code that reproduces this problem to help you test. Otherwise, use @ and turn a blind eye... ;) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect

[PHP] Binary refresher needed

2004-08-29 Thread John Holmes
) { echo 'TEST2 flag was set.'; } I know that works, but is that the best way? Been a while since I played with this... :) -- ---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

Re: [PHP] Problem with str_replace

2004-08-29 Thread John Holmes
= str_replace(...); -- ---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

[PHP] Problems with writing a stream wrapper to regular fopen/close functions...

2004-08-29 Thread John Holmes
files\apache group\Apache\htdocs\zorin\streamtest.php on line 38 bool(true) string(13) Test String Warning: fclose(): supplied argument is not a valid stream resource in c:\program files\apache group\Apache\htdocs\zorin\streamtest.php on line 24 File2 closed -- ---John Holmes

Re: [PHP] Time consumed in microseconds

2004-08-30 Thread John Holmes
(TRUE); to get the float value. -- ---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] Problems with writing a stream wrapper to regular fopen/close functions...

2004-08-31 Thread John Holmes
or FALSE would come back to bite me on the ass... Thanks for the tip, it works now, of course. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with Strings Please

2004-08-31 Thread John Holmes
From: Marek Kilimajer [EMAIL PROTECTED] $handle = fopen(page.php, r); while (!feof($handle)) { $buffer .= fgets($handle, 4096); } fclose($handle); file_get_contents() could be helpful here, too... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Authors and Instructors Needed

2004-08-31 Thread John Holmes
at: *hn[foo]hl!$s(_2_)littler$dpsar%[foo]c! replacing: $ with e with o [foo] with . (_2_) with @ ps with sp little with big % with k ! with m * with j ---John Holmes... - Original Message - From: Keystone Learning Systems [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 30

Re: [PHP] stream wrappers

2004-08-31 Thread John Holmes
if($this-fp = fopen($path,$mode)) { return TRUE; } else { return FALSE; } } stream_read($bytes) { return fread($this-fp,$bytes); } stream_eof() { return feof($this-fp); } stream_close() { return fclose($this-fp); } } -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry

Re: [PHP] Cannot load modules

2004-08-31 Thread John Holmes
. The mysql extension requires libmysql.dll to be in the correct place, for example. RTD. -- ---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

Re: [PHP] Parsing large file

2004-09-01 Thread John Holmes
read the entire file into memory, just a line at a time, for example. Use set_time_limit() to ensure you have enough time to complete everything. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Closing my Window after Download

2004-09-01 Thread John Holmes
. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Closing my Window after Download

2004-09-01 Thread John Holmes
somewhere in this thread. Maybe I just explained it better or something. Either way... glad you're all straightened out or whatever. I really can't believe the thread went on as long as it did ;) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] problem with using include to a URL

2004-09-01 Thread John Holmes
as the web server, does that have access to the http:// site you're requesting? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail functions help

2004-09-01 Thread John Holmes
running. I haven't been following this thread, but setting the SMTP server in php.ini to your ISPs SMTP server did not work for you? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with using include to a URL

2004-09-01 Thread John Holmes
that by including it through HTTP, you're only getting the _result_ of the PHP file? If you're PHP file does not produce any output, maybe that's the source of this problem... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Mail Functions help

2004-09-01 Thread John Holmes
the php.ini change, of course. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with using include to a URL

2004-09-01 Thread John Holmes
that work? Is there any kind of weird redirection in the page you're requesting? (obviously not if it's really just that sample code, though.) If all else fails, search Google for your error message and see what pops up. ---John Holmes... -- PHP General Mailing List (http://www.php.net

Re: [PHP] usmap won't do it, ismap won't do it. What can I do?

2004-09-01 Thread John Holmes
'] and $_REQUEST['myimage_y'] as the coordinates that the user clicked. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MSSQL, PHP and Linux

2004-09-01 Thread John Holmes
the errors called to undefined function mssql_pconnect()...what can I try next? Are you using the dbx functions and not mssql_connect/pconnect()?? http://www.php.net/manual/en/ref.dbx.php ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] stream wrappers

2004-09-01 Thread John Holmes
- Original Message - From: jarell [EMAIL PROTECTED] To: John Holmes [EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 2:05 PM Subject: Re: [PHP] stream wrappers Does the stream_open function in your example actually check if the file has already been downloaded? No... I don't know

Re: [PHP] register global off

2004-09-01 Thread John Holmes
column. If that still shown ON, also, then ensure your host allows you to use an .htaccess file to change this configuration directive. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: xml tags interfere with php tags

2004-09-01 Thread John Holmes
that). or echo '?xml version=1.0?'; or ?='?=xml version=1.0?'? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: register global off

2004-09-01 Thread John Holmes
From: Afan Pasalic [EMAIL PROTECTED] After submitting $HTTP_POST_VARS['SubmitForm'] has value 'Submit' and $POST['SubmitForm'] is empty. Because it's $_POST and not $POST? If that's just at typo, check your code for typos, too. Did you ever tell us what version of PHP you're using? ---John

Re: [PHP] usmap won't do it, ismap won't do it. What can I do?

2004-09-01 Thread John Holmes
from users with it? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stream wrappers

2004-09-01 Thread John Holmes
really make sense to put the checks in the stream. Check them outside of it and either show an error message in HTML or send the file headers and the data with readfile() and the normal file:// stream. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] print at a specific time

2004-09-01 Thread John Holmes
devil_online wrote: Hi, I want to print or echo something in a specific time like 9.pm. how can i do it? if(date('H')==21) { echo 'tis 9pm and all is well?; } -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals

Re: [PHP] print at a specific time

2004-09-01 Thread John Holmes
Brent Clements wrote: $minute = 01; Be careful with the leading zeros... that's interpreted as an Octal number by PHP, but Octal 1 == Decimal 1 in this case. :) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals

Re: [PHP] new line function

2004-09-01 Thread John Holmes
Tonny Robertus wrote: is there any function to replace \n to br that we can see the results in html source code (not in preview)? $fixed = preg_replace(/(\r?\n)|\r/,'br /',$oldstring); -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine

Re: [PHP] new line function

2004-09-01 Thread John Holmes
be described on how they treat EOL, all the rest of the differences are side effects of this behaviour. Yeah, of course... Think of how secure windows would be if they just used \n! ;) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP

Re: [PHP] Regex for Validating URL

2004-09-02 Thread John Holmes
\$\ -_.!~*'(),])|(?:%[a-fA-F\d]{2})|[:@=+])*))*)?))|(?:(?:(?:(?:(?:[a-zA- Z\d\$\-_.!~*'(),])|(?:%[a-fA-F\d]{2})|[:@=+])*)(?:/(?:(?:(?:[a-zA-Z\d \$\-_.!~*'(),])|(?:%[a-fA-F\d]{2})|[:@=+])*))*)?))) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Regex for Validating URL

2004-09-02 Thread John Holmes
] Did you just pulled it out of your ***[1] or did you copy-n-paste it from somewhere? Some best of the internet site... I had to pull it from the Google cache since work wouldn't let me get to the site. I don't even know if it really works or not... :) ---John Holmes -- PHP General Mailing

Re: [PHP] Regex for Validating URL

2004-09-02 Thread John Holmes
to pry out of me over the course of 20 emails only to determine that wait, you have to install PHP?... Got it? Seriously, I hope you were being sarcastic or something, Nick. Otherwise the smart people on the list know how to use filters to tune out idiots. ---John Holmes... -- PHP General Mailing

Re: [PHP] Session understanding

2004-09-02 Thread John Holmes
is opened or not? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] trying to do too much with functions?

2004-09-02 Thread John Holmes
? Have you looked at the Function Handling Functions? http://www.php.net/manual/en/ref.funchand.php An array is probably your best bet, though, since you want to have mixed orders. The only way you'd be able to identify what parameter is which is by using the keys of the array, then. ---John Holmes

Re: [PHP] Session understanding

2004-09-02 Thread John Holmes
can't really tell. All you do is recieve POST or GET requests and handle them accordingly. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex for Validating URL

2004-09-02 Thread John Holmes
what camp most of you consider me in and it doesn't really matter. I try to help everyone I can. Sometimes I give well thought out answers, sometimes I'm in a bad mood and will give a RTFM type answer and sometimes I just post complete bullshit. It's up to me and me alone. :) ---John Holmes

Re: [PHP] Statistics

2004-09-02 Thread John Holmes
From: Daniel Schierbeck [EMAIL PROTECTED] Is there a simpler way of approaching this? Use an already written program that parses your web logs and already gives you this information? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Regex for Validating URL

2004-09-02 Thread John Holmes
From: Jason Wong [EMAIL PROTECTED] I usually reserve my more elegant prose for my sweetheart. Please stop call me that... it creeps me out. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] converting seconds since unix epoc to date array

2004-09-06 Thread John Holmes
to the timestamp. You can also use DATE_FORMAT() to format the timestamp before it's returned also. If you don't want to do that, what's wrong with strtotime('-MM-DD') to get the unix timestamp? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect

Re: [PHP] Underscores within echo statements

2004-09-07 Thread John Holmes
/function.gettext.php ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] data grids...

2004-09-08 Thread John Holmes
, though, if you're stuck with HTML, then the bunch of textboxes is your only option. Flash is probably your best bet if you want a true grid or maybe some ActiveX/Java plug in? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's faster? MySQL Queries or PHP Loops?

2004-09-08 Thread John Holmes
? Maybe I need to do some more research into table types? Yes, you can do JOINs between MyISAM tables. You can just not enforce referential integrity between MyISAM tables from within the database. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Users of RDBMS

2004-09-08 Thread John Holmes
From: Pahlevanzadeh Mohsen [EMAIL PROTECTED] I need to create user for MySQL. Please guide me.. PHP != MySQL http://dev.mysql.com/doc/mysql/en/index.html ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regular expression help

2004-09-09 Thread John Holmes
From: Skippy [EMAIL PROTECTED] I'm trying to replace all occurances of the X character in a text with Y, but only those X's that occur between bold tags (b/b). ?php $str = 'This X and this X will not be fixed, but bthis X and/b and hopefully this bX/b should be, along b with this X also. /b, but

Re: [PHP] php imap functions problem

2004-09-09 Thread John Holmes
From: Markus H [EMAIL PROTECTED] $structure = imap_fetchstructure($mbox, msgnum ); Warning: imap_fetchstructure(): Bad message number in (...) on line (...) Is msgnum a constant or do you mean to have $msgnum, i.e. a variable? ---John Holmes... -- PHP General Mailing List (http://www.php.net

Re: [PHP] why should $_SESSION be slower than other arrays?

2004-09-09 Thread John Holmes
(); $s2 = gt(); $_SESSION['key'] = array('foo'); $e2 = gt(); echo 'Normal $val: ' . ($e1 - $s1) . 'br /Session var: ' . ($e2-$s2); ? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_replace_callback clarification

2004-09-09 Thread John Holmes
you use B and /B) s - makes the dot character match newlines as well, otherwise text between bold tags that included newlines wouldn't be matches. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] why should $_SESSION be slower than other arrays?

2004-09-09 Thread John Holmes
From: raditha dissanayake [EMAIL PROTECTED] The following code gives me this: Normal $val: 9.4890594482422E-05 Session var: 1.1920928955078E-05 The key here is the 'to the power of -05' bit. Yeah? 0.948 0.112 Which one is larger? ---John Holmes... -- PHP General Mailing List (http

Re: [PHP] Remove punctuation

2004-09-09 Thread John Holmes
this really matter in the long run of your code, but: str_replace: 0.26480603218079 ereg_replace: 0.61685109138489 preg_replace came in at about 0.4, btw ---John Holmes... Code: ?php function gt() { list($usec, $sec) = explode( , microtime()); return ((float)$usec + (float)$sec); } $str = 'It\'s

Re: [PHP] Remove punctuation

2004-09-09 Thread John Holmes
From: John Nichel [EMAIL PROTECTED] Not worth losing sleep over...whatever yer comfortable with I say. I agree... people love stats like that, though. :) ---John Holmes.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Assigning one var to multiple vars

2004-09-09 Thread John Holmes
From: Matthew Sims [EMAIL PROTECTED] Just mostly curious but is there a way to assign one variable to multiple variables in one single line? $a = $b = $c = $d = 1; ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_replace question

2004-09-09 Thread John Holmes
the function is called and then based upon whether it's odd or even, substitute the appropriate string. -- ---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

Re: [PHP] help-fetching-url-contents

2004-09-10 Thread John Holmes
...to do this. $file = file_get_contents('http://www.domain.com/page.php'); Save $file locally and you have your copy. use cron to run the command once per day. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Ouput buffer and vertual()

2004-09-10 Thread John Holmes
here. Quote: To run the sub-request, all buffers are terminated and flushed to the browser, pending headers are sent too. You can assume the good F or the back F, it's up to you. :) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] problems setting up php5 on apache2 (WinXP Pro)

2004-09-10 Thread John Holmes
that copying files to the windows directories are not recommended or needed anymore. May want to consult the manual once again (but Apache not finding libmysql.dll is your problem). ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Ouput buffer and vertual()

2004-09-10 Thread John Holmes
() just doesn't allow it. Make the .pl file accessible over the web and include/get contents/etc through HTTP if you really need it buffered. Or have the .pl file save it's results to another file that can be included into the buffer. ---John Holmes... -- PHP General Mailing List (http

Re: [PHP] php|works in Toronto - anyone going?

2004-09-10 Thread John Holmes
could go but it's not a good time. Maybe the next one. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array inside Class

2004-09-10 Thread John Holmes
/stundenplan/stpoo.php on line 4 You can't assign values like that. Try this: var $input = array(1,2,3); var $input2 = array(); $this-input2 = array_pad($this-input,10,1); ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array inside Class

2004-09-10 Thread John Holmes
part needs to go inside of a function. The constructor would be a good place for it. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP5 OOP

2004-09-10 Thread John Holmes
/-/0672318539/103-7282797-1853467?v=glance -- ---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] create and read array

2004-09-10 Thread John Holmes
});\r\n; Not sure why you're joining all these queries together, you can only run one at a time with MySQL... -- ---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

Re: [PHP] Totaling sales by month

2004-09-10 Thread John Holmes
, YEARWEEK() will come in handy, btw. -- ---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] Perplexing problem, suggestions or answer needed

2004-09-10 Thread John Holmes
foreach? -- ---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

<    3   4   5   6   7   8   9   >