Re: [PHP] mail() function HELP

2008-03-04 Thread Shawn McKenzie
Stut wrote: Please include the list when replying. And please don't top-post, it makes proper quoting difficult. On 4 Mar 2008, at 22:10, Sofia Jacob (CA) wrote: Yes, I did that first and I get the error: Warning: mail() [function.mail]: Failed to connect to mailserver at mail.yahoo.ca

[PHP] Re: Making an interactive RGB color picker

2008-03-03 Thread Shawn McKenzie
Keikonium wrote: This may not be exactly what you think, but I didn't know how else to word the title. I basically need to make a script that will go through every possible color combination and print them to look just like (or similar) to the windows color picker. I need it in the format

[PHP] Re: Making an interactive RGB color picker

2008-03-03 Thread Shawn McKenzie
Shawn McKenzie wrote: Keikonium wrote: This may not be exactly what you think, but I didn't know how else to word the title. I basically need to make a script that will go through every possible color combination and print them to look just like (or similar) to the windows color picker. I

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-29 Thread Shawn McKenzie
Nathan Rixham wrote: Nathan Nobbe wrote: On Thu, Feb 28, 2008 at 6:14 PM, Nathan Rixham [EMAIL PROTECTED] wrote: if I show you guys how to do this: echo sillyFunc()['a'] . PHP_EOL; using a few brackets and things do you promise not to laugh? *it's a bit weird* id like to see it.

[PHP] Re: dont print echo

2008-02-29 Thread Shawn McKenzie
Emiliano Boragina wrote: Hi list… All this in the same php: ? $folder = 'pictures; $load = copy($_FILES['file']['tmp_name'] , $folder . '/' . $_FILES ['file']['name']); if ( $load ) { echo Picture upload!; } else {

Re: [PHP] Flexible Shopping Cart (was: Shopping Carts)

2008-02-28 Thread Shawn McKenzie
Robert Cummings wrote: On Thu, 2008-02-28 at 14:23 -0500, Daniel Brown wrote: On Thu, Feb 28, 2008 at 2:10 PM, Eric Butera [EMAIL PROTECTED] wrote: Have you messed around with compressing your output at all? Using something like mod_deflate is pretty nice while falling back on the ob gz

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Shawn McKenzie
Nathan Rixham wrote: Robert Cummings wrote: On Thu, 2008-02-28 at 19:37 +, Stut wrote: On 28 Feb 2008, at 19:17, Wolf wrote: Jason Pruim wrote: My editor automatically replaces like 4 spaces with a tab... Is there a reason not to use tabs instead of spaces? :) I use spaces since when I

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Shawn McKenzie
Nathan Rixham wrote: [snip] Eric Butera wrote: I can hit tab and shift/tab too and it puts in spaces for me. [snip] Robert Cummings wrote: Uhhhm, I hit the tab button also and it does the right thing (namely inserts 4 spaces). Also, when I hit enter it auto tabs. [snip] *kicks zend

Re: [PHP] Performance Problem

2008-02-27 Thread Shawn McKenzie
Adriano Manocchia wrote: Well, I just spent more time messing with httpd's conf and it the problem seems to have resolved itself by turning off hostname lookups. I know there's overhead associated with it, but I don't really understand why it only affected PHP, and so drastically. At any rate,

[PHP] Re: Getting the name of a function

2008-02-27 Thread Shawn McKenzie
Richard S. Crawford wrote: For my own amusement, I'm writing a function that will print out detailed error messages for an API that I'm creating for a minor project. One of the pieces of information I'd like to return would be the name of the function that called the error function. For

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Shawn McKenzie
Daniel Brown wrote: On Wed, Feb 27, 2008 at 3:46 PM, Matty Sarro [EMAIL PROTECTED] wrote: Completely off subject, but man I miss quickbasic... that was such a fun language to program in way back-in-the-day. So simple! Not to mention the ability to add (at the time) decent graphics to

Re: [PHP] Performance Problem

2008-02-27 Thread Shawn McKenzie
should re-read before replying again. Adriano Manocchia wrote: Whoa. No need to get snippy. I was being sincere in my gratitude for the suggestions. If nothing else, I'm sure I'll be making more use of Xdebug in the future. On Feb 27, 2008, at 3:55 PM, Shawn McKenzie wrote: Adriano

Re: [PHP] Guidance

2008-02-27 Thread Shawn McKenzie
Stut wrote: On 27 Feb 2008, at 20:59, Daniel Brown wrote: So let this be at least a basic retort to those who don't consider web development real programming. Because you'd be surprised how much I hear, oh, you work with web stuff, I thought you meant you were a real programmer.

Re: [PHP] Guidance

2008-02-27 Thread Shawn McKenzie
Shawn McKenzie wrote: Stut wrote: On 27 Feb 2008, at 20:59, Daniel Brown wrote: So let this be at least a basic retort to those who don't consider web development real programming. Because you'd be surprised how much I hear, oh, you work with web stuff, I thought you meant you were

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Shawn McKenzie
Daniel Brown wrote: On Wed, Feb 27, 2008 at 4:34 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Daniel Brown wrote: On Wed, Feb 27, 2008 at 3:46 PM, Matty Sarro [EMAIL PROTECTED] wrote: Completely off subject, but man I miss quickbasic... that was such a fun language to program in way

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Shawn McKenzie
Shawn McKenzie wrote: Daniel Brown wrote: On Wed, Feb 27, 2008 at 4:34 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Daniel Brown wrote: On Wed, Feb 27, 2008 at 3:46 PM, Matty Sarro [EMAIL PROTECTED] wrote: Completely off subject, but man I miss quickbasic... that was such a fun

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Shawn McKenzie
Daniel Brown wrote: On Wed, Feb 27, 2008 at 5:01 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Actually, if I recall correctly, I normally had to start with increments of 100. I always started with 10 and incremented by 10 in both MS and GW BASIC (and on TI, C64, LASER, etc.), because

[PHP] Re: Flexible Shopping Cart (was: Shopping Carts)

2008-02-27 Thread Shawn McKenzie
Manuel Barros Reyes wrote: I've sent a message some hours ago and committed the mistake of including it inside of an already started thread, don't know if someone read it. The details are in that thread but basically what I am looking for is a shopping cart that has flexibility with respect

[PHP] Re: Ob_Flush issue

2008-02-26 Thread Shawn McKenzie
Ritesh Nadhani wrote: Hello I have a sample code like: http://pastebin.ca/919386 I have around 4000 rows returned so it should show me partial output at client after each 100 rows but it never does. I am only getting the output after full completion. Though if you remove the step code

Re: [PHP] Question about PHP Licence and it's future!

2008-02-26 Thread Shawn McKenzie
tedd wrote: At 12:53 PM -0500 2/25/08, Andrés Robinet wrote: *gringos* started calling me Rob long ago. It's shorter, it's easier to pronounce and it's a short form for my last name (Robinet). Gringos? That brings up another subject, why is it that Caucasians don't have any offensive

Re: [PHP] checking for and enforcing https

2008-02-26 Thread Shawn McKenzie
Andrew Ballard wrote: On Tue, Feb 26, 2008 at 11:54 AM, tedd [EMAIL PROTECTED] wrote: At 11:03 AM -0500 2/26/08, Robert Cummings wrote: On Tue, 2008-02-26 at 10:57 -0500, Andrew Ballard wrote: Am I misunderstanding you somewhere? I don't think you are. I think Ted has been doing it

Re: [PHP] Ob_Flush issue

2008-02-26 Thread Shawn McKenzie
Bojan Tesanovic wrote: Try this it help 90% of time, function my_flush(){ @flush(); @ob_flush(); @flush(); @ob_flush(); @flush(); @ob_flush(); } this can force buffer to really flush output when you call it few times, also don't forget @ so it doesn't show empty buffer warning

Re: [PHP] Question about PHP Licence and it's future!

2008-02-26 Thread Shawn McKenzie
our only attribute is that we can shoot straight. :-) Cheers, tedd And jump really high... oh wait... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: insert text with no specific format into database table

2008-02-25 Thread Shawn McKenzie
jeffry s wrote: i have text file and a table created with create table word( id int not null auto_increment primary key, word varchar(50), definition text ) the text contain list of words but not really in specific format word, some text definition word, some text definition, some

[PHP] Re: insert text with no specific format into database table

2008-02-25 Thread Shawn McKenzie
Shawn McKenzie wrote: jeffry s wrote: i have text file and a table created with create table word( id int not null auto_increment primary key, word varchar(50), definition text ) the text contain list of words but not really in specific format word, some text definition word, some

[PHP] Re: checking for and enforcing https

2008-02-25 Thread Shawn McKenzie
Rick Pasotto wrote: What is the best or recomended proceedure for making sure that a page is accessed only via a secure connection? Best is subjective, however I check in $_SERVER['SERVER_PROTOCOL'], also https will appear in some other $_SERVER vars. -Shawn -- PHP General Mailing List

[PHP] Re: PHP cuts download process prematurely

2008-02-25 Thread Shawn McKenzie
Manuel Barros Reyes wrote: I am building a report application that generates some text files for download and when the download starts it stops prematurely. The file sizes are currently in the order of the mega bytes and when I try the script that generates and sends the file in a test

Re: [PHP] Session destruction problem

2008-02-24 Thread Shawn McKenzie
Adil Drissi wrote: Hi, I made an error i was using unset($_SESSION[sessioname]) instead of unset($_SESSION). I'm sorry, but anyway, now i want to give another detail. All the time i was testing with opera. After testing in firefox and ie there is no problem with the code i posted. Yes,

Re: [PHP] Shopping Carts

2008-02-24 Thread Shawn McKenzie
questions and help out people who try and stumble... I'm less likely to help someone who tries to stumble. -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: temprorary error

2008-02-24 Thread Shawn McKenzie
Nathan Rixham wrote: Robert Cummings wrote: On Sun, 2008-02-24 at 15:55 -0500, tedd wrote: At 7:38 PM +0100 2/24/08, Zoltán Németh wrote: 2008. 02. 24, vasárnap keltezéssel 09.59-kor Mary Anderson ezt írta: Hey guys, Isn't this thread a bit OT? well, for a php list sure it is... but

Re: [PHP] Re: temporary error

2008-02-22 Thread Shawn McKenzie
tedd wrote: At 4:08 PM +0100 2/21/08, Mirco Soderi wrote: In the original code there were no sintax errors, Ah crap -- they're taxing that now?! Cheers, tedd I never see errors in my sintax. Every tax on my beer, wine and cigars is calculated accurately every time and applied before

[PHP] Re: temporary error

2008-02-21 Thread Shawn McKenzie
Mirco Soderi wrote: In my opinion, variable names are a personal choice, I think the time you loose when writing the name (about a second is long less than the time you gain when, months later, you go and modify the code and you have clear the content and meaning of each variable. In the

[PHP] Re: Cannot get php_http.dll to work

2008-02-21 Thread Shawn McKenzie
Alexis wrote: Hi, I have tried umpteen times to get this to work by PHP still insists that it cannot find the 'HttpRequest' Class. Using PHP 5.2.3 Downloaded latest version of php_http.dll, for PHP 5.2.x from the PECL website Installed it in the D:\PHP\ext directory Added

[PHP] Re: Php warning message

2008-02-20 Thread Shawn McKenzie
Yuval Schwartz wrote: Hello and thank you, Another question, I get a message: *Warning*: feof(): supplied argument is not a valid stream resource in * /home/content/t/h/e/theyuv/html/MessageBoard.php* on line *52* ** And I've tried troubleshooting for a while; I'm pretty sure I'm opening

[PHP] Re: Question about cURL, and iFrames...

2008-02-19 Thread Shawn McKenzie
Jason Pruim wrote: Happy friday to all of you! May the Beer[1] flow freely from the kegs to your lips after work! I am trying to think through something, I am writing a simple proxy script for my own knowledge and to simplify my life :) What I want to do is bring in multiple website by

[PHP] Re: unable to unset reference

2008-02-19 Thread Shawn McKenzie
Sylvain Rabot wrote: Hello, First of all I would like to know if one day we will be able to unset $this into a class in order to destroy the object. It could really be useful to prevent big memory usage. As it can't be done I tried to unset an object by unsetting a reference of this

[PHP] Re: unable to unset reference

2008-02-19 Thread Shawn McKenzie
Shawn McKenzie wrote: Sylvain Rabot wrote: Hello, First of all I would like to know if one day we will be able to unset $this into a class in order to destroy the object. It could really be useful to prevent big memory usage. As it can't be done I tried to unset an object by unsetting

[PHP] Re: unable to unset reference

2008-02-19 Thread Shawn McKenzie
Shawn McKenzie wrote: Sylvain Rabot wrote: Hello, First of all I would like to know if one day we will be able to unset $this into a class in order to destroy the object. It could really be useful to prevent big memory usage. As it can't be done I tried to unset an object by unsetting

Re: [PHP] unable to unset reference

2008-02-19 Thread Shawn McKenzie
Chris wrote: Sylvain Rabot wrote: Hello, First of all I would like to know if one day we will be able to unset $this into a class in order to destroy the object. It could really be useful to prevent big memory usage. I doubt the php-dev's will ever allow something like that, seems rather

[PHP] Re: open a secondary window/tab in the browser from php

2008-02-18 Thread Shawn McKenzie
julian wrote: Hi, I have an application that along filling in some forms, it produces a pdf file, as confirmation of all entered data. I want to send this pdf file to a different window/tab of the browser, so it is displayed and can latter be printed. In the mean time, the

Re: [PHP] separating strings from extensions

2008-02-18 Thread Shawn McKenzie
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 i get the text

Re: [PHP] classes

2008-02-18 Thread Shawn McKenzie
Jay Blanchard wrote: [snip] if i declare an instance of a class in the top of my php file, then have html, then later on user $myClassInstance-myMethod(); -- myMethod() does not execute, only when i have the instantiation of the class right before the call to the method does it work.

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Shawn McKenzie
Shawn McKenzie wrote: Petrus Bastos wrote: zip program is installed. I'd type whereis and returned /usr/ports/archivers/zip. I've change my zip command and put th whole path. Now return error 126. :( On Feb 18, 2008 5:51 PM, Stut [EMAIL PROTECTED] wrote: Petrus Bastos wrote: I'm testing

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Shawn McKenzie
Greg Donald wrote: On 2/18/08, Shawn McKenzie [EMAIL PROTECTED] wrote: cd /usr/ports/archivers/zip make install clean zip pkg_add -r zip done. Sure, if you want to miss all the linker and compiler goodies :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Shawn McKenzie
Petrus Bastos wrote: Unfortunately, I don't have access to root user here. It was a miracle get access to system command. I have to resolve this problem without root user. :( On Feb 18, 2008 6:08 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Shawn McKenzie wrote: Petrus Bastos wrote: zip

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Shawn McKenzie
Petrus Bastos wrote: zip program is installed. I'd type whereis and returned /usr/ports/archivers/zip. I've change my zip command and put th whole path. Now return error 126. :( On Feb 18, 2008 5:51 PM, Stut [EMAIL PROTECTED] wrote: Petrus Bastos wrote: I'm testing on FreeBSD. I can use

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Shawn McKenzie
Greg Donald wrote: On 2/18/08, Shawn McKenzie [EMAIL PROTECTED] wrote: Sure, if you want to miss all the linker and compiler goodies :-) I'm guessing that'd be non-issue for an obviously inexperienced FreeBSD user. But I'm guessing he'd think it was cool. Also, he's not root so I assume

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Shawn McKenzie
In your php code you'll need the full path to biblioteca.php and to t.zip and the web user will need write permissions to the dir where you create t.zip. -Shawn Petrus Bastos wrote: Wolf, I'm sure actually working from the command line. /usr/local/bin/zip -P t.zip biblioteca.php

Re: [PHP] classes

2008-02-18 Thread Shawn McKenzie
Nick Stinemates wrote: Shawn McKenzie wrote: Jay Blanchard wrote: [snip] if i declare an instance of a class in the top of my php file, then have html, then later on user $myClassInstance-myMethod(); -- myMethod() does not execute, only when i have the instantiation of the class

Re: [PHP] classes

2008-02-18 Thread Shawn McKenzie
Nick Stinemates wrote: Shawn McKenzie wrote: What part of my example was unclear? All of it, since I posted just a couple minutes after you and I hadn't seen your post yet. I'm sorry, I thought were were responding WHAT?!? to me. I'm going to blame thunderbird for looking like

[PHP] Re: mysql input

2008-02-18 Thread Shawn McKenzie
nihilism machine wrote: I have a user saving a VARCHAR(255) field in a mysql db which has single quotes in the text, how can i replace them so that they dont fuck up my mysql command? -e Have you tried: dont_fuck_up_my_mysql_command() -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] regex usage

2008-02-17 Thread Shawn McKenzie
Valedol wrote: Is there a mothod to check string`s length with regex or the only way is using strlen? I want string consisting of 4 digits and check string with this code: if (preg_match(/\d{4}/,$_POST[id])) { echo $_POST[id]; } but preg_match returns true when string consists of 4

[PHP] Re: Session destruction problem

2008-02-17 Thread Shawn McKenzie
Adil Drissi wrote: Hi everybody, I need help with sessions. I have a simple authentification relying only on sessions (i don't use cookies). After the user submits his username and password, the script checks if that corresponds to a record in a mysql table. If this is the case

Re: [PHP] Re: Session destruction problem

2008-02-17 Thread Shawn McKenzie
Adil Drissi wrote: Well, i'm doing all that. Maybe something is wrong in my code. I'll arrange my code in a way that it will be easy to run and i'll post it. I think like that, you'll see by yourself and you gonna help to fix that for sure. Thank you --- Shawn McKenzie [EMAIL PROTECTED

Re: [PHP] www. not working

2008-02-16 Thread Shawn McKenzie
Nathan Rixham wrote: Shawn McKenzie wrote: Shawn McKenzie wrote: Shawn McKenzie wrote: Jim Lucas wrote: nihilism machine wrote: this still does not work, if a domain has no preceeding www. it redirects to http://www.www.site.com, if it has a www. it goes to www.www.mydomain.com, any ideas

Re: [PHP] Sending XML to MSIE7

2008-02-15 Thread Shawn McKenzie
Brian Dunning wrote: I just tried that, and unfortunately the MSIE7 toolkit behavior was the same. Darn, I had high hopes for your suggestion as soon as I read it. I fear this means there's little we can do server-side in PHP, except to choose something other than XML for the result. On

Re: [PHP] www. not working

2008-02-15 Thread Shawn McKenzie
Shawn McKenzie wrote: Jim Lucas wrote: nihilism machine wrote: this still does not work, if a domain has no preceeding www. it redirects to http://www.www.site.com, if it has a www. it goes to www.www.mydomain.com, any ideas? If you are running Apache, you do realize that all of this can

Re: [PHP] www. not working

2008-02-15 Thread Shawn McKenzie
Shawn McKenzie wrote: Shawn McKenzie wrote: Jim Lucas wrote: nihilism machine wrote: this still does not work, if a domain has no preceeding www. it redirects to http://www.www.site.com, if it has a www. it goes to www.www.mydomain.com, any ideas? If you are running Apache, you do realize

Re: [PHP] www. not working

2008-02-15 Thread Shawn McKenzie
Jim Lucas wrote: nihilism machine wrote: this still does not work, if a domain has no preceeding www. it redirects to http://www.www.site.com, if it has a www. it goes to www.www.mydomain.com, any ideas? If you are running Apache, you do realize that all of this can be done in Apache

Re: [PHP] database design tool

2008-02-13 Thread Shawn McKenzie
a post that suggested I download the windows version and run it under wine. Works great. As for the OT, many apologies, I never even thought of looking for a php-db list, thanks for the heads-up. -Shawn Thanks! -Shawn Daniel Brown wrote: On Feb 12, 2008 7:46 PM, Shawn McKenzie [EMAIL PROTECTED

Re: [PHP] Template system in PHP

2008-02-13 Thread Shawn McKenzie
Xavier de Lapeyre wrote: Lol... If IE7 goes hun what? I wonder what would happen in lt IE7 :) GO FIREFOX!!! Xavier -Original Message- From: Nathan Rixham [mailto:[EMAIL PROTECTED] Sent: mercredi 13 février 2008 01:27 To: php-general@lists.php.net Subject: Re: [PHP]

[PHP] Re: PHP 5.2.5 installation

2008-02-12 Thread Shawn McKenzie
Yoshika Kehelpannala wrote: Hi, I have downloaded and setup the Apachi web server and My SQL 5.0.51a prior to my PHP installation on the windows platform. As I have downloaded the PHP 5.2.5 version (msi) and installed it on my system, it gave some errors that says a lot of dll’s and

Re: [PHP] Re: Question about development

2008-02-12 Thread Shawn McKenzie
Jason Pruim wrote: On Feb 12, 2008, at 1:03 PM, Nathan Rixham wrote: Jason Pruim wrote: Hi Everyone, I know this isn't 100% on topic... But when is any post to this list 100% on topic? :) I've been doing some googling trying to find info on how to plan for what a website needs. Stuff

[PHP] Re: database design tool

2008-02-12 Thread Shawn McKenzie
Shawn McKenzie wrote: Can anyone recommend a preferably visual DB design tool? I normally use mysql, but one that covered several types wood be cool. I'm on Linux, so the new mysql workbench is a dud. I used it in an alpha or prior version and it looked promising but crashed frequently

[PHP] database design tool

2008-02-12 Thread Shawn McKenzie
Can anyone recommend a preferably visual DB design tool? I normally use mysql, but one that covered several types wood be cool. I'm on Linux, so the new mysql workbench is a dud. I used it in an alpha or prior version and it looked promising but crashed frequently. They say a Linux version in

Re: [PHP] Template system in PHP

2008-02-12 Thread Shawn McKenzie
Nathan Rixham wrote: Shawn McKenzie wrote: Ryan A wrote: Add my vote too for Smarty HTH, -R Looking for last minute shopping deals? Find them fast with Yahoo! Search. http

Re: [PHP] Template system in PHP

2008-02-12 Thread Shawn McKenzie
Ryan A wrote: Add my vote too for Smarty HTH, -R Looking for last minute shopping deals? Find them fast with Yahoo! Search.

Re: [PHP] php error loadin file

2008-02-11 Thread Shawn McKenzie
Daniel Brown wrote: On Feb 11, 2008 11:12 AM, [EMAIL PROTECTED] wrote: On Feb 11, 2008 10:40 AM, [EMAIL PROTECTED] wrote: HEllo with the next code i am trying for loading one file $mibool = FALSE; $Descriptor2 = fopen(usuarios.txt,r); Does this file exist in the directory from which

[PHP] Re: mysql question #2

2008-02-10 Thread Shawn McKenzie
nihilism machine wrote: Ok, I read the php.net info. so with this function though: public function select_one($sql) { $this-last_query = $sql; $r = mysql_query($sql); if (!$r) { $this-last_error = mysql_error(); return false; }

[PHP] Re: Order directory output

2008-02-08 Thread Shawn McKenzie
Pastor Steve wrote: Hi, thanks for all your help today. I have the following code and I am trying to order the output. Currently it seems really random. Can anyone point me in the right direction? ?php $dir = content/current/breaking_news/; // set pattern $pattern = .txt*|.TXT*;

[PHP] Re: php file extension

2008-02-07 Thread Shawn McKenzie
MaryAnn Woodall wrote: Just starting to use php on my webpages. If I save a file as .php or .php4 are they the same file. For example is index.php the same as index.php4? MaryAnn Depends upon what your server is set to parse as PHP. AFAIK, the only portable extension would be .php.

Re: [PHP] Re: Profiling with register_tick_function / declare

2008-02-07 Thread Shawn McKenzie
anyway, and it appeared to make no difference. The problem is to do with the scope that the declare directive affects. Cheers anyway, Scott -Original Message- From: Shawn McKenzie [mailto:[EMAIL PROTECTED] Sent: Friday, February 08, 2008 5:43 AM To: php-general@lists.php.net

Re: [PHP] Re: Profiling with register_tick_function / declare

2008-02-07 Thread Shawn McKenzie
anyway, and it appeared to make no difference. The problem is to do with the scope that the declare directive affects. Cheers anyway, Scott -Original Message- From: Shawn McKenzie [mailto:[EMAIL PROTECTED] Sent: Friday, February 08, 2008 5:43 AM To: php-general@lists.php.net

[PHP] Re: Profiling with register_tick_function / declare

2008-02-07 Thread Shawn McKenzie
McNaught, Scott wrote: Hi there, Is it possible to make the declare(ticks=1) statement apply to *all* functions executed in a php script, regardless of scope? I wish to write a profiler script to basically dump all the function call times through the execution of a script. So

Re: [PHP] php competion

2008-02-04 Thread Shawn McKenzie
I hardly think this one is a scam, I mean all you have to do is write a PHP app that converts between PHP, Python, C and Perl and you get: not only bragging rights will come your way, but it will sure look good on your resume! I'm in. Nathan Nobbe wrote: i ashamed to say i was the subject of a

Re: [PHP] Re: New search related question

2008-02-04 Thread Shawn McKenzie
either. This would indeed be cool. -Shawn Greg Donald wrote: On 2/4/08, Shawn McKenzie [EMAIL PROTECTED] wrote: I agree that htdig may be a better solution, however his current solution requires upkeep if the static HTML is changed and requires that the person populating the database pick all

Re: [PHP] Re: New search related question

2008-02-04 Thread Shawn McKenzie
strip_tags() perhaps? Andrew Ballard wrote: On Feb 4, 2008 3:13 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: If there aren't many files and you don't intend to grow this site much larger and intend to always have static HTML, any easy implementation would be to read each file and search

Re: [PHP] Re: New search related question

2008-02-04 Thread Shawn McKenzie
the grep wins. -Shawn Robert Cummings wrote: On Mon, 2008-02-04 at 14:13 -0600, Shawn McKenzie wrote: If there aren't many files and you don't intend to grow this site much larger and intend to always have static HTML, any easy implementation would be to read each file and search for the terms

[PHP] Re: New search related question

2008-02-04 Thread Shawn McKenzie
If there aren't many files and you don't intend to grow this site much larger and intend to always have static HTML, any easy implementation would be to read each file and search for the terms either in the keywords tag or in the entire file. Optionally, if you're on a *nix host you could exec()

Re: [PHP] php competion

2008-02-04 Thread Shawn McKenzie
And a newer adage, maybe from grade school, takes one to know one. :-) Robert Cummings wrote: On Mon, 2008-02-04 at 15:26 -0600, Shawn McKenzie wrote: I hardly think this one is a scam, I mean all you have to do is write a PHP app that converts between PHP, Python, C and Perl and you get

Re: [PHP] PEAR website and MSIE 6

2008-02-02 Thread Shawn McKenzie
Glad I read threads that I don't care about or I wouldn't have found out about Firebug! I just installed it, very cool! Also, considering the price of oil/gas, I'm sorry that the 'war for oil' didn't work out the way we had hoped. You would have thought we would have learned in WWII when we

[PHP] Re: Function-return-array idea

2008-01-16 Thread Shawn McKenzie
I'm sure I'm a pea-brain, but this caught my attention. So you execute the fetchObjects() method which could return a large number of objects, then you reference a method of the 0th one. I didn't test, but why not use: $object-fetchObjects(0)-method(); Where fetchObjects($id) returns the object

[PHP] Re: Which file called the function?

2007-12-20 Thread Shawn McKenzie
This should work: global.php ? function myFunc($file) { echo $file; } ? one.php ? include( 'global.php' ); echo 'You are in file: '; myFunc(__FILE__); ? two.php ? include( 'global.php' ); echo 'You are in file: '; myFunc(__FILE__); ? Christoph Boget wrote: Let's say I have the

[PHP] Calling php-cgi.exe

2007-07-24 Thread Shawn McKenzie
I have written a small web server for windows. It works fine for static HTML files, but I would like to be able to run PHP scripts. Playing with php-cgi.exe on the command line I see that it returns the content type and the generated HTML from a script 'php-cgi.exe test.php'. From

Re: [PHP] can't open a file

2007-07-24 Thread Shawn McKenzie
Most likely the web server (Apache?) is not running as you (your username). Maybe it is, in which case take advice from the previous reply. It's most likely running as another user. On linux/unix there is a specific user for the web server depending upon what server. Apache is normally, httpd,

[PHP] Re: strange stripos behavior

2007-07-24 Thread Shawn McKenzie
Too much beer to think through the logical progression of the operators, but maybe try: if (stripos($searchtext, '') !== false) { -Shawn Bruce Cowin wrote: I'm using PHP 5.1 on IIS. I have an app that uses MimeDecode to load mime files and I've built an object to parse them into their

Re: [PHP] Re: strange stripos behavior

2007-07-24 Thread Shawn McKenzie
in the $searchstring variable? Anyway, it's working now by not using a variable. Thanks again. Regards, Bruce Shawn McKenzie [EMAIL PROTECTED] 25/07/2007 12:33 p.m. Too much beer to think through the logical progression of the operators, but maybe try: if (stripos($searchtext

Re: [PHP] Re: strange stripos behavior

2007-07-24 Thread Shawn McKenzie
first it didn't. Is it possible that if $msg-Subject is null that it does something funny to the value in the $searchstring variable? Anyway, it's working now by not using a variable. Thanks again. Regards, Bruce Shawn McKenzie [EMAIL PROTECTED] 25/07/2007 12:33 p.m. Too much beer

Re: [PHP] Re: strange stripos behavior

2007-07-24 Thread Shawn McKenzie
Yes, I understand that, but it said that this function may return 0 or . So I guess that is just a generic statement to illustrate the point. -Shawn Robert Cummings wrote: On Tue, 2007-07-24 at 20:03 -0500, Shawn McKenzie wrote: For another guru, I have a question. I just checked

Re: [PHP] Calling php-cgi.exe

2007-07-24 Thread Shawn McKenzie
OK, thanks. I thought since php.exe had help and documentation for command line args, so would the cgi have some pointers or best practices of what to pass and how. -Shawn Richard Lynch wrote: On Tue, July 24, 2007 6:26 pm, Shawn McKenzie wrote: I have written a small web server for windows

Re: [PHP] PHP Frameworks

2005-12-24 Thread Shawn McKenzie
to use. Developers are very active in this work and documentation is very good. I have chosen ZNF Framework because is fast and modular. bye On Friday 23 December 2005 20:57, Shawn McKenzie wrote: Is there a good recent article on PHP Frameworks, or do people here has a predominant one

[PHP] PHP Frameworks

2005-12-23 Thread Shawn McKenzie
Is there a good recent article on PHP Frameworks, or do people here has a predominant one that outshines the others? I'm looking for something that is easy to use, fast and stable. Thanks! -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP Frameworks

2005-12-23 Thread Shawn McKenzie
choice is Mojavi. BTW Zend is also doing some great work on it. Zareef Ahmed - Original Message - From: Shawn McKenzie [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Friday, December 23, 2005 2:57 PM Subject: [PHP] PHP Frameworks Is there a good recent article

[PHP] Re: Can the URL be controlled for more user-friendly readability?

2005-12-23 Thread Shawn McKenzie
So if you are using Apache as your webserver you can use mod_rewrite to rewrite the URL to something else. So for example, create a rewrite rule to rewrite firstname_lastname to people.php?fn=firstnameln=lastname RewriteRule ^([^-]+)\-([^-]+)\.html$ people.php?fn=$1ln=$2 [L,NC,NS] Next, the PHP

[PHP] PHP in MS-DOS

2005-01-17 Thread Shawn McKenzie
I have not been successful with running PHP under DOS (no windows). Is this possible? TIA, Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP in MS-DOS

2005-01-17 Thread Shawn McKenzie
Thanks, but I'm not running Windows, I'm running just MS-DOS from a bootable floppy. Hence my question :-) PHP seems to actually be the php5ts.dll. Would there be binaries for MS-DOS or is there a way to get this working? Thanks! -Shawn Jason Barnett wrote: Shawn McKenzie wrote: I have

[PHP] encrypt/decrypt sqlite data

2004-12-10 Thread Shawn McKenzie
This is my first adventure with mcrypt and also the sqlite stuff. Via file upload I am getting a SQL dump file and running it as a query to insert data into a sqlite db. This works great. Then I am trying to use an update query to encrypt fields in all rows by using the sqlite_create_function to

[PHP] Re: encrypt/decrypt sqlite data

2004-12-10 Thread Shawn McKenzie
Shawn McKenzie wrote: This is my first adventure with mcrypt and also the sqlite stuff. Via file upload I am getting a SQL dump file and running it as a query to insert data into a sqlite db. This works great. Then I am trying to use an update query to encrypt fields in all rows by using

Re: [PHP] Suggestion for IN()

2004-10-06 Thread Shawn McKenzie
Your first scenario can been done in a similar fashion to how you are used to doing it in SQL: if ( in_array($a, array(1,4,20,...) ) {} Your second scenario doesn't seem like there is much of a problem because it will always be short (can only have 2 comparisons). -Shawn Jay Blanchard wrote:

[PHP] Session handlers

2004-10-01 Thread Shawn McKenzie
Just curious, what is the advantage of using a custom session handler, such as saving session data in MySQL? TIA, Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    5   6   7   8   9   10   11   12   >