trying to get Apache to compile with this keeps failing, complaining about
"alloc.h" it seems. I notice that apache calls it "ap_alloc.h" now, but the
only reference in mod_auth _mysql is in:
apMakefile.tmpl: $(INCDIR)/alloc.h $(INCDIR)/buff.h \
but changing that doesn't fix the problem...
I'm having difficulties with that line:
./configure --with-openlink=/path/to/openlink/
--with-iodbc=/path/to/iodbc/
so I've tried every combination I can think of related to "iodbc" and
"openlink", and none of these are compiling. Every one results in "No such
file or directory"!
3 Mar 7 14:42 odbcinst.ini
-rw-r--r--1 nobody html 1010 Mar 7 14:42 odbc.ini
-rw-r--r--1 nobody html 5127 Mar 7 14:42 odbc.doc
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 2:57 PM
To: Daevid Vincent; [EMAIL PROTEC
e" is just a shell script with make clean, all my --options,
make, make install, since I have to compile in mysql, and some other stuff.
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 4:00 PM
To: Daevid Vincent; [EMAIL PROTECTED]; PHP
Just a suggestion, but it seems like it would be helpful if there were
a --make-cgi or some other flag that I could use so that when I compile
PHP4, it generates me both the Apache module and also the stand alone cgi.
I use both frequently, PHP4 for the web interface things, and then also the
/src/WT_Apache_Setup/php-4.0.4/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/usr/src/WT_Apache_Setup/php-4.0.4/main'
make: *** [all-recursive] Error 1
thank you for your continued help.
-Original Message-
From: Daevid Vincent [mailto:[EMAIL PROTECTED]]
Sen
I've tried this with both PHP4.0.4 and PHP4.0.4pl1 as a module (it's for a
daily script eventually).
[root=pts/1]7:29pm@content:{/www/html/private/TattooShop}
./odbc-test2.phtml
#!/bin/php -q
Segmentation fault
the relevant part of phpinfo(); is below, so I'm assuming that I finally got
odbc
ap_alloc.h
-Original Message-
From: Dennis Moore [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 8:28 PM
To: Daevid Vincent; PHP General
Subject: Re: [PHP] mod_auth_mysql 2.20 won't compile with newer Apache
and alloc.h vs ap_alloc.h
I ran into this problem last week. I finally pu
Anyone have a function that will take an alphabetical list of names (in
an array already) and split it into two 'chunks' (arrays) A-M and N-Z?
So, let's say I have:
Abby Road
BobbyCraft
Darren's doodads
Farenheit 456
generic name
MyCom.com
pages? Do I need to move the class to an
include file? Do I need to re-create it on each page somehow? Can
someone show me a real working example of this scenario?
Daevid Vincent
http://daevid.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
or is defined now on this page?
So my question is basically, how can I use the class and the session
variables across multiple pages? Do I need to move the class to an
include file? Do I need to re-create it on each page somehow? Can
someone show me a real working example of this scenario?
Daevid Vincent
/include/header.phtml);
?
And I get this error:
Fatal error: Call to a member function on a non-object in content.phtml
on line 4
-Original Message-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 12:19 PM
To: Daevid Vincent; PHP general mailing list
Okay, now I'm completely confused...
I made a very simple test page, and even that doesn't work:
http://daevid.com/examples/index.phtml
Notice how I have the right session_id, but the variable didn't pass
onto the second page.
Can someone please explain to me what I am doing wrong?
Do I not
I can't say that I have moved over to the new superglobals
yet - I prefer register_globals cos I am lazy ;)
Given $myvar = 5;
If you use session_register('myvar');
Then on another page, do you just access it via $myvar?
And if that's the case, isn't it the same to set
) and why the Files directive didn't apply. Just a guess.
- Tim
-Original Message-
On Thu, Aug 08, 2002 at 06:16:03AM -0700, Daevid Vincent wrote:
I'm baffled. Using the example I found here:
http://www.devarticles.com/content.php?articleId=143page=3
I have a working
nd FWIW, the PHP example STILL segfaults. I would expect it to through up
an error, not segfault... that can't be good can it?
daevid.com
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 8:08 PM
To: Daevid Vincent; [EMAIL PROTECTED]; PHP General
Just my two cents here...
I could be mistaken, but wouldn't this method hit the database twice?
I would suggest you take your results the first time and store them in an
array or multidimensional array, then you can get to any element at any time
further down the page.
-Original
-Original Message-
Please I need a book called : Oracle Database 10g
Express Edition PHP Web Programming (Osborne Oracle Press
Series): Books: by Michael McLaughlin.
Please if anyone with the E-Book Version of it should
be contact me on my Email
NOTE:
-Original Message-
Please include the list in replies.
Thanks for your message, With regard to your message, the
main reason
why I want it Electronically is because, Am a PHP Student
Who has no
enough Cash to buy from Amazon or any bookseller and more
over, the book
I have had 'Trac' thrust upon me by an employee/coworker and while it is not
perfect (or even close to it), it does what it does, and it does it pretty
well.
http://trac.edgewall.org/
Some of my favorite things about it are:
Wiki is pretty common tags
Check out this cool little snippet for use in CLI scripts. It shows processing
with a spinner. It took me a little while to figure out the magic combination
of the cursor array and ternary operator. My main goal was to make it as self
contained and efficient as possible. I am importing millions
-Original Message-
From: Per Jessen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2007 1:08 AM
Daevid Vincent wrote:
I am importing millions of records, and didn't want to
waste CPU time on computing modulus on some huge $i value. :)
So instead you spend
-Original Message-
From: T.Lensselink [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 15, 2007 12:05 AM
On Wed, 14 Nov 2007 23:45:40 -0800, Daevid Vincent [EMAIL PROTECTED]
wrote:
I want to put a code snippet section on my site and want to
colorize them like the user
I want to put a code snippet section on my site and want to colorize them like
the user comments on any PHP site page.
http://www.php.net/manual/en/language.operators.arithmetic.php
What's the easiest way to do that?
I've used Geshi, but that seems a lot of overhead just to colorize a wee
You could install the system I wrote called Roach.
You can see an older version on my site (and I can post up or email you a
newer .tgz file):
http://daevid.com
I actively develop it for my company. We've used it for 6 years now. I *try*
to make my fixes generic, and I repost them periodically
:
-Original Message-
From: Daevid Vincent [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 08, 2007 6:57 PM
To: php-general@lists.php.net
Cc: 'TG'; 'Skip Evans'
Subject: RE: [PHP] Recommend a wiki?
I have had 'Trac' thrust upon me by an employee/coworker and while it is not
perfect (or even
http://daevid.com
-Original Message-
From: Daevid Vincent [mailto:[EMAIL PROTECTED]
Sent: Friday, November 16, 2007 2:23 PM
To: php-general@lists.php.net
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Open Source BTS?? -- Roach
You could install the system I wrote called Roach.
You
The kind of opposite of this, is what I use, in that it ADDs the () and -
if ((strlen($phone)) = 14) $phone =
preg_replace(/[^0-9]*([0-9]{3})[^0-9]*([0-9]{3})[^0-9]*([0-9]{4}).*/,
(\\1) \\2-\\3, $phone);
-Original Message-
From: afan pasalic [mailto:[EMAIL
-Original Message-
From: Warren Vail [mailto:[EMAIL PROTECTED]
Sent: Friday, November 30, 2007 2:17 PM
To: 'Jochem Maas'
Cc: 'afan pasalic'; 'Daevid Vincent'; 'php-general'
Subject: RE: [PHP] including parenthesis, space and dashes in
a phone number
I did not know that about
, November 30, 2007 12:03 PM
To: Daevid Vincent
Cc: 'php-general'
Subject: Re: [PHP] including parenthesis, space and dashes in
a phone number
It's ok to store it this way, but it could be a little PITA
when search.
E.g., you store (123) 456-7890 and somebody search for
123-456-7890
ROFL
OMG. That's s my new signature!
-Original Message-
From: Stephen Johnson
Remember, when coding, php.net and google are friends.
Everyone else hates you.
It is not personal, it's just a fact.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 31, 2008 8:19 AM
To: [EMAIL PROTECTED]
Cc: PHP General List
Subject: Re: [PHP] PEAR website and MSIE 6
Richard Heyes schreef:
firefox not an option?
Nope.
or anything else that
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
IE6 is fast and launches in 1 second. FF takes many seconds.
Isn't that because IE6 pre-loads everything during the BOOT process,
slowing that down quite a bit?...
I guess. I leave my XP box on all the time, so
-Original Message-
From: Richard Heyes [mailto:[EMAIL PROTECTED]
Sent: Friday, February 01, 2008 3:43 AM
To: Daevid Vincent
Cc: 'PHP General List'
Subject: Re: [PHP] PEAR website and MSIE 6
Daevid Vincent wrote:
I will be very sad in 15 days when M$ FORCES everyone to it.
WT
-Original Message-
From: Emil Edeholt [mailto:[EMAIL PROTECTED]
Sent: Monday, February 11, 2008 5:17 AM
To: php-general@lists.php.net
Subject: [PHP] Security scanner
I've been trying Nessus to search for sql injections and
other security
issues. I'm quite sure Nessus is
Or make a 'truncate.sql' file with the tables in it to truncate:
TRUNCATE TABLE foo;
TRUNCATE TABLE bar;
Then in the crontab mysql mydatabase truncate.sql
No PHP needed.
-Original Message-
From: Daniel Brown [mailto:[EMAIL PROTECTED]
Sent: Friday, February 22, 2008 6:59 AM
To:
While this has deteriorated way off topic from PHP, I will just mention that
I've purchased several GPS from these cats and had great luck:
http://www.buygpsnow.com
You *might* be able to write a custom PHP extension that you compile into
PHP that can access the USB/Serial port as well. (and if
I saw this on article on Digg.
Reposting here in case anyone is interested or missed it being a holiday
today and all...
http://digg.com/programming/Optimize_PHP_and_Accelerate_Apache
Direct links:
http://www.ibm.com/developerworks/linux/library/l-tune-lamp-1/index.html
Jumping in late so forgive if I'm mistaken, but can't you just use
HAVING in place of WHERE
select member_id, first_name, last_name, email, ...,
(5*(first_name='$first_name) +
2*(first_name='$first_name')) as score
from members
HAVING score 0
-Original Message-
From:
Have you thought of using a UUID:
http://dev.mysql.com/doc/refman/5.0/en/miscellaneous-functions.html#func
tion_uuid
While not real pretty, it would save you the extra SELECT.
You could also just MD5(UUID()) to make it a bit 'smaller', or some
other mechanizm.
Even something as simple as
I'll throw in my suggestion here as to how I implement this.
Generally I evaluate how big are the tables and what do I intend to do
with them.
Sorting is usually a problem. Using the PHP multi_sort seems
cumbersome and never seems to be as simple as letting the DB do it.
I too use LEFT JOINs
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 13, 2007 12:05 PM
On Wed, June 13, 2007 12:50 pm, Clint Tredway wrote:
Is there a decent free calendar? I just need to show a few
events on a
calendar.
Having looked at a LOT of web
How much should be the lower limit to keep a family
happy (happy means with enough money for a flat, food,
clothes, entertainment, education and something to
save for the future) ?
$salary = 3 + (sizeof($family) * 1);
This may seem obvious, but make sure you get paid in POUNDS.
This problem has been arround since the internet started.
rant
problem?
They're just words!
Not sure why some people are so offended by them? My parents have even
purchased a little device that sits between their TV and DVD/VHS and
bleeps out bad words. And they're in their 60's and have no
For what it's worth, LinkedIn has been around for years -- one of the
first SNS out there, and it's well written and very useful. It's not a
myspace whore thing. It's for professionals. Many employers will look
there for recommendations about you and such, just as valuable as a
resume,
I've done that on occasion, but do be careful what you are sending via
the GET.
It has a size limit for one (maybe 1k chars?) and it is trivial for
someone to modify.
I generally use GET when I think it's a page setup the user may wish
to bookmark (ie: page.php?orderby=namedescending=1report=69
-Original Message-
From: mike [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 22, 2007 1:32 PM
I thing a good FAQ entry would be how this patch fits in
with Suhosin
and what are the comparable/conflicting concepts, are they
compatible
with each other etc.
-Original Message-
From: mike [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 22, 2007 6:22 PM
On 8/22/07, Chris [EMAIL PROTECTED] wrote:
I'm agreeing with the ideas behind Grasp Suhosin - I'm just
disagreeing with Daevid's comment about them only being for 'newbie'
Here are some cache things we do for IE...
// workaround for IE bug that prevents downloading files from an httpS site
// (see http://support.microsoft.com/default.aspx?scid=kb;en-us;316431 )
session_cache_limiter('public');
// This ensures that most browsers known to human beings won't try to
-Original Message-
From: Stephen [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 06, 2007 1:04 PM
To: php-general@lists.php.net
Subject: [PHP] Preventing Access to Private Files
I understand how to use PHP with MySQL to have a
members table to validate passwords. And to limit
installed,
you could also do the .htaccess route, but that's not as elegant.
d
-Original Message-
From: tedd [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 06, 2007 5:02 PM
To: Daevid Vincent; php-general@lists.php.net
Subject: RE: [PHP] Preventing Access to Private Files
Just wanted to see what you think of the strictness of Buxa,
according to
their PHP guidelines:
http://www.buxaprojects.com/en/php_coding_guidelines.htm
In their oppinion stuff like the short PHP init ? or
inline echo ?=
$var ? is forbidden.
Do you people code that strict?
I like
-Original Message-
From: Rodolfo De Nadai [mailto:[EMAIL PROTECTED]
Sent: Monday, September 17, 2007 5:25 AM
To: php-general@lists.php.net
Subject: [PHP] Try to find a solution, when restart Apache
with PHP Script
Hi all...
I'm facing a serious problem with my application.
.
-Original Message-
From: Rodolfo De Nadai [mailto:[EMAIL PROTECTED]
Sent: Monday, September 17, 2007 1:00 PM
To: Daevid Vincent
Cc: php-general@lists.php.net
Subject: Re: [PHP] Try to find a solution, when restart
Apache with PHP Script
Hi Daevid,
This app keep alive forever as well?
When
Add this to your default.css file... Or to the page...
style
TR.dataRow1 { background-color: #e8f5f7; } /* light */
TR.dataRow2 { background-color: #dce8ea; } /* dark */
/style
Then just do this:
TR class=?php echo ($r = !$r) ? dataRow1 : dataRow2; ?
Forget all that $i++ and (mod) % stuff...
This was a joke right? You don't seriously do this in r.l. just to alternate
row colors I hope?
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 03, 2007 6:36 PM
To: Jim Lucas
Cc: Steve Marquez; PHP eMail List
Subject: Re: [PHP] Alternate
, this is a dead horse.
D.Vin
http://daevid.com
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 04, 2007 1:04 PM
To: Daevid Vincent
Cc: 'PHP eMail List'
Subject: RE: [PHP] Alternate Colors in Rows
On Thu, 2007-10-04 at 12:28 -0700, Daevid Vincent
First, I am flattered for all the elegant comments.
Honestly, this is PHP 102 level stuff, so I don't see all the fuss.
Yes it is the ternary operator -- I'm a big fan of that one.
(http://us.php.net/manual/en/language.expressions.php)
In the below example, (while sloppy on my part), by NOT
* @paramstring $myArray the array to output in XML format
* @author Daevid Vincent [EMAIL PROTECTED]
* @version 1.0
* @date 07/19/05
* @todo It would be nice if we could extract the array's variable name
and output that as an attribute
*/
function print_r_xml($myArray
Option 3) setup a dedicated program to handle the mail, such as
mailman and then send ONE email from PHP to the listserver which will
then dispatch the mail accordingly, properly, in batches.
http://www.gnu.org/software/mailman/index.html
(at least, that's how I do it currently)
-Original
I write many CLI scripts in PHP to clean up DB records, etc via crontab
scripts. Often though, I implement command line switches to 'debug' or see
various data as a precaution before actually purging.
Perl has some neat tools built in to format tabular data:
-Original Message-
From: Ladislav Andel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 16, 2007 1:05 PM
To: James Ausmus; PHP List
Subject: Re: [PHP] combining 2 arrays
Thank you very much!
It's exactly the code I was looking for!
Lada
PS: my previous ungly code is half
What we do is setup 'sudo' to run certain commands (or a shell/ruby script
for example), then have PHP/Apache exec() the script via sudo (or use a DBUS
call to a 'root' enabled ruby daemon), which then restarts apache or
whatever we want.
Be VERY careful with the way you do this or you can give
/Linux. Best tool for the job and all that stuff... You're just asking
for all kinds of headaches and limitations (such as the one you're
encountering now) by using the back of a screwdriver to hammer a nail
IYKWIM. You'll poke your eye out! :)
-Original Message-
From: Daevid Vincent [mailto
On some machines, on some OSes, in some configurations, with some
commands, tacking onto the end of what you exec, will sometimes
work...
Sadly, in even Linux, this will not work. PHP blocks on the call.
I've even tried to call out to a shell script which in turn uses to call a
command.
I've noticed a 'feature' that seems to be causing me some pain.
When a user logs in, we store various pieces of info and their user class in
a $_SESSION variables.
This includes a flag saying that they've ben authenticated.
I would expect that if I 'rm -rf /tmp/sess_*' that the user would get
It's silly to have two different environments like that.
Either code the thing in PHP4. or upgrade the production environment to
PHP5.
DÆVID
-Original Message-
From: Ryan A [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 6:08 AM
To: php php
Subject: [PHP] PHP 5...
Hi,
.
Regards,
Mrs. O'Toole
Daevid Vincent wrote:
I've noticed a 'feature' that seems to be causing me some pain.
When a user logs in, we store various pieces of info and
their user class in
a $_SESSION variables.
This includes a flag saying that they've ben authenticated.
I
Hey all. Well I just finished my first version of a little tool I have
affectionately dubbed dumpster.
I do use my own SQL wrapper functions, but they should map fairly cleanly to
a search and replace for the stock PHP mysql_*() ones, or your own ones.
Mad props to Peter Brawley [EMAIL
I would expect that if I 'rm -rf /tmp/sess_*' that the user
would get
prompted to re-login (since the flag is not set).
Does it say someplace in the manual that you should be able
to do that?
Or is this a case of what you expect is not what the rest of the world
expects?
This is how
Just to be clear, what exactly are you trying to do? Are you trying to
logout a user
No.
We write enterprise level software probably far surpassing what PHP was ever
intended for.
However, our GUI is web based (LAMP).
We have fail over cluster nodes. If a user is logged into one via a
We write enterprise level software probably far surpassing
what PHP was ever intended for.
However, our GUI is web based (LAMP).
so the GUI uses php but the rest doesn't?
kind of nullifies the statement aboveif thats the case.
Not really. We use DBUS calls to Ruby and C/C++ code.
We
Sequence of events:
script starts
you rm -rf /tmp/sess_*
script writes out data
script ends
Exactly WHAT do you think should happen in this case?...
I expect this to work like it USED TO WORK! Bug or not.
I expect:
Script starts
Calls session_start(1234)
No existing sess_1234 file.
*sigh*
Why is PHP so lame...
?php
class PHPISLAME
{
const STOP = 0;
const START = 1;
const PAUSE = 2;
public static $STATES = array(
STOP = 'Stopped',
START = 'Started',
PAUSE = 'Paused'
Why is PHP so lame...
Why are you trolling on the PHP list?
Not trolling. Just frustrated. Apologies.
Furthermore, you aren't even using them properly. The documentation
clearly shows the following usage:
ClassName::constant
This is how you have to use it.
self::constant
B/c I'm too busy (and lazy) to hand type it all in, wondering if someone has
an array of state abbreviations to names like so...
$states = array(
...
'NY' = 'New York',
'WA' = 'Washington',
...
);
ÐÆ5ÏÐ
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
-Original Message-
From: tedd [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 17, 2006 2:54 PM
To: Daevid Vincent; php-general@lists.php.net
Subject: Re: [PHP] I need an array of state abbrev to names...
At 12:58 PM -0700 8/17/06, Daevid Vincent wrote:
B/c I'm too busy (and lazy
-Original Message-
From: Chris W. Parker [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 17, 2006 1:26 PM
To: Daevid Vincent; php-general@lists.php.net
Subject: RE: [PHP] I need an array of state abbrev to names...
Daevid Vincent mailto:[EMAIL PROTECTED]
on Thursday, August
I need to run a httpd server that can serve up PHP, SQL Lite, and SSL on a
little Soekris box (ie. a 486 with 32MB RAM and 32MB CF storage).
Can anyone recommend something?
How small can Apache get?
AppWeb?
http://www.mbedthis.com
http://www.appwebserver.org/
What about lighthttpd?
"The state of Java
Development"Afriendsnapped this picture at the Barnes
Noble in Woodinville, WA...
What am I doing wrong...
In my php.ini I have this for my web pages (and I want it):
output_handler = ob_gzhandler
But this causes my command line script to not show output until the very
end.
I thought I could disable it at the top of a script, but it's not working!?!
#!/usr/bin/php -q
UGH This stupid list server stripped out the inline image. WTF!?
Here, I put it on my site http://daevid.com/junk/Java_Dev.jpg
DÆVID
From: Daevid Vincent [mailto:[EMAIL PROTECTED]
Sent: Friday, October 27, 2006 1:58 PM
To: php
Lynch [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 29, 2006 9:25 PM
To: Daevid Vincent
Cc: php-general@lists.php.net
Subject: Re: [PHP] How do I get ini_set('output_handler', '')
to work?!
On Fri, October 27, 2006 3:46 pm, Daevid Vincent wrote:
What am I doing wrong...
In my
There is nothing to re-compile here.
The command line has an existing flag for you to specify the php.ini
file, or to override any setting[s] within the php.ini file.
Mebbe so, but that's equally obnoxious to pass this command line parameter
to a lot of existing scripts. It's just easier to
No comments?
http://it.slashdot.org/it/06/10/31/2047209.shtml
Personally I'm unsure. I would like to think that Zend is smart enough to
realize M$ tactics of embrace/extend and will not allow that to happen. But
everyone has a price, and you through enough money at something and you can
make
-Original Message-
From: Ed Lazor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 01, 2006 12:05 PM
Cc: Daevid Vincent; PHP General
Subject: Re: [PHP] Microsoft Partners With Zend
ps... I wonder if .NET will ever support PHP *GRIN*
I guess that's sorta what I'm afraid
If you've got several more hours to spare, providing a Google map as
an alternative is also quite do-able, though not as quick-n-easy as
you have to walk the XML output in Javascript by hand instead of
letting a built-in function do it for you.
Then you just need to spend a day or two
-Original Message-
(strlen(trim($normalAlphabet[$k])) === 0));
Not sure if this is it, but be careful with the === vs ==
DÆVID
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-Original Message-
From: Dotan Cohen [mailto:[EMAIL PROTECTED]
Sent: Monday, November 06, 2006 3:24 PM
I'm setting up a comments system on a site, with the comments stored
in a mysql database. To prevent sql-injection, I run
mysql_real_escape_string() on ingoing data. This should
Since you don't declare variables in PHP, they are preinitialized for you as
'false' or '0'
So since $b is not set initially, it is 0 therefore second elseif passes.
-Original Message-
From: Choy, Wai Yew [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 08, 2006 9:34 PM
To:
-Original Message-
From: Google Kreme [mailto:[EMAIL PROTECTED]
Is that *really* your name?! :)
The trouble comes when you
need to time-out a session because someone never logged out
properly. That can be hairy.
Yeah, it's so hard to do that subtraction...
We have a fairly complex product that is all PHP based GUI.
We're in need of some kind of graphical tool (web, stand alone, windows,
linux, osx whatever) that will take a directory tree, recursively traverse
all the files, look for 'includes' and 'requires' (and the _once versions
too) and then
I've had at least three job interviews in the past two weeks, and each one has
asked me this rather text book academic question regarding the difference
between abstract vs. interface. I've been coding for nearly 20 years, and
at least 10 of those have been in PHP and another 3 in J++. I have
-Original Message-
From: Larry Garfield [mailto:[EMAIL PROTECTED]
If your code doesn't have an API and clear separation of
parts, then neither
abstract classes nor interfaces are useful to you.
If you're coding anything of respectable size, vis, more than
a one-off 1000
All that extra code for absolutely no benefit! It is
possible to define an
interface (as in API) without actually using the term
interface, so IMHO
the term interface is totally redundant and a waste of time.
While I agree that Interfaces are mostly a lot of extra
code, I have to
just can't do
without.
Daevid Vincent
http://daevid.com
-Original Message-
From: Wolf [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 30, 2008 6:06 AM
To: Ryan S; php php
Subject: RE: [PHP] Xampp question, pretty much 0T
Top posting from my cell...
1. Format hard drive
2
On Tue, 2008-11-18 at 10:32 +, Holografix wrote:
Hi
I tried PHPDesigner some time ago. It's not bad but now I'm using Netbeans
and it's a good editor: http://www.netbeans.org/ (it's free!)
I watched the little movie demo and was impressed, so I just installed
and tried the Netbeans 6.5
Assuming this is in-fact your issue, I ALWAYS do this registry hack on
my Windows computers:
http://support.microsoft.com/kb/282402
On Tue, 2008-12-09 at 22:10 +0200, Krister Karlström wrote:
Hi!
Please note that most browser follows the RFC:s and does not allow more
than two connections
On Tue, 2009-01-06 at 01:01 +0100, Merlin Morgenstern wrote:
Hi everybody,
I am running a real estate portal and would like to allow users to
upload their listing from their existing software. They do this with a
XML file which they will upload on a ftp server that places this xml
file
On Mon, 2009-01-12 at 15:31 -0500, Eric Butera wrote:
On Mon, Jan 12, 2009 at 3:15 PM, Frank Stanovcak
blindspot...@comcast.net wrote:
I've googled, and found some confusing answers.
I've tried searching the history of the news group, and only found info on
switch or elseif seperately.
1 - 100 of 554 matches
Mail list logo