Re: [PHP] Coding Style Question...

2006-10-02 Thread Larry Garfield
On Monday 02 October 2006 19:32, Tony Di Croce wrote:
> I am relatively new to PHP... I have about 1.5 years of light PHP work
> under my belt... Over the past year or so my PHP coding style has evolved
> significantly and I'm curious as to how experienced programmers write
> PHP...
>
> Basically, here is what I have evolved to:
>
> 1) ALL php code is at the top of the file.
> 2) ALL html code is in a here document at the bottom.
> 3) php code is run before 1 character is outputed (and hence, no headers
> are sent, leaving redirects open for possibilities)
> 4) I almost always following my require_once directives with a
> session_start() at the top of the file.
> 5) Often, my forms submit to the PHP page that generated them but do so
> with a hidden posted variable. If that variable is set, then I process the
> form submission.
>
> I think the most important part of all this is #1 & #2... I think I am
> using PHP a little like template engine this way...
>
> It seems to me that I most often see code snippets that try to intertwine
> HTML and PHP, but in my experience, except for trivial examples, this
> doesn't work so good...
>
> What do you think?

Good habits to form, overall.  Most examples and tutorials are trivial, which 
is why they do the intermingling thing.  To be fair, that was one of PHP's 
original strengths over its competition in the early days (vis, Perl and C), 
because it made doing simple stuff simple.  You didn't need to dynamically 
build the whole page if you only wanted a small bit to be dynamic.  Of 
course, once you get into anything interesting, you frequently DO want the 
whole page dynamic or else templated.  

In my case, I tend to use php-based templates and "theme functions", a style 
borrowed from Drupal.  To wit, I have a function like this (off the cuff, not 
tested):

function call_template($template, $args) {
  extract($args);
  ob_start();
  include($template);
  $output =  ob_get_contents();
  ob_end_clean();
  return $output;
}

$template is then the name of a mostly-HTML .php file where I can use PHP for 
display (mostly just echoing), making it easy to separate logic and 
presentation and build the page piecemeal.  It also means that I have all the 
power of PHP for my template "engine".

Then I also have functions like 

theme_table($header=array(), $rows=array(), $caption='', $attrib=array()) {}

or

theme_unorderedlist($items=array()) {}

So that I can just pass logical data structures and get back fully 
semantically useful HTML.  (Eg, theme_table automatically puts in even/odd 
classes on tr tags for me.)  

Again, credit here goes to the Drupal CMS, which uses a much more developed 
and refined version of this concept.  

-- 
Larry Garfield  AIM: LOLG42
[EMAIL PROTECTED]   ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Coding Style Question...

2006-10-02 Thread Glenn Richmond
Hi Tony,

Sounds like a good start. I have to admit that one that I prefer is that
HTML code should be completely separated from PHP via the use of a
templating engine of some sort (I'm a fan of XTemplate). I'll probably
get strong opposition for these comments, but in my opinion, there's
nothing worse than mixing two different lanuages in a single file, not
to mention mixing functional code with layout code.

Glenn.

Tony Di Croce wrote:
> I am relatively new to PHP... I have about 1.5 years of light PHP work
> under
> my belt... Over the past year or so my PHP coding style has evolved
> significantly and I'm curious as to how experienced programmers write
> PHP...
>
> Basically, here is what I have evolved to:
>
> 1) ALL php code is at the top of the file.
> 2) ALL html code is in a here document at the bottom.
> 3) php code is run before 1 character is outputed (and hence, no
> headers are
> sent, leaving redirects open for possibilities)
> 4) I almost always following my require_once directives with a
> session_start() at the top of the file.
> 5) Often, my forms submit to the PHP page that generated them but do
> so with
> a hidden posted variable. If that variable is set, then I process the
> form
> submission.
>
> I think the most important part of all this is #1 & #2... I think I am
> using
> PHP a little like template engine this way...
>
> It seems to me that I most often see code snippets that try to intertwine
> HTML and PHP, but in my experience, except for trivial examples, this
> doesn't work so good...
>
> What do you think?
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Coding Style Question...

2006-10-02 Thread Jay Blanchard
[snip]
What do you think?
[/snip]

I think I'd like an ice cold beer.

I code PHP like I code C++, heavily commented with code designed to fit
the needs of the application. There is a thing in PEAR concerning style
(you can Google it pretty easily) and you will as many styles as you do
PHP developers. 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Coding Style Question...

2006-10-02 Thread Tony Di Croce

I am relatively new to PHP... I have about 1.5 years of light PHP work under
my belt... Over the past year or so my PHP coding style has evolved
significantly and I'm curious as to how experienced programmers write PHP...

Basically, here is what I have evolved to:

1) ALL php code is at the top of the file.
2) ALL html code is in a here document at the bottom.
3) php code is run before 1 character is outputed (and hence, no headers are
sent, leaving redirects open for possibilities)
4) I almost always following my require_once directives with a
session_start() at the top of the file.
5) Often, my forms submit to the PHP page that generated them but do so with
a hidden posted variable. If that variable is set, then I process the form
submission.

I think the most important part of all this is #1 & #2... I think I am using
PHP a little like template engine this way...

It seems to me that I most often see code snippets that try to intertwine
HTML and PHP, but in my experience, except for trivial examples, this
doesn't work so good...

What do you think?

--
Publish technical articles @ skilledwords.com and get 100% of the
ad-revenue!
http://www.skilledwords.com


Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread Google Kreme

On 02 Oct 2006, at 17:13 , tedd wrote:

At 4:59 PM -0600 10/2/06, Google Kreme wrote:

On 02 Oct 2006, at 14:56 , Richard Lynch wrote:

$mail_body .= "" . stripslashes($mail_text) . "";


Can we also comment on the horror that is the  tag?


I saw that as well, and had a similar response -- but I'm not sure  
how one can use a style sheet with/within an email.


well, if you want to  send HTML email, you can just put the  
styles in the header, or have it link to a style sheet on your  
server.  It's HTML, you'd do it like any other HTML.


On the other hand, I'd rather send a link to an HTML page than a  
bunch of HTML email, but that's me.



--
Naked blonde walks into a bar with a poodle under one arm, and a two- 
foot salami under the other. The bartender says, I guess you won't be  
needing a drink. Naked lady says…


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Client Computer Registration

2006-10-02 Thread Google Kreme

On 02 Oct 2006, at 15:11 , Richard Lynch wrote:

And they'd have to be complete and total idiots to use the IP address
for authentication/identification.


This is Key Bank.  Morons goes without saying.


Though, honestly, if this is your BANK, they've really got no business
allowing you to "register" your computer like this...


Ibid.

--
"Real stupidity beats artificial intelligence every time."

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread tedd

At 4:59 PM -0600 10/2/06, Google Kreme wrote:

On 02 Oct 2006, at 14:56 , Richard Lynch wrote:

$mail_body .= "" . stripslashes($mail_text) . "";


Can we also comment on the horror that is the  tag?

I thought I was gonna puke...

No?  OK, moving along, nothing to see.


I saw that as well, and had a similar response -- but I'm not sure 
how one can use a style sheet with/within an email.


I would ask "If you wanted to send a styled email, how do you do it?" 
-- BUT -- I haven't RTFM on the subject and don't want anyone to tell 
me to do so -- so, I haven't asked.  :-)


tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] array size in bytes

2006-10-02 Thread Chris Boget

How about saving the array as a file and then do a filesize()?


Wouldn't this work?  


$arraySize = strlen( implode( '', $array ));

Though, additional work would need to be done for nested arrays.

thnx,
Chris

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: moving file from one server to another

2006-10-02 Thread Colin Guthrie
Nick Wilson wrote:
> hi, 
> 
> i have thttpd (a very light weight http server) running as an image
> server on one box, and users uploading images to another php/apache
> powered box.
> 
> I need to let users upload to the regular LAMP box, but then copy the
> image over to the custom image server (which does not have php or any
> kind of cgi capability).
> 
> I was considering using exec() and scp to do this, but thought i'd ask
> and see if anyone had any better suggestions?

For what it's worth, I'm reading a book just now about scalable PHP
Websites and the author (one of the creators of Flickr) documents this
issue as an example.

At Flickr they created their own custom file transfer protocol system to
move uploaded images to the image processing and storage system.

So there you go. From one of the more successful image processing
websites, this is howto do it :)

The overhead with all the other options proved too much. THey had
originally used NFS but moved to this custom approach after this became
unreliable/inefficient.

Hope that helps.

Col.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread Google Kreme

On 02 Oct 2006, at 14:56 , Richard Lynch wrote:

$mail_body .= "" . stripslashes($mail_text) . "";


Can we also comment on the horror that is the  tag?

I thought I was gonna puke...

No?  OK, moving along, nothing to see.

--
The Piper's calling you to join him

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] array size in bytes

2006-10-02 Thread tedd

At 4:18 PM -0500 10/2/06, Richard Lynch wrote:

On Mon, October 2, 2006 3:07 am, Roman Rumisek wrote:

 Exists in PHP function returning array size in bytes ?
 (For saving array into shared memory without serialize.)


No.

And you could maybe write one, if it was all strings in the array, but
you're gonna be screwed when PHP 6 with Unicode comes out, cuz the
number of bytes "depends" on where you're gonna store it, in which
charset, and several other factors...

There was a thread on PHP-internals last month about the the strlen()
function should or shouldn't do for that -- and if sizeof() should or
shouldn't do something different.

You probably shouldn't be poking it into shared memory without
serializing it anyway, I don't think...




How about saving the array as a file and then do a filesize()?

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Hotmail and junk mail

2006-10-02 Thread Greg Maruszeczka
Try here:

http://openrbl.org

Cheers,
G

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mysql_real_escape_string() question

2006-10-02 Thread Richard Lynch
On Fri, September 29, 2006 8:34 pm, Chris Shiflett wrote:
>> I'm looking for a guide, a chart, a grid, an organized systemic
>> documentation of what data should be escaped how as it travels
>> through the "glue" that is PHP...
>
> That's a great idea. Want to write it? :-) I'd be happy to help.

Okay.

We have a team of 2 so far...

:-)

Is there any nifty excel/grid-like UI on-line where we can just start
shoving in the "from" and "to" axis and filling in the obvious ones?

Any good Wikis support that?

Unless we wanna pass ASCII art back-n-forth...

 | MySQL   |
-+-+
raw text |mysql_real_escape_string |
 |mysql_escape_string  |
 |Use real_ for charset-   |
 |specific escaping|
-+-+

:-)

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: How to effectuate translations

2006-10-02 Thread Richard Lynch
I'm no expert, but I'm making bank on the fact that you CANNOT
reliably "guess" a user's language from their
browser/settings/whatever, so you NEED to give the user control.

Example:
I was in Paris, and used computers at an Internet cafe, configured
with French keyboards and identifying themselves as French-speaking
browsers.
That does soo *NOT* mean that I can read French.
Not, not, not.

On Sat, September 30, 2006 11:45 am, Mário Gamito wrote:
> Hi,
>
> Yes, but what i was looking for is the best solution for the users to
> choose their language.
>
> Thanks for the useful link anyway.
>
> Best Regards,
> Mário Gamito
>
> Tony Marston wrote:
>> If you read
>> http://www.tonymarston.net/php-mysql/internationalisation.html#determine.use
>> r.language you will see that it determines the user's language from
>> $_SERVER["HTTP_ACCEPT_LANGUAGE"] which is taken from settings in the
>> client's browser. It is also possible for this to be overridden in
>> the
>> Control Record or the MNU_USER record.
>>
>> Tony Marston
>>
>> http://www.tonymarston.net
>> http://www.radicore.org
>>
>>
>>
>>> -Original Message-
>>> From: Mário Gamito [mailto:[EMAIL PROTECTED]
>>> Sent: 30 September 2006 16:11
>>> To: Tony Marston
>>> Subject: Re: [PHP] Re: How to effectuate translations
>>>
>>>
>>> Hi Tony,
>>>
>>> But this works automagiacaly from the browser language or the
>>> users can choose ?
>>>
>>> Regards,
>>> Mário Gamito
>>>
>>> Tony Marston wrote:
 Take a look at

>>> http://www.tonymarston.net/php-mysql/internationalisation.html
>>> which
 documents the solution which I have adopted.

>>>
>>
>>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] set cookie with non-english

2006-10-02 Thread Ahmad Al-Twaijiry

Hi everyone

in my PHP code I use the following command to set a cookie with
non-english word (UTF-8) :

@setcookie ("UserName",$Check[1]);

and in my html page I get this cookie using javascript :


 

but the result from writing the cookie using javascript is garbage, I
don't get the right word !!

anyone know how to resolve it ?

BTW:
* I also tried the php function setrawcookie and I get the same problem
* I use  in my page

--

Ahmad Fahad AlTwaijiry

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to effectuate translations

2006-10-02 Thread Richard Lynch
My Parrot sez:

I think "gettext" is the answer to your question.

I have no direct knowledge of this.

On Fri, September 29, 2006 10:38 pm, AR wrote:
> Hi,
>
> I'm coding this software that has several files for several languages,
> so that users can chose the one that suits him.
>
> My question is what is the best way to integrate this in the PHP code,
> i. e., to make it work.
>
> Any help would be appreciated.
>
> Warm regards,
> Augusto Reis
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Rapid application development

2006-10-02 Thread Richard Lynch
On Sat, September 30, 2006 12:44 am, Ahmad Al-Twaijiry wrote:
> What is the best RAD (Rapid application development) do you use for
> PHP to develop an *advance* application in few days or weeks ?
>
> I like programming but one this that I hate is the first stage of
> programming when you start creating the basic code (db connection,
> interface, insert,update,etc), this is why I'm looking for a good
> RAD tool that can speed up my programming.

You're not gonna like my answer... :-)

vi

Since my db connection code is the same one-liner (2 for MySQL) every
time, it's not exactly tricky.

The UI is always a couple functions in the globals.inc for the
masthead/navigation and footer, which only takes as long as it takes
to make it "pretty" (or slap in somebody else's "pretty", more likely)
so there's no RAD for PHP involved there.

So then I'm pretty much stuck writing the custom stuff for the content
in the middle which is, well, custom...  So there's not a lot of RAD
to do on that bit.

I suppose if you insist on cluttering up your code with some massive
framework of silly wrappers that don't have any added value, and it's
always the same template-like code every time anyway, you could just
write that ONCE, and then copy it to a new directory whenever you
start a new project.

What really changes?

Username/password for the DB.
Maybe an IP/DNS for the DB host.

The interface, which is hopefully different enough to be reasonably
attractive...  Unless you want that "this looks just like every other
site I ever built" look... [shrug]

:-) :-) :-)

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] moving file from one server to another

2006-10-02 Thread Richard Lynch
On Sat, September 30, 2006 5:25 am, Nick Wilson wrote:
> yes. i'd considered rsync but the file needs to be available on the
> image server immediately. scp'ing it should work, but of course imnow
> having fun with the apache user and try9ing to work out how to give it
> an ssh profile :)

Here's your first problem.

There *IS* no such thing as "immediately" in this world.

It's a nonsense word in this context.

How much time do you REALLY have here as a constraint?

Re-think this carefully, because any answer that doesn't provide at
least a few seconds is just plain Wrong. :-)

Now, once you've got "immediately" out of your head, ponder whether or
not the user really wants to sit around, even for a few extra seconds,
while *YOU* dink around with this scp stuff.

I don't.

Would you?

Of course not!

The user wants to upload the file, and then use those seconds to do
something else useful, instead of watching your locked-up web
application do "nothing" that is useful to them.

If that LAMP/thttp connection gets slogged by a lot of uploads, the
LAST thing you want is all your users sitting around *waiting* on that
task which is, by definition, out-of-band with what the user wants to
do.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] moving file from one server to another

2006-10-02 Thread Richard Lynch
On Sat, September 30, 2006 4:29 am, Nick Wilson wrote:
> i have thttpd (a very light weight http server) running as an image
> server on one box, and users uploading images to another php/apache
> powered box.
>
> I need to let users upload to the regular LAMP box, but then copy the
> image over to the custom image server (which does not have php or any
> kind of cgi capability).
>
> I was considering using exec() and scp to do this, but thought i'd ask
> and see if anyone had any better suggestions?

rsync

Or do the images on the LAMP box go away?

I'll bet that there's a configuration of rsync for that anyway, come
to think of it.

If rsync is "out", the difference between an "immediate" exec('scp')
in PHP and an every-minute cron job is probably going to be moot, for
most users, in most real-world scenarios, if you handle it right.

Provide the user with some nice "eye candy" in between that will
distract them from the fact that it takes 62 seconds for their photo
to show up...

For most of them, by the time they finish the upload and click on to
the next page to view it, they've already burned 10 to 20 seconds
anyway...

Or, better yet, just take the upload, and then let them move on to
whatever else they want to do, without giving them that immediate view
of the photo.

If you work at it, a good Usability can be achieved without the scp,
almost for sure.

You just have to keep the user informed of the status, so they know
what's going on, and update that cleanly, so they are kept current on
the status -- all without compromising security, nor over-loading the
server with requests.

A simple status indicator on your masthead/navbar of recent uploads --
"3 uploads in process" or "all uploads processed" is all you really
need for this kind of app.

Don't go all AJAXy and start burning up HTTP connections just to give
them "instant feedback" -- They really don't care so long as:
1) They're kept informed as they do their tasks
2) They can force it to "check" if they've nothing better to do
3) The thing works fast and efficiently enough to be "nice"

Start off with "Your photo has been uploaded and is being transerred
to our super-fast photo servers.  We'll keep you posted in your status
bar, and you can just keep on working." after the upload.

Honestly, I like to double-check the uploaded images, but not if it's
gonna take THAT long while you dink around scp-ing them or whatever. 
Let me do something *else* while you're doing that, and I'll check on
them later.  Thanks. :-)

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] exec returns no output?

2006-10-02 Thread Richard Lynch
On Sat, September 30, 2006 9:33 am, Nick Wilson wrote:
> Tha'ts exactly what i think it's doing. The -i specifies an identity
> file according to the man page for scp so i would have hoped that
> would
> take care of it (as i cant work out how to generate an identity for
> the
> apache user itself) but i guess it is doing exactly as you say..

So you made *YOUR* identity file available to the Apache user?...

Think this through...

Are you on a shared server?

If yes, anybody who can write a PHP script can masquerede as "you" and
do whatever "you" can do with that "identity" -- So if you've got the
private_key of that identity anywhere *other* than at [EMAIL PROTECTED],
that's probably a Bad Idea.

Even on a dedicated server, you want to make sure that this particular
identity file is used ONLY for Apache to do this transfer, and nothing
else -- You really want to document this heavily everywhere, so nobody
comes along afterwards and uses that private key for something
important, not realizing that you've essentially compromised it for
Apache (i.e., anybody who manages to get a file onto that server)

I'm not saying what you've done is Bad.  I'm saying it's really easy
for you to have done it Badly without realizing it, and we can't tell
from what you've posted and the consequences are serious, so we're
possibly gonna tell you "too much" that you already know... :-)

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] exec returns no output?

2006-10-02 Thread Richard Lynch
On Sat, September 30, 2006 7:22 am, Nick Wilson wrote:
> i've searched and racked my brains, checked config files and all sorts
> but cannot work out why the following command would give me an empty
> array (and certainly not actually perform the requested command...)
>
> exec('scp -v -i /id_dsa file.txt [EMAIL PROTECTED]:/target/dir/',
> $argh);
> print_r($argh);
>
> I can only surmise there is some setting todo with ssh/scp that im
> unaware of?

For starters, you should us a FULL PATH to /id_dsa because the shell
exec() uses is not a full-blown shell in your home directory.

Next, you have to realize that PHP does not run as "you" but as
"nobody" or "www" or some similarly less-enabled user, for security
reasons, on most setups.

Third, you should use the optional third argument to exec() so you can
get the OS error number of what went wrong.  For bonus points, you can
install my http://l-i-e.com/perror module to get the error number
converted to a nice string, or you can fire up an ssh shell and do:
perror ## where ## is what came back in this optional third argument.

Fourth, you really should use the full path to scp, as, again, the
shell exec() is using is not a full-blown shell like you get when you
login, and PHP is not running as "you" so may not even have permission
to run scp.

Did I mention that PHP doesn't run as you, so this all boils down to a
permissions problem? :-)

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Hotmail and junk mail

2006-10-02 Thread Richard Lynch
On Sat, September 30, 2006 4:07 pm, eqla3.com eqla3.com wrote:
> hello every one :)
>
> what ever i do emails i sent got in the junk mail
>
> i fixed the header
> add spf record to the domain
> using mail server with specific IP
> fix all dns error
>
> nothing work
>
> any one get it correct ?

Compare YOUR raw email to the ones that do NOT go into junk.

What's different?

Are you using HTML "enhanced" (cough, cough) email?
Do you have correct From: and Reply-to: headers?
Do those match the routing?

Are you a spammer?

Cuz if you actually ARE a spammer, then, really, there's not much hope
long-term...

Is your specific mail server IP already in the black hole lists?

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] selling country domains

2006-10-02 Thread Richard Lynch
On Sat, September 30, 2006 11:28 pm, jenny mathew wrote:
> hello friends,
> i know this is a php list but i am confused thats why i am asking a
> bit off
> topic.i have few .be domains and now i want to sell ,but i donot know
> where
> to sell them.can you tell me the name of sites where i can sell my .be
> domains.all domains are keyword rich and bears commercial value.
> my domains collection include

> i want to sell the above name,can u tell of the name of few sites
> where i
> can sell these names.

I could just give you a dollar for them all if you'll go away...

Does that help?

Actually, wherever you *bought* the damn things would be a good place
to start to sell them.  Duh.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] newbie php tutorial question

2006-10-02 Thread Richard Lynch
On Sun, October 1, 2006 1:27 pm, srdaniel wrote:
> I setup Apache 2.2.3.0 and PHP 5.1.6.6.
>
> When I run this PHP file:
>
> 
> 
>   
>PHP Test
>   
>   
>   Hello World'; ?>
>   
> 
> 
>
> Any ideas why I get this for output?
>
> 
> Hello World
>
> '; ?>
> 

You didn't configure httpd.conf correctly with some combination of
AddModule/LoadModule/AddType/Action/Handler directives.
[You don't need *all* of those, just the ones you need for whichever
way you are trying to install PHP.]

So what happens is that the browsers "sees" your PHP source.
  turns into some '?php' tag the browser doesn't know
about, so it just ignores it.
 turns into a paragraph closing tag.
And ; ?> is just bad HTML.

Use "View Source"

And, while you're at it, get Firefox and the HTML Validator extension
to to Firefox (aka Tidy)

Then train yourself to keep an eye on that bottom-right corner where
you see if your HTML is "good" or not.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Formatting Question

2006-10-02 Thread Richard Lynch
On Mon, October 2, 2006 4:13 pm, tedd wrote:
> Why not use nl2br() to show the data in the browser and leave the
> data "as-is" in the dB?

Apparently I typed too much, cuz that's exactly what I said, or meant
to say...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problems creating a user in MySQL

2006-10-02 Thread Richard Lynch
On Sun, October 1, 2006 3:48 pm, Deckard wrote:
> I have this code:
> ---
>   // use mysql database
>   mysql_select_db('mysql') or die('Cannot select MySQL database.' .
> mysql_error());
>
>   // insert new user in mysql user table
>   $sqlInsertUser = "INSERT INTO user (Host, User , Password ,
> Select_priv, Insert_priv, Update_priv, Delete_priv) VALUES
> ('$hostname',
> '$mysql_username', '$mysql_password', 'N', 'N', 'N', 'N')";
>
>   if (mysql_query($sqlInsertUser, $conn))
>$messagesqlInsertUser = 'Success...';
>   else
>$messagesqlInsertUser = 'Error: ' . mysql_error();
>   $result = mysql_query($sqlInsertUser);
> ---
>
> that gives me the error:
> ---
> Error: Duplicate entry 'localhost-gamito' for key 1
> ---
>
> although the pair 'localhost-gamito' is not duplicated and i can be
> assured os this, because it works perfectly well in the MySQL prompt.

Once you have put the user 'gamito' in to that table, with the host
'localhost', you cannot add a SECOND user 'gamito' for 'localhost'
because there is a UNIQUE KEY constraint on that 2-field combination.

You could add '%', 'gamito' or you could add 'localhost', 'gamito2'
but not another 'localhost', 'gamito'

I'm also going to wonder aloud why you are doing this when there are a
plethora of tools available to manipulate the MySQL user table...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Re: Re: Frustrated trying to get help from your site

2006-10-02 Thread Richard Lynch
On Sun, October 1, 2006 5:42 pm, Michelle Konzack wrote:
> Am 2006-09-27 17:39:25, schrieb David Robley:
>
>> 88 tons!! Point us to an image of that please.
>
> Currently not availlable but it is an ex Pershing II Transporter
> from the US-Army manufactured by the german Enterprise MAN.

Please tell me you're not driving the tank-like thingie in the
foreground of this photo:

http://upload.wikimedia.org/wikipedia/en/thumb/4/4e/Pershing_1_Launch.jpg/200px-Pershing_1_Launch.jpg

What kinda gas mileage can you get from something like that?!

LOL

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Client Computer Registration

2006-10-02 Thread bruce
actually richar, and others...

depending on what they're doing, it's quite alot to it.

if the bank is being agressive, they might be requiring a client app to be
downloaded and is then able to communicate with the client app, thereby
getting a great deal more information. a few companies have begun the
process of not just dealing with authorizing the user, but the
computer/device as well. and it really makes sense. in this way, i as a
business can state with a high degree of confidence that the computer in the
house (assuming i as a business were to take it that far) was used for the
transaction in question...

furthermore, if the dispute isn't satisfied, i can then add the computer to
a "blacklist" of devices.. if enough companies use this kind of system, and
the database is large enough, it becomes an additional tool to use to
minimize online transaction abuse...

as to if people want to be part of this kind of system.. that's a huge
unknown... to be frank, it does open up a number of potential 'privacy'
issues.. but as scott mcnealy said before.."you have no privacy, get over
it!!"

peace...


ps. check out www.passmarksecurity.com


-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Monday, October 02, 2006 2:11 PM
To: Rahul S. Johari
Cc: PHP
Subject: Re: [PHP] Client Computer Registration


On Mon, October 2, 2006 7:07 am, Rahul S. Johari wrote:
> I saw this at the Key.Com website for Keybank Customers. When you go
> to
> their website to login to view your account, they ask you to register
> your
> computer for the first time. Once your computer is registered, you can
> access the account using that computer. You can choose to Not register
> that
> computer and you won¹t be able to access the account using that
> computer in
> future.
>
> What exactly are they doing?

Almost-for-sure, they are just giving you a dated cookie instead of a
session cookie, and that's it.

> Can PHP record the MAC Address of the NIC in the computer? Or are they
> just
> recording the IP and creating an IP based filteration?

They are almost-for-sure not getting your MAC because that's
impossible to the best of my knowledge.

And they'd have to be complete and total idiots to use the IP address
for authentication/identification.

Though, honestly, if this is your BANK, they've really got no business
allowing you to "register" your computer like this...

I mean, somebody breaks into your home and takes the thing, and "poof"
there went your bank account too?

[the follow paragraph ASSUMES the existence of a likely virus and
security hole to be exploited.  It is not a statement of existing
fact.]
Or some nifty new virus comes along, and they find your cookies with
that known security hole for Keybank in there with a way to get to
your bank account?!

> I¹m looking to implement a similar security system for one of my
> applications.

I mean, yeah, for some stupid on-line forum or something, sure.  But
your bank acount?!  No way, Jose.  Don't do it.

> Any advice?

Read the cookies spec.
Use the set_cookie_params function in the PHP manual.

There really isn't a whole lot to this...

--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] array size in bytes

2006-10-02 Thread Richard Lynch
On Mon, October 2, 2006 3:07 am, Roman Rumisek wrote:
> Exists in PHP function returning array size in bytes ?
> (For saving array into shared memory without serialize.)

No.

And you could maybe write one, if it was all strings in the array, but
you're gonna be screwed when PHP 6 with Unicode comes out, cuz the
number of bytes "depends" on where you're gonna store it, in which
charset, and several other factors...

There was a thread on PHP-internals last month about the the strlen()
function should or shouldn't do for that -- and if sizeof() should or
shouldn't do something different.

You probably shouldn't be poking it into shared memory without
serializing it anyway, I don't think...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WebMail client

2006-10-02 Thread Richard Lynch
On Mon, October 2, 2006 9:14 am, Jim Jagielski wrote:

http://php.net/imap

:-)

PS
Hey, does anybody know why none of these guys are smart enough to show
me the "To: " line in that listing of email in my Inbox?...

Cuz I could save myself a heck of a lot of time if I just knew for
sure for sure what email that junk came "To: "

And, yes, I've got a ton of filters and folders in place, but there is
still a percentage of junk that I end up wading through, and viewing
the "To: " header is the quickest easiest tell-tale -- if it was
actually easy to see...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Formatting Question

2006-10-02 Thread tedd

At 3:51 PM -0500 10/2/06, Richard Lynch wrote:

Don't "pollute" your raw data (the newlines) with a very
media-specific formatting code ("") -- Keep your raw data pure
and clean, and format for the destination when you send it there, not
when you store it.
There *might* be some egregious examples of over-loaded high-volume
servers where adding the "" at run-time is "too much work" -- At
that point, it's probably still not the "Right Answer" to pollute the
raw data.  It might be expensive, but adding a cache of the output
data, or even a second field for data_as_html to the database should
be considered.  Anything other than polluting your raw data.

This may seem high-falutin' purism, but it will make your life so
much more pleasant some day down the road.


Richard:

You are absolutely right of course -- don't pollute your raw data.

Why not use nl2br() to show the data in the browser and leave the 
data "as-is" in the dB?


tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Client Computer Registration

2006-10-02 Thread Richard Lynch
On Mon, October 2, 2006 7:07 am, Rahul S. Johari wrote:
> I saw this at the Key.Com website for Keybank Customers. When you go
> to
> their website to login to view your account, they ask you to register
> your
> computer for the first time. Once your computer is registered, you can
> access the account using that computer. You can choose to Not register
> that
> computer and you won¹t be able to access the account using that
> computer in
> future.
>
> What exactly are they doing?

Almost-for-sure, they are just giving you a dated cookie instead of a
session cookie, and that's it.

> Can PHP record the MAC Address of the NIC in the computer? Or are they
> just
> recording the IP and creating an IP based filteration?

They are almost-for-sure not getting your MAC because that's
impossible to the best of my knowledge.

And they'd have to be complete and total idiots to use the IP address
for authentication/identification.

Though, honestly, if this is your BANK, they've really got no business
allowing you to "register" your computer like this...

I mean, somebody breaks into your home and takes the thing, and "poof"
there went your bank account too?

[the follow paragraph ASSUMES the existence of a likely virus and
security hole to be exploited.  It is not a statement of existing
fact.]
Or some nifty new virus comes along, and they find your cookies with
that known security hole for Keybank in there with a way to get to
your bank account?!

> I¹m looking to implement a similar security system for one of my
> applications.

I mean, yeah, for some stupid on-line forum or something, sure.  But
your bank acount?!  No way, Jose.  Don't do it.

> Any advice?

Read the cookies spec.
Use the set_cookie_params function in the PHP manual.

There really isn't a whole lot to this...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] web browser shows blank page when accessing *.php file

2006-10-02 Thread Anna Barnes

Dear All
I just thought I'd drop you a line about how I fixed this in the  
end.  I had an idea that because the ical I was loading had about  
24months worth of data it was taking too long so I just created a new  
one and published that. It now works, however, it does stall  
sometimes in which case I have to open a new web browser window and  
retype the url (regardless of the web browser)


Thanks
Anna
www.fmri.org/calendar

On Sep 21, 2006, at 5:46 PM, Martin Marques wrote:



On Thu, 21 Sep 2006 17:13:44 -0400, Anna Barnes  
<[EMAIL PROTECTED]> wrote:


and the error_log file says

[Tue Sep 19 15:53:57 2006] [error] PHP Fatal error: Maximum execution
time of 60 seconds exceeded in /websites/ical/functions/
ical_parser.php on line 494


What is there in line 494 of ical_parser.php?

--
-
Lic. Martín Marqués |   SELECT 'mmarques' ||
Centro de Telemática|   '@' || 'unl.edu.ar';
Universidad Nacional|   DBA, Programador,
del Litoral |   Administrador
-




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] a function for retuned vatiable

2006-10-02 Thread Richard Lynch
On Mon, October 2, 2006 7:08 am, Ross wrote:
> What I need is a quick way to assign variable names to the same value
> of the
> row name.
>
> example..
>
> $query= "SELECT * from $table_name WHERE sname=='hulford'";
>
>   $result = mysql_query($query) or die('Error, query failed');
>  while ($row=mysql_fetch_array($result)) {
>
>
> $email = $row['email'];
> $name=$row['name'];
> $address = $row['address'];
>
> //this goes on for 30 fields is there a way to automate this?
>
>
> }

http://php.net/extract

Just do *NOT* do it with $_GET / $_POST / $_REQUEST -- You may as well
just turn register_globals back on if you're gonna do that.  Same
thing either way, so you gain nothing in terms of the [some say
alleged] benefits of register_globals off, if you're just gonna turn
around and pollute your variables anyway.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] alternatively

2006-10-02 Thread Richard Lynch
On Mon, October 2, 2006 9:19 am, Jochem Maas wrote:
> David Tulloh wrote:
>> $mail_body .= "... Title: $row[title] ";
>
> does that actually work? not that I care - I still consider it wrong.

It's a Documented Feature...

How wrong can it be?...
[shrug]

Though I confess I've got more than a few nits to pick with documented
features myself, so I'll be the first to admit I'm the pot calling the
kettle black.

I gotta say, though, that adding the {} around it just looks plain
messy to me, and flip-flopping in/out of a string with a bunch of
concat operators does not appeal either, for the same reason.

If "...$row[title]..." is "just wrong" then I'd rather see this before
the alternatives above:

$title = $row['title'];
"...$title..."

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] alternatively

2006-10-02 Thread Richard Lynch


Take out the ' for array keys inside of "

"...$row[title]..."

Which *does* seem kind of whack, honestly, but so it goes...

On Mon, October 2, 2006 7:13 am, Ross wrote:
> How can I get this line to work
>
> $mail_body .= " sans-serif\"> Title: $row['title'] ";
>
> The $row['title'] variable is the problem.
>
>
> Ross
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread Richard Lynch
On Mon, October 2, 2006 8:09 am, Ross wrote:

$mail_body .= "" . stripslashes($mail_text) . "";

HOWEVER:

The fact that you are calling "stripslashes" at all tells me that either:

  You've screwed up with Magic Quotes being on and calling addslashes
(or mysql_[real_]escape_string) so you've essentially double
addslashed your data.
  You don't understand the purpose of escaping data for INPUT to MySQL
and think you need to escape it for OUTPUT, which you don't.

ANYBODY calling "stripslashes" is almost-for-sure doing something
fundamentally wrong in their code.

H.  Can we get *that* into E_STRICT? :-)

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Formatting Question

2006-10-02 Thread Richard Lynch
On Mon, October 2, 2006 12:08 pm, Toby Osbourn wrote:
> Sorry to plague you with a question that should have a simple answer,
> but I
> can't find said answer anywhere (probably looking for the wrong things
> in
> the wrong places!)
>
> Basically I want to allow a user to input a string via a form into a
> database, I have the code to do that and it works almost 100% - I have
> made
> it so that any html tags are stripping off the string before saving
> it, but
> I do want to allow some basic formatting - namely when a user takes a
> new
> line in the textbox, I want the new line to carry over to the
> database.
>
> At the moment the user could type in something like this...
>
> wibble
> wobble
>
> But after it has been submitted and then retrieved from the database
> it will
> return wibblewobble.

You may THINK you are seeing "wibble wobble" in your browser, but
that's because a browser smushes all whitespace into just one
whitespace -- that's why you need   all over the place in the Bad
Old Days... :-)

Anyway, you could be managing to strip out the newlines, I suppose, in
which case you have to figure out where you are doing that.

Echo out the data as it travels into/through/out-of your system.

echo ""; htmlentities($whatever); "";

For removing the HTML, use http://php.net/striptags

For ancient browsers that give non-standard newlines do like this with
the input:
$text = str_replace("\r\n", "\n", $text); //non-standard Windows browsers
$text = str_replace("\r", "\n", $text); //non-standard Mac browsers

Then, on *OUTPUT* to a browser, only on output to a browser, you can
use http://php.net/nl2br to format the newlines for HTML.

The reason for doing this only on output is this:
Some day, even if you don't think you will, you *might* need to output
this to someting other than a browser.  RSS, CSV dump, or some new
fancy format we haven't even invented yet.

Don't "pollute" your raw data (the newlines) with a very
media-specific formatting code ("") -- Keep your raw data pure
and clean, and format for the destination when you send it there, not
when you store it.

There *might* be some egregious examples of over-loaded high-volume
servers where adding the "" at run-time is "too much work" -- At
that point, it's probably still not the "Right Answer" to pollute the
raw data.  It might be expensive, but adding a cache of the output
data, or even a second field for data_as_html to the database should
be considered.  Anything other than polluting your raw data.

This may seem high-falutin' purism, but it will make your life so
much more pleasant some day down the road.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Excel Spreadsheet Writer

2006-10-02 Thread Jef Sullivan
Greetings all,

 

I am having some problems with the Excel Spreadsheet Writer and I am hoping 
that I can get some help from

this group. I am getting garbled text in my spreadsheet when I go to run the 
php file. I created a general file to 

see if I could narrow the problem down. No luck so far…

 

This is what I am getting in the spreadsheet…

 

ÐÏࡱá; 


þÿ  


þÿÿÿ[1]
 




 
þÿÿÿ
 l ÉB[1]ä 


[1] 


My first 
worksheet=¼%r8X[1]"[1]1ÈÿArial1ÈÿArial1ÈÿArial1ÈÿArial1ÈÿArial1È
 Arialàõÿ À àõÿ À àõÿ À àõÿ À àõÿ À àõÿ À àõÿ À àõÿ À àõÿ À àõÿ À àõÿ À àõÿ À 
àõÿ À àõÿ À àõÿ À à À à À “[1] 


€ÿ’â8€ÀÀÀ€€€™™ÿ™3fÿÿÌÌÿÿffÿ€€fÌÌÌÿ€ÿÿ€ÿÌÿÌÿÿÌÿÌÿÿ™™Ìÿÿ™ÌÌ™ÿÿÌ™3fÿ3ÌÌ™ÌÿÌÿ™ÿfff™–––3f3™f333™3™3f33™333…?
 


My first worksheet l É[1][1][1]*[1]+[1]€‚[1][1]Á 


¡"d[1]X[1]X[1]à?à?[1] 


[1] 


[1] 


Name 


[1] 


Age 


[1] John Smith 


[1]
>@ 


[1][1]
Johann Schmidt 


[1]
[1]?@ 


[1] 


 Juan Herrera 


[1]



@@)ð?(ð?'è?&è?„[1]ƒ[1]>[1] ¶ 


 Root Entry [1]ÀFC‑x'æÆC‑x'æÆÀ 


Book [1]

 

This output makes me thing that the reference to the Writer.php file is not 
correct. I have verified that the file is located in the given path and that

All other references are correct. Here is my code for the generic test file….

 

send('test.xls');

 

// Creating a worksheet

$worksheet =& $workbook->addWorksheet('My first worksheet');

 

// The actual data

$worksheet->write(0, 0, 'Name');

$worksheet->write(0, 1, 'Age');

$worksheet->write(1, 0, 'John Smith');

$worksheet->write(1, 1, 30);

$worksheet->write(2, 0, 'Johann Schmidt');

$worksheet->write(2, 1, 31);

$worksheet->write(3, 0, 'Juan Herrera');

$worksheet->write(3, 1, 32);

 

// Let's send the file

$workbook->close();

?>

 

Any suggestions on getting this resolved?

If this is the wrong list, please let me know where I can send this question.

Perhaps it is the way I installed the Writer? All I did was copy it over from 
another machine.

 

 

 

Jef Sullivan

Programmer

Progrexion

work:   801-828-1745

moble: 801-682-9727

email:  [EMAIL PROTECTED]

 

Research | Marketing | Sales Generation   www.progrexion.com 
 

 

This email and its contents are confidential. If you are not 

the intended recipient, delete this email and do not use or

disclose the information within this eamil or its

attachements. Thank you.

 



Re: [PHP] Formatting Question

2006-10-02 Thread tedd

At 6:08 PM +0100 10/2/06, Toby Osbourn wrote:

Sorry to plague you with a question that should have a simple answer, but I
can't find said answer anywhere (probably looking for the wrong things in
the wrong places!)

Basically I want to allow a user to input a string via a form into a
database, I have the code to do that and it works almost 100% - I have made
it so that any html tags are stripping off the string before saving it, but
I do want to allow some basic formatting - namely when a user takes a new
line in the textbox, I want the new line to carry over to the database.

At the moment the user could type in something like this...

wibble
wobble

But after it has been submitted and then retrieved from the database it will
return wibblewobble.

Any ideas?

Regards

Toby


Toby:

Ideas?

After stripping html,

$txt = str_replace("\n","",$txt);
$txt = str_replace("\r","",$txt);

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] alternatively

2006-10-02 Thread Dave Goodchild

Just use {$row['title']} or ${row['title']}, it will save you headaches. I
may be a purist, but it's also satisfying as it still indicates the array
element is a string rather than a constant. Anyway, the above two methods
are the preferred way I think.


Re: [PHP] alternatively

2006-10-02 Thread Jochem Maas
Ford, Mike wrote:
> On 02 October 2006 15:20, Jochem Maas wrote:
> 
>> David Tulloh wrote:
>>> Ross wrote:
 How can I get this line to work

 $mail_body .= ">>> sans-serif\"> Title: $row['title'] ";

 The $row['title'] variable is the problem.
>>> Drop the quotes when you are inside a quoted string.
>>> $mail_body .= "... Title: $row[title] ";
>> does that actually work?
> 
> Not only works, but fully documented as a valid method -- see 
> http://uk.php.net/manual/en/language.types.string.php#language.types.string.parsing.simple

ah, I must have supressed that information a long time ago ;-).

> 
> Cheers!
> 
> Mike
> 
> -
> Mike Ford,  Electronic Information Services Adviser,
> Learning Support Services, Learning & Information Services,
> JG125, James Graham Building, Leeds Metropolitan University,
> Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
> Email: [EMAIL PROTECTED]
> Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 
> 
> 
> To view the terms under which this email is distributed, please go to 
> http://disclaimer.leedsmet.ac.uk/email.htm
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Formatting Question

2006-10-02 Thread Dave Goodchild

How is the field set in the database - is it CHAR/VARCHAR or TEXT?







--
http://www.web-buddha.co.uk
http://www.projectkarma.co.uk


[PHP] Formatting Question

2006-10-02 Thread Toby Osbourn

Sorry to plague you with a question that should have a simple answer, but I
can't find said answer anywhere (probably looking for the wrong things in
the wrong places!)

Basically I want to allow a user to input a string via a form into a
database, I have the code to do that and it works almost 100% - I have made
it so that any html tags are stripping off the string before saving it, but
I do want to allow some basic formatting - namely when a user takes a new
line in the textbox, I want the new line to carry over to the database.

At the moment the user could type in something like this...

wibble
wobble

But after it has been submitted and then retrieved from the database it will
return wibblewobble.

Any ideas?

Regards

Toby

--
http://www.borninblood.co.uk


RE: [PHP] alternatively

2006-10-02 Thread Ford, Mike
On 02 October 2006 15:20, Jochem Maas wrote:

> David Tulloh wrote:
> > Ross wrote:
> > > How can I get this line to work
> > > 
> > > $mail_body .= " > > sans-serif\"> Title: $row['title'] ";
> > > 
> > > The $row['title'] variable is the problem.
> > 
> > Drop the quotes when you are inside a quoted string.
> > $mail_body .= "... Title: $row[title] ";
> 
> does that actually work?

Not only works, but fully documented as a valid method -- see 
http://uk.php.net/manual/en/language.types.string.php#language.types.string.parsing.simple

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 


To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP 5, PDO in debian

2006-10-02 Thread Paul Scott

On Mon, 2006-10-02 at 10:33 -0300, Martin Marques wrote:
> On Mon, 2 Oct 2006, David Tulloh wrote:
> 
> > Martin Marques wrote:
> >> Does anyone have an idea on when PDO is going to be available in Debian?

use www.dotdeb.org sources list. Its bleeding edge, but works OK.

--Paul

All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [ANNOUNCE] Suhosin 0.9.6 - Advanced PHP Protection System

2006-10-02 Thread Stefan Esser
  _   _   
___ _   _| |__   ___  ___(_)_ __  
   / __| | | | '_ \ / _ \/ __| | '_ \ 
   \__ \ |_| | | | | (_) \__ \ | | | |
   |___/\__,_|_| |_|\___/|___/_|_| |_|
  v0.9.6
   

Suhosin v0.9.6 - October 2, 2006


  Announcement
  
  
  The Hardened-PHP Project is proud to announce the immediate
  availability of the first stable releases of Suhosin-Patch
  and Suhosin-Extension.
  
  Suhosin is our advanced PHP protection system installations.
  It was designed to and has already proved to be successful in
  protecting servers and users from known and unknown flaws in 
  PHP applications and the PHP core.
  
  Suhosin consists of two independent parts that can be used
  separately or in combination. The first part is a small patch
  against the PHP core that implements a few low-level protections
  against buffer-overflows or format string vulnerabilities and the
  second part is a feature-rich PHP extension that implements
  a lot of security safeguards for your PHP installations.
  
  Unlike our Hardening-Patch Suhosin is binary compatible to
  normal PHP installations, which means it is compatible to 3rd
  party binary extensions like ZendOptimizer or ZendPlatform.
  
  With this first official stable release of Suhosin the 
  Hardening-Patch is declared deprecated and replaced by Suhosin.
  
  
  Availability
  
  
  This extension is available under the PHP License.
  
  You can get the newest version at http://www.suhosin.org
  
  Additionally Suhosin is available in the FreeBSD ports system
  and soon in the Gentoo portage. The upcoming OpenSuSE version
  most probably contains binary packages of Suhosin, too.
  
  
  Support and Documentation
  =
  
  The installation how-to, the documentation and the FAQ for 
  Suhosin are available on the website:
  
http://www.suhosin.org

  A users support forum is available under:
  
http://forum.hardened-php.net
  

  Featurelist
  ===

  Engine Protection (only with patch)
  ---
  * Protects the internal memory manager against buffer-overflows 
with Canary and Safe-Unlink Protection
  * Protects Destructors of Zend Hashtables
  * Protects Destructors of Zend Linked-Lists
  * Protects the PHP core and extensions against 
format string vulnerabilities
  * Protects against errors in certain libc realpath() 
implementations

  Misc Features
  -
  * Protection Simulation mode
  * Adds the functions sha256() and sha256_file() to the PHP core
  * Adds support for CRYPT_BLOWFISH to crypt() on all platforms
  * EXPERIMENTAL SQL database user protection

  Runtime Protection
  --
  * Transparent Cookie Encryption
  * Protects against different (Remote-)Include Vulnerabilities
- disallows Remote URL inclusion (optional: black-/whitelisting)
- disallows inclusiong of uploaded files
- optionally stops directory traversal attacks
  * Allows disabling the preg_replace() /e modifier
  * Allows disabling eval()
  * Protects against infinite recursion through a configurable
maximum execution depth
  * Supports per Virtual Host / Directory configurable function 
black- and whitelists
  * Supports a separated function black- and whitelist for 
evaluated code
  * Protects against HTTP Response Splitting Vulnerabilities
  * Protects against scripts manipulating the memory_limit
  * Protects PHP's superglobals against extract() 
and import_request_vars()
  * Adds protection against newline attacks to mail()
  * Adds protection against \0 attack on preg_replace()

  Session Protection
  --
  * Transparent encryption of session data
  * Transparent session hijacking protection
  * Protection against overlong session identifiers
  * Protection against malicious chars in session identifiers
 
  Filtering Features
  --
  * Filters ASCIIZ characters from user input
  * Ignores GET, POST, COOKIE variables with the following names:
- GLOBALS, _COOKIE, _ENV, _FILES, _GET, _POST, _REQUEST
- _SERVER, _SESSION, HTTP_COOKIE_VARS, HTTP_ENV_VARS
- HTTP_GET_VARS, HTTP_POST_VARS, HTTP_POST_FILES
- HTTP_RAW_POST_DATA, HTTP_SERVER_VARS, HTTP_SESSION_VARS
  * Allows enforcing limits on REQUEST variables or separated by 
type (GET, POST, COOKIE)
  * Supports a number of variables per request limit
  * Supports a maximum length of variable names 
[with and without indicies]
  * Supports a maximum length of array indicies
  * Supports a maximum length of variable values
  * Supports a maximum depth of arrays
  * Allows only a configurable number of uploaded files
  * Supports verification of uploaded files through an external script
  * Supports automatic b

Re: [PHP] Strange error in PHP/MySQL

2006-10-02 Thread Dave Goodchild

Do you have the Host field set to unique?








--
http://www.web-buddha.co.uk
http://www.projectkarma.co.uk


RE: [PHP] Strange error in PHP/MySQL

2006-10-02 Thread Brad Fuller
>  if (mysql_query($sqlInsertUser, $conn))
>   $messagesqlInsertUser = 'Success...';
>  else
>   $messagesqlInsertUser = 'Error: ' . mysql_error();
>  $result = mysql_query($sqlInsertUser);

I see this being executed twice. -> mysql_query($sqlInsertUser);  I
believe that is your problem.  Change the above code to look like this.

$result = mysql_query($sqlInsertUser);

if($result){
$messagesqlInsertUser = 'Success...';
}else{
$messagesqlInsertUser = 'Error: ' . mysql_error();
}

Cheers,

Brad

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] alternatively

2006-10-02 Thread Jochem Maas
David Tulloh wrote:
> Ross wrote:
>> How can I get this line to work
>>
>> $mail_body .= "> sans-serif\"> Title: $row['title'] ";
>>
>> The $row['title'] variable is the problem.
> 
> Drop the quotes when you are inside a quoted string.
> $mail_body .= "... Title: $row[title] ";

does that actually work? not that I care - I still consider it wrong.
there are 2 proper ways to do it:

1. interpolation with curly braces:

$x = "...Title: {$row['title']} bla bla";

2. break out of the string:

$x = "...Title: ".$row['title']." bla bla";

as to the religious war over which of the 2 is 'better', grab a gun and
pick a side.

> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WebMail client

2006-10-02 Thread Jim Jagielski

www.telaen.org

On Oct 2, 2006, at 4:30 AM, Peter Lauri wrote:


Hi,



Do you have any suggestion on WebMail clients written in PHP that  
is good

and easy to install?



Horde IMP and SquirrelMail is two that I found.



Are there any AJAX supporting client?



/Peter





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP 5, PDO in debian

2006-10-02 Thread Martin Marques

On Mon, 2 Oct 2006, David Tulloh wrote:


Martin Marques wrote:

Does anyone have an idea on when PDO is going to be available in Debian?



not a clue...
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=348882


Saw that already yesterday, but it's from the begining of this year. It's 
so frustrating.


--
 21:50:04 up 2 days,  9:07,  0 users,  load average: 0.92, 0.37, 0.18
-
Lic. Martín Marqués |   SELECT 'mmarques' ||
Centro de Telemática|   '@' || 'unl.edu.ar';
Universidad Nacional|   DBA, Programador,
del Litoral |   Administrador
-
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread Brad Bonkoski

Ross wrote:
 $mail_body .= "sans-serif\"> stripslashes($mail_text) ";


this just returns

{stripslashes(it\'s

a


testss}

  

$mail_body .=" ".stripslashes($mail_text)." ";

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP 5, PDO in debian

2006-10-02 Thread David Tulloh
Martin Marques wrote:
> Does anyone have an idea on when PDO is going to be available in Debian?
> 

not a clue...
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=348882

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP 5, PDO in debian

2006-10-02 Thread Martin Marques

Does anyone have an idea on when PDO is going to be available in Debian?

--
 21:50:04 up 2 days,  9:07,  0 users,  load average: 0.92, 0.37, 0.18
-
Lic. Martín Marqués |   SELECT 'mmarques' ||
Centro de Telemática|   '@' || 'unl.edu.ar';
Universidad Nacional|   DBA, Programador,
del Litoral |   Administrador
-
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Client Computer Registration

2006-10-02 Thread Rahul S. Johari

Ave,

Yes I doubted MAC address could be recorded so easily, and I highly doubted
Key.Com's application had anything to do with a MAC Address.

If it's Cookie-Based, then in my opinion it's more of a 'show' then any
actual, vital security implementation. I have everything from Cookies, IP
Filter, SSL (https) to secure database-enabled user/pass authentication
going on. 

I was curious to know what Key.Com was exactly doing Maybe something I
missed I was curious to know how they were identifying each individual
computer? What they were recording (or storing) to differentiate and thus
uniquely id a computer.

Thanks for your response.


On 10/2/06 8:23 AM, "Stut" <[EMAIL PROTECTED]> wrote:

> Rahul S. Johari wrote:
>> I saw this at the Key.Com website for Keybank Customers. When you go to
>> their website to login to view your account, they ask you to register your
>> computer for the first time. Once your computer is registered, you can
>> access the account using that computer. You can choose to Not register that
>> computer and you won¹t be able to access the account using that computer in
>> future. 
>> 
>> What exactly are they doing?
>>   
> It's almost certainly cookie-based.
>> Can PHP record the MAC Address of the NIC in the computer? Or are they just
>>   
> PHP cannot access this information without using a client-side
> technology such as ActiveX.
>> recording the IP and creating an IP based filteration?
>>   
> This would be unreliable at best so I doubt they would be using this method.
>> I¹m looking to implement a similar security system for one of my
>> applications.
>> 
>> Any advice?
> There are many ways to attempt to do this, but bear in mind the
> fundamental fact that nothing that comes from the client-side is
> reliable. Anything you store there can be comprimised and should not be
> used to bypass security checks if security is at all important in your
> application.
> 
> -Stut

Rahul S. Johari
Supervisor, Internet & Administration
Informed Marketing Services Inc.
500 Federal Street, Suite 201
Troy NY 12180

Tel: (518) 687-6700 x154
Fax: (518) 687-6799
Email: [EMAIL PROTECTED]
http://www.informed-sources.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] alternatively

2006-10-02 Thread David Tulloh
Ross wrote:
> How can I get this line to work
> 
> $mail_body .= " sans-serif\"> Title: $row['title'] ";
> 
> The $row['title'] variable is the problem.

Drop the quotes when you are inside a quoted string.
$mail_body .= "... Title: $row[title] ";

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Client Computer Registration

2006-10-02 Thread Stut

Rahul S. Johari wrote:

I saw this at the Key.Com website for Keybank Customers. When you go to
their website to login to view your account, they ask you to register your
computer for the first time. Once your computer is registered, you can
access the account using that computer. You can choose to Not register that
computer and you won¹t be able to access the account using that computer in
future. 


What exactly are they doing?
  

It's almost certainly cookie-based.

Can PHP record the MAC Address of the NIC in the computer? Or are they just
  
PHP cannot access this information without using a client-side 
technology such as ActiveX.

recording the IP and creating an IP based filteration?
  

This would be unreliable at best so I doubt they would be using this method.

I¹m looking to implement a similar security system for one of my
applications.

Any advice?
There are many ways to attempt to do this, but bear in mind the 
fundamental fact that nothing that comes from the client-side is 
reliable. Anything you store there can be comprimised and should not be 
used to bypass security checks if security is at all important in your 
application.


-Stut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] a function for retuned vatiable

2006-10-02 Thread David Tulloh
extract() - http://www.php.net/extract - does what you are after.

However often it's easier to handle the array as you have a better idea
of what variables are available, particularily if you are working with
multiple tables.

Ross wrote:
> What I need is a quick way to assign variable names to the same value of the 
> row name.
> 
> example..
> 
> $query= "SELECT * from $table_name WHERE sname=='hulford'";
> 
>   $result = mysql_query($query) or die('Error, query failed');
>  while ($row=mysql_fetch_array($result)) {
> 
> 
> $email = $row['email'];
> $name=$row['name'];
> $address = $row['address'];
> 
> //this goes on for 30 fields is there a way to automate this?
> 
> 
> } 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: newbie php tutorial question

2006-10-02 Thread zerof

srdaniel escreveu:

I setup Apache 2.2.3.0 and PHP 5.1.6.6.

When I run this PHP file:



 
  PHP Test
 
 
 Hello World'; ?>
 



-
Start here:
http://www.educar.pro.br/
-
zerof

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] a function for retuned vatiable

2006-10-02 Thread Peter Lauri
Not actually sure what you want, but this might do it :)

$j = 0;

While($Row = mysql_fetch_array($Result)) {
$email[$j] = $Row['email'];
...
...
$j++;
}

-Original Message-
From: Ross [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 02, 2006 7:09 PM
To: php-general@lists.php.net
Subject: [PHP] a function for retuned vatiable

What I need is a quick way to assign variable names to the same value of the

row name.

example..

$query= "SELECT * from $table_name WHERE sname=='hulford'";

  $result = mysql_query($query) or die('Error, query failed');
 while ($row=mysql_fetch_array($result)) {


$email = $row['email'];
$name=$row['name'];
$address = $row['address'];

//this goes on for 30 fields is there a way to automate this?


} 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] a function for retuned vatiable

2006-10-02 Thread Jochem Maas
Ross wrote:
> What I need is a quick way to assign variable names to the same value of the 
> row name.
> 
> example..
> 
> $query= "SELECT * from $table_name WHERE sname=='hulford'";
> 
>   $result = mysql_query($query) or die('Error, query failed');
>  while ($row=mysql_fetch_array($result)) {
> 
> 
> $email = $row['email'];
> $name=$row['name'];
> $address = $row['address'];
> 
> //this goes on for 30 fields is there a way to automate this?

extract($row);

// OR

foreach ($row as $k =. $v) $$k = $v;

// OR just use $row['email'] etc. i.e. why make another copy of
each piece of data?

> 
> 
> } 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Client Computer Registration

2006-10-02 Thread Rahul S. Johari
Ave,

I saw this at the Key.Com website for Keybank Customers. When you go to
their website to login to view your account, they ask you to register your
computer for the first time. Once your computer is registered, you can
access the account using that computer. You can choose to Not register that
computer and you won¹t be able to access the account using that computer in
future. 

What exactly are they doing?
Can PHP record the MAC Address of the NIC in the computer? Or are they just
recording the IP and creating an IP based filteration?

I¹m looking to implement a similar security system for one of my
applications. 

Any advice?

Rahul S. Johari
Supervisor, Internet & Administration
Informed Marketing Services Inc.
500 Federal Street, Suite 201
Troy NY 12180

Tel: (518) 687-6700 x154
Fax: (518) 687-6799
Email: [EMAIL PROTECTED]
http://www.informed-sources.com



[PHP] a function for retuned vatiable

2006-10-02 Thread Ross
What I need is a quick way to assign variable names to the same value of the 
row name.

example..

$query= "SELECT * from $table_name WHERE sname=='hulford'";

  $result = mysql_query($query) or die('Error, query failed');
 while ($row=mysql_fetch_array($result)) {


$email = $row['email'];
$name=$row['name'];
$address = $row['address'];

//this goes on for 30 fields is there a way to automate this?


} 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Re: Re: Frustrated trying to get help from your site

2006-10-02 Thread Michelle Konzack
Am 2006-09-27 17:39:25, schrieb David Robley:

> 88 tons!! Point us to an image of that please.

Currently not availlable but it is an ex Pershing II Transporter
from the US-Army manufactured by the german Enterprise MAN.

Greetings
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
# Debian GNU/Linux Consultant #
Michelle Konzack   Apt. 917  ICQ #328449886
   50, rue de Soultz MSM LinuxMichi
0033/6/6192519367100 Strasbourg/France   IRC #Debian (irc.icq.com)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WebMail client

2006-10-02 Thread Martin Marques

On Mon, 2 Oct 2006, Peter Lauri wrote:


Are there any AJAX supporting client?


RoundCube webmail, but it's in development still.

--
 21:50:04 up 2 days,  9:07,  0 users,  load average: 0.92, 0.37, 0.18
-
Lic. Martín Marqués |   SELECT 'mmarques' ||
Centro de Telemática|   '@' || 'unl.edu.ar';
Universidad Nacional|   DBA, Programador,
del Litoral |   Administrador
-
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: WebMail client

2006-10-02 Thread Man-wai Chang
> Do you have any suggestion on WebMail clients written in PHP that is good
> and easy to install?

do a search in http://freshmeat.net

-- 
  .~.   Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
 / v \  Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.06)  Linux 2.6.18
  ^ ^   18:53:01 up 11 days 21:18 0 users load average: 1.00 1.00 1.00
news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WebMail client

2006-10-02 Thread Jyrki Laurila

http://lists.roundcube.net/

On 10/2/06, Google Kreme <[EMAIL PROTECTED]> wrote:

On 02 Oct 2006, at 02:57 , Jyrki Laurila wrote:
> http://www.roundcube.net/

That's pretty nice.  Is there a mailing list for it?

--
You know, in a world in which Bush and Blair can be nominated for the
Nobel Peace Prize, "for having dared to take the necessary decision
to launch a war on Iraq without having the support of the UN" I find
myself agreeing with Tom Lehrer: satire is dead. - Neil Gaiman

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WebMail client

2006-10-02 Thread Google Kreme

On 02 Oct 2006, at 02:57 , Jyrki Laurila wrote:

http://www.roundcube.net/


That's pretty nice.  Is there a mailing list for it?

--  
You know, in a world in which Bush and Blair can be nominated for the  
Nobel Peace Prize, "for having dared to take the necessary decision  
to launch a war on Iraq without having the support of the UN" I find  
myself agreeing with Tom Lehrer: satire is dead. - Neil Gaiman


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WebMail client

2006-10-02 Thread Børge Holen
openwebmail. a slimlined and easy goin' without hassle

On Monday 02 October 2006 10:30, Peter Lauri wrote:
> Hi,
>
>
>
> Do you have any suggestion on WebMail clients written in PHP that is good
> and easy to install?
>
>
>
> Horde IMP and SquirrelMail is two that I found.
>
>
>
> Are there any AJAX supporting client?
>
>
>
> /Peter

-- 
---
Børge
Kennel Arivene 
http://www.arivene.net
---

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WebMail client

2006-10-02 Thread clive

Peter Lauri wrote:

Hi,

 


Do you have any suggestion on WebMail clients written in PHP that is good
and easy to install?

 

Horde IMP and SquirrelMail is two that I found. 

 


Are there any AJAX supporting client?
  

roundcube
 


/Peter

 



  



--
Regards,

Clive

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WebMail client

2006-10-02 Thread Jyrki Laurila

http://www.roundcube.net/

On 10/2/06, Peter Lauri <[EMAIL PROTECTED]> wrote:

Hi,



Do you have any suggestion on WebMail clients written in PHP that is good
and easy to install?



Horde IMP and SquirrelMail is two that I found.



Are there any AJAX supporting client?



/Peter







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] WebMail client

2006-10-02 Thread Peter Lauri
Hi,

 

Do you have any suggestion on WebMail clients written in PHP that is good
and easy to install?

 

Horde IMP and SquirrelMail is two that I found. 

 

Are there any AJAX supporting client?

 

/Peter

 



Re: [PHP] newbie php tutorial question

2006-10-02 Thread Satyam
Is the code in a file with a .php extension?  Is that extension configured 
to be processed by the PHP interpreter?  Are you requesting the page via the 
web server or just double clicking on the file and viewing it locally?


Your output is what the code would show in a browser without passing through 
the PHP interpreter.  Browsers ignore what they don't understand, thus, they 
ignore the  in the .  From 
then on, it assumes the rest of the line as plain text, except for the  
which it renders as a new paragraph .  It probably didn't get the opening 
, since it probably assumed the > was the closing bracket for the but browsers are designed to carry on and assume things that might be 
missing so a  would make it assume there was a  somewhere.


Satyam

- Original Message - 
From: "Stut" <[EMAIL PROTECTED]>

To: "srdaniel" <[EMAIL PROTECTED]>
Cc: 
Sent: Sunday, October 01, 2006 10:49 PM
Subject: Re: [PHP] newbie php tutorial question



srdaniel wrote:

I setup Apache 2.2.3.0 and PHP 5.1.6.6.

When I run this PHP file:



 
  PHP Test
 
 
 Hello World'; ?>
 



Any ideas why I get this for output?


Hello World

'; ?>



Apache has not been set up correctly to run this file as PHP. Have a
look at the installation section of the PHP manual - odds are you'll
find the answer there: http://php.net/install

-Stut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] array size in bytes

2006-10-02 Thread Roman Rumisek
Hi, 

Exists in PHP function returning array size in bytes ?
(For saving array into shared memory without serialize.)

Thnx. Roman

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Hotmail and junk mail

2006-10-02 Thread J R

if i get you right. your email to hotmail goes to junk/spam mail?

i think i encounter this way way back when our email domain got listed into
spam emailer :D

so better check if your domain is on that list. i forgot what was the URL.

anyway just an idea.


hth,
John

On 10/2/06, Stefan van der Linden <[EMAIL PROTECTED]> wrote:


>hello every one :)
>
>what ever i do emails i sent got in the junk mail
>
>i fixed the header
>add spf record to the domain
>using mail server with specific IP
>fix all dns error
>
>nothing work
>
>any one get it correct ?

Can you please be more specific by giving the headers you use?

Regards,
Stefan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
GMail Rocks!!!