I am trying to get a directory listing over ftp with the ftp_nlist()
function. The problem is that the directory name has spaces in it and it
looks like ftp_nlist() chops the string at each space and performs a
separate listing for each word, which fails. I have tried quoting,
urlencoding and rawu
> Now only if a php-tidy existed ...
Agreed. I've often thought about hacking 'indent' to recognice PHP
syntax, but I never get around to it. Does anyone know if someone has
done this already?
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMA
This is true, but not complete. You can also do
> Well if you aren't posting to your add.php page (ie method="post"
> action="add.php") then you need to pass them via the add.php?var=foo&varb=bar
> method.
>
> --Joe
>
>
> On Wed, Jan 10, 2001 at 12:02:54PM -0800, jeff fitzmyers wrote:
> >
> define(MAX,2);
> print "the max is MAX";
>
> this obv does not work
print "the max is " . MAX;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMA
No.
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
Get your own Free, Private email at http://www.smackdown.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
""
You could use custom HTML meta content refresh tags. This is not a
PHP think, but an HTML thing.
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
Get your own Free, Private email at http
Funny, I would say forget javascript; I don't trust client side
validation.
:) Just my two cents.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
Get your own Free, Private email at
r php 3 binary).
You would just run it like this:
/usr/local/bin/php4 -q your_script.php > your_output_file.html
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
Get your own Free, Priv
PHP3's strenghts:
GPL'ed (or PHP3 license -- at your choice)
PHP4's strengths:
Faster (way faster)
Garbage collection that works
More functions -- bigger language
Actively being developed
These are just of the top of my head...
Jeremy
Jeremy Brand :: Sr. Software Engineer
my knowledge in open solutions rather than learning
proprietary OSs and strategies.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
Get your own Free, Private em
We have a centralized DB server. Sessions are handled by us, the
programmers, not the cluster.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
Get your own Free, Private email at http
we store the sessions in the DB.
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
Get your own Free, Private email at http://www.smackdown.com
Oh, BTW, we don't use PHP sessions, we use our own.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
Get your own Free, Private email at http://www.smackdow
ave a small script that uses flock():
http://www.nirvani.net/software/dr-fun/
As you can see, I am testing the result, and taking an action (in this
case, sleeping, then trying again).
Hope this helps.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
Like I said, we use our own. It is home grown, but not opensource --
sorry, if it was my choice it would be ;)
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
Get your own Free, Private email
unfortunately not because it is not opensource. I did want to make it
clear that sessions is a gereric word. Thus, when it is said, it
shouldn't be mis-understood as to be PHP Sessions, which obviously is
not a generic word.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245
Your Return-Path: header should have that email address.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
Get your own Free, Private email at http://www.smackdown.com
o who you specify in the Return-Path:.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
Get your own Free, Private email at http://www.smackdow
Well, I don't know exactly what you mean by a bounce. But, an
undelivered email will return to the Return-Path address.
Why don't you forward the actuall email headers to the list and I can
look at them.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTE
I think that you answered your own question. I know that PHP sends
Return-Path: headers, I do it all the time. But, I use qmail.
All I can say is good luck with sendmail.cf (I hope you
have enough system memory to open it in a text editor )
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408
They do just what they say.
see:
http://php.net/bc
One drawback is that PHP can't natively handle these big numbers, so
the return values from these functions are of type string.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/J
for ($i=100; $i>0; $i++)
print "\n";
But, I presume you would rather do this:
for ($i=100; $i>0; $i++)
print "\n";
because I can't imagine why you would want to escape double quotes in
HTML.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245
What I see is that the below is not an array of checkboxes (that would
be , not ). ... are
part of a
But, to make a checkbox be checked, you simply do this:
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand
*laughs* Yes. :) It is only 2:07 PM.. forgive me.
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
Get your own Free, Private email at http://www.smackdown.com
Hi Jerry,
Feel free (as in GPL) to use my libHtmlForm functions. This should
solve your problem.
http://www.nirvani.net/software/libHtmlForm/
See: html_input_checkbox() specifically.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com
l the php binary in /usr/bin)
Hope this helps.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
Get your own Free, Private email at http://www.smackdow
e in order
> to save a couple of hundred bucks.
I agree.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
Get your own Free
> Soo true.
>
> But why would Microsoft be using PHP? =D
Why would Microsoft be using Solaris, or Linux even? (hint, the same
reason -- their stuff works less good).
:)
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jer
ne would be stupid to not be using linux in their
interprise somewhere.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
Get your own Free, Private email at http:/
There is no recommended editor. Use whatever you like, as long as it
stores the files in plain text.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
Get your own Free, Private email at http
If you want to use the modulus, why not just use modulus (%) ?
But, instead of doing all that math, why not just use the
number_format() function?
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for
> my point is that math should be used instead of a regex as it is more
> efficient.
I totally agree. :)
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html fo
t the next
page, you could just print them out as
elements.
while(list($key, $val) = each($cb))
print '' . "\n";
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Br
You can add a Re: to the "Subject:" header, then make sure that your
"In-Reply-To:" header is in reply to the "Message-ID:" header of the
message you are replying to.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://ww
Then you need to escape your double quotes:
$myVal = "";
or use the single quote equivilant:
$myVal = '';
or (PHP4 only)
$myVal = <<
EOT;
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/
you can clear a string by doing this:
$string = '';
you can clear an array by doing this:
$array = array();
you can clear (or zero out rather) an integer or float by doing:
$int_or_float = 0;
or you can simply unset() the variable:
unset($any_of_the_above);
Jeremy
Jeremy B
tted.. so let's say tha the user had click in 2,4,8,25 I would have
> $acc=2,4,8,25... later on I explode that and I will have the clicks...
>
> What do you think?
well, now you have the values. You need to state them. Either print
them to "hidden" HTML input tags or sav
I'm not aware of this bug, but temporarily you might consider using
the $SCRIPT_NAME variable. The same values is stored in it AFAIK.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for
Then it is something else, not those variables themselves. Do you
have a configuration issue? Are you running on Windows; do you need
to reboot?
check phpinfo(); and see if all your variables are truncated.
Just a few thought.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058
8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Yet there are 10 unaccounted days which is 1 and 3/7 more weeks.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.htm
whpping cash
on a 486 or pentium and use that as your linux server
(apache+php+mysql) for development. That is probably still cheaper
than VMware and it is always nice to have a server around that can
just stay up chugging along.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058
e right direction.
Ultimately you are going to need to cutomize this for what you exactly
want to do.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
- - - - - - - - - - - - - - - - - - - - - - -
thing bad to say about apache, don't get me wrong. This is
simply the way that works best for us. Our DB lives on a separate quad
sparc and all of our content is centralized and remotely NFS mounted.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http:
> By the way, there is a PHP module for thttpd.
Thank you. I know. I haven't had a chance to spend time testing it.
Would anyone recommend it for mission critical environments?
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyB
I'd (for no better reason) love to run
thttpd+php instead of apache if it could provide >= service under
pressure. It most likely already does. I know thttpd by itself is
the absolute best I have tested for high performance static content.
It kicks apache up and down the block on this regard.
your script is probably timing out.
Try doing:
set_time_limit(0);
at the top of your script.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
You are going to have to research the query string for each search
engine that you intend to support, and then parse it out.
for example: go to google. search for [jeremy brand], notice the
REQUEST_URI:
/search?q=jeremy+brand
In google's case, since they always use q=, you can parse thi
Feel free (as in public domain) to use this function:
http://www.nirvani.net/software/misc/xor_string-1.0.0.inc.asc
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
$string = '';
If you use single quotes, then you don't need to escape them.
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Bran
That is what I have heard as well, "Personal Home page".
It has also been come to be known as "People hate perl".
And of course the (AFAIK) official "PHP: Hypertext Preprocessor".
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://ww
> > It has also been come to be known as "People hate perl".
>
> Hey now. I'll deny to my grave I ever said that in public. ;)
I never claimed you said it. ;) I will deny that I ever heard it
from you. :)
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-2
Feel free (as in GPL) to use my libHtmlForm functions available here:
http://www.nirvani.net/software/libHtmlForm/
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
You can get your answer from a program I wrote, in fact, feel free (as
in GLP) to use the POST function that I wrote.
http://www.nirvani.net/software/SmartBeep_PageIT_Plus/
See the "urlize_array" and "post_method" functions.
Jeremy
Jeremy Brand :: Sr. Software Engi
om foo where something = 'something_else' limit 30, 10;
Select * from foo where something = 'something_else' limit 40, 10;
etc...
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http:/
this period.
3. If your H/W fails or need to be replaced, please contact Zend and we will
provide you with a substitute license.
Best regards,
Adi J. Brand
VP International Sales
Zend Technologies
Voice: +972 (0)3 613 9665, x.116
Cell: +972 (0)56 505 005
www.zend.com
if ($fname && $lname && $email)
echo "test";
If by easier you mean typing less. ;)
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/
I don't think you need the \=, just the = should do.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"LINUX i
The PHP manual online is searchable.
If you are reading the HTML version on your local machine, doesn't
your browser have "find"?
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Bran
$array[0] will be the lang_pref and $array[1] will be the
currency_pref.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
You can use premade flash movies just as you would in HTML. Therefore
everything that is normally available is available in PHP, plus if you
want, you get to use the wonderful libswf! :)
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http
Don't store your object in the session, that is just bad design.
Store a lookup value, then grab your object from your DB only when you
need it.
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for
7;s probably your SQL queries that are eating up your memory.
1) You can configure php.ini to use less memory per thread.
2) You can run my mbfree program in a crontab to free memory on a
schedule. I currently do this.
http://www.nirvani.net/software/mbfree/
Jeremy Brand
--
Jeremy Bran
he domain to .webpage.com, but when I read the cookie it says
>the domain is w ww.webpage.com, thus not being accessible by mail.webpage.com. Any
>thoughts would be greatly appreciated.
>
--
Jeremy Brand :: Sr. Software Engineer :: +393485323988 :: [EMAIL PROTECTED]
http://www.Jeremy
for example this code:
setcookie('cookie_name', 'cookie_val', time()+3600, '/', '.domain.com');
results in this HTTP header:
Set-Cookie: cookie_name=cookie_val; expires=Fri, 13-Jul-01 15:14:25 GMT; path=/;
domain=.domain.com
Jeremy Brand
Jeremy Brand :
Hi Chad,
You can follow my example at:
http://www.nirvani.net/software/image_create/
Hope this helps.
Jeremy Brand
Jeremy Brand :: Sr. Software Engineer :: +393485323988 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
I think you will want to use the imap_8bit() function:
http://php.net/imap_8bit
But, I'm not sure if there is a version available in PHP without compiling
in c-client IMAP.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: +393485323988 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/J
apache.org. :)
> I can hear the answer already... apache.com
>
>
>
> >From: Rasmus Lerdorf <[EMAIL PROTECTED]>
> >To: "[ rswfire ]" <[EMAIL PROTECTED]>
> >CC: <[EMAIL PROTECTED]>
> >Subject: Re: [PHP] NT5 Sub Domains
> >Date: Sat, 27 Jan 2001 13:31:34 -0800 (PST)
> >
> >Why don't you just in
http://www.vim.org/
:set nu
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"LINUX is obsolete" -- Andy Tanenbaum, Ja
Does anyone know a way to attend the PHP|con west as an observer
in Santa Clara, CA, US on Oct. 23rd without spending tons of ca$h?
The pricing seems insane, and geared towards people with lots of
spare money...
I would love to hear specifically the Advanced track on Oct. 23
(Michael Radwin, S
would be greatly appreciated. I feel like I would
actually add value by being there, not only in supporting my
friends who are doing speaking at the conference, but also in
helping to evangelize php and help newbies with questions/fud/etc.
Thanks.
Jeremy
Jeremy Brand, B.S. wrote:
Does anyone know
Thanks again to all who at least had a mature answer.
Cheers :)
Jeremy
Jeremy Brand, B.S. wrote:
Does anyone know a way to attend the PHP|con west as an observer in
Santa Clara, CA, US on Oct. 23rd without spending tons of ca$h?
The pricing seems insane, and geared towards people with lots of
71 matches
Mail list logo