.
Thanks!
Jack Dempsey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
really?
?
$THIS_IS_A_VARIABLE=1;
$this_is_a_variable=2;
echo $THIS_IS_A_VARIABLE\n;
echo $this_is_a_variable\n;
?
seems sensitive to me...
Mike Eheler wrote:
Cool, however PHP is not case sensitive, nor is ASP or HTML for that
matter, therefore case sensitive syntax highlighting will not be
only thing i could think up would be if a user is dealing with huge amounts
of text and only needs to have the first ten returned, returning/continuing
past that would be wastefulnot confident on how often this would really
happen and what the actual difference would be...
Jack
not sure i follow...you open it with php do whatever you need and close
it...its just a text file...
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 1:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] php htpasswd
I'm sure question has been
a quick and inelegant hack
4.1 includes an array that has all of the data sent to the script...(or use
the different ones like $_GET etc if need be) then write a globalize function
that extracts the vars and declares them global...then use this snippet in an
auto_prepend file to magically
: Monday, December 17, 2001 4:54 PM
To: Jack Dempsey; Michael Jurgens
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] PHP 4.10: any way to override register_globals = OFF
a quick and inelegant hack
4.1 includes an array that has all of the data sent to the
script...(or use
the different ones like $_GET etc
a preventative measure against spamAFAIK you don't actually have to sign
up for the e-mail list, you just need to give an e-mail address to prove
you're not a spammer.
jack
-Original Message-
From: Eddie Shipman [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 17, 2001 5:23 PM
PM
To: Jack Dempsey; Michael Jurgens
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP 4.10: any way to override register_globals = OFF
Jack
$_GET is automatically global to all scopes. No need to globalize.
chuck
- Original Message -
From: Jack Dempsey [EMAIL PROTECTED]
To: Michael Jurgens
i don't think you want that space inbetween private/ and .htpasswd
-Original Message-
From: Jeremiah Jester [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 12:38 AM
To: Php-General
Subject: [PHP] htaccess problems
I cant seem to get my htaccess file to work. Can anyone
Alawi wrote:
now who can help me about cach my query every certain time:(
I mean the first user requst the page and php will run query for this first time
after that I want other user to have the result that the first user have it !!
untill the ten minutes end I want the query to run again
1. http://www.php.net/ChangeLog-4.php
2. and yes, you have to specify the exact filename...your issue is that
include_once is not a function in php3, if that code is infact from a php3
file...
Phillip B. Bruce wrote:
Hi,
I have a couple of questions before I get to my problem.
1.
use a phpinfo() in one of your pages...that'll show you various places to get
your data...
btw, php does have the $HTTP_GET_VARS that'll have what you want...
jack
Gaylen Fraley wrote:
I know that I know the answer - it's just buried in the recesses of my mind
..
PHP has the various
how exactly do you want to connect to it? if you want to link to it in html, then
it must be under the html doc root...if you're including, then you can specifiy
the path...
Webleycity wrote:
Hello All
If one creates a file outside the web space on a server. How doe's one
connect to this
didn't check your code specifically, but you can definitely have arrays
nested inside of arrays...to see how to print them out use something like
print_r to look at the structure...
-Original Message-
From: Daniel Alsén [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 10:12
True...guess everyone's forgotten the ol' pocket manual...
Any chance a new edition will come out?
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 2:30 PM
To: Philip Hallstrom
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] The peacock
Oh great, I didn't realize there was full book in the making...any ideas
on when the full book will be hitting the shelfs?
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 2:39 PM
To: Jack Dempsey
Cc: [EMAIL PROTECTED]
Subject: RE
not sure why and how you need mysql for this...why not just do the date
calculation in php?
Webleycity wrote:
Hello all is it possible to do an interactive countdown clock in MYsql that
can be embeded in emails.
---
Mark Webley
Multimedia design and
not as a criticism, but this is among the top 10 questions asked ...or used
to be for a while...anyway, there's tons of info on the mailing lists,
marc.theaimsgroup.com
the short answer is that echo is SLIGHTLY faster being a language construct
rather than a function...then again, i believe i
but then again, as things look now, PHP 4.x isn't likely to happen within a
foreseeable time range, if at all.
its good be wrong sometimes :-)
-Original Message-
From: Andrei Zmievski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 12, 2001 10:20 PM
To: [EMAIL PROTECTED]
Subject:
from the way you describe, i can't help but think that it'd be one hell of a
regex.if all you're doing is stripping out .. i'd load up your fav
editor and do a search and replace where you can approve each changeor,
just change them all and fix what's broken.it'll be much quicker than
i think that php sends out headers showing that the page is html.not
sure bout this, but you might have to send a diff header..
-Original Message-
From: M [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 09, 2001 5:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Running WML (WAP
that's because you're testing to see if '\n' is \n...single quotes mean:
interpret the text between literally, so '\n' is a backslash followed by
n...doulbe quotes mean: interpolate the value, so \n becomes a newline...
-Original Message-
From: Krzysztof Jarecki [mailto:[EMAIL
the search time is different than the page load timegoogle for example
can find thousands of records in a tenth of a second, yet it takes longer to
get that html result back to your browseryou could estimate page
download time by calculating the filesize and using the connection
you could pass the values to mktime and compare
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 08, 2001 8:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Comparing Dates
I'm trying to do a check on a date, to see if it's after the current
.its worth the money
jack
-Original Message-
From: Ken [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 3:08 AM
To: Jack Dempsey; liljim; PHP list
Subject: RE: [PHP] Reg ex help-Removing extra blank spaces before HTML
output
At 02:43 PM 12/5/01 -0500, Jack Dempsey wrote
= this is some text with a newline in it right here \n there it
was;
echo $text;
echo 'br';
echo preg_replace(/[ ]+\n+[ ]+/,\n,$text);
and it made the substitution fine.
jack
-Original Message-
From: Ken [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 1:56 PM
To: Jack Dempsey
Subject
: Thursday, December 06, 2001 5:13 PM
To: Jack Dempsey; PHP list
Subject: RE: [PHP] Reg ex help-Removing extra blank spaces before HTML
output
OK, this time the \n worked. The only thing I changed was using /
delimiters instead of | delimiters in the search string. No idea if/why
that would affect
help-Removing extra blank spaces before HTML
output
Hello,
The example Jack gave you will clear up spaces well, though to get both
newlines and spaces into one:
$input = preg_replace(/([ ]|\n){1,}/, \\1, $input);
James
Jack Dempsey [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]"
Dempsey
Subject: RE: [PHP] Reg ex help-Removing extra blank spaces before HTML
output
At 10:57 AM 12/5/01 -0500, Jack Dempsey wrote:
a space (\s is from perl)
Ah, OK, yours doesn't deal with newlines.
From list member James, a solution that does:
-
From: liljim [EMAIL PROTECTED]
The example
also, are you sure both versions of php were compiled the same way with the
same options and support?
-Original Message-
From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 9:22 AM
To: Miguel Loureiro; [EMAIL PROTECTED]
Subject: Re: [PHP] problem with
$text = preg_replace('|\s+|',' ',$text);
-Original Message-
From: Ken [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 2:06 AM
To: PHP list
Subject: [PHP] Reg ex help-Removing extra blank spaces before HTML
output
I want to remove all superfluous blank spaces before I
are you sure its not there? where does phpinfo say its located? its really
not there?
hmm...i'm not sure, but php might just use its own internal defaults without
a php.ini present, but i thought it was needed..who knows..
jack
-Original Message-
From: Kunal Jhunjhunwala
you can just kept adding []'s
$var[category][subcategory][Item] = url;
-Original Message-
From: Brian V Bonini [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 27, 2001 4:56 PM
To: PHP Lists
Subject: [PHP] Array Help
How can I access the inner most info in this array?
Ie, Item and
1. what do you want the br tags to be? a simple str_replace('br','',$text)
will strip the tags...
2. use pre html text /pre
jack
Lerp wrote:
I have a small php app that I'm building to display, insert, edit, etc...
various types of code snipits (asp, php, html, etc...) in a db. I also have
cron either a php script itself [if you've got it installed as a cgi] or a
lynx request of the page
check the archives as well [marc.theaimsgroup.com] because this comes up
every week or so
- Original Message -
From: Gab [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 19,
use cron
Any other idea?
Gab
Jack Dempsey [EMAIL PROTECTED] wrote in message
005401c17137$b930af00$[EMAIL PROTECTED]">news:005401c17137$b930af00$[EMAIL PROTECTED]...
cron either a php script itself [if you've got it installed as a cgi] or
a
lynx request of the page
check the
are you actually doing anything with $request? that just gets a mysql result
back in a variable, you then have to extract the data from it...
Jeff Lewis wrote:
I am wondering if there are any difference between using PHP and using the
command line for mySQL. Entering this at the comman line
search the archives there are tons of messages dealing with date
manipulation.
basically take the timestamps find the difference in seconds, convert to
days, etc
jack
-Original Message-
From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 17, 2001 3:17 PM
To: PHP is
mysqldump
check it out, either man or google
then ftp that file down, load it wherever, and mysql database dump.sql
jack
-Original Message-
From: cosmin laslau [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 17, 2001 5:25 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Backing up a
If you'd really like to develop your regex skills, and everyone should,
pickup Mastering Regular Expressions by Jeffrey Friedl(O'Reilly Press). Its
the best out there, and will probably teach you more than you thought
possible.
Jack
-Original Message-
From: Martin Thoma [mailto:[EMAIL
I've been meaning to upgrade and finally feel like I have to bite the
bullet. However, I can't find much information on OS X Server and a version
of php more recent than 4.0b2 which is what I'm currently running. Can
anyone provide some links or their configure line?
thanks,
Jack
--
PHP
has anyone tried selecting a mirror php site from the drop down at the
bottom-right? i just tried brazil and bulgaria and it seems to be broken in
general...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
how did you plan on running php from cron? however you do that you could run
a perl script that just makes a system call and does the same thing
-Original Message-
From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 9:04 AM
To: Php-General
Subject:
]]
Sent: Tuesday, November 13, 2001 9:29 AM
To: 'Jack Dempsey'; [EMAIL PROTECTED]
Subject: RE: [PHP] cron not allowed
how did you plan on running php from cron?
Well, this works for me:
0 3 * * * lynx -dump http://mysite.com/mypage.php /dev/null
HTH
Jon
David's correct. The reason it wasn't working for you is that you didn't put
braces around the code you wanted executed in the if statement. Also, to
output large chunks of html in a simple manner with variables included, look
into here docs. They look like this:
echoEOF
This is html with a
i would think you could just use crypt() to check the pass against what you
read in from the file
-Original Message-
From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 2:27 AM
To: PHP-General List
Subject: [PHP] Login verification
I want to make a
you can set error_reporting(E_ALL)that will help...
-Original Message-
From: Alex Tenitsky [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 9:19 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP]
Hello,
I'm curious if there's anything in PHP
like use strict in Perl.
It
paste the complete code in and myself and others can run your exact copy
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 11:22 PM
To: Martin Towell; [EMAIL PROTECTED]
Subject: Re: [PHP] for loop problem?
I removed all of the quotes that
ran it (without mysql queries) and worked finereal strange.
have you tried the loop without the mysql queries?
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 11:28 PM
To: Jack Dempsey; [EMAIL PROTECTED]
Subject: Re: [PHP
say you have 100 records.
you delete number 36.
your db will then be
...
34
35
37
38
...
correct?
after a delete, you could then say:
update table set id_num=id_num-1 where id 36
and this would update all relevant records
-Original Message-
From: Thomas Edison Jr. [mailto:[EMAIL
What is $num going to be? A number? So how do you determine where that
number ends and where there shouldn't be another number in front of it...are
there any restrictions on the size of $num?
say $num is 51
then you're saying that you want to match
51::
but not 151::
however, what if $num is
you're assigning, not checking for equality...use two ='s
-Original Message-
From: Martin [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 04, 2001 12:49 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Am i crazy?
Did I forget everything in a few months?
if ($name='admin') {
what happens? are you sure $name really equal's admin?
if you change header to echo $MYPATH does that work?
-Original Message-
From: Martin [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 04, 2001 12:54 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Am i crazy?
Jack Dempsey wrote
not to start a war, but have you seen php.net's documentation compared to
anything microsoft or anyone else has ever put out? i'd say that
documentation is microsoft's achilles heel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
that means you don't have permissions to write that file to whatever
directory is your target.if you tried the same thing from teh command
line you'd get the same error
-Original Message-
From: banyWilson [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 03, 2001 11:39 AM
To:
http://www.php.net/manual/en/language.types.array.php
start with that
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 12:33 AM
To: php
Subject: [PHP] simple array tutorial wanted
Hi all,
I really want to get me head around arrays,
Based on what criteria? if you just want to split the array at element 30,
you could use array_splice to get the necessary data...
- Original Message -
From: Daniel Harik [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 01, 2001 2:16 AM
Subject: [PHP] split array in 2
Hi Arsen,
I think that'd be a lot of work, and I'm not sure I understand why you can't
use MySQL?
I suppose you could do it, but i think you'll find once starting it, that
its not worth the time it'll need...
Jack
-Original Message-
From: ArsenKirillov [mailto:[EMAIL PROTECTED]]
Sent:
Hi Warwick,
Did you look at the install notes that come with PHP? It explains there how
you have to configure Apache to recognize php files and give them to the php
interpreter...checkout the README or INSTALL files that come with PHP...
jack
-Original Message-
From: J W W L (Warwick)
ok, are you trying to get the links returned or just split on them? i missed
your original post.
watch your caps as well...
i'd use preg_split also
jack
-Original Message-
From: brendan [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 29, 2001 9:59 PM
To: [EMAIL PROTECTED]
Subject:
had given preg_split a go but just got flummoxed with the need to
slash everything ..
Martin .. I'd tried that .. but i get an array count of 0 from
$the_array ..(from $the_array=split(A ([^]*)/A, $html,-1);
echo count($the_array);
Jack Dempsey wrote:
ok, are you trying to get the links
or the east coast.only 11:35 here in dc
-Original Message-
From: brendan [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 29, 2001 11:14 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] @#$@# Reg Expressions
or really bloody narky afgani's
Martin Towell wrote:
Off track - seems like
ok, how about DC ? :-)
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 6:54 PM
To: Richard Baskett
Cc: PHP General
Subject: Re: [PHP] Portland, Oregon
So Rasmus.. how about coming to Portland, Oregon? I havent seen a PHP
class,
would need to check, but:
preg_replace(/[^a-zA-z]/,'',$data)
should about do it...
jack
-Original Message-
From: Jay Paulson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 6:50 PM
To: [EMAIL PROTECTED]
Subject: [PHP] anyone have...
anyone have a function that strips out
lots of ideas nick, but can you use a database? MySQL is free and i've found
its almost always better to use databases when you can...
if you can't, you could do something like this:
1. find the pos of the string you need using strpos
2. find the pos of the ending delimiter
3. substr from the
ok, several different solutions, best being:
1. use sessions. this is probably the simplest, most robust way of doing it,
after you've become familiar with sessions.
2. as someone mentioned before, use one page that posts to itself. this
would be easier than using sessions, but not as powerful.
sure, have to states for your script, one is the normal blank form, the
second is the check.
in your check, validate the data. if its not good, print the form out again
with those values already filled in if they apply.
if it is good, redirect to a new page using header(); http://php.net/header
-
From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21, 2001 8:39 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Submit
But won't using a header kill all the form data? Thought you had to use
post for that?
Jack Dempsey [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]"
lol NP--actually I am using sessions-Will I have to declare each form
variable as a session variable to do this?
Jack Dempsey [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
sorry chip, i'm so used to using sessions, i just kind of assumed y
make a php page that prints out the html, and direct the form's action to
$PHP_SELF.
then have some sort of test to determine if there's been a post, process the
data, etc, and you're set.
-Original Message-
From: Srinivasan Ranganathan [mailto:[EMAIL PROTECTED]]
Sent: Monday, October
if i understand you correctly, perhaps this:
select * from categories a,category_user_rights b where a.name!=b.username;
jack
categories contains:
ID,
parent_ID,
name
users contains:
username,
password,
name,
etc
Hey Mick,
of course its ok...we've all done it that way (cept a few whose names you'll
learn soon enough ;-) )
a few suggestions:
1. www.php.net has most everything you could ask for...also, if you have a
function you want to learn more about, type it like this:
http://www.php.net/function_name
http://php.net/str_replace
if you're just replacing a static string, this will be faster and
easier...only use regex's when you really need them
jack
-Original Message-
From: W. Kiecksee [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 2:17 PM
To: [EMAIL PROTECTED]
Subject:
check out error reporting at php.net
-Original Message-
From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 2:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] How to eliminate Warning: Undefined variable: messages
Hi All,
Is these any parameter in php.ini that
php doesn't support automatic dereferencing of arrays, so you can't just
throw the index on the back, but you could do this:
$julianday = array_slice(localtime(),7,1);
but then $julianday's an array...so you could wrap an array_pop around
that..although it gets you your val in one line, i
if(!preg_match(/^\d+$/,$string){
echo $string has something other than a number;
}
-Original Message-
From: Chris Aitken [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 9:34 PM
To: PHP General Mailing List
Subject: [PHP] ereg checking if its only numbers
Ive been
nice to know demorgan's laws actually show up every now and then ;-)
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 12:58 AM
To: Jason Dulberg
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] php in css not working with IF's
Theoretically,
have you thought about a switch statement? haven't looked at your code, but
that would allow you a default, and then a bunch of cases, etc...
jack
-Original Message-
From: Jason Dulberg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 1:43 AM
To: Rasmus Lerdorf
Cc: [EMAIL
think before you code...something i'm quickly learning isn't such a bad
mantra
so before i and others jump into this, maxim, rasmus, and anyone else
following this thread/interested in it, i agree that scoping the script to a
max of 3 terms is a necessary choice...any other comments/thoughts
use METHOD=POST in your form
-Original Message-
From: Salty Marine [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 1:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP] How can I suppress my variables from showing up in the
address bar?
Greetings to All of You on the List:
How can
check out the archives and google--there's lots of info on things like
qmail,ezmlm, and the topic of bulk emails
jack
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 11:05 PM
To: PHP-General
Subject: [PHP] bulk e-mails
Hello everyone,
they're just functions
function your_function($arg1,$arg2){
echo $arg1;
echo $arg2;
}
-Original Message-
From: Chris Herring [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 30, 2001 2:08 AM
To: php list
Subject: Re: [PHP] Subroutines
My bad,
hi karl
just to let you know, i believe there's a good calendar app on php.net
before i knew about this though, i wrote my own. some general advice:
i often take results from mysql calls and build data structures with the
data. then, you always have that
data available, and you can loop as many
Right, fetch-array just adds extra results to fetch-row.
Have you tried storing your results in an array that you can then loop
over later?
-Original Message-
From: Karl Nelson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 30, 2001 6:33 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL
select * from logged_in where date_add(time_in,interval 1 hour) = now()
-jack
-Original Message-
From: Jason Dulberg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 6:08 PM
To: Sheridan Saint-Michel; [EMAIL PROTECTED]
Subject: RE: [PHP] select based on time/date
I tried
Put a slash in front of it:
don't = don\'t
-jack
-Original Message-
From: Andrew Austin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 7:08 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] speechmarks
What is the method for mySQL to surround single speechmarks as in
(don't) so
i could roll my own, and for now will just use a str_replace after ucwords,
but would it be possible to add an optional parameter to ucwords which would
be an array of words to skip? i would think this would be useful to
many.
any thoughts?
--
PHP General Mailing List
and to whoever asked this a few weeks ago, yes i'm getting this too, and yes
its annoying..any possibility of deleting it from the list?
-Original Message-
From: Mail Delivery System
[mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 23, 2001 11:17 PM
To: [EMAIL PROTECTED]
Subject:
not sure i follow Gianluca...the script will stay there, its not going
anywhere, so why does it need to wait? it'll process whatever info is sent
to it
-jack
-Original Message-
From: Gianluca Baldo [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 22, 2001 2:06 PM
To: [EMAIL
i'm sure there are more elegant solutions, but you could control the running
of your php script via a perl script called by cronin perl check to see
if the process is already running, and if so exit, else start it
jack
-Original Message-
From: Simon Kimber [mailto:[EMAIL PROTECTED]]
checkout http://php.net/manual/en/function.file.php
-Original Message-
From: Dominica Anderson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 2:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP] importing text file
I have a text file that is formatted as such
Something -
i agree...i wish things were more like microsoft where you could search for
days and never find something, and i think bill gates should really stop
being involved closely with the development...i mean, where else can you
find that?
i wonder if he could code a hello world script in C#..
perhaps i'm misunderstanding you, but why not use a for loop?
for($i=0;$icount($array)-1;$i++){
echo $array[$i];
}
jack
-Original Message-
From: Scott [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 18, 2001 10:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP] re: array question
why not use it in your sql?
select count(*) from table where foo='bar';
-Original Message-
From: Max Mouse [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 17, 2001 5:22 PM
To: php forum
Subject: [PHP] Counting
I'm using php/mysql. I want to be able to count the number of records
you actually don't need regex...
if you take a few minutes you can do it all with strpos and substr, adn
it'll be faster than regex.
-Original Message-
From: Christian Dechery [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 11, 2001 9:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP]
hallelujah...first time i've seen someone else mention here docs, and being
rasmus, not a bad person to make the mention ;-)
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 17, 2001 12:17 AM
To: speedboy
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP]
zend encoder (www.zend.com) and there's also an opensource project...can't
recall the name or link, but you can find it if you search the archives
jack
-Original Message-
From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 15, 2001 3:04 AM
To: [EMAIL
not exactly clear on what you want, but if you want to see what you have
most, you could do a count(id) where product='cola' and compare that to a
count(id) where product='cd'
jack
-Original Message-
From: Teqila MAN [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 15, 2001 3:13 AM
what're you uploading it to? if you're using an IIS server for production
scripts, then you'd obviously want to test on IISlikewise for
apache.i prefer LAMP over msoft, but to each, his/her own..
-Original Message-
From: Peter Gibson [mailto:[EMAIL PROTECTED]]
Sent: Sunday,
brothers torn apart by Chaos, while the fortress
endures, the great leader will succumb , The third
big war will begin when the big city is burning -
- Nostradamus 1654
- Original Message -
From: Jack Dempsey [EMAIL PROTECTED]
To: Kunal Jhunjhunwala [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent
1 - 100 of 288 matches
Mail list logo