RE: [PHP] RegExp for preg_split()

2006-04-29 Thread Weber Sites LTD
Thanks,

But this example seems to be short and does the job :

?php
$String='this is a test expression for search input';
$MyRegEx = '/[^]+|[^\s,]+/';
preg_match_all($MyRegEx, $String, $Tokens);  
?

Unless I'm missing something?

thanks

-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 29, 2006 10:29 AM
To: Weber Sites LTD
Cc: php-general@lists.php.net
Subject: Re: [PHP] RegExp for preg_split()

On Fri, April 28, 2006 11:16 am, Weber Sites LTD wrote:
 I'm looking for the RegExp that will split a search string into search 
 keywords.
 while taking   into account.

 From what I managed to find I can get all of the words into an array 
 but I would like all of the words inside   to be in the same array 
 cell.

I'd be pretty surprised if searching for things like:
PHP simple search input quotes
and things like that didn't turn up some solutions...

You might have to search in specific forums rather than a general Google,
but.

Here's one crude solution though:

?php
$input = 'this is a test expression for search input'; //remove duplicate
spaces:
$input = preg_replace('/\\s+/', ' ', $input); //ignore leading/trailing
blanks:
$input = trim($input);
$parts = explode('', $input);
$terms = array();
$in_quotes = false;
foreach($parts as $expression){
  $expression = trim($expression); //probably not needed...
  if (strlen($expression)){
if (!$in_quotes){
  //individual words:
  $words = explode(' ', $expression);
  $terms = array_merge($terms, $words);
}
else{
  //in quotes, so this is a search term:
  $terms[] = $expression;
}
  }
  $in_quotes = !$in_quotes;
}
var_dump($terms);
?

Note that invalid input such as unbalanced quote marks will mess this up
big-time, probably...

But maybe that's just as well...

--
Like Music?
http://l-i-e.com/artists.htm

--
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] RegExp for preg_split()

2006-04-28 Thread Weber Sites LTD
Hi
 
I'm looking for the RegExp that will split a search string into search
keywords.
while taking   into account.
 
From what I managed to find I can get all of the words into an array but I
would 
like all of the words inside   to be in the same array cell.
 
NE1?
 
thanks
 
berber


RE: [PHP] RegExp for preg_split()

2006-04-28 Thread Weber Sites LTD
This is part of what I need.
You found all of the phrases (e.g. all of the strings inside  )
But I also need all of the words that are not inside  .

thanks 

-Original Message-
From: tedd [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 28, 2006 6:46 PM
To: Weber Sites LTD; php-general@lists.php.net
Subject: Re: [PHP] RegExp for preg_split()

At 6:16 PM +0200 4/28/06, Weber Sites LTD wrote:
Hi

I'm looking for the RegExp that will split a search string into search 
keywords.
while taking   into account.

From what I managed to find I can get all of the words into an array 
but I would like all of the words inside   to be in the same array 
cell.

NE1?

thanks

berber

berber:

Not knowing exactly what you want, this will sort out the phrase strings.

$string = 'Medaillons, Listels, custom stuff, more things, entryway,
accents, showplace'; echo($string br/); preg_match_all ('/.*?/',
$string, $matchs); foreach($matchs[0] as $matchs)
{
echo($matchs br/);
}

HTH's

tedd
--


http://sperling.com

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



RE: [PHP] New Help with Javascript Navigation

2006-04-27 Thread Weber Sites LTD
I know I'm going to get heat for this example 
So cool down, it's just an example :)

Do you mean something like : 
http://msdn.microsoft.com/msdntv/episode.aspx?xml=episodes/en/20060119AtlasN
K/manifest.xml 
Only for PHP?

berber 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 26, 2006 11:37 PM
To: php-general@lists.php.net
Subject: Re: [PHP] New Help with Javascript Navigation

At 01:36 PM 4/26/2006, Warren Vail wrote:
PHP appears to me to be incomplete unless it can provide a way to provide
client (browser) side executables in a consistent language, namely PHP.
Developers get all excited about the elegence of the PHP language, and
somewhere along the way they discover they have been sandbagged (they have
to learn Javascipt too, if they want responsive GUI's).

One solution would be to develop a PHP Plugin and support that for all the
browsers out there, but another just occurred to me.  What if there was a
function that accepted PHP code as input and tranlated it to Javascript,
returning the resulting text ready for imbedding in html?


Nice idea, although sandbagged sounds like an exageration: becoming fluent
in both PHP  JavaScript is hardly a major life challenge.  When I finally
learned PHP I was delighted at how syntactically similar it was to
JavaScript, compared say to the difference between JavaScript  VBscript. 
Perhaps my most common mistake in writing in both PH  JS is that I tend to
use . as a concatenation operator in JavaScript these days...


At 02:16 PM 4/26/2006, Evan Priestley wrote:
No, I'm saying that Javascript can't read or write files on the client's
machine, and that this is only one of a large number of basic limitations in
the language's capabilities. It would be possible to write a script which
took $a = 3 and converted it into var a = 3, but a huge number of PHP
functions either can't be implemented in Javascript (file_get_contents) or
are fundamentally unsafe to implement in Javascript (mysql_query), so you'd
end up with a language you couldn't do anything with.

To the contrary, client-side PHP would simply be a different environment
from server-side PHP -- of course certain functions wouldn't apply and
others would that aren't relevant to server-side PHP, but that's not rocket
science.  The point would be to use the same syntax in both contexts.


Relevant to this discussion, there is a set of PHP DOM functions (native to
the core) that look like they match with the corresponding JavaScript
functions pretty closely:
http://php.net/dom
I haven't used them yet, but the function names look familiar.

The way I might implement such a PHP-JavaScript translation might look like
this:

script type=text/javascript
src=phpToJavaScript.php?src=myscript.php/script

where phpToJavaScript.php is the translation program and myscript.php is the
client-side PHP script to be translated to JavaScript.

Paul

--
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] PHP Script to open phpBB2 accounts

2006-04-23 Thread Weber Sites LTD
I'm happy to say that the sites now work both ways.
A user opens an account on WeberDev and an account
Will be opened on WeberForums and vice versa.

A password or email update on one site will trigger
An update on the other.

The code for the accounts on phpBB2 are at :
http://www.weberdev.com/get_example-4383.html

Thanks
berber 

-Original Message-
From: Gerr D [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 22, 2006 8:51 PM
To: [EMAIL PROTECTED]
Cc: Weber Sites LTD; php-general@lists.php.net
Subject: Re: [PHP] PHP Script to open phpBB2 accounts

Richard,

On 4/20/06, Richard Lynch [EMAIL PROTECTED] wrote:

 Or perhaps you believe you have already completely mined out those 
 resources, and PHP-General was your last resort.

 Which is fine, but that should have been in your original post.

Are you implying this list is intended to be a last resort resource?
That seems a shame, considering the talent I've seen here.

 You cannot possibly be the first (or last) developer to want this 
 feature...

I would like it too. ;)

 I'm guessing that a lot of the noise here is that most posters firmly 
 believe that your phpBB solution is out there and you just need to 
 find it, somewhere in phpBB sites.

I'm guessing that most posters indeed believe that, because if you think
about it, it's logical and as such, someone would have already created a
solution. Yet believing that and sending someone off to go look somewhere
demonstrates that nobody has actually seen the solution... Otherwise why
not share it?

Gerry

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



RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-21 Thread Weber Sites LTD
No words... Just :) 

-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 21, 2006 2:48 AM
To: John Nichel
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP Script to open phpBB2 accounts

[some SERIOUS text-deleting happened here...]

On Thu, April 20, 2006 8:08 am, John Nichel wrote:
 Weber Sites LTD wrote:
 I have been on this list since 1998. Looking at some of the

 '98
 you
 say?  Well, I don't remember you, but one would think being a part of

I do.

He posted an answer link for almost every question to weberdev almost as
often as Manuel posted an answer link to phpclasses.

:-) :-) :-)

Honestly, I think they're both fine sites that fulfill a need, and they both
backed off on the self-promotion posting as the sites matured, and that's a
fine thing.

And we ALL tend to get a bit trigger-happy on the RTFM and so forth,
especially after a nice big fire-storm like we've just had.  That's just how
it goes. Human nature. [shrug]

Disclaimer:
This post was just good-natured ribbing

I believe *I* may actually hold the Title to Most OT/Bad Posts to
PHP-General to this day. :-)

H.  Wonder if I could wrangle that into an all-expenses-covered Topic at
some PHP Conference.  Yeah, right. :-v

--
Like Music?
http://l-i-e.com/artists.htm

--
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] PHP error log

2006-04-20 Thread Weber Sites LTD
Hi

I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written to
file.
I can see all of the direct errors but when I have an error inside an
include
file the script fails and the error is not shown in the log. I have to
guess 
Where the error is.

Any idea what I'm missing.

Thanks
Berber

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



RE: [PHP] POST arrays?

2006-04-20 Thread Weber Sites LTD
Have a look at :
http://www.weberdev.com/AdvancedSearch.php?searchtype=titlesearch=serializ

berber 

-Original Message-
From: William Stokes [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 20, 2006 1:17 PM
To: php-general@lists.php.net
Subject: Re: [PHP] POST arrays?

Can someone help me to get started with serializing? I think I did'nt quite
understand the manual here...

How to post to $PHP_SELF and read this simple array?

?
//print the posted array here
print_r($arr_siirt_jouk);

//create the array and post it in another name $arr_siirto = array(1,2,3);
input type=hidden name=arr_siirt_jouk value=?php echo
$arr_siirto;? ?


I tried:

?
//print the posted array here
unserialize($arr_siirt_jouk);
print_r($arr_siirt_jouk);

//create the array and post it in another name
$arr_siirto = array((serialize('1','2','3'));
input type=hidden name=arr_siirt_jouk value=?php echo 
$arr_siirto;?
?

Which, to my great surprice, didn't work :)


Thanks
-Will


Barry [EMAIL PROTECTED] kirjoitti 
viestissה:[EMAIL PROTECTED]
 William Stokes wrote:
 No other way?



 Over sessions or saving as file and loading it in the following page.

 -- 
 Smileys rule (cX.x)C --o(^_^o)
 Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) 

-- 
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] PHP Script to open phpBB2 accounts

2006-04-20 Thread Weber Sites LTD
When you go to http://www.weberdev.com you need to create an account
For some of the options. IF you go to http://www.weberforums.com you
Need to create a 2nd account cause there is no connection between
The two sites.

I'm looking for a script (I found something on phpbb.com but it's not
Working very well) that will save the users the need to open two
Account.

Thanks. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 9:41 PM
To: php-general@lists.php.net
Subject: Re: [PHP] PHP Script to open phpBB2 accounts

For the purpose of creating phpBB accounts?  As in, automated creation of
mass amounts of phpBB accounts maybe for the purpose of spamming phpBB's?

Just curious. Please clarify the need to automate creation of phpBB accounts
if that's what you're asking for.

-TG

= = = Original message = = =

I'm looking for a ready made php script that can open phpBB 2.0.20 accounts
By sending username, email and password.

NE!?

Thanks

berber


___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

--
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] PHP Script to open phpBB2 accounts

2006-04-20 Thread Weber Sites LTD
Google was the 1st place I looked.

I have been on this list since 1998. Looking at some of the 
answers on this list lately it must be a real disappointment for 
many people. There are many people that like to help but then 
there are those that just love to open the joke threads.

If everything is on Google, what do we need this list for?
If you don't have anything better to write, why don't you
Save us all the BW? I can find cool jokes on Google too...

-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 9:39 PM
To: Weber Sites LTD; php-general@lists.php.net
Subject: RE: [PHP] PHP Script to open phpBB2 accounts

[snip]
I'm looking for a ready made php script that can open phpBB 2.0.20 accounts
By sending username, email and password.
{/snip]

I am looking for a good hearted woman who likes to dance. I used Google.

--
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] PHP Script to open phpBB2 accounts

2006-04-20 Thread Weber Sites LTD
Not exactly, we are talking about two different sites with two different
Databases. Each site has it's own userbase and authentication will
Still be against the respected DB. I just want the account to be ready
For the user if he already opened it.

Obviously I can reverse engineer the phpBB2 code but that would be
A hard and long task since it's allot of code in allot of files.

If I don't have any other option I will probably do it but isn't the idea
To reuse code? If someone already wrote a script that does exactly
That, and is willing to share it, it will save me much time I can spend
doing other things on WeberDev.com. There are thousands of code
Examples on WeberDev, and they save allot of time to allot of people.
I was hoping someone could save me the time...

Btw, did you mean four spring duck technique or four sprung duck
technique ?

Thanks
berber
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 20, 2006 2:09 PM
To: Weber Sites LTD
Cc: [EMAIL PROTECTED]; php-general@lists.php.net
Subject: Re: [PHP] PHP Script to open phpBB2 accounts

Weber Sites LTD wrote:

When you go to http://www.weberdev.com you need to create an account 
For some of the options. IF you go to http://www.weberforums.com you 
Need to create a 2nd account cause there is no connection between The 
two sites.

I'm looking for a script (I found something on phpbb.com but it's not 
Working very well) that will save the users the need to open two 
Account.
  


Maybe I'm just feeling grumpy this morning, but the solution here seems
obvious and your approach to finding a solution seems wrong.

My solution would be... All user registrations end up in the phpBB database.
All user logins authenticate against said database.

My method for working our how would be... the phpBB code, seeing as how it
does this already, is an ideal place to look for the code required to do
this is it not? Additionally, failing that, surely their support resources
are probably a better place to seek help for this 'problem' 
than here. I'm sure they get this question regularly.

Oh, and if you want jokes, try Googling for four spring duck technique.
Gave me a chuckly this morning.

Yours grumpily,
-Stut

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



RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Weber Sites LTD
Notice that instead of helping, you too, are telling me
to go look for a PHP script somewhere else than the
PHP mailing list where so many php people that may
Have used php to write this script are reading. Why
Is that?

It's not about being overly sensitive, it's about 
The kind of answers that create a negative atmosphere.
If it's just me thinking like that... Forget it. But the
Answers I saw here lately are plain rude.

Btw, http://www.weberdev.com does that ring a bell?
Has been online since April 1998 holding tons
Of php material for anyone looking for it.


berber

 

-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 20, 2006 3:08 PM
To: php-general@lists.php.net
Subject: Re: [PHP] PHP Script to open phpBB2 accounts

Weber Sites LTD wrote:
 Google was the 1st place I looked.

Maybe the phpBB site/forums would have been a better choice.

 I have been on this list since 1998. Looking at some of the answers on 
 this list lately it must be a real disappointment for many people. 
 There are many people that like to help but then there are those that 
 just love to open the joke threads.

Oh good lawd.  Has everyone gotten overly sensitive these days?  '98 you
say?  Well, I don't remember you, but one would think being a part of a
mailing list that long would have given you tougher skin (not to mention
avoiding top posting (flame away boys)).

 If everything is on Google, what do we need this list for?
 If you don't have anything better to write, why don't you Save us all 
 the BW? I can find cool jokes on Google too...
 

Your time on the soapbox is up.

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

--
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] PHP Script to open phpBB2 accounts

2006-04-20 Thread Weber Sites LTD
Yes, both sites are on the same server but weberdev was built by me
And weberforums is phpBB2. No sense in writing my own forums application.

WeberDev is the main site and has it's own user base and phpBB2 is 
Pretty complex and I didn't have the time to create a single logon. It
Will not be trivial and will need to be maintained with every phpBB2 
Upgrade.

All I want is to open a phpBB account when someone opens one
On WeberDev.

I don't agree that php-general is the wrong place. I looked in the
phpBB forums for this and found something that doesn't currently
Work. On this list there are many php developers that use phpBB
So why not ask them if anyone already did what I did.

It's not like I'm asking anyone to do the work for me. I devoted
Years of my time on WeberDev for the PHP community (it's my
Hobby and not my main workplace) and all I asked was to know
If someone has created a specific PHP script. Btw, I got several
Off line emails asking me to share the solution if I get it.

Anyway, instead of all of these emails, I'll try to do it myself
And hope someone contacts me soon.

Thanks
berber

-Original Message-
From: Stut [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 20, 2006 3:12 PM
To: Weber Sites LTD
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP Script to open phpBB2 accounts

Weber Sites LTD wrote:

Not exactly, we are talking about two different sites with two 
different Databases. Each site has it's own userbase and authentication 
will Still be against the respected DB. I just want the account to be 
ready For the user if he already opened it.
  


Are both sites on the same host using the same database server? If so why
cause the extra work or duplicating the login details?

Obviously I can reverse engineer the phpBB2 code but that would be A 
hard and long task since it's allot of code in allot of files.
If I don't have any other option I will probably do it but isn't the 
idea To reuse code? If someone already wrote a script that does exactly 
That, and is willing to share it, it will save me much time I can spend 
doing other things on WeberDev.com. There are thousands of code 
Examples on WeberDev, and they save allot of time to allot of people.
I was hoping someone could save me the time...
  


That's fair enough, and I agree that code reuse is good - I publish a fair
amount myself. However, the correct place to ask for a solution to a
phpBB-specific problem would be the phpBB community not the general PHP
community. Or am I still high on session?

Btw, did you mean four spring duck technique or four sprung duck 
technique ?
  


Either should work.

-Stut

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



RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Weber Sites LTD
Hi

My 1st thought was to look at the mysql query log and see what it takes
To create a user. After looking at the set of queries I understood that I
Didn't want to go directly to the DB and bypass the phpBB logic.

I managed to find a script that uses the minimum phpBB internal
functions to create a user. After some more fixing it actually
Opens a user so if anyone needs it :

http://www.weberdev.com/get_example-4383.html

I'm still working on it but the current version works.

Thanks.

berber



-Original Message-
From: Wolf [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 20, 2006 4:00 PM
To: Weber Sites LTD
Cc: 'Stut'; php-general@lists.php.net
Subject: Re: [PHP] PHP Script to open phpBB2 accounts

OK, so maybe this just seems moot, but...

Weber Sites LTD wrote:
 Yes, both sites are on the same server but weberdev was built by me 
 And weberforums is phpBB2. No sense in writing my own forums application.
Same server means you can look at the database

 WeberDev is the main site and has it's own user base and phpBB2 is 
 Pretty complex and I didn't have the time to create a single logon. It 
 Will not be trivial and will need to be maintained with every phpBB2 
 Upgrade.

Yeah, I don't see a problem with that one..

 All I want is to open a phpBB account when someone opens one On 
 WeberDev.

So, when you open a weberDev account, have your creation script go through
and load the phpBB Database set and run through the same user login
information, dumping it into the phpBB database fields itself.

frankly put, the install MySQL schema has:
# -- Users
INSERT INTO phpbb_users (user_id, username, user_level, user_regdate,
user_password, user_email, user_icq, user_website, user_occ, user_from,
user_interests, user_sig, user_viewemail, user_style, user_aim, user_yim,
user_msnm, user_posts, user_attachsig, user_allowsmile, user_allowhtml,
user_allowbbcode, user_allow_pm, user_notify_pm, user_allow_viewonline,
user_rank, user_avatar, user_lang, user_timezone, user_dateformat,
user_actkey, user_newpasswd, user_notify, user_active) VALUES ( -1,
'Anonymous', 0, 0, '', '', '', '', '', '', '', '', 0, NULL, '', '', '', 0,
0, 1, 1, 1, 0, 1, 1, NULL, '', '', 0, '', '', '', 0, 0);

# -- username: adminpassword: admin (change this or remove it once
everything is working!)
INSERT INTO phpbb_users (user_id, username, user_level, user_regdate,
user_password, user_email, user_icq, user_website, user_occ, user_from,
user_interests, user_sig, user_viewemail, user_style, user_aim, user_yim,
user_msnm, user_posts, user_attachsig, user_allowsmile, user_allowhtml,
user_allowbbcode, user_allow_pm, user_notify_pm, user_popup_pm,
user_allow_viewonline, user_rank, user_avatar, user_lang, user_timezone,
user_dateformat, user_actkey, user_newpasswd, user_notify, user_active)
VALUES ( 2, 'Admin', 1, 0, '21232f297a57a5a743894a0e4a801fc3',
'[EMAIL PROTECTED]', '', '', '', '', '', '', 1, 1, '', '', '', 1, 0, 1,
0, 1, 1, 1, 1, 1, 1, '', 'english', 0, 'd M Y h:i a', '', '', 0, 1);

So, using that information, make your weberdev connect to the phpBB database
(you have all that information already as you had to set it up), and use 1
script to make them both.

Wolf

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



RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Weber Sites LTD
As I said, I could but then I would be bypassing all of the phpBB logic
And chances are that I may miss something. 

-Original Message-
From: Jeremy Schreckhise [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 20, 2006 4:34 PM
To: 'John Nichel'; php-general@lists.php.net
Subject: RE: [PHP] PHP Script to open phpBB2 accounts

Why couldn't you use your login (weberdev).  I.E. when a user creates an
account you also push this data onto the phpBB2 db.  Find where phpBB is
creating a user, analyze the encryption method use, modify your login to
create both entries.


Jeremy Schreckhise 

-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 20, 2006 9:11 AM
To: php-general@lists.php.net
Subject: Re: [PHP] PHP Script to open phpBB2 accounts

Weber Sites LTD wrote:
 Yes, both sites are on the same server but weberdev was built by me 
 And weberforums is phpBB2. No sense in writing my own forums application.
 
 WeberDev is the main site and has it's own user base and phpBB2 is 
 Pretty complex and I didn't have the time to create a single logon. It 
 Will not be trivial and will need to be maintained with every phpBB2 
 Upgrade.
 
 All I want is to open a phpBB account when someone opens one On 
 WeberDev.
 
 I don't agree that php-general is the wrong place. I looked in the 
 phpBB forums for this and found something that doesn't currently Work.
 On this list there are many php developers that use phpBB So why not 
 ask them if anyone already did what I did.

Just looked?  You could have asked.  Wrong/right isn't the proper term. 
  phpBB forums are the *best* place to find answers about phpBB.

 It's not like I'm asking anyone to do the work for me. I devoted Years 
 of my time on WeberDev for the PHP community (it's my Hobby and not my 
 main workplace) and all I asked was to know If someone has created a 
 specific PHP script. Btw, I got several Off line emails asking me to 
 share the solution if I get it.
 
 Anyway, instead of all of these emails, I'll try to do it myself And 
 hope someone contacts me soon.
 

The solution is really quite simple.  You have two choices to maintain the
phpBB code base.  1)  Rewrite your login to use the phpBB user accounts, or
2)  keep both sets of user tables, and write a few functions to call both
the phpBB and your user handling code when they're needed.

--
John C. Nichel IV (is going to start plonking top posters) Programmer/System
Admin (ÜberGeek) Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

--
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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP error log

2006-04-20 Thread Weber Sites LTD
Actually I'm not looking for help with the code.
The problem is more of a principle problem.

Because I don't want users to see errors and warnings
When there is a problem all of the errors go to a log file
Instead of the standard output.

As long as the error (any error) occurs in the file I'm
Working on, I can see the error in the error log. If the
Error is in a file I include I don't see the error.

This is not something special for my system. I think
It's a definition in the php.ini to suppress errors to
Standard output and log them to a file instead. 

I have : 

error_reporting  = E_ALL|E_STRICT
display_errors = Off
display_startup_errors = Off
log_errors = On
track_errors = Off
error_log = /usr/local//logs/php_errors (the  Is not the real
path)
warn_plus_overloading = Off

Thanks



-Original Message-
From: Wolf [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 20, 2006 5:15 PM
To: Weber Sites LTD
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP error log

Run the include file separately and see if it produces an error.  Also make
sure that if you have short open tags=OFF that your include file uses
normal tags.

Code normally helps.

Wolf

Weber Sites LTD wrote:
 Hi
 
 I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written 
 to file.
 I can see all of the direct errors but when I have an error inside an 
 include file the script fails and the error is not shown in the log. I 
 have to guess
 Where the error is.
 
 Any idea what I'm missing.
 
 Thanks
 Berber
 

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



RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Weber Sites LTD
It's possible and I may do that however, weberdev, by far
Has much more traffic so it's the side that I want to start
With.

Thanks
berber 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 20, 2006 6:25 PM
To: php-general@lists.php.net
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] PHP Script to open phpBB2 accounts

The idea of creating a phpBB user when a weberdev one is created has merit,
but I'm not sure I saw anyone recommend doing the opposite?

Since you have a fair idea of how weberdev creates users (since you created
it) why not insert some PHP code into phpBB to create a weberdev account
when someone creates a phpBB account?

Or is that not possible.

-TG

___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

--
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] PHP Script to open phpBB2 accounts

2006-04-19 Thread Weber Sites LTD
I'm looking for a ready made php script that can open phpBB 2.0.20 accounts
By sending username, email and password.

NE!?

Thanks

berber

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



[PHP] OT - PHP Code Contest

2006-04-17 Thread Weber Sites LTD
Just wanted to refresh the memory of the veterans here and also let the new
people here know
that there is a monthly code contest going on since April 2004 with pretty
cool prizes from
relevant sponsors (Zend, NuSphere, TemplateMonster, php|architect, PHP
magazine and others).

The contest is held at : http://contest.weberdev.com. It's really simple and
is more an
incentive for everyone to contribute their code snippets, than a contest.

I hope to see more people contributing code examples.

Make sure you read the rules at : http://contest.weberdev.com/about.html

Thanks

berber

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



RE: [PHP] Including files from another site

2006-04-17 Thread Weber Sites LTD
I'm not sure I understand what you are trying to do.
What is the connection between frames and security?

In general, assuming that all users have access to 
The same scripts, you need to include in all of your
Scripts some kind of security logic that tells the
Script which user can do what.

Usually you would want to also allow group access
Rather then user access for easier maintenance.

You should keep a user table with user, password
And privileges. There are endless ways to do this
And you need to choose what is best for your site.

Have a look at some relevant code examples:
http://www.weberdev.com/AdvancedSearch.php?searchtype=titlesearch=auth 

berber 

-Original Message-
From: Shaun [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 12:46 PM
To: php-general@lists.php.net
Subject: [PHP] Including files from another site

Hi,

I have created a CMS where all sites on our server are administrated from
one central site, and HTML content is stored in the CMS database.

I want users to all control their sites database functions from the CMS
site, but I want to keep the database and database admin scripts in the
individual website account to keep things simple. So I need want to be able
to include these scripts within the CMS site but keep them secure. I have
tried using frames but I can't keep a session going in the database admin
scripts, is there a better way to do this?

Any advice would be greatly appreciated. 

--
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] Including files from another site

2006-04-17 Thread Weber Sites LTD
I think that you are looking at this from the wrong angle.
What you should do, is password protect all CMS directories
And then, anyone that needs access has to punch in a valid
Username and password. 

Have a look at : http://sourceforge.net/projects/modauthmysql/

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP  MySQL Forums : http://www.weberforums.com



-Original Message-
From: Shaun [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 2:52 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Including files from another site

Hi,

Thanks for your reply, sorry I should have been a little clearer in my
explanation. Here goes...

I have a dedicated UNIX server with many websites on it. On this server I
have also created a Content Management System which has a database which I
use to store HTML content for all the other websites. Each website has a
database connection to the CMS database to retrieve the HTML for its pages.

Each website that uses its own database has a folder called /cms and in here
I keep all the database admin scripts for that website. I want these pages
to only be accessible from within the CMS website and nothing else. So when
the user is in the CMS they can click on database admin and it will include
the pages in that websites /cms folder.

My Question is how can I ensure that the CMS is the only website that can
access these scripts securely?

Thanks for your advice.


Weber Sites LTD [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I'm not sure I understand what you are trying to do.
 What is the connection between frames and security?

 In general, assuming that all users have access to The same scripts, 
 you need to include in all of your Scripts some kind of security logic 
 that tells the Script which user can do what.

 Usually you would want to also allow group access Rather then user 
 access for easier maintenance.

 You should keep a user table with user, password And privileges. There 
 are endless ways to do this And you need to choose what is best for 
 your site.

 Have a look at some relevant code examples:
 http://www.weberdev.com/AdvancedSearch.php?searchtype=titlesearch=aut
 h

 berber

 -Original Message-
 From: Shaun [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 17, 2006 12:46 PM
 To: php-general@lists.php.net
 Subject: [PHP] Including files from another site

 Hi,

 I have created a CMS where all sites on our server are administrated 
 from one central site, and HTML content is stored in the CMS database.

 I want users to all control their sites database functions from the 
 CMS site, but I want to keep the database and database admin scripts 
 in the individual website account to keep things simple. So I need 
 want to be able to include these scripts within the CMS site but keep 
 them secure. I have tried using frames but I can't keep a session 
 going in the database admin scripts, is there a better way to do this?

 Any advice would be greatly appreciated.

 --
 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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Bar codes

2006-04-16 Thread Weber Sites LTD
Barcodes On The Fly With GD
http://www.weberdev.com/get_example-184.html 

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP  MySQL Forums : http://www.weberforums.com
Learn PHP  MySQL Playing Trivia : http://www.webertrivia.com
SEO Data Monitor http://seo.weberdev.com


-Original Message-
From: Emil Edeholt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 5:50 PM
To: php-general@lists.php.net
Subject: [PHP] Bar codes

Hi,

I've never used bar codes before. And now I need to print out bar codes, and
I've been told it should be in the format K39 Normal (I could have
misunderstood since I can't find that on google. Maybe Code 39 Normal?). 
Any idea how to find that bar code font or what it's called? And what shall
I use to print it out? Is it just as a regulat font, or do I need some
special bar code lib?

Thanks for your time

Best regards Emil

--
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] Word to txt

2006-03-29 Thread Weber Sites LTD
Try this : 

Class to convert any document, that can be read by MS Word, to another
format supported by Word.
http://www.weberdev.com/get_example-3211.html

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
SEO Data Monitor http://seo.weberdev.com
 

-Original Message-
From: Ministério Público [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 29, 2006 3:14 PM
To: php-general@lists.php.net
Subject: [PHP] Word to txt

I'd like to know if any of you know if I can and if I can how do I do to
transform a Word documento to txt with php.

What I'd like to do is offer the user in my site to upload a word file and
the script transforms the word to txt and saves to server, my site already
can receive txt.
Thanx to you all.

Rodrigo

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



RE: [PHP] Not sure if this is a php problem or a mysql problem

2006-03-29 Thread Weber Sites LTD
If you want to do it in PHP you can always do :

$Tomorrow = date( Y-m-d, strtotime (1 day ) ) ;

Or more general : http://www.weberdev.com/get_example-292.html

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
SEO Data Monitor http://seo.weberdev.com
 

-Original Message-
From: Paul Goepfert [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 29, 2006 2:20 AM
To: php-general@lists.php.net
Subject: [PHP] Not sure if this is a php problem or a mysql problem

Hi all,

I have developed a php functilon that is to return the date +1 from a Mysql
database.  My sql statement is as follows

SELECT dayNum FROM Days Where dayNum = day(curdate())+1;

The function works great on the intended webserver but when placed on a
different mysql server (The one I have using to develop the webpage) the
return variable with the intended SQL statement is not being set. 
I Think it has something to do with thlis day(curdate()) portion of my sql
statement.  When I had month in place of day I was able to ge a output.
I don't have a problem with year(curdate()) or month(curdate()).  Even
though the functilon works on the final destination webserver I would like
to know why it won't work on my testing server.

Thanks

Paul

--
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] Date addition problem

2006-03-29 Thread Weber Sites LTD
Date of today +1 .. +x days
http://www.weberdev.com/get_example-292.html

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
SEO Data Monitor http://seo.weberdev.com
 

-Original Message-
From: Adrian Bruce [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 29, 2006 2:52 PM
To: php-general@lists.php.net
Subject: [PHP] Date addition problem

Hi

I am having an unusual problem when trying to calculate dates in advance
from a start date.  the code below shows a loop where by on each run an
increasing number of weeks is added to the start date, this works as
expected up untill the 8th time where for some reason it produces
01-11-05 instead of 02-11-05.  I am at a loss as to why this would happen
when it works perfectly for all the other dates.  where am i going wrong?

[snip]

?php
echoh1 date test/h1;
$start = 05-09-07;
$start = explode('-',$start);
$startmk = mktime(0,0,0,$start[1],$start[2],$start[0]);
$startdate = date('d-m-y',$startmk);

for($i=0;$i10;$i++){
$nextdate = date('d-m-y',$startmk + ($i*604800));
echoh1$i:  $startdate -- -- --$nextdate/h1; }
?   

OUTPUT:

0: 07-09-05 -- -- --07-09-05
1: 07-09-05 -- -- --14-09-05
2: 07-09-05 -- -- --21-09-05
3: 07-09-05 -- -- --28-09-05
4: 07-09-05 -- -- --05-10-05
5: 07-09-05 -- -- --12-10-05
6: 07-09-05 -- -- --19-10-05
7: 07-09-05 -- -- --26-10-05
8: 07-09-05 -- -- --01-11-05
9: 07-09-05 -- -- --08-11-05

[/snip]

Thanks a lot

Ade

--
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] Why does this work on one server, but not another?

2006-03-23 Thread Weber Sites LTD
Are you escaping the image string before you insert it?

berber 

-Original Message-
From: tedd [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 23, 2006 7:48 PM
To: php-general@lists.php.net
Subject: [PHP] Why does this work on one server, but not another?

Hi gang:

I posted this question to a MySQL list, but apparently it stumped them. So,
I'll ask here:

On one server, the following code works without any problems whatsoever:

--- quote ---

$sqlString = INSERT INTO $dbtable (id, image_type, image_large,
image_small, image_width, image_height, image_name, image_size, date_time,
date_created ) VALUES ('', '{$type}', '{$image_large}', '{$image_small}',
'{$width}', '{$height}','{$name}', '{$size}', '{$date_time}',
'{$date_created}'); $result = mysql_query($sqlString)  or die(2. 
Error in query $sqlString  . mysql_error());

--- un-quote ---

However, on another server, it doesn't (remember the code is identical for
both).

I have looked at the PHP Info on both servers, the php versions are
different (4.3.10 v 4.4.2) but the mysql specifics are identical except the
version differs slightly (v 4.1.15 v 4.1.14).

A clue, on the server it chokes on, if I reduce the image size to 100 x 67
pixels, it will work. 
However, if the image is 150 x 100 pixels, or greater, it will crater.

The error message is:

2. Error in query INSERT INTO as_table2 (id, image_type, image_large,
image_small, image_width, image_height, image_name, image_size, date_time,
date_created ) VALUES ('', 'image/jpeg', 'ÿØÿà\0JFIF\
-snip- (the entire text file for the image) 'v_small.jpg', '32',
'2006-03-22 14:10:55',
'2006-03-22 14:10:55') You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right syntax to
use near
'ö~?L-?æÏôÏjâ?(xÏJ?÷ÝԔsíHñåE(?êÏØʍÜÁíÎkiË3¬4A''ÿ\0?Mm¿ä÷´?ÿ\0m
ÿ\0¿' 
at line 2

Any ideas?

Many thanks in advance.

tedd
--


http://sperling.com

--
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] Why does this work on one server, but not another?

2006-03-23 Thread Weber Sites LTD
As you can see in this article : http://www.weberdev.com/ViewArticle-3.html

$mysqlPicture = addslashes(fread(fopen($Picture, r), $PSize));

Then you insert  $mysqlPicture.

If your settings prevent automatic slashes by PHP then this will
Give the problem you see..

berber

-Original Message-
From: tedd [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 23, 2006 8:16 PM
To: php-general@lists.php.net; Weber Sites LTD
Subject: RE: [PHP] Why does this work on one server, but not another?

Are you escaping the image string before you insert it?

berber

berber:

Aaahh, no ?? Why is it going to attack me?

But seriously, it works on one server, why not the other?

On the other hand, it appears to object to something within the string -- so
that might be the problem. Please forgive my ignorance, but how would I
escape the image string -- do I use
dbx_escape_string() or would something else be better?

tedd


-Original Message-
From: tedd [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 23, 2006 7:48 PM
To: php-general@lists.php.net
Subject: [PHP] Why does this work on one server, but not another?

Hi gang:

I posted this question to a MySQL list, but apparently it stumped them. So,
I'll ask here:

On one server, the following code works without any problems whatsoever:

--- quote ---

$sqlString = INSERT INTO $dbtable (id, image_type, image_large,
image_small, image_width, image_height, image_name, image_size, date_time,
date_created ) VALUES ('', '{$type}', '{$image_large}', '{$image_small}',
'{$width}', '{$height}','{$name}', '{$size}', '{$date_time}',
'{$date_created}'); $result = mysql_query($sqlString)  or die(2.
Error in query $sqlString  . mysql_error());

--- un-quote ---

However, on another server, it doesn't (remember the code is identical for
both).

I have looked at the PHP Info on both servers, the php versions are
different (4.3.10 v 4.4.2) but the mysql specifics are identical except the
version differs slightly (v 4.1.15 v 4.1.14).

A clue, on the server it chokes on, if I reduce the image size to 100 x 67
pixels, it will work.
However, if the image is 150 x 100 pixels, or greater, it will crater.

The error message is:

2. Error in query INSERT INTO as_table2 (id, image_type, image_large,
image_small, image_width, image_height, image_name, image_size, date_time,
date_created ) VALUES ('', 'image/jpeg', 'ÿØÿà\0JFIF\
-snip- (the entire text file for the image) 'v_small.jpg', '32',
'2006-03-22 14:10:55',
'2006-03-22 14:10:55') You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right syntax
to
use near
'ö~?L-?æÏôÏjâ?(xÏJ?÷ÝԔsíHñåE(?êÏØʍÜÁíÎkiË3¬4A''ÿ\0?Mm¿ä÷´?ÿ\0
m
ÿ\0¿'
at line 2

Any ideas?

Many thanks in advance.

tedd
--
---
-

http://sperling.com

--
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


-- 


http://sperling.com

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



RE: [PHP] using DOM functions with embedded html / encoding

2006-03-21 Thread Weber Sites LTD
Not sure how to directly help but have a look at these code examples that
Use  createElement, maybe you can get the idea from that.

http://www.weberdev.com/AdvancedSearch.php?example=createElementsearchtype=
examplesort=submit_date+descsearch=category=date=page=1secondary=Sear
chIn=All+CategoriesPHPFunctions=onArticles=on 


Good luck :)

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP  MySQL Forums : http://www.weberforums.com
SEO Data Monitor http://seo.weberdev.com


-Original Message-
From: jonathan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 21, 2006 9:12 PM
To: php-general@lists.php.net
Subject: [PHP] using DOM functions with embedded html / encoding

I'm interested in creating an xml doc from my php5/mysql 4.1 app. I'm using
PHP's DOM functions to create the xml file.

Some of the text fields now have well-formed html embedded in them.  
When I do a $dom-createElement('item_name', $clean_slot), it encodes the
values to lt;bgt; for b.  How would I suppress this behavior.  
It doesn't look like there is any other variable I can pass to createElement
or to appendChild.

thanks,

jonathan

--
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] Invoices

2006-03-19 Thread Weber Sites LTD
Check out : http://www.sugarcrm.com/crm/

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP  MySQL Forums : http://www.weberforums.com
Search for PHP Code from your browser http://toolbar.weberdev.com 
Free Uptime Monitor : http://uptime.weberdev.com
SEO Data Monitor http://seo.weberdev.com
 

-Original Message-
From: Kevin Kinsey [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 19, 2006 10:40 PM
To: Leonard Burton
Cc: PHP-General
Subject: Re: [PHP] Invoices

Leonard Burton wrote:

HI All,

What do you all use for keeping track of invoices?

I looked at a few open source projects (including
http://billing-software.us/) and it seems that there is not really a 
good Open Source Project out there for invoices.  Am I wrong?

What would be nice is a project with a good API that would allow other 
projects to use its invoice handling capabilities.  It would be nice if 
it weren't designed for one specific situation.

Have I missed the boat here?  Is there a nice OS Invoice program that 
will do all this?  Has anyone considered starting one?

Thanks,

--
Leonard Burton, N9URK
  


PHP has become a bit of a breeze for me to use, thanks to its authors (who
came up with a nice syntax and great
docs) and its community (who didn't flame me too much when I was a newbie,
less than 5 years ago).

As a result, my business is managed by a home grown
app --- calendar, checkbook management, invoicing, task list, local
messaging, some accounting computations, mileage computation, expense
records, etc.

ATM, I'm adding trouble tickets to the mix, and a few other ditties.

Now, if there's nothing else out there, I can imagine it would be nice to
release it, but, as I mention, I'm a relative newbie, and started coding
it 4 years ago and much of it is have never been updated.  Much is from
before I learned that web standards existed (I learned HTML from reading the
source created by MS FrontPage Express in the late 1990s, [ugh!!!]), and I'm
not a geek by training (so, I've a shelf of books on OOP and still haven't a
great handle on it, but there again comes PHP to the rescue), so open
sourcing it might well take so much cleaning up that it would kill me.  And
if it's not cleaned up, it'd probably be as traumatic as appearing on
American Idol in a Speedo (at my age, not very pretty at all; or you can sub
in hosting a Tupperware party in the nude if you wish, but who would?).

Anyway, I guess my point was, rolling your own isn't the end of the world
(unless you want the world to see it).

All that said, have you looked at Hermes, CentraView (not PHP, IIRC) or
NOLA?  ATM, I can't even recall what NOLA does, but I seem to recall that it
was fairly generic (may have been more of a retail-frontend).

Also, a quick Googling turns up a rather long list at:

  http://cbbrowne.com/info/financefreesoft.html

Good luck, HTH,

Kevin Kinsey

--
Stability itself is nothing else than a more sluggish motion.

--
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] PHP, SQL, AJAX, JS and populating a SelectBox?

2006-03-18 Thread Weber Sites LTD
Why invent the wheel?

http://developer.ebusiness-apps.com/technologies/webdevelopment/codeandcompo
nents/ebawebcombov3/default.htm

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP  MySQL Forums : http://www.weberforums.com
Free Uptime Monitor : http://uptime.weberdev.com
SEO Data Monitor http://seo.weberdev.com
 

-Original Message-
From: Daevid Vincent [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 18, 2006 4:43 AM
To: php-general@lists.php.net
Subject: [PHP] PHP, SQL, AJAX, JS and populating a SelectBox?

I need to dynamically update a select box with results from a SQL database
using AJAX, but I can't find a single example of how to do this.

Basically I have a text input field, and a select box. 
As someone types in the input field,
I want the select box to fill in the results of matches.

I can fill in a DIV (as per the ten million examples out there) and that's
all fine and dandy, but way too simplistic for what I need.

--
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] highlight_string()

2006-03-10 Thread Weber Sites LTD
Hi

I'm trying to go with your idea but I'm having difficulties with
preg_match_all.
I want the text between ?php and ?. The use of preg_match_all bellow only
Returns text that is in a single line. If the php is on one line and the ?
is
A few lines bellow, it does not match.

preg_match_all('/\?php(.*?)\?/i',$text,$CodeArray,PREG_PATTERN_ORDER); 

Thanks. 

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 07, 2006 3:08 AM
To: Weber Sites LTD
Cc: php-general@lists.php.net
Subject: Re: [PHP] highlight_string()

Weber Sites LTD wrote:
 I was afraid of that...
 I need to do HTML manipulations on the text that is outside the ??.
 After I run highlight_string the original text is messed up.
 If I run the manipulations before then they will look like HTML And 
 not act as HTML...
 
 Any ideas?

You could get the php from your page, highlight it and replace it back in:

preg_replace('%?(.*)?%s', 'highlight_string(${1})', $content);

don't know if that will work straight out for you but that should give you
an idea on how to proceed.


Or you could temporarily remove them, do whatever then replace it back in:

$placeholders = array();
while(preg_match('%?(.*)?%s', $content, $matches)) {
   $size = sizeof($placeholders);
   $placeholders[$size] = $matches[1];
   $content = str_replace($matches[0], '%%PLACEHOLDER['.$size.']%%', 
$content);
}

... other processing here.

foreach($placeholders as $i = $text) {
   $content = str_replace('%%PLACEHOLDER['.$i.']%%', 
highlight_string($text), $content);
}


 -Original Message-
 From: chris smith [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 06, 2006 11:59 AM
 To: Weber Sites LTD
 Cc: php-general@lists.php.net
 Subject: Re: [PHP] highlight_string()
 
 On 3/6/06, Weber Sites LTD [EMAIL PROTECTED] wrote:
 
The only way I could work around this was to put empty ?? at the 
Beginning of the text and now highlight_string() highlights only what 
Is inside ? ?

You can see an example of the problematic text in the example Area of 
this page : http://www.weberdev.com/get_example-4345.html

Notice the empty ? ? at the beginning of the example.
Without them, all of the example, including the text and HTML Part 
will be painted by highlight_string().

Is this a bug?
 
 
 No. It will highlight html as well.
 
 You can give the illusion of it not highlighting the html by using:
 
 ini_set('highlight.html', '#00');
 
 --
 Postgresql  php tutorials
 http://www.designmagick.com/
 
 
 


-- 
Postgresql  php tutorials
http://www.designmagick.com/

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



RE: [PHP] highlight_string()

2006-03-10 Thread Weber Sites LTD
Hi

I found an example for this on WeberDev and got it to work pretty good.
However, when I started to check, I now have a different issue.

Till now, I just highlighted all of the text. Now I take the php code
Out, highlight only the php code and put it back in.

The problem is that I'm looking for anything between ? And ?
And some of the code examples have ?. ?xml. ?.?

So what I really take out is ?. ?xml. ?

How can I avoid this?

thanks

-Original Message-
From: chris smith [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 10, 2006 1:19 PM
To: Weber Sites LTD
Cc: php-general@lists.php.net
Subject: Re: [PHP] highlight_string()

On 3/10/06, Weber Sites LTD [EMAIL PROTECTED] wrote:
 Hi

 I'm trying to go with your idea but I'm having difficulties with 
 preg_match_all.
 I want the text between ?php and ?. The use of preg_match_all bellow 
 only Returns text that is in a single line. If the php is on one line 
 and the ? is A few lines bellow, it does not match.

 preg_match_all('/\?php(.*?)\?/i',$text,$CodeArray,PREG_PATTERN_ORDER
 );

Try /is

it will treat the string as one huge line.

 -Original Message-
 From: Chris [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 3:08 AM
 To: Weber Sites LTD
 Cc: php-general@lists.php.net
 Subject: Re: [PHP] highlight_string()

 Weber Sites LTD wrote:
  I was afraid of that...
  I need to do HTML manipulations on the text that is outside the ??.
  After I run highlight_string the original text is messed up.
  If I run the manipulations before then they will look like HTML And 
  not act as HTML...
 
  Any ideas?

 You could get the php from your page, highlight it and replace it back in:

 preg_replace('%?(.*)?%s', 'highlight_string(${1})', $content);

 don't know if that will work straight out for you but that should give 
 you an idea on how to proceed.


 Or you could temporarily remove them, do whatever then replace it back in:

 $placeholders = array();
 while(preg_match('%?(.*)?%s', $content, $matches)) {
$size = sizeof($placeholders);
$placeholders[$size] = $matches[1];
$content = str_replace($matches[0], '%%PLACEHOLDER['.$size.']%%', 
 $content); }

 ... other processing here.

 foreach($placeholders as $i = $text) {
$content = str_replace('%%PLACEHOLDER['.$i.']%%',
 highlight_string($text), $content);
 }


  -Original Message-
  From: chris smith [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 06, 2006 11:59 AM
  To: Weber Sites LTD
  Cc: php-general@lists.php.net
  Subject: Re: [PHP] highlight_string()
 
  On 3/6/06, Weber Sites LTD [EMAIL PROTECTED] wrote:
 
 The only way I could work around this was to put empty ?? at the 
 Beginning of the text and now highlight_string() highlights only 
 what Is inside ? ?
 
 You can see an example of the problematic text in the example Area 
 of this page : http://www.weberdev.com/get_example-4345.html
 
 Notice the empty ? ? at the beginning of the example.
 Without them, all of the example, including the text and HTML Part 
 will be painted by highlight_string().
 
 Is this a bug?
 
 
  No. It will highlight html as well.
 
  You can give the illusion of it not highlighting the html by using:
 
  ini_set('highlight.html', '#00');

--
Postgresql  php tutorials
http://www.designmagick.com/

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



RE: [PHP] highlight_string()

2006-03-06 Thread Weber Sites LTD
The only way I could work around this was to put empty ?? at the 
Beginning of the text and now highlight_string() highlights only what
Is inside ? ?

You can see an example of the problematic text in the example
Area of this page : http://www.weberdev.com/get_example-4345.html

Notice the empty ? ? at the beginning of the example.
Without them, all of the example, including the text and HTML
Part will be painted by highlight_string().

Is this a bug?

-Original Message-
From: Weber Sites LTD [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 06, 2006 11:29 AM
To: php-general@lists.php.net
Subject: [PHP] highlight_string()

Hi

From what I see, highlight_string() should only change text between ? And
?.
Any idea why it highlights all of the text I send to it (even text outside
? And ? ?

Thanks

berber

--
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] highlight_string()

2006-03-06 Thread Weber Sites LTD
I was afraid of that...
I need to do HTML manipulations on the text that is outside the ??.
After I run highlight_string the original text is messed up.
If I run the manipulations before then they will look like HTML 
And not act as HTML...

Any ideas?

-Original Message-
From: chris smith [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 06, 2006 11:59 AM
To: Weber Sites LTD
Cc: php-general@lists.php.net
Subject: Re: [PHP] highlight_string()

On 3/6/06, Weber Sites LTD [EMAIL PROTECTED] wrote:
 The only way I could work around this was to put empty ?? at the 
 Beginning of the text and now highlight_string() highlights only what 
 Is inside ? ?

 You can see an example of the problematic text in the example Area of 
 this page : http://www.weberdev.com/get_example-4345.html

 Notice the empty ? ? at the beginning of the example.
 Without them, all of the example, including the text and HTML Part 
 will be painted by highlight_string().

 Is this a bug?

No. It will highlight html as well.

You can give the illusion of it not highlighting the html by using:

ini_set('highlight.html', '#00');

--
Postgresql  php tutorials
http://www.designmagick.com/

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



RE: [PHP] Expat + PHP Examples...

2006-02-26 Thread Weber Sites LTD
I'm not sure if this is the same thing (expat and patxml) 

http://www.weberdev.com/ViewArticle-441.html
http://www.weberdev.com/ViewArticle-444.html 

berber

-Original Message-
From: Gustav Wiberg [mailto:[EMAIL PROTECTED] 
Sent: Sunday, February 26, 2006 12:19 AM
To: PHP General
Subject: [PHP] Expat + PHP Examples...

Hi there!

I've found out that I can use expat XML, but I can't figure out HOW to
use... it seems simple, but I tried and can't figure it out...

I'd like to get retrieve info from
http://www.frisim.com/frisim/servlet/rss?searchString=google

and convert it to html...

I've read a lot a of text for Expat, but found no really good example (I
found one at phpbuilder.com but with links that went to xml-files that
didn't exists ):

Someone who have used expat.. ..and can give me a hint...

/G 

--
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] RSS / XML

2006-02-25 Thread Weber Sites LTD
Here are a few (from easy to hard)

Parsing XML With DOMXML And PHP
http://www.weberdev.com/ViewArticle-158.html

Converting XML Into a PHP Data Structure
http://www.weberdev.com/ViewArticle-389.html

Building XML Trees with PEAR's XML_Tree Class
http://www.weberdev.com/ViewArticle-345.html

Building XML Web Services with PHP NuSOAP
http://www.weberdev.com/ViewArticle-336.html

Serializing XML With PHP
http://www.weberdev.com/ViewArticle/450 

Injecting XML Content Into Page Templates With patXMLRenderer 
http://www.weberdev.com/ViewArticle/441

berber
-Original Message-
From: Gustav Wiberg [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 25, 2006 2:55 PM
To: PHP General
Subject: [PHP] RSS / XML

Hi there guys!

Where is a good startpoint for learning XML Reader on a very, very basic
level? (I appreciate links) Is RSS a technique for retrieving XML? I can't
clue the pieces together...

/G

--
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] PHP/LDAP Authentication

2006-02-19 Thread Weber Sites LTD
Maybe this can help :

Authentication script to authenticate users in Active Directory through
LDAP.
http://www.weberdev.com/get_example-3261.html
 
Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
Search for PHP Code from your browser http://toolbar.weberdev.com 
Free Uptime Monitor : http://uptime.weberdev.com
SEO Data Monitor http://seo.weberdev.com


-Original Message-
From: Golden Butler [mailto:[EMAIL PROTECTED] 
Sent: Sunday, February 19, 2006 8:40 AM
To: PHP Mailing List
Subject: [PHP] PHP/LDAP Authentication



I'm currently running OpenLDAP with some users populated in the database.  I
would like to use PHP to create a web page where my ldap users can enter
their username and password credentials to log into our intranet.  Can
someone point me to some expample scripts, articles, or sites.  Thanks.

- Delamatrix 

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



RE: [PHP] PHP job postings?

2006-02-16 Thread Weber Sites LTD
http://www.weberforums.com/ 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 16, 2006 10:46 PM
To: php-general@lists.php.net
Subject: [PHP] PHP job postings?

Just wondering if anyone know of a mailing list of forum specifically
dedicated to soliciting for programmers to fill PHP programming positions?

I see people post to this list periodically but it really doesn't seem like
the right place.  Our project is going to be expanding quite a bit and we
are probably going to be hiring more on-site programmers probably in the
near future.

Specifically we're looking for people (or lists/forums) in the MD/DC/VA
area.

Just kind of pre-scouting for my boss before we resort to going through
headhunters and recruiters and the big job posting sites.

Thanks.

-TG


___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

--
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] CSS Groups?

2006-02-16 Thread Weber Sites LTD
http://www.weberforums.com

There is a CSS forum where I get all of my questions  answered :)

berber 

-Original Message-
From: William Stokes [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 16, 2006 2:58 PM
To: php-general@lists.php.net
Subject: [PHP] CSS Groups?

Anybody know any good CSS groups? I don't want to post here non PHP related
stuff

Thanks
-Will

--
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] Regular expression

2006-02-15 Thread Weber Sites LTD
Check out some Regular Expression code examples
To learn more : 

http://www.weberdev.com/AdvancedSearch.php?searchtype=categorycategory=Rege
xps 

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
Uptime Monitor : http://uptime.weberdev.com
SEO Data Monitor http://seo.weberdev.com


-Original Message-
From: Patrick [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 11:53 PM
To: php-general@lists.php.net
Subject: [PHP] Regular expression

Hi,

I am trying to validate a password, but havent figured out the pattern for
it yet.
The password must contain atleast 6 characters a-zA-Z0-9_ must start with a
a-zA-Z and must have atleast one of the following characters !#%$£

correct passwords would be:
a#aAb08
Plkpod!
t09_#8T
U_p#q#Pq

i was trying something like this, but it dosent seem to work:
^[a-zA-Z]{1}[!#%$]+[a-zA-Z0-9_]+

Patrick 

--
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] Regular expression

2006-02-15 Thread Weber Sites LTD
If you make sure the link does not break you will get results :)

http://www.weberdev.com/AdvancedSearch.php?searchtype=categorycategory=Rege
xps 

-Original Message-
From: Barry [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 15, 2006 5:20 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Regular expression

Weber Sites LTD wrote:
 Check out some Regular Expression code examples To learn more :
 
 http://www.weberdev.com/AdvancedSearch.php?searchtype=categorycategor
 y=Rege
 xps
 
 Sincerely
  
 berber
  

ZONG!

-
No results were found.

 * Run this seach again but include PHP Functions in the results.
 * Did you try our AdvancedSearch?
 * How about checking the forums?
 * Maybe our Links Index?
 * Go Back and try again?
-

?

-- 
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

-- 
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] Complications when sending HTML email

2006-02-14 Thread Weber Sites LTD
Did you put this in your headers?

MIME-Version: 1.0\r\nContent-Type: text/html; charset=iso-8859-1\r\n


?
mail([EMAIL PROTECTED],HTML
TEST,HTMLBODYBTest/B/BODY/HTML,MIME-Version:
1.0\r\nContent-Type: text/html;
charset=iso-8859-1\r\nFrom:[EMAIL PROTECTED]);
? 

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP  MySQL Forums : http://www.weberforums.com
Learn PHP  MySQL Playing Trivia : http://www.webertrivia.com
PHP Web Logs : http://www.weberblogs.com 
Web Development Index http://www.weberindex.com 
Web Templates http://www.webertemplates.com
Search for PHP Code from your browser http://toolbar.weberdev.com 
Free Uptime Monitor : http://uptime.weberdev.com
PHP content for your site : http://content.weber-sites.com

-Original Message-
From: Peter Lauri [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 6:52 AM
To: php-general@lists.php.net
Subject: [PHP] Complications when sending HTML email

Best group member,

I am sending HTML email with PHP. I use the example code in the manual to
try, and the email is sent. However, it is not decoded correctly in my
Outlook. I checked thru webmail clients, and then it work. I thought it was
my Outlook that was not correct, but I am receiving HTML emails from other
sources that are displayed correctly. In the bottom I have the email that is
sent to me, it is displayed like this in Outlook.

Is there maybe something I have to add in the header to get it to work with
Outlook?

Cheers,
Peter



-Original Message-
From: 
Sent: Tuesday, February 14, 2006 11:31 AM
Subject: Birthday Reminders for August

Content-type: text/html; charset=iso-8859-1

To: Peter [EMAIL PROTECTED]
From: Testserver [EMAIL PROTECTED]



html
head
titleBirthday Reminders for August/title
/head
body
pHere are the birthdays upcoming in August!/p
table
tr

thPerson/ththDay/ththMonth/ththYear/th
/tr
tr

tdJoe/tdtd3rd/tdtdAugust/tdtd1970/td
/tr
tr

tdSally/tdtd17th/tdtdAugust/tdtd1973/td
/tr
/table
/body
/html


--
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] Complications when sending HTML email

2006-02-14 Thread Weber Sites LTD
It works for me :)
I tested it before mailing you the answer.

I have no idea what could be causing the problem.

berber
 

-Original Message-
From: Peter Lauri [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 11:51 AM
To: 'Weber Sites LTD'; php-general@lists.php.net
Subject: RE: [PHP] Complications when sending HTML email

Does not work.

http://www.zend.com/zend/spotlight/sendmimeemailpart1.php?article=sendmimeem
ailpart1kind=slid=3148open=1anc=0view=1 tells me that I should put
'three newlines between the Content-Transfer-Encoding and the start of the
section.'

But still that does not work, hrm. Anyone with a simple html-example that
works fine with Outlook?

Best regards,
Peter Lauri


-Original Message-
From: Weber Sites LTD [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 14, 2006 4:27 PM
To: 'Peter Lauri'; php-general@lists.php.net
Subject: RE: [PHP] Complications when sending HTML email

Did you put this in your headers?

MIME-Version: 1.0\r\nContent-Type: text/html; charset=iso-8859-1\r\n


?
mail([EMAIL PROTECTED],HTML
TEST,HTMLBODYBTest/B/BODY/HTML,MIME-Version:
1.0\r\nContent-Type: text/html;
charset=iso-8859-1\r\nFrom:[EMAIL PROTECTED]);
? 

Sincerely 
 
berber 
 
Visit the Weber Sites Today,
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com PHP  MySQL Forums :
http://www.weberforums.com Learn PHP  MySQL Playing Trivia :
http://www.webertrivia.com PHP Web Logs : http://www.weberblogs.com Web
Development Index http://www.weberindex.com Web Templates
http://www.webertemplates.com Search for PHP Code from your browser
http://toolbar.weberdev.com Free Uptime Monitor : http://uptime.weberdev.com
PHP content for your site : http://content.weber-sites.com

-Original Message-
From: Peter Lauri [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 14, 2006 6:52 AM
To: php-general@lists.php.net
Subject: [PHP] Complications when sending HTML email

Best group member,

I am sending HTML email with PHP. I use the example code in the manual to
try, and the email is sent. However, it is not decoded correctly in my
Outlook. I checked thru webmail clients, and then it work. I thought it was
my Outlook that was not correct, but I am receiving HTML emails from other
sources that are displayed correctly. In the bottom I have the email that is
sent to me, it is displayed like this in Outlook.

Is there maybe something I have to add in the header to get it to work with
Outlook?

Cheers,
Peter



-Original Message-
From: 
Sent: Tuesday, February 14, 2006 11:31 AM
Subject: Birthday Reminders for August

Content-type: text/html; charset=iso-8859-1

To: Peter [EMAIL PROTECTED]
From: Testserver [EMAIL PROTECTED]



html
head
titleBirthday Reminders for August/title
/head
body
pHere are the birthdays upcoming in August!/p
table
tr

thPerson/ththDay/ththMonth/ththYear/th
/tr
tr

tdJoe/tdtd3rd/tdtdAugust/tdtd1970/td
/tr
tr

tdSally/tdtd17th/tdtdAugust/tdtd1973/td
/tr
/table
/body
/html


--
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 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] Flatfile forum?

2006-02-12 Thread Weber Sites LTD
Sorry for the lame question :)

But why?

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP  MySQL Forums : http://www.weberforums.com
Learn PHP  MySQL Playing Trivia : http://www.webertrivia.com
 

-Original Message-
From: Nicholas Couloute [mailto:[EMAIL PROTECTED] 
Sent: Sunday, February 12, 2006 5:35 PM
To: php-general@lists.php.net
Subject: [PHP] Flatfile forum?

I am interested in creating a flatfile database forum! How would I go about
doing this. I know it has been done before! I want to make one from the
ground up!
~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
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] how to learn php

2006-02-11 Thread Weber Sites LTD
If you like to learn while playing, you may want to look
at http://www.webertrivia.com. You can learn PHP, MySQL
And Linux while playing trivia :)

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP  MySQL Forums : http://www.weberforums.com
Search for PHP Code from your browser http://toolbar.weberdev.com 
 

-Original Message-
From: /dev/null [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 11, 2006 2:10 AM
To: php-general@lists.php.net
Subject: [PHP] how to learn php

hello

i have been trying to learn php.

what is the best approach to learning php for someone who has no programming
experience?

i am very familiar with html, xhtml, and css. i'm not an idiot when it comes
to using computers.
i have bought several books and have subscribed to a couple of the php
mailing lists, but i feel that i could be doing more to learn php.

what approach (and steps) did you take in learning this really cool
scripting language? should i look into taking classes or stick with an
autodidact approach?

any advice and/or opinions would be greatly appreciated.

thanks.

--
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] how to learn php

2006-02-11 Thread Weber Sites LTD
Btw, if we are talking about tutorials :)

PHP 101 (part 1): Down The Rabbit Hole
http://www.weberdev.com/ViewArticle/433

PHP 101 (part 2): Calling All Operators
http://www.weberdev.com/ViewArticle/435

PHP 101 (part 3): Looping The Loop
http://www.weberdev.com/ViewArticle/436

PHP 101 (part 4): The Food Factor
http://www.weberdev.com/ViewArticle/438

PHP 101 (part 5): Rank And File
http://www.weberdev.com/ViewArticle/440

PHP 101 (part 6): Function-ally Yours
http://www.weberdev.com/ViewArticle/443

PHP 101 (part 7): The Bear Necessities
http://www.weberdev.com/ViewArticle/445

PHP 101 (part 8): Databases and Other Animals
http://www.weberdev.com/ViewArticle/449

More will come... 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 11, 2006 8:28 PM
To: tedd; php-general@lists.php.net
Subject: Re: [PHP] how to learn php

tedd wrote:
 hello

 i have been trying to learn php.

 what is the best approach to learning php for someone who has no 
 programming experience?
 -snip-

 any advice and/or opinions would be greatly appreciated.

 thanks.

Here's a tutorial I found useful, and would be good for someone without a
programming background as it has good explanations of not only the code, but
the concepts.
http://www.brainbell.com/tutors/php/php_mysql/index.html. I found it when I
started to try to learn authentication.  I was having a hard time wrapping
my head around it, and this site took me over the hump!!

This is also on that site, but I haven't really looked at this section.
http://www.brainbell.com/tutorials/php/

Another thing I did was to download the php reference manual to my desk top
so I can easily pull it up. I typically look there first, and if I still
need some help, I will google for code snippets.  Then I ask for help on one
of the lists.  I don't remember where I got the manual, but I'm sure someone
here can give you a link. Or you can google for it.


jimmy

--
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] vaidation and mail function question

2006-02-10 Thread Weber Sites LTD
You may want to have a look at : 

Power Form Validation
http://www.weberdev.com/get_example-4248.html
 
Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP  MySQL Forums : http://www.weberforums.com
Learn PHP  MySQL Playing Trivia : http://www.webertrivia.com


-Original Message-
From: Paul Goepfert [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 10, 2006 9:49 AM
To: php-general@lists.php.net
Subject: [PHP] vaidation and mail function question

I am beginnging to do vaidation on my web form and I know of a few functions
to do this with.  For example the empty fuction and the is_ functions.  Ok
to give you a picture of what I am vaildating its just your basic form,
Name, Address, Email.  I am obviously going to check for empty fields.
However I do want better error checking other then testing for emptty
fields.  Can anyone help me with that?

After this form is finished vaildating I am going to be sending an
email of the contents of the form to an email account.   I have seen
in other messages on this board about the mail function.   I'm not
sure about this but I think I read that in order for the mail function to
work the webserver needs sendmail to make the mail function work. 
Is this true?  I have looked at the phpinfo page on the targeted webserver
and the sendmail value is missing.  I assume that is ok because the
webserver is on a windows system rather then a unix system. I just want to
be sure about this.

Thanks

Paul

--
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] socket_read

2006-02-09 Thread Weber Sites LTD
Check out some XML examples, maybe you can find more there :

http://www.weberdev.com/AdvancedSearch.php?example=searchtype=categorysort
=titlesearch=category=XMLdate=secondary=SearchIn=All+CategoriesIsSub=
PHPFunctions=Articles=on

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
SEO Data Monitor : http://seo.weberdev.com 
PHP  MySQL Forums : http://www.weberforums.com
 

-Original Message-
From: Peter Lauri [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 09, 2006 7:05 PM
To: 'PHP General Users'
Subject: [PHP] socket_read

Best group member,

 

I want to read the content from a socket that is sending XML.

 

The socket_read(socket, length) takes the two parameters. But what I am
concerned about it, I do not actually know the 'length' of what is being
sent. How do I protect myself from that?

 

Right now I just use a value of 'length' that with margin is larger then the
size I will receive. Is it possible to get the size of what is ready to be
read from the socket?

 

Best regards,
Peter Lauri

 

 

 

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



RE: [PHP] PHP_fsockopen_connection refused(111)

2006-02-09 Thread Weber Sites LTD
This may help :

http://www.weberdev.com/get_example-4335.html

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
SEO Data Monitor : http://seo.weberdev.com 
PHP  MySQL Forums : http://www.weberforums.com
Free Uptime Monitor : http://uptime.weberdev.com
 

-Original Message-
From: Leonidas Safran [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 09, 2006 7:49 PM
To: php-general@lists.php.net
Subject: [PHP] PHP_fsockopen_connection refused(111)

Hello,

I'm writting a domain checker and for that, I want to use fsockopen to send
data to the registry's whois database.
Unfortunately I have always Connection refused, Error 111 when try to
create a socket...

Even the example shown on php.net website doesn't work, so I believe it's
not a code problem from my side...
http://www.php.net/manual/de/function.fsockopen.php

PHP has been compiled with -enable-socket option, so I also think it's not
the problem neither. On top of that, I tried the same code on two different
machines (Ubuntu, FC4): same result...

I first thought it could be a DNS problem, but as I can use my browser
normally on the same PC, I wonder...

Any help would be highly appreciated ;-)


Thx:

BB

--
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse f|r Mail, Message, More +++

-- 
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] target?

2006-02-08 Thread Weber Sites LTD
What you need to do is close page2.htm with JavaScript (window.close)
And then page1.htm will be back. To make sure page1 will be back
You can reload it with onload=focus() in the BODY.

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
SEO Monitor : http://seo.weberdev.com


-Original Message-
From: William Stokes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 08, 2006 9:10 PM
To: php-general@lists.php.net
Subject: Re: [PHP] target?

I mean.

If I open popup named page2.htm from page1.htm with target=_blank can I go
back to page1.htm with target=_parent?

-W



Jay Blanchard [EMAIL PROTECTED] kirjoitti
viestissה:[EMAIL PROTECTED]
 [snip]
 Is target=_parent opposite to target=_blank?
 [/snip]

 Opposite? no. Not alike? yes. 

--
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] image uploads

2006-02-01 Thread Weber Sites LTD
Don't mistake client side cache with FS / WebServer cache.
Also, take into consideration that getting an image from FS is much 
More efficient than from MySQL so why go there?

As for order, that's really not a problem as you can build a simple
Directory hierarchy such as : /home/MySite/images/b/be/berber.gif

We handle more than 20M images and files with no problem this way.

berber

-Original Message-
From: tedd [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 01, 2006 4:23 PM
To: php-general@lists.php.net
Cc: Kevin Waterson
Subject: Re: [PHP] image uploads

Hi gang:

I don't mean to offend anyone, but I'm going to side with Keith Waterson
about storing images in a dB rather than in a file system. 
My reasons are pretty simple.

First, an image is nothing more than a large of string text -- sure it's
voluminous, but there's no difference how it is stored -- either in a dB or
fs, it's still all just 1's and 0's stored on a hard drive.

Second, when you search MySQL, you're not searching blobs (hopefully)
-- instead you are searching the index. What is attached to the index has NO
effect on a search.

Third, MySQL search routines are simply binary-trees. The indexes are simply
pointers to the data stored on a hard drive -- no more, no less than placing
url's in a dB and using those as pointers to the image stored on a file
system -- which may actually take more time resolve.

Forth, with respect to the argument of caching the images, your browser
doesn't know how images are provided. The image is coming from a simple
img tag or a header file and the browser simply looks at what's there and
compares it with what it has and loads the image accordingly.

If you want to store your images in a file system, then that's fine
-- but as the number of those images climb, you're going to need a way to
organize and handle those images -- and that sounds like a problem that a dB
can solve.

I can understand image storage being something somewhat problematic. 
It's not abundantly clear what is actually going on when you store an image.
People have impressions that BLOBs are huge attachments that slow down dB
operations because of their size and when you delete one, there's a huge
hole left in your dB. But, those are just unfounded fears, which IMO are
reenforced by people's problematic experiences in trying to get things to
work.

For example, I have read numerous times in the archives and on the net that
there is no way to consolidate a MySQL dB after you have deletions. The
holes in your dB will remain. But that's not true, while it may not be the
best to consolidate a table, it can be done with a single line of code.

It's claims like this that add to the confusion of how you can use MySQL and
thus create the illusion that you shouldn't use MySQL to store images. But,
until someone provides me concrete evidence that MySQL can't handle images
as well, or better than a file system, then I'll consider the claim to be an
urban myth based upon people not really understanding MySQL.

tedd
-- 


http://sperling.com/

-- 
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] Hide email addresses from spam bots

2006-02-01 Thread Weber Sites LTD
Check this out  :

Encoding email address
http://www.weberdev.com/get_example-3624.html 

Protect your email links from being spidered by spam email robots
http://www.weberdev.com/get_example-3272.html

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP  MySQL Forums : http://www.weberforums.com
Learn PHP  MySQL Playing Trivia : http://www.webertrivia.com
Free Uptime Monitor : http://uptime.weberdev.com
PHP content for your site : http://content.weber-sites.com

-Original Message-
From: Gerry Danen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 01, 2006 3:24 PM
To: php-general@lists.php.net
Subject: [PHP] Hide email addresses from spam bots

A user of mine insists that her email address shows on a web page. I need to
protect that address from spam bots. There are lots of solutions around that
I have come acros. I am looking for a clean, reusable, non-javascript
solution.

Any help is appreciated.

Gerry

--
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] form variables issue

2006-01-31 Thread Weber Sites LTD
I'm not sure I understand the problem.
Can you send a link to the page and post some code?

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
Free Uptime Monitor : http://uptime.weberdev.com
PHP content for your site : http://content.weber-sites.com
 

-Original Message-
From: All U Want [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 31, 2006 1:04 PM
To: [php] PHP General List
Subject: [PHP] form variables issue

Hi folks,

I'm sure it is a very simple question for you but I'm getting almost crazy.

I've got a simple form with several form objects, one of them is a text
field. After submitting the form if one of the form objects hasn't been
modified I will show the same form but keeping the data previously
introduced. My problem is the text field, I can't show any special
characters again, even if there was any space only the first word is shown,
etc.

I've been playing with different function like urldecode, urlencode,
stripslashes, htmlspecialchars, etc. but couldn't show the same text.

Do  you know how I can fix this?


Thanks a lot,
David.

Note that magic_quotes_gpc is enabled.

--
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] image uploads

2006-01-31 Thread Weber Sites LTD
Check this out : 

http://www.weberdev.com/get_example-3938.html
Image Upload And Resize Script

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP  MySQL Forums : http://www.weberforums.com
Learn PHP  MySQL Playing Trivia : http://www.webertrivia.com
 

-Original Message-
From: William Stokes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 31, 2006 6:58 PM
To: php-general@lists.php.net
Subject: [PHP] image uploads

Hello,

Is there something special about php and images that nobody told me...

I'm writing a image gallery but I have  run to serious trouble with it. I
have one page with form in it. Form's action is $PHP_SELF. In the form there
is just one file field called image.

I test if there's users image to handle with if (isset($img))

if there's one. I greate two new images using

imagecreatefromjpeg()
imagecreatetruecolor()
imagecopyresampled()

in two different functions. At the end of both functions there's
imagedestroy($img). After that the both image information is stored to DB
and, if succeful, at the end I do unset($img) to clear the old image
variable from memory. Both new images are created OK and DB update works OK.

But nothing else doesn't work. I don't know what I have to do to prevent the
image from realoading to server second time if user hits browser refresh
button. The same image is uploaded every time the user hits refresh. Another
thing is that Opera stopped co-operation with this page once and for all. It
just freezes after the page call's itself. IE and Firefox doesn't.

I Really need some help

Thanks
-Will





 

--
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] image uploads

2006-01-31 Thread Weber Sites LTD
The main reason I don't like storing the images in the DB is because
File system is much more fast then DB. FS and the web server know
How to cache images while using the DB makes you access the 
DB for each and every picture.

It's also harder to maintain cause you don't have a physical file you can 
Move from place to place or from dir to dir. Or just look at a bunch of
Random images like you would in a directory.

From my point of view there has to be a very good reason to put images
Inside a DB instead of in the file system.

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
Free Uptime Monitor : http://uptime.weberdev.com
PHP content for your site : http://content.weber-sites.com
 

-Original Message-
From: tedd [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 01, 2006 12:43 AM
To: php-general@lists.php.net
Subject: Re: [PHP] image uploads

Richard said:

Storing the image in the DB is probably not a Good Idea for a variety 
of reasons.

And they are?

tedd
--


http://sperling.com/

--
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 black thumbnail.

2006-01-28 Thread Weber Sites LTD
I don't see any article / example that takes care of it all and also shows a
thumb :)
So the previous article shoed everything but the thumb, try this one for the
thumb :

http://www.weberdev.com/ViewArticle-388.html

berber 

-Original Message-
From: tedd [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 28, 2006 4:56 PM
To: php-general@lists.php.net
Subject: Re: [PHP] A black thumbnail.

Hi again:

I said:

I'm trying to create a thumbnail from a jpeg stored in a long blob in
mySQL.

---
berber said:

Check out this article : http://www.weberdev.com/ViewArticle-3.html

This article is for uploading, storing and displaying images from mySQL, but
no thumbnail.

Any ideas?

Thanks for your help.

tedd

--


http://sperling.com/

--
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] questions regarding PHP and Forms

2006-01-27 Thread Weber Sites LTD
Check out this list of code examples to help with #1
http://www.weberdev.com/AdvancedSearch.php?searchtype=titlesearch=validatio
n

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
Free Uptime Monitor : http://uptime.weberdev.com
PHP content for your site : http://content.weber-sites.com
 

-Original Message-
From: Paul Goepfert [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 27, 2006 9:28 PM
To: php-general@lists.php.net
Subject: [PHP] questions regarding PHP and Forms

Hi all,

I am  writing my first website in php.  I have a few questions.

1) I need to do vaildation on form values that I have entered into a form.
Is there a way I can write the vaildation code on the same page as the form
in php?

2)  I have a drop down menu on one of my form fields.  What I want to do is
if a certain item is seelected I want to have a new textbox appear below the
drop down menu.  Is there a way to do this in php?

Thanks

Paul

--
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 black thumbnail.

2006-01-27 Thread Weber Sites LTD
Check out this article : http://www.weberdev.com/ViewArticle-3.html

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP  MySQL Forums : http://www.weberforums.com
Learn PHP  MySQL Playing Trivia : http://www.webertrivia.com
Free Uptime Monitor : http://uptime.weberdev.com
 

-Original Message-
From: tedd [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 28, 2006 2:43 AM
To: php-general@lists.php.net
Subject: [PHP] A black thumbnail.

Hi:

I'm trying to create a thumbnail from a jpeg stored in a long blob in mySQL.

What's wrong here? I get an image that's the correct size, but it's black.

Any ideas?

Thanks.

tedd

code

$dbQuery = SELECT image_type, image, image_width, image_height ; $dbQuery
.= FROM pictures ; $dbQuery .= WHERE image_Id = $pic_id; $result =
mysql_query($dbQuery) or die(Couldn't get file list);

if(mysql_num_rows($result) == 1)
{
$fileType = @mysql_result($result, 0, image_type); $fileContent =
@mysql_result($result, 0, image); $width_orig = @mysql_result($result, 0,
image_width); $height_orig = @mysql_result($result, 0, image_height);

// Set a maximum height and width
$width = 200;
$height = 200;

if ($width  ($width_orig  $height_orig))
{
$width = ($height / $height_orig) * $width_orig;
}
else
{
$height = ($width / $width_orig) * $height_orig;
}

// Resample
$image_p = imagecreatetruecolor($width, $height); $image =
imagecreatefromjpeg($fileContent);
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height,
$width_orig, $height_orig);

// Output
imagejpeg($image_p, null, 100);
}

/code
--


http://sperling.com/

--
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] automating creation of thumbnails

2006-01-26 Thread Weber Sites LTD
Here are some more to check out :)

Dynamic Thumbnail Generation
http://www.weberdev.com/ViewArticle-388.html

upload one or more files, and show thumbs and html code of images, I images
were uploaded.
http://www.weberdev.com/get_example-3083.html 

Image Upload And Resize Script
http://www.weberdev.com/get_example-3938.html

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
Free Uptime Monitor : http://uptime.weberdev.com
PHP content for your site : http://content.weber-sites.com


-Original Message-
From: Geoff [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 26, 2006 8:13 PM
To: php-general@lists.php.net
Subject: [PHP] automating creation of thumbnails

I remember the other day someone was asking for a way to easily create a
bunch of thumbnails from image files. I just spotted this:
http://www.phpclasses.org/browse/package/2846.html

This is a simple class that can be used to generate thumbnails of image
files. It can resize the images so they do not exceed a given width or
height. The images are loaded as true color to preserve the quality as much
as possible during the rescale operation. Currently, the images can be
loaded and saved in the JPEG and GIF formats.

Geoff.

--
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] Best way to handle PREVIOUS and NEXT processing of database records retrieved

2006-01-26 Thread Weber Sites LTD
Check out : 

Pagination
http://www.weberdev.com/get_example-4242.html 

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
Free Uptime Monitor : http://uptime.weberdev.com
PHP content for your site : http://content.weber-sites.com


-Original Message-
From: Sue [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 26, 2006 10:27 PM
To: php-general@lists.php.net
Subject: [PHP] Best way to handle PREVIOUS and NEXT processing of database
records retrieved

I am retrieving records from a MySQL database and need to just display each
record one after the other on a page.  I only want to display a maximum of
25 records per page though, and am wondering if there is a way to handle
this easily within PHP?  I'd like to use something like NEXT and PREVIOUS as
links to go back and forth from each of the pages if there is more than 1
page of data to display.  Any examples/ideas would be greatly appreciated.

Thanks in advance! 

--
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] Counting files in directory and subdirectory!

2006-01-25 Thread Weber Sites LTD
You can start with looking at some code examples that do similar things :

Directory browser
http://www.weberdev.com/get_example-1539.html 

How to get a dir listing of the current dir of php script in an array 
http://www.weberdev.com/get_example-1855.html

filesystem Show Files Script
http://www.weberdev.com/get_example-4240.html

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP  MySQL Forums : http://www.weberforums.com
Learn PHP  MySQL Playing Trivia : http://www.webertrivia.com
PHP Web Logs : http://www.weberblogs.com 
Web Development Index http://www.weberindex.com 
Web Templates http://www.webertemplates.com
Search for PHP Code from your browser http://toolbar.weberdev.com 
Free Uptime Monitor : http://uptime.weberdev.com
PHP content for your site : http://content.weber-sites.com


-Original Message-
From: Nicholas Couloute [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 25, 2006 9:41 PM
To: php-general@lists.php.net
Subject: [PHP] Counting files in directory and subdirectory!

I want a script where it will count all the amrs in a folder and it's sub
folders like this setup:
amrs 
50 cent  amrs
nitty  amrs
bob  amrs
How would I do this?
~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
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] Email Form

2006-01-20 Thread Weber Sites LTD
Hi Richard,

I'm trying to understand why this is good from a SPAM point of view.
I'm guessing that anyone can just add this when sending his own spam no?

berber

-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 19, 2006 11:37 PM
To: Weber Sites LTD
Cc: 'Thomas Bonham'; php-general@lists.php.net
Subject: RE: [PHP] Email Form

On Thu, January 19, 2006 3:25 pm, Weber Sites LTD wrote:
 Check out :

 http://www.weberdev.com/get_example-336.html

 http://www.weberdev.com/get_example-1557.html

 In general you need to add the From header :

 Mail($To,$subject,$body,From:[EMAIL PROTECTED]);

In the ideal world, you also will want to upgrade and use the FIFTH
(optional) argument to http://php.net/mail and provide a Return-path:
header that matches your From: line with [EMAIL PROTECTED]

Otherwise, you lose points in spam filters, and some recipients will
probably not ever see the email.

--
Like Music?
http://l-i-e.com/artists.htm

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



RE: [PHP] difference between require and include

2006-01-20 Thread Weber Sites LTD
Check out some info here : 

http://www.weberdev.com/ViewArticle/440 

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP Web Logs : http://www.weberblog.com/ 
PHP  MySQL Forums : http://www.weberforums.com/ 
Learn PHP Playing Trivia http://www.webertrivia.com 
Web Development Index http://www.weberindex.com 
Web Templates http://www.webertemplates.com
Search for PHP Code from your browser http://toolbar.weberdev.com 



-Original Message-
From: balachandar muruganantham [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 21, 2006 3:44 AM
To: php; php-install@lists.php.net
Subject: [PHP] difference between require and include

Can anyone tell me the exact differeneces between require and include?

--
name balachandar muruganantham/name
Yahoo! mbchandar/Yahoo!
Hotmail  mbchandar/Hotmail
blog http://chandar.blogspot.com/blog
webhttp://www.balachandar.net/web
talk http://www.expertstalk.org/talk
shophttp://www.chennaishopping.com/shop

--
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] Email Form

2006-01-20 Thread Weber Sites LTD
Lucky for me I have my own server :)

Thanks for the info, I will try it and report if I see any difference.

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP Web Logs : http://www.weberblogs.com/ 
PHP  MySQL Forums : http://www.weberforums.com/ 
Learn PHP Playing Trivia http://www.webertrivia.com 
Web Development Index http://www.weberindex.com 
Web Templates http://www.webertemplates.com
Search for PHP Code from your browser http://toolbar.weberdev.com 

 

-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 20, 2006 11:21 PM
To: Weber Sites LTD
Cc: 'Igal Rubinstein'; 'Thomas Bonham'; php-general@lists.php.net
Subject: RE: [PHP] Email Form

On Fri, January 20, 2006 9:02 am, Weber Sites LTD wrote:
 I'm trying to understand why this is good from a SPAM point of view.
 I'm guessing that anyone can just add this when sending his own spam 
 no?

Hey, I'm not claiming that the spam criteria are rational, nor that any
halfway intelligent spammer could not beat them

I'm just telling you what *IS* happening today. :-)

Note, however, that many ISPs will not allow you to use that fifth argument,
or, more accurately, will configure sendmail to choke if you try to use it
with -f to set the Return-path: because you are not a trusted user

--
Like Music?
http://l-i-e.com/artists.htm

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



RE: [PHP] Managing sessions...

2006-01-20 Thread Weber Sites LTD
Maybe this class can help make things simpler :  

A beginner's session handling class
http://www.weberdev.com/get_example-4175.html 

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP  MySQL Forums : http://www.weberforums.com
Learn PHP  MySQL Playing Trivia : http://www.webertrivia.com
PHP Web Logs : http://www.weberblogs.com 
Web Development Index http://www.weberindex.com 
Web Templates http://www.webertemplates.com
Search for PHP Code from your browser http://toolbar.weberdev.com 
Free Uptime Monitor : http://uptime.weberdev.com
PHP content for your site : http://content.weber-sites.com


-Original Message-
From: David BERCOT [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 20, 2006 6:54 PM
To: php-general@lists.php.net
Subject: [PHP] Managing sessions...

Hi again,

Ok, it's probably not the first time you have a question about sessions with
PHP ;-) I've tried to read mails, documentation, searching on Internet but,
finally, I think everything is not clear !!!

First of all, I understand that, if session.auto_start is not on '1', I have
to write session_start on each page I use !!! OK.
Before this line, I put options :
ini_set(session.use_only_cookies,1);
ini_set(session.use_trans_sid,0);
ini_set(error_reporting,E_ALL);
and then :
session_start();

I think it is very heavy to write... I read about
ini_set(session.auto_start,1) but, on my server (Debian), it doesn't seem
working...
And I also read about options which can be not set if I use auto_start...

So, I'd like to put my options (use_trans_sid, 0, etc...) and to have lite
scripts. Is it possible ?
Isn't there, like in asp, a global.asa where I can put all my parameters ?

Thank you very much.

David.

--
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] Email Form

2006-01-19 Thread Weber Sites LTD
Check out :

http://www.weberdev.com/get_example-336.html  

http://www.weberdev.com/get_example-1557.html

In general you need to add the From header :

Mail($To,$subject,$body,From:[EMAIL PROTECTED]);

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP Web Logs : http://www.weberblog.com/ 
PHP  MySQL Forums : http://www.weberforums.com/ 
Learn PHP Playing Trivia http://www.webertrivia.com 
Web Development Index http://www.weberindex.com 
Web Templates http://www.webertemplates.com
Search for PHP Code from your browser http://toolbar.weberdev.com 



-Original Message-
From: Thomas Bonham [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 19, 2006 10:41 PM
To: php-general@lists.php.net
Subject: [PHP] Email Form

Hello All,

I don't remember how to do email with php. I have all of it done, except for
I can't get it to show the senders email address. All I get it from
[EMAIL PROTECTED]

If some one has a example that they can post that would be great.

Thank You

Thomas

--
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] help plz

2006-01-16 Thread Weber Sites LTD
A good book to check out :

100+ Practical PHP Solutions
http://www.sitepoint.com/launch/weberdev/2/7 

Download the sample chapter and see if you like it.

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP Web Logs : http://www.weberblog.com/ 
PHP  MySQL Forums : http://www.weberforums.com/ 
Learn PHP Playing Trivia http://www.webertrivia.com 
Web Development Index http://www.weberindex.com 
Web Templates http://www.webertemplates.com
Search for PHP Code from your browser http://toolbar.weberdev.com 



-Original Message-
From: suresh kumar [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 16, 2006 8:31 AM
To: php-general@lists.php.net
Subject: [PHP] help plz

hi,
   i am working as a web designer in PHP  Mysql.i know the basics of PHP 
Mysql,i want 2 become PHP Expert,i am planning to buy one Book,but i dont
know which book 2 buy.plz give me info .
  A.suresh

Send instant messages to your online friends http://in.messenger.yahoo.com 

--
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] how 2 stroe images in Mysql Database using PHP

2006-01-16 Thread Weber Sites LTD
You may also want to check this article : 

Saving Images in MySQL
http://www.weberdev.com/ViewArticle-3.html 


Berber


-Original Message-
From: Richard Correia [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 16, 2006 5:45 PM
To: suresh kumar
Cc: php-general@lists.php.net
Subject: Re: [PHP] how 2 stroe images in Mysql Database using PHP

Hey ...

Ready example ...

http://www.weberdev.com/get_example-4062.html

Thanks,
Richard



On 1/16/06, suresh kumar [EMAIL PROTECTED] wrote:

 Hi,
i dont know how 2 store images in gif/jpeg format
 in Mysql Database.i also want 2 know PHP Code 2
 store images in Mysql Database .reply me soon its very urgent .
   A.suresh

 Send instant messages to your online friends 
 http://in.messenger.yahoo.com

 --
 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] php script running as a cgi

2006-01-16 Thread Weber Sites LTD
When running scripts in CGI mode you do not run them via your web server.
Why do you expect to find variables that come from the web?

I must be missing something.

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP Web Logs : http://www.weberblog.com/ 
PHP  MySQL Forums : http://www.weberforums.com/ 
Learn PHP Playing Trivia http://www.webertrivia.com 
Web Development Index http://www.weberindex.com 
Web Templates http://www.webertemplates.com
Search for PHP Code from your browser http://toolbar.weberdev.com 

 

-Original Message-
From: zedleon [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 16, 2006 5:33 PM
To: php-general@lists.php.net
Subject: [PHP] php script running as a cgi

I am running a php script as a cgi so to be able to run under my user name.
The script seems to be working except for one major problem.
the cgi script is not finding the variables passed by the html form...

Any suggestions on how to make this work?

Any help is greatly appreciated -

zed

--
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] Speed

2006-01-11 Thread Weber Sites LTD
Why not check it?

Try to query for the AVG() and get the result or query for the data
and do a loop in PHP to calculate the AVG. Check the time each 
Takes.

My Money is that getting the value from SQL will be faster.

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP Web Logs : http://www.weberblog.com/ 
PHP  MySQL Forums : http://www.weberforums.com/ 
Learn PHP Playing Trivia http://www.webertrivia.com 
Web Development Index http://www.weberindex.com 
Web Templates http://www.webertemplates.com
Search for PHP Code from your browser http://toolbar.weberdev.com 


-Original Message-
From: Peter Lauri [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 9:14 AM
To: php-general@lists.php.net
Subject: [PHP] Speed

Best group member,

 

Assume that I save data about an object and it has 10.000 observations of
the object stored in a MySQL database. I want calculate the average value of
a column, is it faster done by using PHP on the result array or using the
MySQL function to do that?

 

/Peter

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



RE: [PHP] php .htaccess

2006-01-11 Thread Weber Sites LTD
You may want to check this list of Authentication related code examples :
http://www.weberdev.com/search.php3?searchtype=categorycategory=Authenticat
ionsecondary=IsSub=1

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP Web Logs : http://www.weberblog.com/ 
PHP  MySQL Forums : http://www.weberforums.com/ 
Learn PHP Playing Trivia http://www.webertrivia.com 
Web Development Index http://www.weberindex.com 
Web Templates http://www.webertemplates.com
Search for PHP Code from your browser http://toolbar.weberdev.com 

 

-Original Message-
From: enediel gonzalez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 4:50 PM
To: php-general@lists.php.net
Subject: [PHP] php .htaccess

Hello

I've a site with a .htaccess defined, the users have to enter the login and
password to get in, Is it possible on php to ask the apache server wich user
is using the current session?

I'd like to give the users the oportunity to change their password but
without ask again who are you.

Thanks in advance for any answer.
Regards
Enediel

Linux user 300141
Debian GNU/Linux

--
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] PHP and SOAP newbie questions

2006-01-10 Thread Weber Sites LTD
I'm not experienced with WSDL but I can see it's in use here : 

http://www.weberdev.com/ViewArticle/439


Maybe it can help...

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP Web Logs : http://www.weberblog.com/ 
PHP  MySQL Forums : http://www.weberforums.com/ 
Learn PHP Playing Trivia http://www.webertrivia.com 
Web Development Index http://www.weberindex.com 
Web Templates http://www.webertemplates.com
Search for PHP Code from your browser http://toolbar.weberdev.com 

 

-Original Message-
From: Jay Paulson (CE CEN) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 10, 2006 12:27 AM
To: php-general@lists.php.net
Subject: [PHP] PHP and SOAP newbie questions

I recently got handed a project that requires me to use PHP to talk to a
WSDL SOAP service.  I'm not new to PHP but I am new to SOAP.  I have the
basic idea of how SOAP works but still have a few questions I am hoping you
all can answer for me.

Which library would be better to use?  NuSOAP or PEAR's SOAP library?

Someone else is writing the WSDLs that I need to access.  Does this mean
that I just have to use a SOAP client to access the information or would I
need to make a SOAP server?  I guess what I'm asking is what is the
difference between a SOAP client and a SOAP server?

Lastly, do you all know of any good online tutorials I could check out that
google may not suggest?

Thanks!
Jay

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



RE: [PHP] Image editing?

2006-01-08 Thread Weber Sites LTD
Check out these code examples to start with : 

http://www.weberdev.com/search.php3?IsSub=1searchtype=categorycategory=GD+
image+librarysecondary=PHPPHPFunctions=on

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP Web Logs : http://www.weberblog.com/ 
PHP  MySQL Forums : http://www.weberforums.com/ 
Learn PHP Playing Trivia http://www.webertrivia.com 
Web Development Index http://www.weberindex.com 
Web Templates http://www.webertemplates.com
Search for PHP Code from your browser http://toolbar.weberdev.com 

 

-Original Message-
From: William Stokes [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 07, 2006 1:59 PM
To: php-general@lists.php.net
Subject: [PHP] Image editing?

Hello,

I might have to start doing some automated image editing or rezising with
PHP. I've never done anything like this before so I would need some
guidelines to get started. Basically what sections of the manual to read and
what tools need to be installed to the server side to get things like this
done. Are there any websites about this issue, other than php.net, that
might provide help to beginners? Thanks for your assistance!

-Will

--
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] upload path

2005-12-16 Thread Weber Sites LTD
Something like this?

http://www.weberdev.com/get_example-3701.html

Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP code examples : http://www.weberdev.com 
PHP Web Logs : http://www.weberblog.com/ 
PHP  MySQL Forums : http://www.weberforums.com/ 
Learn PHP Playing Trivia http://www.webertrivia.com 
Web Development Index http://www.weberindex.com 
Web Templates http://www.webertemplates.com
Search for PHP Code from your browser http://toolbar.weberdev.com  

-Original Message-
From: Adrian Bruce [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 16, 2005 3:55 PM
To: php-general@lists.php.net
Subject: [PHP] upload path

hi all

a quick one i hope! i am trying to allow users to save a set of data as a
csv file when clicking on a link on our intranet.  i can do all the
formatting and output to file but i would like the user to be able to
specify where the file is saved in the same way as they would choose a file
to upload.  Any ideas how this can be done?

thanks
Ade

--
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