php-general Digest 19 Aug 2008 08:19:02 -0000 Issue 5632

2008-08-19 Thread php-general-digest-help

php-general Digest 19 Aug 2008 08:19:02 - Issue 5632

Topics (messages 278292 through 278295):

pdo compilation question
278292 by: Tim Rupp

Re: PHP editor for linux
278293 by: Pavel

Re: Tool Tip in pdf
278294 by: Subhranil

Re: Negative Look Ahead Regex - Code Mistake or Bug?
278295 by: Jochem Maas

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
---BeginMessage---
Hi list, I hope this is the right area to ask,

I'm trying to compile PDO support in 5.2.6 and am following the
instructions here

http://us2.php.net/manual/en/pdo.installation.php

My compile line is the following



./configure  --enable-force-cgi-redirect \
--disable-rpath \
--with-bz2 \
--with-db4=/usr \
--with-curl \
--with-gd \
--enable-gd-native-ttf \
--without-gdbm \
--with-gettext \
--with-ncurses \
--with-gmp \
--with-iconv \
--with-openssl \
--with-regex=system \
--with-zlib \
--with-layout=GNU \
--enable-bcmath \
--enable-exif \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--with-kerberos \
--with-ldap=shared \
--with-mysql=shared \
--enable-mbstring=all \
--with-apxs2=/usr/sbin/apxs \
--with-pgsql=shared \
--with-mysqli \
--with-freetype-dir=/usr/include/freetype2 \
--with-mcrypt \
--enable-soap \
--enable-pcntl \
--enable-pdo=shared \
--with-sqlite=shared \
--with-pdo-sqlite=shared \
--with-pdo-mysql=shared \
--with-pdo-pgsql=shared \
--with-pdo-oci=shared


This config line I'm working with has been a growing one, so there may
be some things here that may or may not be needed. Anyway, Upon
compiling the above, I get the following error when I do a php -m



Warning: PHP Startup: Invalid library (maybe not a PHP library)
'pdo.so'  in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/pdo_mysql.so' -
/usr/local/lib/php/20060613/pdo_mysql.so: undefined symbol:
php_pdo_get_dbh_ce in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/pdo_pgsql.so' -
/usr/local/lib/php/20060613/pdo_pgsql.so: undefined symbol:
php_pdo_register_driver in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/pdo_sqlite.so' -
/usr/local/lib/php/20060613/pdo_sqlite.so: undefined symbol:
php_pdo_register_driver in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/sqlite.so' -
/usr/local/lib/php/20060613/sqlite.so: undefined symbol:
php_pdo_register_driver in Unknown on line 0





I've included the extensions in my php.ini file, but I'm completely
lost on where to go from here because the error is less than helpful.
The order that I've included them is

extension=pdo.so
extension=pdo_mysql.so
extension=pdo_pgsql.so
extension=pdo_sqlite.so
extension=sqlite.so


and they do exist, as shown here


-rwxr-xr-x  1 root root  364012 May 14  2007 apc.so
-rwxr-xr-x  1 root root  102531 Aug 18 14:25 ldap.so
-rwxr-xr-x  1 root root  120644 Aug 18 14:25 mysql.so
-rwxr-xr-x  1 root root  270860 Nov 13  2006 oci8.so
-rwxr-xr-x  1 root root  125246 Aug 18 14:25 pdo_mysql.so
-rwxr-xr-x  1 root root  100772 Aug 18 14:25 pdo_oci.so
-rwxr-xr-x  1 root root  111246 Aug 18 14:25 pdo_pgsql.so
-rwxr-xr-x  1 root root  270276 Aug 18 14:25 pdo.so
-rwxr-xr-x  1 root root 1370516 Aug 18 14:25 pdo_sqlite.so
-rwxr-xr-x  1 root root  235943 Aug 18 14:25 pgsql.so
-rwxr-xr-x  1 root root 1010437 Aug 18 14:25 sqlite.so
-rwxr-xr-x  1 root root  598407 Jan 29  2008 xdebug.so


I'm using RHEL 4, and have installed the sqlite-devel, but I think php
is choosing to use the sqlite that comes with it I'm hoping
someone on the list can point me in the right direction.

Thanks in advance,
Tim
---End Message---
---BeginMessage---
I use Zend Studio (shareware, but i couldn't find better things). There are 
some plugins for Eclipse,but if you used Zend before, you will be cunfused by 
that plugins...

P.S. Sorry for my English...


-- 
===
С уважением, Манылов Павел aka [R-k]
icq: 949-388-0
mailto:[EMAIL PROTECTED]
===
А ещё говорят так:
В каждом толстом человеке сидит худой и требует, чтобы его выпустили.
-- Сирил Коннолли
[fortune]
---End Message---
---BeginMessage---

Hi Micah,
Sorry for late reply. Actually 15th August is our INDEPENDENCE DAY and I was
out of work.
I am a newbie. I have very little knowledge about pdf. 

Re: [PHP] Re: PHP editor for linux

2008-08-19 Thread Pavel
I use Zend Studio (shareware, but i couldn't find better things). There are 
some plugins for Eclipse,but if you used Zend before, you will be cunfused by 
that plugins...

P.S. Sorry for my English...


-- 
===
С уважением, Манылов Павел aka [R-k]
icq: 949-388-0
mailto:[EMAIL PROTECTED]
===
А ещё говорят так:
В каждом толстом человеке сидит худой и требует, чтобы его выпустили.
-- Сирил Коннолли
[fortune]


Re: [PHP] Tool Tip in pdf

2008-08-19 Thread Subhranil

Hi Micah,
Sorry for late reply. Actually 15th August is our INDEPENDENCE DAY and I was
out of work.
I am a newbie. I have very little knowledge about pdf. Could you please give
some tip for wraping the text

Thanks,
Subhranil. 



Micah Gersten wrote:
 
 Why not wrap the text?
 
 Thank you,
 Micah Gersten
 onShore Networks
 Internal Developer
 http://www.onshore.com
 
 
 
 Subhranil wrote:
 Hi all,

 I am creating a pdf where text size of cell is not fixed.
 My problem is if one text is too long than that cell then it overlap the
 next cell.

 I wish to show the part of the text which are loneger than cell size and
 put
 a tool tip on that cell which show the complete text.

 Is it possible ? Looking for any suggestion.

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

-- 
View this message in context: 
http://www.nabble.com/Tool-Tip-in-pdf-tp18980527p19045252.html
Sent from the PHP - General mailing list archive at Nabble.com.


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



Re: [PHP] Negative Look Ahead Regex - Code Mistake or Bug?

2008-08-19 Thread Jochem Maas

Cameron B. Prince schreef:

Hello,

I¹ve run into a problem with a regex and need help determining if this is my
mistake or a bug. The regex is for inserting a SID into every link in the
buffer before it¹s flushed, but only when each link doesn¹t already have a
SID.


1. you really shouldn't be stuffing session IDs into URLs (but you may not have 
that choice)
2. you should let php take care of this by activating the ini setting 
session.use_trans_sid
(but you may have reasons not to)



An example of the code is here:

$buffer = 
preg_replace('/http\:\/\/www\.domain\.com([\/\w\.-]*)(?!\?PHPSESSID\=2u0cca

ffoh6jaeapkke35qpp87;?)/',
'http://www.domain.com$1?PHPSESSID=t9gksvpdcuobsnqt98qloe6lg4;', $buffer);

The code works correctly in most cases except when a SID already exists and
there is a path after the .com such as:

http://www.domain.com/path1/path2.php?PHPSESSID=2u0ccaffoh6jaeapkke35qpp87;

When this URL is processed by the regex, it becomes:

http://www.domain.com/path1/path2.ph?PHPSESSID=t9gksvpdcuobsnqt98qloe6lg4;p?
PHPSESSID=2u0ccaffoh6jaeapkke35qpp87;


So the problem is the regex not only falsely matches, it's inserting the SID
in between 2nd and 3rd letters of the extension.

You can see the code in action here:

http://kottmann.com/test.php

The full source for the test code is also available when viewing the source
of this page.

I've tested this on PHP v5.1.6 and PHP v5.2.6.

TIA,
Cameron











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



Re: [PHP] pdo compilation question

2008-08-19 Thread Thijs Lensselink

Quoting Tim Rupp [EMAIL PROTECTED]:


Hi list, I hope this is the right area to ask,

I'm trying to compile PDO support in 5.2.6 and am following the
instructions here

http://us2.php.net/manual/en/pdo.installation.php

My compile line is the following



./configure  --enable-force-cgi-redirect \
--disable-rpath \
--with-bz2 \
--with-db4=/usr \
--with-curl \
--with-gd \
--enable-gd-native-ttf \
--without-gdbm \
--with-gettext \
--with-ncurses \
--with-gmp \
--with-iconv \
--with-openssl \
--with-regex=system \
--with-zlib \
--with-layout=GNU \
--enable-bcmath \
--enable-exif \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--with-kerberos \
--with-ldap=shared \
--with-mysql=shared \
--enable-mbstring=all \
--with-apxs2=/usr/sbin/apxs \
--with-pgsql=shared \
--with-mysqli \
--with-freetype-dir=/usr/include/freetype2 \
--with-mcrypt \
--enable-soap \
--enable-pcntl \
--enable-pdo=shared \
--with-sqlite=shared \
--with-pdo-sqlite=shared \
--with-pdo-mysql=shared \
--with-pdo-pgsql=shared \
--with-pdo-oci=shared


This config line I'm working with has been a growing one, so there may
be some things here that may or may not be needed. Anyway, Upon
compiling the above, I get the following error when I do a php -m



Warning: PHP Startup: Invalid library (maybe not a PHP library)
'pdo.so'  in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/pdo_mysql.so' -
/usr/local/lib/php/20060613/pdo_mysql.so: undefined symbol:
php_pdo_get_dbh_ce in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/pdo_pgsql.so' -
/usr/local/lib/php/20060613/pdo_pgsql.so: undefined symbol:
php_pdo_register_driver in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/pdo_sqlite.so' -
/usr/local/lib/php/20060613/pdo_sqlite.so: undefined symbol:
php_pdo_register_driver in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/sqlite.so' -
/usr/local/lib/php/20060613/sqlite.so: undefined symbol:
php_pdo_register_driver in Unknown on line 0





I've included the extensions in my php.ini file, but I'm completely
lost on where to go from here because the error is less than helpful.
The order that I've included them is

extension=pdo.so
extension=pdo_mysql.so
extension=pdo_pgsql.so
extension=pdo_sqlite.so
extension=sqlite.so


and they do exist, as shown here


-rwxr-xr-x  1 root root  364012 May 14  2007 apc.so
-rwxr-xr-x  1 root root  102531 Aug 18 14:25 ldap.so
-rwxr-xr-x  1 root root  120644 Aug 18 14:25 mysql.so
-rwxr-xr-x  1 root root  270860 Nov 13  2006 oci8.so
-rwxr-xr-x  1 root root  125246 Aug 18 14:25 pdo_mysql.so
-rwxr-xr-x  1 root root  100772 Aug 18 14:25 pdo_oci.so
-rwxr-xr-x  1 root root  111246 Aug 18 14:25 pdo_pgsql.so
-rwxr-xr-x  1 root root  270276 Aug 18 14:25 pdo.so
-rwxr-xr-x  1 root root 1370516 Aug 18 14:25 pdo_sqlite.so
-rwxr-xr-x  1 root root  235943 Aug 18 14:25 pgsql.so
-rwxr-xr-x  1 root root 1010437 Aug 18 14:25 sqlite.so
-rwxr-xr-x  1 root root  598407 Jan 29  2008 xdebug.so


I'm using RHEL 4, and have installed the sqlite-devel, but I think php
is choosing to use the sqlite that comes with it I'm hoping
someone on the list can point me in the right direction.

Thanks in advance,
Tim



you are loading extensions of an older PHP version. Do an ls -als on  
/usr/local/lib/php. you will find a directory with a higher date.  
That's your new extension path. Just change the location in the  
php.ini to reflect the new location.



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



[PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread V S Rawat

If you provide paid help in code development/ testing/ troubleshooting
related to php or other software areas, please feel free to drop a line
to me at my id mentioned below. Please don't write here as some other
members might find this off topic.

Sorry for bothering the rest of you. I hope you wouldn't really mind if
some of our colleagues who are doing such a lovely volunteer work here
get to earn some money for a bottle of beer and more. Rest assured that
it is no fraud/ scam/ cheating. I am very much here to take the brickbats.

Thanks.
--
V
vsrawat at gmail dot com

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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread metastable

V S Rawat wrote:

If you provide paid help in code development/ testing/ troubleshooting
related to php or other software areas, please feel free to drop a line
to me at my id mentioned below. Please don't write here as some other
members might find this off topic.

Sorry for bothering the rest of you. I hope you wouldn't really mind if
some of our colleagues who are doing such a lovely volunteer work here
get to earn some money for a bottle of beer and more. Rest assured that
it is no fraud/ scam/ cheating. I am very much here to take the 
brickbats.


Thanks.
--
V
vsrawat at gmail dot com


Imo, it is both off-topic and inappropriate.
Moreover, I have not seen your name in any of the topics on this list or 
remembered it in any reply, as opposed to many others who take time from 
their busy schedules to give something back, free of charge. This does 
not inspire much confidence in your qualities or determination.


There are many channels out there that would be beneficial to your 
goals, e.g. wendo, ogone and the likes.

Please take your commercial goals there.


Just my two cents.


Stijn

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



[PHP] Re: Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Colin Guthrie

metastable wrote:

V S Rawat wrote:

If you provide paid help in code development/ testing/ troubleshooting
related to php or other software areas, please feel free to drop a line
to me at my id mentioned below. Please don't write here as some other
members might find this off topic.

Sorry for bothering the rest of you. I hope you wouldn't really mind if
some of our colleagues who are doing such a lovely volunteer work here
get to earn some money for a bottle of beer and more. Rest assured that
it is no fraud/ scam/ cheating. I am very much here to take the 
brickbats.


Thanks.
--
V
vsrawat at gmail dot com


Imo, it is both off-topic and inappropriate.
Moreover, I have not seen your name in any of the topics on this list or 
remembered it in any reply, as opposed to many others who take time from 
their busy schedules to give something back, free of charge. This does 
not inspire much confidence in your qualities or determination.


There are many channels out there that would be beneficial to your 
goals, e.g. wendo, ogone and the likes.

Please take your commercial goals there.


Have I read the mail wrong, or is he asking if anyone out here 
*provides* paid for help? e.g. he is saying, I need someone to provide 
me with support and I'm willing to pay for it.


To me this is not a commercial but a call for help.

Or have I read this wrong?

Col




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



Re: [PHP] PHP Script/Thread ID thingie

2008-08-19 Thread Jochem Maas

[EMAIL PROTECTED] schreef:

I'm logging things with error_log, and would like to be able to sort out one 
script run from another.

So I'm looking for some kind of script id or thread id or PHP script run 
execution ID type of function.

getmypid() just returns the same apache child process ID all the time, so 
that's not what I want.

zend_thread_id() looks useful, but I suspect it's not quite what I'm looking 
for.  But I'd have to re-compile with ZTS and --debug-mode and I don't think 
the function I'm looking for should require that...

Perhaps I've just missed the right function name?

Or perhaps this should be a Feature Request?


might very well be. I've had thew same annoyance more than once ... my 
'solution' was to
use a wrapper for error_log() (you do that anyway right ;-) and have it prepend 
a per-request 'unique'
string to each log message (some timestamp/scriptname/random-value mashup) and 
then output that same
per-request 'unique' string at the bottom of each page (so that you can then 
use that value to
grep in the error log) ... not very satisfactory, but it works.

BTW, hi!







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



Re: [PHP] Re: Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Stut

On 19 Aug 2008, at 12:36, Colin Guthrie wrote:

metastable wrote:

V S Rawat wrote:
If you provide paid help in code development/ testing/  
troubleshooting
related to php or other software areas, please feel free to drop a  
line
to me at my id mentioned below. Please don't write here as some  
other

members might find this off topic.

Sorry for bothering the rest of you. I hope you wouldn't really  
mind if
some of our colleagues who are doing such a lovely volunteer work  
here
get to earn some money for a bottle of beer and more. Rest assured  
that
it is no fraud/ scam/ cheating. I am very much here to take the  
brickbats.


Thanks.
--
V
vsrawat at gmail dot com


Imo, it is both off-topic and inappropriate.
Moreover, I have not seen your name in any of the topics on this  
list or remembered it in any reply, as opposed to many others who  
take time from their busy schedules to give something back, free of  
charge. This does not inspire much confidence in your qualities or  
determination.
There are many channels out there that would be beneficial to your  
goals, e.g. wendo, ogone and the likes.

Please take your commercial goals there.


Have I read the mail wrong, or is he asking if anyone out here  
*provides* paid for help? e.g. he is saying, I need someone to  
provide me with support and I'm willing to pay for it.


To me this is not a commercial but a call for help.

Or have I read this wrong?


Seems to me like a job ad which we generally tolerate, but a couple of  
thing concern me about this one...


1) Rest assured that it is no fraud/ scam/ cheating.

This is something only fraudsters, scammers and cheater would feel the  
need to say up front.


2) There is absolutely no mention of what company he represents or  
what type of work they do.


Anyone legitimately looking for talent (ie. who is not gonna screw  
people over) is more likely to provide more details about who they  
are. Something like we are an outsourcing company looking for top  
quality talent for occasional sub-contracting would be better, and  
including a link to their website would be even better. Add the gmail  
address and I'd avoid this like the plague.


Now where's my 0.98 change from that dollar?

-Stut

--
http://stut.net/

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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Jochem Maas

metastable schreef:

V S Rawat wrote:

If you provide paid help in code development/ testing/ troubleshooting
related to php or other software areas, please feel free to drop a line
to me at my id mentioned below. Please don't write here as some other
members might find this off topic.

Sorry for bothering the rest of you. I hope you wouldn't really mind if
some of our colleagues who are doing such a lovely volunteer work here
get to earn some money for a bottle of beer and more. Rest assured that
it is no fraud/ scam/ cheating. I am very much here to take the 
brickbats.


Thanks.
--
V
vsrawat at gmail dot com


Imo, it is both off-topic and inappropriate.


which the subject made pretty clearly, use common sense and ignore such mails if
they don't interest you.

Moreover, I have not seen your name in any of the topics on this list or 


hadn't seen yours either, at least Rawat is a real name. and for the record he 
has
posted 2 more messages to the list than you have this year (your massive 
contribution
ammounts to 7 posts since Nov'07) ... Rawat's first post started with the words
'Newbie Problem' so he's indentified himself as a beginner and therefore it's in
everyone's interest that he do alot more reading (and asking questions) rather
than replying to other's questions with the limited knowledge he has atm.

remembered it in any reply, as opposed to many others who take time from 
their busy schedules to give something back, free of charge. This does 
not inspire much confidence in your qualities or determination.


There are many channels out there that would be beneficial to your 
goals, e.g. wendo, ogone and the likes.

Please take your commercial goals there.


He's looking for a little off-list help for which he is apparently willing
to offer some kind of compensation ... plenty of other's have done the same in 
the
past, some of us occasionally even take people up on their offer and I've 
actually
earned more dollars that way than you've posted words to this list.

Seems to me you either have a pathetic grasp of the english language or you
can't be bothered to read.


Just my two cents.


indeed.

PS - for those that know, I'm back ... with a vengeance.

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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Stut

On 19 Aug 2008, at 12:52, Jochem Maas wrote:

metastable schreef:

V S Rawat wrote:
If you provide paid help in code development/ testing/  
troubleshooting
related to php or other software areas, please feel free to drop a  
line
to me at my id mentioned below. Please don't write here as some  
other

members might find this off topic.

Sorry for bothering the rest of you. I hope you wouldn't really  
mind if
some of our colleagues who are doing such a lovely volunteer work  
here
get to earn some money for a bottle of beer and more. Rest assured  
that
it is no fraud/ scam/ cheating. I am very much here to take the  
brickbats.


Thanks.
--
V
vsrawat at gmail dot com

remembered it in any reply, as opposed to many others who take time  
from their busy schedules to give something back, free of charge.  
This does not inspire much confidence in your qualities or  
determination.
There are many channels out there that would be beneficial to your  
goals, e.g. wendo, ogone and the likes.

Please take your commercial goals there.


He's looking for a little off-list help for which he is apparently  
willing
to offer some kind of compensation ... plenty of other's have done  
the same in the
past, some of us occasionally even take people up on their offer and  
I've actually

earned more dollars that way than you've posted words to this list.

Seems to me you either have a pathetic grasp of the english language  
or you

can't be bothered to read.


To be fair that wasn't entirely clear from the message. Something more  
along the lines of I'm having trouble with something that I can't  
talk about on a public list, or I have a sizable project to get done  
and I need some help for which I have a budget with a let me know  
off-list if you're interested to sign off would have been a lot  
clearer.



PS - for those that know, I'm back ... with a vengeance.


I was wondering why I didn't get much sleep last night - something was  
definitely bothering me about today.


;)

-Stut

--
http://stut.net/

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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread V S Rawat

On 8/19/2008 4:53 PM India Time, _metastable_ wrote:


Imo, it is both off-topic and inappropriate.


That could be individual opinion. :-)

Moreover, I have not seen your name in any of the topics on this list or 
remembered it in any reply, 


Your memory might be playing tricks on you:
http://groups.google.co.in/group/php.general/browse_thread/thread/de49b2b04c4eaa89/f59226fdf1b539ba?hl=enlnk=gstq=vsrawat#f59226fdf1b539ba
Newbie problem: Php script not running in browser.

I have posted about that in c.l.php also.

I had also posted a thread about aioe bouncing posts to php groups on 
account of HTML Tags.


as opposed to many others who take time from 
their busy schedules to give something back, free of charge. This does 
not inspire much confidence in your qualities or determination.


you seem to be bent on not inspiring that.



There are many channels out there that would be beneficial to your 
goals, e.g. wendo, ogone and the likes.

Please take your commercial goals there.


You seem to be having something against commercial dealings. Seems you 
dad-in-law has enough money.




Just my two cents.

Stijn


Thanks.
--
V

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



[PHP] Re: Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread V S Rawat

On 8/19/2008 5:06 PM India Time, _Colin Guthrie_ wrote:


metastable wrote:

V S Rawat wrote:

If you provide paid help in code development/ testing/ troubleshooting
related to php or other software areas, please feel free to drop a line
to me at my id mentioned below. Please don't write here as some other
members might find this off topic.

Sorry for bothering the rest of you. I hope you wouldn't really mind if
some of our colleagues who are doing such a lovely volunteer work here
get to earn some money for a bottle of beer and more. Rest assured that
it is no fraud/ scam/ cheating. I am very much here to take the 
brickbats.


Thanks.
--
V
vsrawat at gmail dot com


Imo, it is both off-topic and inappropriate.
Moreover, I have not seen your name in any of the topics on this list or 
remembered it in any reply, as opposed to many others who take time from 
their busy schedules to give something back, free of charge. This does 
not inspire much confidence in your qualities or determination.


There are many channels out there that would be beneficial to your 
goals, e.g. wendo, ogone and the likes.

Please take your commercial goals there.


Have I read the mail wrong, or is he asking if anyone out here 
*provides* paid for help? 


Right. if someone here could provide paid help on php issue or could 
develop some software, I wanted to contact him/ them.


i feel there was nothing wrong in sending one such post here.

e.g. he is saying, I need someone to provide 
me with support and I'm willing to pay for it.


To me this is not a commercial but a call for help.

Or have I read this wrong?

Col


Thanks.
--
V

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



[PHP] mail() and exim4

2008-08-19 Thread Chris Haensel
Good day list,

I am having some problems with our new server. exim4 is installed, and I am
trying to send a mail via the mail() function.

Script:

?
ini_set (error_reporting,E_ALL);
echo ini_get(error_reporting).p;
if(mail([EMAIL PROTECTED],test,ding)) {
echo Ja;
} else {
echo Nein;
}
?

Only output:

6143 (as from ini_get(error_reporting)

Nein (as in Not sending that email, dude)

No error output of the script in the browser, though.


Error in /var/log/apache2/error.log

Exim is a Mail Transfer Agent. It is normally called by Mail User Agents,
not directly from a shell command line. Options and/or arguments control
what it does when called. For a list of options, see the Exim documentation.

Has anybody had this before or could point me into the right direction? Any
help is greatly appreciated.

Cheers!

Chris



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



Re: [PHP] Re: Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread V S Rawat

On 8/19/2008 5:22 PM India Time, _Stut_ wrote:


On 19 Aug 2008, at 12:36, Colin Guthrie wrote:

metastable wrote:

V S Rawat wrote:
If you provide paid help in code development/ testing/  
troubleshooting
related to php or other software areas, please feel free to drop a  
line
to me at my id mentioned below. Please don't write here as some  
other

members might find this off topic.

Sorry for bothering the rest of you. I hope you wouldn't really  
mind if
some of our colleagues who are doing such a lovely volunteer work  
here
get to earn some money for a bottle of beer and more. Rest assured  
that
it is no fraud/ scam/ cheating. I am very much here to take the  
brickbats.


Thanks.
--
V
vsrawat at gmail dot com


Imo, it is both off-topic and inappropriate.
Moreover, I have not seen your name in any of the topics on this  
list or remembered it in any reply, as opposed to many others who  
take time from their busy schedules to give something back, free of  
charge. This does not inspire much confidence in your qualities or  
determination.
There are many channels out there that would be beneficial to your  
goals, e.g. wendo, ogone and the likes.

Please take your commercial goals there.
Have I read the mail wrong, or is he asking if anyone out here  
*provides* paid for help? e.g. he is saying, I need someone to  
provide me with support and I'm willing to pay for it.


To me this is not a commercial but a call for help.

Or have I read this wrong?


Seems to me like a job ad which we generally tolerate, but a couple of  
thing concern me about this one...


1) Rest assured that it is no fraud/ scam/ cheating.

This is something only fraudsters, scammers and cheater would feel the  
need to say up front.


Some generalization.



2) There is absolutely no mention of what company he represents or  
what type of work they do.


I don't represent anyone.

Why should I?

Are only representatives of companies allowed to post messages in this 
ng seeking paid help?


Anyone legitimately looking for talent (ie. who is not gonna screw  
people over) is more likely to provide more details about who they  
are. 


Will be provided to those who contact, in email conversations.

Seems you are interested in knowing what it is.

Something like we are an outsourcing company looking for top  
quality talent for occasional sub-contracting would be better, and  
including a link to their website would be even better. 


That was not provided because I am not an outsourcing company. No 
website link. Simple.


Add the gmail  
address and I'd avoid this like the plague.


Now where's my 0.98 change from that dollar?

-Stut



All should concede that our fellow php veterans in this ng would be 
intelligent enough not to fall for tricks.


--
V

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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread metastable

V S Rawat wrote:

On 8/19/2008 4:53 PM India Time, _metastable_ wrote:


Imo, it is both off-topic and inappropriate.


That could be individual opinion. :-)

Moreover, I have not seen your name in any of the topics on this list 
or remembered it in any reply, 


Your memory might be playing tricks on you:
http://groups.google.co.in/group/php.general/browse_thread/thread/de49b2b04c4eaa89/f59226fdf1b539ba?hl=enlnk=gstq=vsrawat#f59226fdf1b539ba 


Newbie problem: Php script not running in browser.

I have posted about that in c.l.php also.

I had also posted a thread about aioe bouncing posts to php groups on 
account of HTML Tags.


as opposed to many others who take time from their busy schedules to 
give something back, free of charge. This does not inspire much 
confidence in your qualities or determination.


you seem to be bent on not inspiring that.



There are many channels out there that would be beneficial to your 
goals, e.g. wendo, ogone and the likes.

Please take your commercial goals there.


You seem to be having something against commercial dealings. Seems you 
dad-in-law has enough money.




Just my two cents.

Stijn


Thanks.

I did indeed misread your post, but it was also confusing.
Good luck in your quest !


regards,

Stijn



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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Jochem Maas

Stut schreef:

On 19 Aug 2008, at 12:52, Jochem Maas wrote:

metastable schreef:

V S Rawat wrote:
If you provide paid help in code development/ testing/ 
troubleshooting

related to php or other software areas, please feel free to drop a line
to me at my id mentioned below. Please don't write here as some other
members might find this off topic.

Sorry for bothering the rest of you. I hope you wouldn't really mind if
some of our colleagues who are doing such a lovely volunteer work here
get to earn some money for a bottle of beer and more. Rest assured that
it is no fraud/ scam/ cheating. I am very much here to take the 
brickbats.


Thanks.
--
V
vsrawat at gmail dot com

remembered it in any reply, as opposed to many others who take time 
from their busy schedules to give something back, free of charge. 
This does not inspire much confidence in your qualities or 
determination.
There are many channels out there that would be beneficial to your 
goals, e.g. wendo, ogone and the likes.

Please take your commercial goals there.


He's looking for a little off-list help for which he is apparently 
willing
to offer some kind of compensation ... plenty of other's have done the 
same in the
past, some of us occasionally even take people up on their offer and 
I've actually

earned more dollars that way than you've posted words to this list.

Seems to me you either have a pathetic grasp of the english language 
or you

can't be bothered to read.


To be fair that wasn't entirely clear from the message. Something more 
along the lines of I'm having trouble with something that I can't talk 
about on a public list, or I have a sizable project to get done and I 
need some help for which I have a budget with a let me know off-list 
if you're interested to sign off would have been a lot clearer.


yeah, I guess - although I usually put that down to the fact that souls
from the Indian continent have a rather 'funny' way of using the english
language (when compared to the average Brit/Canadian)




PS - for those that know, I'm back ... with a vengeance.


I was wondering why I didn't get much sleep last night - something was 
definitely bothering me about today.


lol. your intuition was spot on ... pity about that ;-)



;)

-Stut




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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Jochem Maas

V S Rawat schreef:

On 8/19/2008 4:53 PM India Time, _metastable_ wrote:


Imo, it is both off-topic and inappropriate.


That could be individual opinion. :-)

Moreover, I have not seen your name in any of the topics on this list 
or remembered it in any reply, 


Your memory might be playing tricks on you:
http://groups.google.co.in/group/php.general/browse_thread/thread/de49b2b04c4eaa89/f59226fdf1b539ba?hl=enlnk=gstq=vsrawat#f59226fdf1b539ba 


Newbie problem: Php script not running in browser.

I have posted about that in c.l.php also.

I had also posted a thread about aioe bouncing posts to php groups on 
account of HTML Tags.


as opposed to many others who take time from their busy schedules to 
give something back, free of charge. This does not inspire much 
confidence in your qualities or determination.


you seem to be bent on not inspiring that.



There are many channels out there that would be beneficial to your 
goals, e.g. wendo, ogone and the likes.

Please take your commercial goals there.


You seem to be having something against commercial dealings. Seems you 
dad-in-law has enough money.




...

don't start bitchin' now ... you don't have the karma points to waste just yet



Thanks.



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



RE: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Jay Blanchard
[snip]
PS - for those that know, I'm back ... with a vengeance.
[/snip]

That explains why I didn't sleep well last night. :)

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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread metastable

Jochem Maas wrote:

metastable schreef:

V S Rawat wrote:
If you provide paid help in code development/ testing/ 
troubleshooting

related to php or other software areas, please feel free to drop a line
to me at my id mentioned below. Please don't write here as some other
members might find this off topic.

Sorry for bothering the rest of you. I hope you wouldn't really mind if
some of our colleagues who are doing such a lovely volunteer work here
get to earn some money for a bottle of beer and more. Rest assured that
it is no fraud/ scam/ cheating. I am very much here to take the 
brickbats.


Thanks.
--
V
vsrawat at gmail dot com


Imo, it is both off-topic and inappropriate.


which the subject made pretty clearly, use common sense and ignore 
such mails if

they don't interest you.

The subject made clear__ that this was an advert, not a job offering.



Moreover, I have not seen your name in any of the topics on this list or 


hadn't seen yours either, at least Rawat is a real name. and for the 
record he has
posted 2 more messages to the list than you have this year (your 
massive contribution
ammounts to 7 posts since Nov'07) ... Rawat's first post started with 
the words
'Newbie Problem' so he's indentified himself as a beginner and 
therefore it's in
everyone's interest that he do alot more reading (and asking 
questions) rather

than replying to other's questions with the limited knowledge he has atm.
You must really have nothing better to do than to look up statistics on 
posting behaviour. Slow day ? :)


I stand by my point though. Had it actually been an advert, which it was 
not, a post count of 9 would not inspire confidence in his qualities as 
a determined support engineer.


remembered it in any reply, as opposed to many others who take time 
from their busy schedules to give something back, free of charge. 
This does not inspire much confidence in your qualities or 
determination.


There are many channels out there that would be beneficial to your 
goals, e.g. wendo, ogone and the likes.

Please take your commercial goals there.


He's looking for a little off-list help for which he is apparently 
willing
to offer some kind of compensation ... plenty of other's have done the 
same in the
past, some of us occasionally even take people up on their offer and 
I've actually

earned more dollars that way than you've posted words to this list.

Seems to me you either have a pathetic grasp of the english language 
or you

can't be bothered to read.


Just my two cents.


indeed.

PS - for those that know, I'm back ... with a vengeance.

I'm sure everyone here spent these last couple of weeks wandering 
aimlessly in your abscence, hoping that you would find a post suitable 
enough to direct your vengeance at.


Welcome back.


regards,

Stijn



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



Re: [PHP] Re: Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Stut

On 19 Aug 2008, at 13:12, V S Rawat wrote:

On 8/19/2008 5:22 PM India Time, _Stut_ wrote:
Seems to me like a job ad which we generally tolerate, but a couple  
of  thing concern me about this one...

1) Rest assured that it is no fraud/ scam/ cheating.
This is something only fraudsters, scammers and cheater would feel  
the  need to say up front.


Some generalization.


Not really. I work for a classified ads website and I can say that  
after seeing more ads from scammers than I care to remember they were  
the only ones who felt the need to assert that they weren't scammers.  
You may be an exception, but as a generalisation it's sound.




2) There is absolutely no mention of what company he represents or   
what type of work they do.


I don't represent anyone.

Why should I?

Are only representatives of companies allowed to post messages in  
this ng seeking paid help?


Absolutely not, but you didn't indicate anything about what you were  
after.


Anyone legitimately looking for talent (ie. who is not gonna screw   
people over) is more likely to provide more details about who they   
are.


Will be provided to those who contact, in email conversations.

Seems you are interested in knowing what it is.


So very much not, but I am in the business of trying to protect my  
fellow human from being ripped off when I see it as a possibility.


Something like we are an outsourcing company looking for top   
quality talent for occasional sub-contracting would be better,  
and  including a link to their website would be even better.


That was not provided because I am not an outsourcing company. No  
website link. Simple.



Add the gmail  address and I'd avoid this like the plague.
Now where's my 0.98 change from that dollar?
-Stut


All should concede that our fellow php veterans in this ng would be  
intelligent enough not to fall for tricks.


People are stupid and that's universal no matter how smart they think  
they are, and I count myself in that. The best we can do is highlight  
known dodgy tactics when we see them to ensure nobody else is duped.  
I'd rather hear the same advice thousands of times than lose out once.  
Wouldn't you?


I apologise if my response offended you but you were very cryptic in  
your original message in addition to exhibiting several common  
indicators of a scam. I hope you understand.


-Stut

--
http://stut.net/

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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Stut

On 19 Aug 2008, at 13:19, metastable wrote:

Jochem Maas wrote:

metastable schreef:
which the subject made pretty clearly, use common sense and ignore  
such mails if

they don't interest you.

The subject made clear__ that this was an advert, not a job offering.


A job offering *is* an advert when posted to a public forum.

Moreover, I have not seen your name in any of the topics on this  
list or


hadn't seen yours either, at least Rawat is a real name. and for  
the record he has
posted 2 more messages to the list than you have this year (your  
massive contribution
ammounts to 7 posts since Nov'07) ... Rawat's first post started  
with the words
'Newbie Problem' so he's indentified himself as a beginner and  
therefore it's in
everyone's interest that he do alot more reading (and asking  
questions) rather
than replying to other's questions with the limited knowledge he  
has atm.
You must really have nothing better to do than to look up statistics  
on posting behaviour. Slow day ? :)


I stand by my point though. Had it actually been an advert, which it  
was not, a post count of 9 would not inspire confidence in his  
qualities as a determined support engineer.


It seems daft to judge someone based on their contribution to a public  
voluntary mailing list, especially if you just look at the numbers.  
Most job ads we get on this list come from people who've never posted  
before, but that doesn't make them any less worthy of a look if you're  
in the market.


remembered it in any reply, as opposed to many others who take  
time from their busy schedules to give something back, free of  
charge. This does not inspire much confidence in your qualities or  
determination.


There are many channels out there that would be beneficial to your  
goals, e.g. wendo, ogone and the likes.

Please take your commercial goals there.


He's looking for a little off-list help for which he is apparently  
willing
to offer some kind of compensation ... plenty of other's have done  
the same in the
past, some of us occasionally even take people up on their offer  
and I've actually

earned more dollars that way than you've posted words to this list.

Seems to me you either have a pathetic grasp of the english  
language or you

can't be bothered to read.


Just my two cents.


indeed.

PS - for those that know, I'm back ... with a vengeance.

I'm sure everyone here spent these last couple of weeks wandering  
aimlessly in your abscence, hoping that you would find a post  
suitable enough to direct your vengeance at.


Hey, now that I won't accept. Anything coming from the fingertips of  
the great Jochem in the sky is worthy and he shalt smite thee for your  
insolence.


All hail the mighty Maas!! ;)

-Stut

PS. No, not a slow day for me, just in need of a brief distraction!

--
http://stut.net

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



Re: [PHP] mail() and exim4

2008-08-19 Thread Per Jessen
Chris Haensel wrote:

 I am having some problems with our new server. exim4 is installed, and
 I am trying to send a mail via the mail() function.
 
 Script:
 
 ?
 ini_set (error_reporting,E_ALL);
 echo ini_get(error_reporting).p;
 if(mail([EMAIL PROTECTED],test,ding)) {
 echo Ja;
 } else {
 echo Nein;
 }
 ?
 
 Exim is a Mail Transfer Agent. It is normally called by Mail User
 Agents, not directly from a shell command line. 

The command line 'sendmail' or 'mail' is also an MUA, as is the PHP
mail() function. 
I don't know anything about exim, but check that you've got 'sendmail'
installed (for use from the command line).  Alternatively, check what
exim expects to use, and amend the php.ini::sendmail_path accordingly. 


/Per Jessen, Zürich


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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Thijs Lensselink

Quoting Jochem Maas [EMAIL PROTECTED]:


metastable schreef:

V S Rawat wrote:

If you provide paid help in code development/ testing/ troubleshooting
related to php or other software areas, please feel free to drop a line
to me at my id mentioned below. Please don't write here as some other
members might find this off topic.

Sorry for bothering the rest of you. I hope you wouldn't really mind if
some of our colleagues who are doing such a lovely volunteer work here
get to earn some money for a bottle of beer and more. Rest assured that
it is no fraud/ scam/ cheating. I am very much here to take the brickbats.

Thanks.
--
V
vsrawat at gmail dot com


Imo, it is both off-topic and inappropriate.


which the subject made pretty clearly, use common sense and ignore such
mails if
they don't interest you.


Moreover, I have not seen your name in any of the topics on this list or


hadn't seen yours either, at least Rawat is a real name. and for the
record he has
posted 2 more messages to the list than you have this year (your
massive contribution
ammounts to 7 posts since Nov'07) ... Rawat's first post started with
the words
'Newbie Problem' so he's indentified himself as a beginner and
therefore it's in
everyone's interest that he do alot more reading (and asking   
questions) rather

than replying to other's questions with the limited knowledge he has atm.

remembered it in any reply, as opposed to many others who take time  
 from their busy schedules to give something back, free of charge.   
This does not inspire much confidence in your qualities or   
determination.


There are many channels out there that would be beneficial to your   
goals, e.g. wendo, ogone and the likes.

Please take your commercial goals there.


He's looking for a little off-list help for which he is apparently willing
to offer some kind of compensation ... plenty of other's have done the
same in the
past, some of us occasionally even take people up on their offer and
I've actually
earned more dollars that way than you've posted words to this list.

Seems to me you either have a pathetic grasp of the english language or you
can't be bothered to read.


Just my two cents.


indeed.

PS - for those that know, I'm back ... with a vengeance.



So right!

welcome back Jochem. This list just isn't the same without your comments ;)



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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Jochem Maas

Jay Blanchard schreef:

[snip]
PS - for those that know, I'm back ... with a vengeance.
[/snip]

That explains why I didn't sleep well last night. :)


glad to know I haven't lost my touch :-P






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



Re: [PHP] Re: Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Jason Pruim


On Aug 19, 2008, at 7:36 AM, Colin Guthrie wrote:


metastable wrote:

V S Rawat wrote:
If you provide paid help in code development/ testing/  
troubleshooting
related to php or other software areas, please feel free to drop a  
line
to me at my id mentioned below. Please don't write here as some  
other

members might find this off topic.

Sorry for bothering the rest of you. I hope you wouldn't really  
mind if
some of our colleagues who are doing such a lovely volunteer work  
here
get to earn some money for a bottle of beer and more. Rest assured  
that
it is no fraud/ scam/ cheating. I am very much here to take the  
brickbats.


Thanks.
--
V
vsrawat at gmail dot com


Imo, it is both off-topic and inappropriate.
Moreover, I have not seen your name in any of the topics on this  
list or remembered it in any reply, as opposed to many others who  
take time from their busy schedules to give something back, free of  
charge. This does not inspire much confidence in your qualities or  
determination.
There are many channels out there that would be beneficial to your  
goals, e.g. wendo, ogone and the likes.

Please take your commercial goals there.


Have I read the mail wrong, or is he asking if anyone out here  
*provides* paid for help? e.g. he is saying, I need someone to  
provide me with support and I'm willing to pay for it.


To me this is not a commercial but a call for help.

Or have I read this wrong?



Hey Colin,

I read it like you. That he is willing to *pay* us for our  
expertise... Something I would definitely do if I was in the position  
to :)


--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
11287 James St
Holland, MI 49424
www.raoset.com
[EMAIL PROTECTED]





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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Jochem Maas

Stut schreef:

On 19 Aug 2008, at 13:19, metastable wrote:

Jochem Maas wrote:


...



Hey, now that I won't accept. Anything coming from the fingertips of the 
great Jochem in the sky is worthy and he shalt smite thee for your 
insolence.


atleast I've already found myself a new 'Crayon' to play with ...



All hail the mighty Maas!! ;)


how to make friends and influence people :-P



-Stut

PS. No, not a slow day for me, just in need of a brief distraction!




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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Stut

On 19 Aug 2008, at 13:36, Jochem Maas wrote:

Jay Blanchard schreef:

[snip]
PS - for those that know, I'm back ... with a vengeance.
[/snip]
That explains why I didn't sleep well last night. :)


glad to know I haven't lost my touch :-P


Oh, is that what that was? I thought I'd caught something!

-Stut

--
http://stut.net/

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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Jason Pruim


On Aug 19, 2008, at 8:38 AM, Jochem Maas wrote:


Stut schreef:

On 19 Aug 2008, at 13:19, metastable wrote:

Jochem Maas wrote:


...

Hey, now that I won't accept. Anything coming from the fingertips  
of the great Jochem in the sky is worthy and he shalt smite thee  
for your insolence.


atleast I've already found myself a new 'Crayon' to play with ...


All hail the mighty Maas!! ;)


how to make friends and influence people :-P


That's a great book BTW :)

And yes... I felt a disturbance in the force as well... The force is  
strong with you young Maas


--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
11287 James St
Holland, MI 49424
www.raoset.com
[EMAIL PROTECTED]





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



Re: [PHP] PHP Script/Thread ID thingie

2008-08-19 Thread Herman Gomez

Jochem Maas wrote:

[EMAIL PROTECTED] schreef:
I'm logging things with error_log, and would like to be able to sort 
out one script run from another.


So I'm looking for some kind of script id or thread id or PHP 
script run execution ID type of function.


getmypid() just returns the same apache child process ID all the time, 
so that's not what I want.


zend_thread_id() looks useful, but I suspect it's not quite what I'm 
looking for.  But I'd have to re-compile with ZTS and --debug-mode and 
I don't think the function I'm looking for should require that...


Perhaps I've just missed the right function name?

Or perhaps this should be a Feature Request?


might very well be. I've had thew same annoyance more than once ... my 
'solution' was to
use a wrapper for error_log() (you do that anyway right ;-) and have it 
prepend a per-request 'unique'
string to each log message (some timestamp/scriptname/random-value 
mashup) and then output that same
per-request 'unique' string at the bottom of each page (so that you can 
then use that value to

grep in the error log) ... not very satisfactory, but it works.

BTW, hi!








Following the wrapper idea, you can use the session ID. It's unique per 
user, no matter if they share the thread some times.


Regards,
Herman

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



Re: [PHP] File download problem

2008-08-19 Thread Stefano Noffke
I checked the files with an HEX editor, and I found that each downloaded 
file starts with EFBBBF, and after those three bytes follows the 
regular file.


If I delete those three bytes, I can open the files just fine.

Now the question is: Why do I get those three extra bytes at the 
beginning of each file I download with my script?


Thanks

Stefano

Stefano Noffke wrote:

Hi,

Thank you for your reply. I tried your code, but the problem remains. I 
still can download PDF, TXT, and MP3 fine, but the ODT, DOC, and JPG are 
still corrupted.


I wonder why it works with some files and not with others...

Stefano

Ashley Sheridan ha scritto:

Hi Stefano,

You can use this code instead to read in the file and output it to the
browser, as it is binary safe. I've used it for the same reason you
require, and it works fine with video clips.

$fp = fopen($path, rb); while(!feof($fp)) { print(fread($fp, 
1024)); flush($fp); } fclose($fp); exit();


The rb in the fopen function instructs PHP to open the file for
reading in a binary safe manner.

Hope this helps.

Ash
www.ashleysheridan.co.uk




Oggetto:
[PHP] File download problem
Da:
Stefano Noffke [EMAIL PROTECTED]
Data:
Mon, 18 Aug 2008 16:01:22 +0200
A:
php-general@lists.php.net

A:
php-general@lists.php.net


Greetings,

I need to create a script to let registered users to download files 
from a non-public folder.


The files name, type, and size are stored in a MySQL Database. The 
user need to click on a link, and a PHP script should handle the 
download of the file.


Here is how I organized it:

The script gets the ID from the $_GET array, retrieve the name, type, 
and size from the database, and then it sends the following:


[CODE]

header(Content-Type: $type);
header(Content-Length:  . filesize($fileNameWithAbsolutePath));
header(Content-Transfer-Encoding: binary);
header(Expires: 0);
header(Cache-Control: no-cache, must-revalidate);
header(Cache-Control: private);
header(Content-Disposition: attachment; filename=\$fileName\);

readfile($fileNameWithAbsolutePath) or die(File not found.);

[/CODE]

This script needs to work with any file type. I checked it and it 
works fine with PDF, TXT, and MP3 for example, but not with ODT, DOC, 
or JPG which are corrupted and won't even open. Those are the only 
files I tried so far.


I should add that the connection to the web page is encrypted through 
SSL. The server (Fedora 9) runs Apache 2.2.9, PHP Version 5.2.6, and 
MySQL version 5.0.51a.


I cannot find any solution to this problem, and I hope that anyone 
here can help me.


Thank you.

Stefano



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



RE: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Wolf
 Jay Blanchard [EMAIL PROTECTED] wrote: 
 [snip]
 PS - for those that know, I'm back ... with a vengeance.
 [/snip]
 
 That explains why I didn't sleep well last night. :)
 
You kidding, I don't think any of us regulars did...  

Glad to see you back Jochem.

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



Re: [PHP] File download problem

2008-08-19 Thread Ashley Sheridan
I had a similar problem with a script I was using to stream video clips
to a user from a directory that was not accessible through the web.
Turned out I had already sent some HTML content down to the browser
without realising it. I'll go out on a limb here and guess that those
three bytes you're seeing are always the same three? If so, it's highly
likely you are sending some content to the browser ahead of the file,
which gets added to the beginning of the file.

Ash
www.ashleysheridan.co.uk
---BeginMessage---
I checked the files with an HEX editor, and I found that each downloaded 
file starts with EFBBBF, and after those three bytes follows the 
regular file.


If I delete those three bytes, I can open the files just fine.

Now the question is: Why do I get those three extra bytes at the 
beginning of each file I download with my script?


Thanks

Stefano

Stefano Noffke wrote:

Hi,

Thank you for your reply. I tried your code, but the problem remains. I 
still can download PDF, TXT, and MP3 fine, but the ODT, DOC, and JPG are 
still corrupted.


I wonder why it works with some files and not with others...

Stefano

Ashley Sheridan ha scritto:

Hi Stefano,

You can use this code instead to read in the file and output it to the
browser, as it is binary safe. I've used it for the same reason you
require, and it works fine with video clips.

$fp = fopen($path, rb); while(!feof($fp)) { print(fread($fp, 
1024)); flush($fp); } fclose($fp); exit();


The rb in the fopen function instructs PHP to open the file for
reading in a binary safe manner.

Hope this helps.

Ash
www.ashleysheridan.co.uk




Oggetto:
[PHP] File download problem
Da:
Stefano Noffke [EMAIL PROTECTED]
Data:
Mon, 18 Aug 2008 16:01:22 +0200
A:
php-general@lists.php.net

A:
php-general@lists.php.net


Greetings,

I need to create a script to let registered users to download files 
from a non-public folder.


The files name, type, and size are stored in a MySQL Database. The 
user need to click on a link, and a PHP script should handle the 
download of the file.


Here is how I organized it:

The script gets the ID from the $_GET array, retrieve the name, type, 
and size from the database, and then it sends the following:


[CODE]

header(Content-Type: $type);
header(Content-Length:  . filesize($fileNameWithAbsolutePath));
header(Content-Transfer-Encoding: binary);
header(Expires: 0);
header(Cache-Control: no-cache, must-revalidate);
header(Cache-Control: private);
header(Content-Disposition: attachment; filename=\$fileName\);

readfile($fileNameWithAbsolutePath) or die(File not found.);

[/CODE]

This script needs to work with any file type. I checked it and it 
works fine with PDF, TXT, and MP3 for example, but not with ODT, DOC, 
or JPG which are corrupted and won't even open. Those are the only 
files I tried so far.


I should add that the connection to the web page is encrypted through 
SSL. The server (Fedora 9) runs Apache 2.2.9, PHP Version 5.2.6, and 
MySQL version 5.0.51a.


I cannot find any solution to this problem, and I hope that anyone 
here can help me.


Thank you.

Stefano



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


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

Re: [PHP] PHP Script/Thread ID thingie

2008-08-19 Thread Jochem Maas

Herman Gomez schreef:

Jochem Maas wrote:

[EMAIL PROTECTED] schreef:
I'm logging things with error_log, and would like to be able to sort 
out one script run from another.


So I'm looking for some kind of script id or thread id or PHP 
script run execution ID type of function.


getmypid() just returns the same apache child process ID all the 
time, so that's not what I want.














Following the wrapper idea, you can use the session ID. It's unique per 
user, no matter if they share the thread some times.


d'oh ... looking back at the code I was thinking of I actually used the session 
ID!



Regards,
Herman




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



Re: [PHP] mail() and exim4

2008-08-19 Thread Jochem Maas

Per Jessen schreef:

Chris Haensel wrote:


I am having some problems with our new server. exim4 is installed, and
I am trying to send a mail via the mail() function.

Script:

?
ini_set (error_reporting,E_ALL);
echo ini_get(error_reporting).p;
if(mail([EMAIL PROTECTED],test,ding)) {
echo Ja;
} else {
echo Nein;
}
?

Exim is a Mail Transfer Agent. It is normally called by Mail User
Agents, not directly from a shell command line. 


The command line 'sendmail' or 'mail' is also an MUA, as is the PHP
mail() function. 


exim should come with a sendmail compatible wrapper script ... which, to be
compatible is called sendmail.

on *nix boxes php's mail() function is a wrapper to the sendmail 
program/script/wotsit,
php needs to be configured (as per Per's comment) as to where sendmail is 
installed
(and optionally which special commandline args to include e.g. -f or some such).

so either:

1. the exim sendmail wrapper is not installed
2. php is looking for sendmail in the wrong place
3. you need to tell php to pass some extra args to sendmail when it call's it 
from the mail() func
4. a combination of the above.


I don't know anything about exim, but check that you've got 'sendmail'
installed (for use from the command line).  Alternatively, check what
exim expects to use, and amend the php.ini::sendmail_path accordingly. 



/Per Jessen, Zürich


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



Re: [PHP] File download problem

2008-08-19 Thread Stefano Noffke

Thanks for the reply.

I think I found the problem here: The php file was saved with UTF-8 
encoding, and for some unknown reason it was adding the UTF-8 BOM to the 
output as well. I just saved the PHP file as ANSI, and it worked like a 
charm.


Thank you for all your help :)

Stefano

Ashley Sheridan wrote:
I had a similar problem with a script I was using to stream video clips 
to a user from a directory that was not accessible through the web. 
Turned out I had already sent some HTML content down to the browser 
without realising it. I'll go out on a limb here and guess that those 
three bytes you're seeing are always the same three? If so, it's highly 
likely you are sending some content to the browser ahead of the file, 
which gets added to the beginning of the file.


Ash
www.ashleysheridan.co.uk




Subject:
Re: [PHP] File download problem
From:
Stefano Noffke [EMAIL PROTECTED]
Date:
Tue, 19 Aug 2008 15:17:25 +0200
To:
php-general@lists.php.net

To:
php-general@lists.php.net


I checked the files with an HEX editor, and I found that each downloaded 
file starts with EFBBBF, and after those three bytes follows the 
regular file.


If I delete those three bytes, I can open the files just fine.

Now the question is: Why do I get those three extra bytes at the 
beginning of each file I download with my script?


Thanks

Stefano

Stefano Noffke wrote:

Hi,

Thank you for your reply. I tried your code, but the problem remains. 
I still can download PDF, TXT, and MP3 fine, but the ODT, DOC, and JPG 
are still corrupted.


I wonder why it works with some files and not with others...

Stefano

Ashley Sheridan ha scritto:

Hi Stefano,

You can use this code instead to read in the file and output it to the
browser, as it is binary safe. I've used it for the same reason you
require, and it works fine with video clips.

$fp = fopen($path, rb); while(!feof($fp)) { print(fread($fp, 
1024)); flush($fp); } fclose($fp); exit();


The rb in the fopen function instructs PHP to open the file for
reading in a binary safe manner.

Hope this helps.

Ash
www.ashleysheridan.co.uk




Oggetto:
[PHP] File download problem
Da:
Stefano Noffke [EMAIL PROTECTED]
Data:
Mon, 18 Aug 2008 16:01:22 +0200
A:
php-general@lists.php.net

A:
php-general@lists.php.net


Greetings,

I need to create a script to let registered users to download files 
from a non-public folder.


The files name, type, and size are stored in a MySQL Database. The 
user need to click on a link, and a PHP script should handle the 
download of the file.


Here is how I organized it:

The script gets the ID from the $_GET array, retrieve the name, type, 
and size from the database, and then it sends the following:


[CODE]

header(Content-Type: $type);
header(Content-Length:  . filesize($fileNameWithAbsolutePath));
header(Content-Transfer-Encoding: binary);
header(Expires: 0);
header(Cache-Control: no-cache, must-revalidate);
header(Cache-Control: private);
header(Content-Disposition: attachment; filename=\$fileName\);

readfile($fileNameWithAbsolutePath) or die(File not found.);

[/CODE]

This script needs to work with any file type. I checked it and it 
works fine with PDF, TXT, and MP3 for example, but not with ODT, DOC, 
or JPG which are corrupted and won't even open. Those are the only 
files I tried so far.


I should add that the connection to the web page is encrypted through 
SSL. The server (Fedora 9) runs Apache 2.2.9, PHP Version 5.2.6, and 
MySQL version 5.0.51a.


I cannot find any solution to this problem, and I hope that anyone 
here can help me.


Thank you.

Stefano





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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread V S Rawat

On 8/19/2008 4:53 PM India Time, _metastable_ wrote:

There are many channels out there that would be beneficial to your 
goals, e.g. wendo, ogone and the likes.

Please take your commercial goals there.


Oh, like ODesk?

I wouldn't be able to pay that kind of King's ransoms the developers 
over there are charging.


I thought that if I look in help ngs where veterans are already 
providing voluntary help, they might not mind if I manage to pay a 
humble amount for their tips for correcting or even developing a crucial 
cryptic part of my code.


Actually, I had seen, especially in Java groups, threads like:

http://groups.google.co.in/group/comp.lang.java.help/browse_thread/thread/7b610ded8e22098f/8d083f8ff374f4b0?hl=enlnk=gstq=paypal#8d083f8ff374f4b0
Email Java tutor needed! $20 each homework!

http://groups.google.co.in/group/comp.lang.java.gui/browse_thread/thread/afb2cca2c29d5b03/d0fe80666226af6f?hl=enlnk=stq=JAVA+PAYPAL#d0fe80666226af6f
get $10 through paypal upon finishing this small java prgram..1st come 
1st win


http://groups.google.co.in/group/comp.lang.java.help/browse_thread/thread/ed2007c157e55cde/7b34426e63f07520?hl=enlnk=gstq=paypal#7b34426e63f07520
Will Pay $50 for help on Java swing project

http://groups.google.co.in/group/comp.lang.java.help/browse_thread/thread/71baa9425c6f56ce/c597a93e0a526c0e?hl=enlnk=gstq=paypal#c597a93e0a526c0e
Please help me

In the last thread above, members helped a person, and then, this is a part:

Newsgroups: comp.lang.java.help
From: Andrew Thompson [EMAIL PROTECTED]
Date: Fri, 11 Jun 2004 17:25:25 GMT
Subject: Re: Please help me

On Fri, 11 Jun 2004 17:25:33 +0100, april wrote:
 I have just had a look at the sites listed but could not find anywhere
 to dontate some cash. Do you have a paypal account and prehaps then I
 could do it that way

Sure do,
http://www.PhySci.org/codes/ 
the 'Make a Donation' button is hidden
over on the left, below the menu...

(Tah!)

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web  IT Help
http://www.1point1C.org/ Science  Technology

--
 Oh yeah now I see it. Sorry its not going to be mega amounts of money as
 I really can not afford it right now so please understand. Sorry I can
 not afford more.

Make no apologies April, and thank you.

With the two donations I have received recently
(1 from a student in Ireland) I now have almost
half what the *huge* ads on my site have earned
over 4 months!

All the best with your new Java
enabled browser, April.  Take care.   :-)
--end


So, I thought that I might also utilize similar help against humble 
payments.


No, it is not my school homework. I don't study - I mean, not any more. :-)

I am a surviving dinosaur of DOS/GWBasic/ Pascal/ Fortran/ Cobol/ 
dBASEIII/ foxpro and unix days when windows and Linux were not born. I 
am (was) a master of procedural languages but then my ratbrain couldn't 
grasp 4GLs if you know that early 90s term.


I then learned HTML and bits of Perl, Java and Javascript, but I get 
scared by their vastness and can do only elementary half page coding in 
them.


I work by freelancing - bidding and getting jobs on net sites, getting 
paid for them. My own areas are Translation, Transcription, MS Office, 
Excel, HTML. But, nowadays nothing is working in isolation. e.g., go to 
that site, extract 200 pages of data, only this-this-this fields, save 
that in csv file and open that in excel, do such and such processing on 
this and this field of the data and arrange the results in such format, 
convert that to pdf and send the pdf to me. whoosh!


Stumbling blocks:
- foxpro 2.6 has been rendered obsolete even by its makers. I had never 
even looked into its Visual counterpart.


- perl is manageable, but PerlScript doesn't work in Firefox.

- PerlScript is working in ie, but greasemonkey ready scripts and ff's 
wealth of extensions don't work in ie.


- I have been told that JavaScript is not able to save things on hdd.

so on. Wherever I start, something comes up that stumps me and I loose 
another project.


I was surprised to see PHP becoming increasing popular for web related 
work. Clients are mentioning php by name. I thought that I could manage 
it with my Perl/ CGI bits of knowledge. I installed win WAMP Server 2.0 
and everything else is working fine but php refused to work on my box. 
Even if it starts working, i wouldn't be able to become a master of it 
overnight. I inquired about command line processor or javascript like 
shell of php, but seems there are none.


Why not ask for unpaid help here?

Well, the usual culture in techy ng-s/ ml-s is NO-SPOONFEEDING. If I ask 
questions here, members would surely help me but would ask me to read 
such and such webpage or manual and tryout this and that command. When 
the client is sitting on my head through the other end of chat window 
threatening to cancel the project and even forfeit expert guarantee 
amount committed by me, 

Re: [PHP] File download problem

2008-08-19 Thread Stefano Noffke

I just add this comment for reference.

I found this bug report on the PHP Web site:
http://bugs.php.net/bug.php?id=22108

That bug explains everything :)

Stefano

Stefano Noffke wrote:

Thanks for the reply.

I think I found the problem here: The php file was saved with UTF-8 
encoding, and for some unknown reason it was adding the UTF-8 BOM to the 
output as well. I just saved the PHP file as ANSI, and it worked like a 
charm.


Thank you for all your help :)

Stefano



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



[PHP] VCard

2008-08-19 Thread Hélio Rocha
I there!

I've writed and app that sends a sms trough a gateway, but i want to send
vcard messages, it works in some phones but doesn't work in others like some
recent nokias, does anyone knows the valid vcard formats?

Thanks in advance!


Re: [PHP] File download problem

2008-08-19 Thread Ashley Sheridan
That bug report makes sense now, in light of your problem. It wasn't
something I'd ever seen happen before, as most of my work is done on
Linux, and the bug seems to be specific to the way Windows uses the BOM
for UTF-8 PHP files.

Ash
www.ashleysheridan.co.uk
---BeginMessage---

I just add this comment for reference.

I found this bug report on the PHP Web site:
http://bugs.php.net/bug.php?id=22108

That bug explains everything :)

Stefano

Stefano Noffke wrote:

Thanks for the reply.

I think I found the problem here: The php file was saved with UTF-8 
encoding, and for some unknown reason it was adding the UTF-8 BOM to the 
output as well. I just saved the PHP file as ANSI, and it worked like a 
charm.


Thank you for all your help :)

Stefano



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


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

Re: [PHP] VCard

2008-08-19 Thread Stut

On 19 Aug 2008, at 15:22, Hélio Rocha wrote:

I there!

I've writed and app that sends a sms trough a gateway, but i want to  
send
vcard messages, it works in some phones but doesn't work in others  
like some

recent nokias, does anyone knows the valid vcard formats?

Thanks in advance!


STFW!!

First result is http://en.wikipedia.org/wiki/VCard which contains  
links to specs and other info.


-Stut

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



Re: [PHP] VCard

2008-08-19 Thread Aschwin Wesselius

Hélio Rocha wrote:

I there!

I've writed and app that sends a sms trough a gateway, but i want to send
vcard messages, it works in some phones but doesn't work in others like some
recent nokias, does anyone knows the valid vcard formats?

Thanks in advance!

  

I'm here too! ;-)

How far did you get searching the web? Have you read documentation about 
VCard formats etc.? Maybe there are even Requests For Comments (RFC's) 
about it.


--

Aschwin Wesselius

/'What you would like to be done to you, do that to the other'/


Re: [PHP] VCard

2008-08-19 Thread Ashley Sheridan
Have you asked the people who are offering this gateway? This would seem
like a not too unusual request, and might be in their FAQ's?

Ash
www.ashleysheridan.co.uk
---BeginMessage---
I there!

I've writed and app that sends a sms trough a gateway, but i want to send
vcard messages, it works in some phones but doesn't work in others like some
recent nokias, does anyone knows the valid vcard formats?

Thanks in advance!
---End Message---
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Stut

Sorry for the top-post, and please don't be offended by the following...

Much as you would probably like to think it's a good business model,  
bidding low for projects and then expecting other developers to help  
you for even less is not sustainable. I appreciate your position but  
you need to understand that freelance PHP developers charge what they  
do because that's what the market will pay.


I've recently taken on 2 PHP contractors and even though there's only  
20 GBP difference in their daily rates one is miles better than the  
other, to the point where I'm having to check everything the slightly  
cheaper one is doing and I've found a number of killer bugs that would  
have caused major issues had they gone live. The point I'm making is  
that you get what you pay for and you're kinda illustrating why.  
Unfortunately the general market out there doesn't value quality over  
it works so the gap between the excellent and the downright awful is  
pretty small.


The bottom line is that you shouldn't be taking on work that either  
you can't do or you can't afford to sub-contract. Appealing to the  
community for cheap help is just not cricket!


You wouldn't go broke on not getting such amounts - every penny  
counts when you're a freelancer, as does every minute. Some will be  
able to afford to lose a few dollars here and there due to non- 
payment, but others (in fact the ones likely to take up your offer if  
you can find any) probably can't.


I hope you take this the way it's intended - as some friendly advice -  
and not as an attack of any kind. I applaud anyone who's embarking on  
a freelance career since it's a pretty risky route to take, but you  
need to approach it in a sustainable way if it's going to be a  
success. If you can make a success of freelancing you can do very well  
out of it so I wish you the best of luck.


-Stut

--
http://stut.net/

On 19 Aug 2008, at 15:17, V S Rawat wrote:


On 8/19/2008 4:53 PM India Time, _metastable_ wrote:

There are many channels out there that would be beneficial to your  
goals, e.g. wendo, ogone and the likes.

Please take your commercial goals there.


Oh, like ODesk?

I wouldn't be able to pay that kind of King's ransoms the developers  
over there are charging.


I thought that if I look in help ngs where veterans are already  
providing voluntary help, they might not mind if I manage to pay a  
humble amount for their tips for correcting or even developing a  
crucial cryptic part of my code.


Actually, I had seen, especially in Java groups, threads like:

http://groups.google.co.in/group/comp.lang.java.help/browse_thread/thread/7b610ded8e22098f/8d083f8ff374f4b0?hl=enlnk=gstq=paypal#8d083f8ff374f4b0
Email Java tutor needed! $20 each homework!

http://groups.google.co.in/group/comp.lang.java.gui/browse_thread/thread/afb2cca2c29d5b03/d0fe80666226af6f?hl=enlnk=stq=JAVA+PAYPAL#d0fe80666226af6f
get $10 through paypal upon finishing this small java prgram..1st  
come 1st win


http://groups.google.co.in/group/comp.lang.java.help/browse_thread/thread/ed2007c157e55cde/7b34426e63f07520?hl=enlnk=gstq=paypal#7b34426e63f07520
Will Pay $50 for help on Java swing project

http://groups.google.co.in/group/comp.lang.java.help/browse_thread/thread/71baa9425c6f56ce/c597a93e0a526c0e?hl=enlnk=gstq=paypal#c597a93e0a526c0e
Please help me

In the last thread above, members helped a person, and then, this is  
a part:


Newsgroups: comp.lang.java.help
From: Andrew Thompson [EMAIL PROTECTED]
Date: Fri, 11 Jun 2004 17:25:25 GMT
Subject: Re: Please help me

On Fri, 11 Jun 2004 17:25:33 +0100, april wrote:
 I have just had a look at the sites listed but could not find  
anywhere
 to dontate some cash. Do you have a paypal account and prehaps  
then I

 could do it that way

Sure do,
http://www.PhySci.org/codes/ 
the 'Make a Donation' button is hidden
over on the left, below the menu...

(Tah!)

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web  IT Help
http://www.1point1C.org/ Science  Technology

--
 Oh yeah now I see it. Sorry its not going to be mega amounts of  
money as
 I really can not afford it right now so please understand. Sorry I  
can

 not afford more.

Make no apologies April, and thank you.

With the two donations I have received recently
(1 from a student in Ireland) I now have almost
half what the *huge* ads on my site have earned
over 4 months!

All the best with your new Java
enabled browser, April.  Take care.   :-)
--end


So, I thought that I might also utilize similar help against humble  
payments.


No, it is not my school homework. I don't study - I mean, not any  
more. :-)


I am a surviving dinosaur of DOS/GWBasic/ Pascal/ Fortran/ Cobol/  
dBASEIII/ foxpro and unix days when windows and Linux were not born.  
I am (was) a master of procedural languages but then my ratbrain  
couldn't grasp 4GLs if you know that early 90s term.


I then learned HTML 

Re: [PHP] File download problem

2008-08-19 Thread tedd

At 3:32 PM +0100 8/19/08, Ashley Sheridan wrote:
That bug report makes sense now, in light of your problem. It wasn't 
something I'd ever seen happen before, as most of my work is done on 
Linux, and the bug seems to be specific to the way Windows uses the 
BOM for UTF-8 PHP files.


Ash:

A problem with windoezs -- that can't be!  :-)

Cheers,

tedd

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

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



[PHP] loop weirdness

2008-08-19 Thread Dan Shirah
Hello all!

I'm having some weirdness with a loop. I am adding an conditional statement
to my script to see if a condition is met before running a loop.  All of the
code up to this point works great so I have not included it since it is very
long and extensive.  Basically I have a query that runs and is output to
$info.  This is where the code below picks up.

Whenever I add the if() I only get one result returned.  But if I simply
delete the if() statement I get all of the rows returned.

Is there some weirdness where the closing backet of the if() statement gets
interpretted by PHP to be the closing bracket of the while loop?

print_r($row); does display all of the results from my query so I know they
are in there.  So the only thing I could think of is the curly braces being
used for the while() before the if()

?php
 if ($f_date!=) { // Start of IF
  while ($row = ifx_fetch_row($info)) { // Start of While
  $case_date = $row['caa61140005'];
  $case_type = substr($row['caa38840002'], 4);
  $case_id = $row['caa443400018'];
  $case_num = TRIM($row['caa44340041']);
  $case_title = TRIM($row['caa44340002']);
  $case_category = TRIM($row['caa443400013']);
  print_r($row);
 } // End of IF
?
tr
td width='300' id=?php echo $case_num; ? height='13' align='center'
class='tblcell'div align='left' id=?php echo $case_num; ?img
src=Images/Next1.gifa href=javascript:caseDetail('?php echo $case_id;
?','?php echo $case_title; ?','?php echo $party_name; ?','?php echo
$case_num; ?')?php echo $party_name.br /\n.$case_num;
?/a/div/td
/tr
?php
} //End of While
?

Any ideas?

Thanks,
Dan


Re: [PHP] loop weirdness

2008-08-19 Thread Stut

On 19 Aug 2008, at 15:58, Dan Shirah wrote:
I'm having some weirdness with a loop. I am adding an conditional  
statement
to my script to see if a condition is met before running a loop.   
All of the
code up to this point works great so I have not included it since it  
is very
long and extensive.  Basically I have a query that runs and is  
output to

$info.  This is where the code below picks up.

Whenever I add the if() I only get one result returned.  But if I  
simply

delete the if() statement I get all of the rows returned.

Is there some weirdness where the closing backet of the if()  
statement gets

interpretted by PHP to be the closing bracket of the while loop?

print_r($row); does display all of the results from my query so I  
know they
are in there.  So the only thing I could think of is the curly  
braces being

used for the while() before the if()

?php
if ($f_date!=) { // Start of IF
 while ($row = ifx_fetch_row($info)) { // Start of While
 $case_date = $row['caa61140005'];
 $case_type = substr($row['caa38840002'], 4);
 $case_id = $row['caa443400018'];
 $case_num = TRIM($row['caa44340041']);
 $case_title = TRIM($row['caa44340002']);
 $case_category = TRIM($row['caa443400013']);
 print_r($row);
} // End of IF
?
tr
td width='300' id=?php echo $case_num; ? height='13'  
align='center'

class='tblcell'div align='left' id=?php echo $case_num; ?img
src=Images/Next1.gifa href=javascript:caseDetail('?php echo  
$case_id;
?','?php echo $case_title; ?','?php echo $party_name; ?','?php  
echo

$case_num; ?')?php echo $party_name.br /\n.$case_num;
?/a/div/td
/tr
?php
} //End of While
?

Any ideas?


Your comments indicate you're trying to end the if in the middle of  
the while, but what PHP will be doing is ending the while where you  
want to end the if. I assume what you actually want to do is end both  
after the HTML is output, but I'm just guessing.


-Stut

--
http://stut.net/

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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread V S Rawat

On 8/19/2008 5:49 PM India Time, _metastable_ wrote:



I stand by my point though. Had it actually been an advert, which it was 
not, a post count of 9 would not inspire confidence in his qualities as 
a determined support engineer.


I think incorrigible is the word for you.

V S rawat java
http://groups.google.co.in/groups/search?ie=UTF-8oe=utf-8q=V+S+rawat+javaqt_s=Search
284 hits,

V S rawat javascript
http://groups.google.co.in/groups/search?ie=UTF-8oe=utf-8q=V+S+rawat+javascriptqt_s=Search
212 hits,

V S rawat perl
http://groups.google.co.in/groups/search?ie=UTF-8oe=utf-8q=V+S+rawat+perlqt_s=Search
122 hits

V S rawat crack
http://groups.google.co.in/groups/search?ie=UTF-8oe=utf-8q=V+S+rawat+crackqt_s=Search
56 hits
(that crack was for serial/keygen/ cracks type of crack. Not what you 
just thought.)


V S rawat
http://groups.google.co.in/groups/search?ie=UTF-8oe=utf-8q=V+S+rawatqt_s=Search
13,000 hits.



regards,

Stijn



I foresee you now declaring me the biggest spammer on ngs.

I am on ngs since when Groups.Google was not born and Deja (what was the 
name?) was ruling the roost which was then bought by Google to get 
content for groups.google.


--
V

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



Re: [PHP] loop weirdness

2008-08-19 Thread Dan Shirah

  Your comments indicate you're trying to end the if in the middle of the
 while, but what PHP will be doing is ending the while where you want to end
 the if. I assume what you actually want to do is end both after the HTML is
 output, but I'm just guessing.

 -Stut


Depending on specific conditions, one of two queries will be ran.

In one query $f_date ==  and in the other $f_date == some date

If $f_date == some date then I will have multiple rows of data returned so
I would need to use:

while($row = ifx_fetch_row($info) {

But, if $f_date ==  then only a single row would be returned and I would
use:

$row = ifx_fetch_row($info);

So, depending if $f_date is  or some date I have A LOT of tables and
data that are populated with results pulled from the seperate queries and I
don't want to duplicate all of that data.


Re: [PHP] loop weirdness

2008-08-19 Thread Stut

On 19 Aug 2008, at 16:10, Dan Shirah wrote:
Your comments indicate you're trying to end the if in the middle of  
the while, but what PHP will be doing is ending the while where you  
want to end the if. I assume what you actually want to do is end  
both after the HTML is output, but I'm just guessing.


-Stut

Depending on specific conditions, one of two queries will be ran.

In one query $f_date ==  and in the other $f_date == some date

If $f_date == some date then I will have multiple rows of data  
returned so I would need to use:


while($row = ifx_fetch_row($info) {

But, if $f_date ==  then only a single row would be returned and I  
would use:


$row = ifx_fetch_row($info);

So, depending if $f_date is  or some date I have A LOT of tables  
and data that are populated with results pulled from the seperate  
queries and I don't want to duplicate all of that data.


Perhaps I'm not understanding correctly, but you can still use the  
while loop if only a single row is returned, it'll just run the loop  
once.


-Stut

--
http://stut.net/

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



Re: [PHP] loop weirdness

2008-08-19 Thread Dan Shirah
 Perhaps I'm not understanding correctly, but you can still use the while
 loop if only a single row is returned, it'll just run the loop once.

 -Stut



That's what I thought also and is how I had it setup at first!  But for some
strange reason it always returned 4 identical results instead of just one.

I took the query and placed it in several SQL editors and all of them only
gave me one result back so I decided to try a different approach.


Re: [PHP] loop weirdness

2008-08-19 Thread Stut

On 19 Aug 2008, at 16:21, Dan Shirah wrote:
Perhaps I'm not understanding correctly, but you can still use the  
while loop if only a single row is returned, it'll just run the loop  
once.


-Stut


That's what I thought also and is how I had it setup at first!  But  
for some strange reason it always returned 4 identical results  
instead of just one.


If you've still got that code post it and we might be able to see the  
problem.


-Stut

--
http://stut.net/

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



Re: [PHP] loop weirdness

2008-08-19 Thread clive
I presume you mean you see all the print_r's for each row and that you 
only see one row echo'd out in your html?


You have your brackets in the wrong place, it should be something like this:

if ($f_date != ) {
   while($row = ifx_fetch_row($info)) {
  
  //set your variables

  //echo out your html
 
   } //end while

} //end if


Dan Shirah wrote:

Hello all!

I'm having some weirdness with a loop. I am adding an conditional statement
to my script to see if a condition is met before running a loop.  All of the
code up to this point works great so I have not included it since it is very
long and extensive.  Basically I have a query that runs and is output to
$info.  This is where the code below picks up.

Whenever I add the if() I only get one result returned.  But if I simply
delete the if() statement I get all of the rows returned.

Is there some weirdness where the closing backet of the if() statement gets
interpretted by PHP to be the closing bracket of the while loop?

print_r($row); does display all of the results from my query so I know they
are in there.  So the only thing I could think of is the curly braces being
used for the while() before the if()

?php
 if ($f_date!=) { // Start of IF
  while ($row = ifx_fetch_row($info)) { // Start of While
  $case_date = $row['caa61140005'];
  $case_type = substr($row['caa38840002'], 4);
  $case_id = $row['caa443400018'];
  $case_num = TRIM($row['caa44340041']);
  $case_title = TRIM($row['caa44340002']);
  $case_category = TRIM($row['caa443400013']);
  print_r($row);
 } // End of IF
?
tr
td width='300' id=?php echo $case_num; ? height='13' align='center'
class='tblcell'div align='left' id=?php echo $case_num; ?img
src=Images/Next1.gifa href=javascript:caseDetail('?php echo $case_id;
?','?php echo $case_title; ?','?php echo $party_name; ?','?php echo
$case_num; ?')?php echo $party_name.br /\n.$case_num;
?/a/div/td
/tr
?php
} //End of While
?

Any ideas?

Thanks,
Dan

  




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



Re: [PHP] loop weirdness

2008-08-19 Thread clive

I presume you mean you see all the print_r's for each row and that you
only see one row echo'd out in your html?

You have your brackets in the wrong place, it should be something like this:

if ($f_date != ) {
   while($row = ifx_fetch_row($info)) {

  //set your variables
  //echo out your html

   } //end while
} //end if


Dan Shirah wrote:

Hello all!

I'm having some weirdness with a loop. I am adding an conditional statement
to my script to see if a condition is met before running a loop.  All of the
code up to this point works great so I have not included it since it is very
long and extensive.  Basically I have a query that runs and is output to
$info.  This is where the code below picks up.

Whenever I add the if() I only get one result returned.  But if I simply
delete the if() statement I get all of the rows returned.

Is there some weirdness where the closing backet of the if() statement gets
interpretted by PHP to be the closing bracket of the while loop?

print_r($row); does display all of the results from my query so I know they
are in there.  So the only thing I could think of is the curly braces being
used for the while() before the if()

?php
 if ($f_date!=) { // Start of IF
  while ($row = ifx_fetch_row($info)) { // Start of While
  $case_date = $row['caa61140005'];
  $case_type = substr($row['caa38840002'], 4);
  $case_id = $row['caa443400018'];
  $case_num = TRIM($row['caa44340041']);
  $case_title = TRIM($row['caa44340002']);
  $case_category = TRIM($row['caa443400013']);
  print_r($row);
 } // End of IF
?
tr
td width='300' id=?php echo $case_num; ? height='13' align='center'
class='tblcell'div align='left' id=?php echo $case_num; ?img
src=Images/Next1.gifa href=javascript:caseDetail('?php echo $case_id;
?','?php echo $case_title; ?','?php echo $party_name; ?','?php echo
$case_num; ?')?php echo $party_name.br /\n.$case_num;
?/a/div/td
/tr
?php
} //End of While
?

Any ideas?

Thanks,
Dan

  





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



[PHP] make install doesn't seem to work on downgrade on OS X -- anyone else seen this?

2008-08-19 Thread Weston C
I recently downgraded from a build of 5.3 to 5.2.6 on OS X, and had a
bit of time figuring out what was going on when make install didn't
seem to actually copy the CLI binary and Apache SO to their target
spots.

Has anyone else seen this problem?

What category would a bug report for this be under? It's a
build/install issue, but there's no particular category for these
beyond compile issues...

Thanks,

Weston

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



Re: [PHP] make install doesn't seem to work on downgrade on OS X -- anyone else seen this?

2008-08-19 Thread Jason Pruim


On Aug 19, 2008, at 12:27 PM, Weston C wrote:


I recently downgraded from a build of 5.3 to 5.2.6 on OS X, and had a
bit of time figuring out what was going on when make install didn't
seem to actually copy the CLI binary and Apache SO to their target
spots.

Has anyone else seen this problem?

What category would a bug report for this be under? It's a
build/install issue, but there's no particular category for these
beyond compile issues...



Is there a particular reason you are downgrading?


--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
11287 James St
Holland, MI 49424
www.raoset.com
[EMAIL PROTECTED]





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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread V S Rawat

On 8/19/2008 8:11 PM India Time, _Stut_ wrote:


Sorry for the top-post, and please don't be offended by the following...

Much as you would probably like to think it's a good business model,  
bidding low for projects 


I would be bidding low? Where did I say that?

Currently I am not at all bidding on those projects as I know I wouldn't 
be able to do them. Once I know that I will get help where I get stuck 
doing them, I would very much bid. And bid high as well.


 and then expecting other developers to help you

When you say expecting others, it sounds as if I have invoked some 
11th commandment that php developers must help me. Nothing like that. 
It was an offer to help me on email against tiny gesture payments that 
would at most fetch a glass of beer, just like your friends give you a 
tiny treat when you help them out in something.


  for even less

again. even less implies that there is some high rate at which a php 
member would help people, and I am pleading to him to help me at a rate 
lower than that. Nothing like that. Firstly, there is no rate for 
helping in this ng. It is all free. Secondly, I don't think anybody here 
bother to negotiate payments with anyone against help. I thought someone 
would help me and would get a tiny unasked payment. As I quoted, Java ng 
is already doing it. May be, php ng would also do it some day.


 is not sustainable.

no problemo. Then I wouldn't be able to do it through php. I would start 
using java or other languages in which somebody could help me.


I appreciate your position but  
you need to understand that freelance PHP developers charge what they  
do because that's what the market will pay.


They can continue charging that. Where am I coming in picture? I can't 
afford their rates so I can't use their professional help. If I get 
help, I would bid against those freelance PHP developers in the same 
range and market would absorb me also.




I've recently taken on 2 PHP contractors and even though there's only  
20 GBP difference in their daily rates one is miles better than the  
other, to the point where I'm having to check everything the slightly  
cheaper one is doing and I've found a number of killer bugs that would  
have caused major issues had they gone live. The point I'm making is  
that you get what you pay for and you're kinda illustrating why.  


I understand quality. I don't intend to do shabby job for my clients. I 
need php veterans, that is why I posted this thread here.


 Unfortunately the general market out there doesn't value quality over
 it works so the gap between the excellent and the downright awful is
 pretty small.

No, no. Worry not on this account. One can't make-believe in code 
development. It either runs or doesn't run. Nobody can create a fake 
code that gives appearance of running and producing output but actually 
doing nothing really.




The bottom line is that you shouldn't be taking on work that either  
you can't do or you can't afford to sub-contract. Appealing to the  
community for cheap help is just not cricket!


Nobody is appealing. Nobody mentioned cheap rate as if seeking discount.

There are freelancer somewhere. Of course, several regulars of this ng 
must be doing freelancing elsewhere and earning good money.


But I am sure that this ng has several veterans who don't do 
freelancing. They are here helping other just due to their passion for 
php and due to their helpful nature. If they start freelancing, they 
would also earn good money, but freelancing needs its own commitments 
and overheads that they might not feel like bothering about due to their 
existing commitments. I come handy for them. I chase the projects, I 
bid, I commit, I interact with clients. The php veteran here wouldn't 
need to go into all that. but he would just give reply to my one or two 
emails, may be jot down 5 lines of code and send to me, and he is done. 
Remaining work is still upon me to finish and to feed to the client.


So, the php veteran still has his existing free life, and he just spend 
5 minutes for me. I thought that some of you might find it worth giving 
a thought.




You wouldn't go broke on not getting such amounts - every penny  
counts when you're a freelancer, as does every minute. Some will be  
able to afford to lose a few dollars here and there due to non- 
payment, but others (in fact the ones likely to take up your offer if  
you can find any) probably can't.


Tch. I was just telling that even in the worst case when all your fears 
come true and I run away with your $20, you will still have all you 
have. The purpose of writing it was not to confess that I would do it, 
but to say that I wouldn't do it as it would make me loose your further 
help.




I hope you take this the way it's intended - as some friendly advice -  
and not as an attack of any kind. I applaud anyone who's embarking on  
a freelance career since it's a pretty risky route to take, but you  
need to approach it in 

Re: [PHP] make install doesn't seem to work on downgrade on OS X -- anyone else seen this?

2008-08-19 Thread Weston C
On Tue, Aug 19, 2008 at 9:43 AM, Jason Pruim [EMAIL PROTECTED] wrote:
 Is there a particular reason you are downgrading?

I'm pretty happy with some of the features in 5.3, but have been asked
to work with a codebase that turned out to have some issues under 5.3
that didn't show up under 5.2.x. I'd love to have the time to dig and
give feedback on the issues for the improvement and quicker release of
5.3, but unfortunately work has to be a higher priority. :(

-W

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



Re: [PHP] Re: Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Robert Cummings
On Tue, 2008-08-19 at 12:52 +0100, Stut wrote:
 On 19 Aug 2008, at 12:36, Colin Guthrie wrote:
  metastable wrote:
  V S Rawat wrote:
  If you provide paid help in code development/ testing/  
  troubleshooting
  related to php or other software areas, please feel free to drop a  
  line
  to me at my id mentioned below. Please don't write here as some  
  other
  members might find this off topic.
 
  Sorry for bothering the rest of you. I hope you wouldn't really  
  mind if
  some of our colleagues who are doing such a lovely volunteer work  
  here
  get to earn some money for a bottle of beer and more. Rest assured  
  that
  it is no fraud/ scam/ cheating. I am very much here to take the  
  brickbats.
 
  Thanks.
  -- 
  V
  vsrawat at gmail dot com
 
  Imo, it is both off-topic and inappropriate.
  Moreover, I have not seen your name in any of the topics on this  
  list or remembered it in any reply, as opposed to many others who  
  take time from their busy schedules to give something back, free of  
  charge. This does not inspire much confidence in your qualities or  
  determination.
  There are many channels out there that would be beneficial to your  
  goals, e.g. wendo, ogone and the likes.
  Please take your commercial goals there.
 
  Have I read the mail wrong, or is he asking if anyone out here  
  *provides* paid for help? e.g. he is saying, I need someone to  
  provide me with support and I'm willing to pay for it.
 
  To me this is not a commercial but a call for help.
 
  Or have I read this wrong?
 
 Seems to me like a job ad which we generally tolerate, but a couple of  
 thing concern me about this one...
 
 1) Rest assured that it is no fraud/ scam/ cheating.
 
 This is something only fraudsters, scammers and cheater would feel the  
 need to say up front.
 
 2) There is absolutely no mention of what company he represents or  
 what type of work they do.
 
 Anyone legitimately looking for talent (ie. who is not gonna screw  
 people over) is more likely to provide more details about who they  
 are. Something like we are an outsourcing company looking for top  
 quality talent for occasional sub-contracting would be better, and  
 including a link to their website would be even better. Add the gmail  
 address and I'd avoid this like the plague.
 
 Now where's my 0.98 change from that dollar?

Sorry, exact change only aroundabouts these parts.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Robert Cummings
On Tue, 2008-08-19 at 14:36 +0200, Jochem Maas wrote:
 Jay Blanchard schreef:
  [snip]
  PS - for those that know, I'm back ... with a vengeance.
  [/snip]
  
  That explains why I didn't sleep well last night. :)
 
 glad to know I haven't lost my touch :-P

Perv!

;)

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


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



Re: [PHP] Re: Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Stut

On 19 Aug 2008, at 18:31, Robert Cummings wrote:


Now where's my 0.98 change from that dollar?


Sorry, exact change only aroundabouts these parts.


Well gimme the dollar back and lemme know what you thought my advice  
was worth. I'm always happy to pay my way.


-Stut

--
http://stut.net/

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



Re: [PHP] Re: Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Robert Cummings
On Tue, 2008-08-19 at 18:56 +0100, Stut wrote:
 On 19 Aug 2008, at 18:31, Robert Cummings wrote:
 
  Now where's my 0.98 change from that dollar?
 
  Sorry, exact change only aroundabouts these parts.
 
 Well gimme the dollar back and lemme know what you thought my advice  
 was worth. I'm always happy to pay my way.

Sorry, spent it already on bon bons :B

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


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



[PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread tedd

V:

OFF-LIST

I have not kept up on this thread -- too lengthily and too confusing.

If you need help, just ask.

If you need paid help, I charge $50 per hour.

I've freelanced longer than most these guys have been alive.

Cheers,

tedd

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

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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Wolf
 tedd [EMAIL PROTECTED] wrote: 
!-- SNIP --
 I've freelanced longer than most these guys have been alive.
 
 Cheers,
 
 tedd

See, I knew you were one of the wise ancient ones!  Kluthluu!!  ;)

Wolf

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



RE: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Jay Blanchard
[snip]
OFF-LIST
[/snip]


FAIL.

[snip]
I've freelanced longer than most these guys have been alive.
[/snip]

No doubt. 

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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread tedd

At 2:28 PM -0400 8/19/08, tedd wrote:

V:

OFF-LIST

I have not kept up on this thread -- too lengthily and too confusing.

If you need help, just ask.

If you need paid help, I charge $50 per hour.

I've freelanced longer than most these guys have been alive.

Cheers,

tedd



Oops.

Apparently my length of freelancing hasn't been enough to teach me 
the difference between OFF_LIST and NOT.


But, to drive my point further home, I got underwear older than most 
of you. :-P


Cheers,

tedd

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

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



RE: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Boyd, Todd M.
 -Original Message-
 From: tedd [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 19, 2008 2:24 PM
 To: V S Rawat; php-general@lists.php.net
 Subject: Re: [PHP] Semi-ADVERT, not really spam, sorry for it
 
 At 2:28 PM -0400 8/19/08, tedd wrote:
 V:
 
 OFF-LIST
 
 I have not kept up on this thread -- too lengthily and too confusing.
 
 If you need help, just ask.
 
 If you need paid help, I charge $50 per hour.
 
 I've freelanced longer than most these guys have been alive.
 
 Cheers,
 
 tedd
 
 
 Oops.
 
 Apparently my length of freelancing hasn't been enough to teach me
 the difference between OFF_LIST and NOT.
 
 But, to drive my point further home, I got underwear older than most
 of you. :-P

TMI, pal! You may enjoy the breeze all those holes afford, but maybe
it's time for a change. :D


Todd Boyd
Web Programmer




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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Robert Cummings
On Tue, 2008-08-19 at 15:24 -0400, tedd wrote:
 At 2:28 PM -0400 8/19/08, tedd wrote:
 V:
 
 OFF-LIST
 
 I have not kept up on this thread -- too lengthily and too confusing.
 
 If you need help, just ask.
 
 If you need paid help, I charge $50 per hour.
 
 I've freelanced longer than most these guys have been alive.
 
 Cheers,
 
 tedd
 
 
 Oops.
 
 Apparently my length of freelancing hasn't been enough to teach me 
 the difference between OFF_LIST and NOT.
 
 But, to drive my point further home, I got underwear older than most 
 of you. :-P

You might want to charge more so you can afford new underwear ;)

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Ashley Sheridan
There is such a thing as too much information you know. I'm going to be
kept up all night with nightmares now!

Ash
www.ashleysheridan.co.uk
---BeginMessage---
On Tue, 2008-08-19 at 15:24 -0400, tedd wrote:
 At 2:28 PM -0400 8/19/08, tedd wrote:
 V:
 
 OFF-LIST
 
 I have not kept up on this thread -- too lengthily and too confusing.
 
 If you need help, just ask.
 
 If you need paid help, I charge $50 per hour.
 
 I've freelanced longer than most these guys have been alive.
 
 Cheers,
 
 tedd
 
 
 Oops.
 
 Apparently my length of freelancing hasn't been enough to teach me 
 the difference between OFF_LIST and NOT.
 
 But, to drive my point further home, I got underwear older than most 
 of you. :-P

You might want to charge more so you can afford new underwear ;)

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


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


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

RE: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Jay Blanchard
[snip]
But, to drive my point further home, I got underwear older than most 
of you. :-P
[/snip]

Uh doodyou might want to do a little shopping once in a while. I
think I may be the 2ns oldest on the board and I buy new underwear once
a year whether I need it or not.

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



[PHP] Re: Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Colin Guthrie

Jay Blanchard wrote:

Uh doodyou might want to do a little shopping once in a while. I
think I may be the 2ns oldest on the board and I buy new underwear once
a year whether I need it or not.


Oh. *buy new* once a year??? I thought the rule was *change*. 
ugg... better fire up the incinerator...


Col



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



[PHP] RE: php-general Digest 19 Aug 2008 20:38:46 -0000 Issue 5633

2008-08-19 Thread Cox, Chris
Does anyone know why the unsubscribe email address is bouncing. Are there any 
other ways to unsubscribe?


 Chris Cox  415.681.3665 (direct/fax)
   Candidate Generation Recruiter
   http://www.intuit.com/careers
 
   View Sailen Saha's profile on LinkedIn

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 19, 2008 1:39 PM
To: php-general@lists.php.net
Subject: php-general Digest 19 Aug 2008 20:38:46 - Issue 5633


php-general Digest 19 Aug 2008 20:38:46 - Issue 5633

Topics (messages 278296 through 278362):

Re: pdo compilation question
278296 by: Thijs Lensselink

Semi-ADVERT, not really spam, sorry for it
278297 by: V S Rawat
278298 by: metastable
278299 by: Colin Guthrie
278301 by: Stut
278302 by: Jochem Maas
278303 by: Stut
278304 by: V S Rawat
278305 by: V S Rawat
278307 by: V S Rawat
278308 by: metastable
278309 by: Jochem Maas
278310 by: Jochem Maas
278311 by: Jay Blanchard
278312 by: metastable
278313 by: Stut
278314 by: Stut
278316 by: Thijs Lensselink
278317 by: Jochem Maas
278318 by: Jason Pruim
278319 by: Jochem Maas
278320 by: Stut
278321 by: Jason Pruim
278324 by: Wolf
278329 by: V S Rawat
278336 by: Stut
278340 by: V S Rawat
278349 by: V S Rawat
278351 by: Robert Cummings
278352 by: Robert Cummings
278353 by: Stut
278354 by: Robert Cummings
278355 by: tedd
278356 by: Wolf
278357 by: Jay Blanchard
278358 by: tedd
278359 by: Boyd, Todd M.
278360 by: Robert Cummings
278361 by: Ashley Sheridan
278362 by: Jay Blanchard

Re: PHP Script/Thread ID thingie
278300 by: Jochem Maas
278322 by: Herman Gomez
278326 by: Jochem Maas

mail() and exim4
278306 by: Chris Haensel
278315 by: Per Jessen
278327 by: Jochem Maas

Re: File download problem
278323 by: Stefano Noffke
278325 by: Ashley Sheridan
278328 by: Stefano Noffke
278330 by: Stefano Noffke
278332 by: Ashley Sheridan
278337 by: tedd

VCard
278331 by: Hlio Rocha
278333 by: Stut
278334 by: Aschwin Wesselius
278335 by: Ashley Sheridan

loop weirdness
278338 by: Dan Shirah
278339 by: Stut
278341 by: Dan Shirah
278342 by: Stut
278343 by: Dan Shirah
278344 by: Stut
278345 by: clive
278346 by: clive

make install doesn't seem to work on downgrade on OS X -- anyone else seen 
this?
278347 by: Weston C
278348 by: Jason Pruim
278350 by: Weston C

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
php-general@lists.php.net


--

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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Jochem Maas

Wolf schreef:
 tedd [EMAIL PROTECTED] wrote: 
!-- SNIP --

I've freelanced longer than most these guys have been alive.

Cheers,

tedd


See, I knew you were one of the wise ancient ones!  Kluthluu!!  ;)


Lovecraft! nice one :-)

Hey Tedd, not sure I needed underwear info but it got me thinking,
we could start using it as a metric for hacking experience ... my guess
my guess is I measure about third of a pair of Tedd's Y-fronts, 1/3TYF ;-)

I'm assume they have to be Y-Fronts if they're that old, lol.

@Stut: good points about freelancing, it's also worth noting that a freelancer
charging 'top dollar' will probably not end up costing anymore than someone
charging half as much because they generally get the job done in half the time 
and,
as Stut pointed out, they're liable to deliver stuff that you can rely on rather
than have to pray it works.



Wolf




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



Re: [PHP] make install doesn't seem to work on downgrade on OS X -- anyone else seen this?

2008-08-19 Thread Jochem Maas

Weston C schreef:

On Tue, Aug 19, 2008 at 9:43 AM, Jason Pruim [EMAIL PROTECTED] wrote:

Is there a particular reason you are downgrading?


I'm pretty happy with some of the features in 5.3, but have been asked
to work with a codebase that turned out to have some issues under 5.3
that didn't show up under 5.2.x. I'd love to have the time to dig and
give feedback on the issues for the improvement and quicker release of
5.3, but unfortunately work has to be a higher priority. :(


I hack on a Mac, and when Leopard first came out (I have no experience
on Mac prior to Leopard) even compiling php was nigh on impossible ... It took
me three days to get something compiling, problems were due to borked libs
like libxml IIRC ... I'm no expert on compiler/links environment variables and 
things of
that ilk. But theses days compiling and reinstalling php works fine
(at least on my Leopard install), seems all the crufty lib problems have been
fixed with updates.

the first thing I did was remove/disable the standard apache  php installs 
e.g. move /usr/bin/php
to something like /usr/bin/php-mac and disable the Personal Webserver (or 
whatever the frak its
called). you'll also need to install XCode (1.3Gigs) for some libs and use 
something
like macports to install some other libs ... depending on your requirements.

I must admit that the number one reason I rolled my own php is because I need 
the
firebird/interbase extension and that's never supplied as standard.

give us some more details on what you system setup is and exactly what your
trying to do. 'downgrading' is too vague.

in the mean time here is what my custom php configure line looks like, it might
provide some inspiration:

'./configure'  '--with-config-file-path=/etc' '--sysconfdir=/private/etc' '--prefix=/usr/local/php5' '--mandir=/usr/share/man' 
'--infodir=/usr/share/info' '--with-apxs2=/usr/local/httpd/bin/apxs' '--with-xsl=/usr' '--with-tidy=/opt/local' 
'--enable-mbstring' '--with-gd' '--enable-gd-native-ttf' '--with-jpeg-dir=/opt/local' '--with-png-dir=/opt/local' 
'--with-zlib-dir' '--enable-sockets' '--enable-exif' '--with-mcrypt=/opt/local' '--enable-soap' '--with-mysql=/usr/local/mysql' 
'--with-mysql-sock=/private/tmp/mysql.sock' '--with-mysqli=/usr/local/mysql/bin/mysql_config' 
'--with-pdo-mysql=/usr/local/mysql/bin/mysql_config' '--with-freetype-dir=/opt/local' 
'--with-xpm-dir=/Developer/SDKs/MacOSX10.5.sdk/usr/X11' '--with-ldap' '--with-xmlrpc' '--enable-soap' '--enable-sqlite-utf8' 
'--enable-ftp' '--enable-sockets' '--with-bz2' '--enable-zip' '--enable-pcntl' '--enable-sockets' '--enable-shmop' 
'--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-bcmath' '--with-gettext=/opt/local' '--with-curl' 
'--with-mcrypt=/opt/local' '--with-interbase=/opt' '--without-iconv' '--enable-cli' '--with-sqlite' 
'--with-config-file-scan-dir=/etc/php.d'




-W




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



Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Jochem Maas

Robert Cummings schreef:

On Tue, 2008-08-19 at 14:36 +0200, Jochem Maas wrote:

Jay Blanchard schreef:

[snip]
PS - for those that know, I'm back ... with a vengeance.
[/snip]

That explains why I didn't sleep well last night. :)

glad to know I haven't lost my touch :-P


Perv!


you have no idea :-P really, and even if you could imagine, the
reality is much worse :-)

judging by you guys though I'm in good company :-)



;)

Cheers,
Rob.



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



Re: [PHP] undefine variable

2008-08-19 Thread Jochem Maas

Michael S. Dunsavage schreef:

On Sun, 2008-08-17 at 22:26 +0100, Ashley Sheridan wrote:

Hi Michael,



...



Heh, actually that wasn't the problem after all. Well php still yells @
me about it, but it does work. In fact someone on this list helped me
before, sorry if I can't remember your name who it was :).


it's always worthing looking that kind of thing up, people love to see their
name in lights you know.

on a technical note, it sounds like your script is relying on register_globals
being turned on ... this is a bad thing, most notably when your not properly
up to speed on the security issues this can bite you in the ass, also
register_globals has been depreciated.

code that handles form submissions should be doing something like the
following to check for and validate input:

$selectedStated = isset($_POST['selected_state'])
? intval($_POST['selected_state'])
: null
;


I encourage you to read up on input validation, etc ... phpsec.org is
a good place to start IIRC.


But it
wasn't writing to the DB and I discovered I had to change the
permissions (it was a backup I had restored) and restart mysql.  But you
have a lot of useful information in your list, so I'll be keeping it.



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



Re: [PHP] pdo compilation question

2008-08-19 Thread Jochem Maas

Thijs Lensselink schreef:

Quoting Tim Rupp [EMAIL PROTECTED]:



...



Thanks in advance,
Tim



you are loading extensions of an older PHP version. Do an ls -als on 
/usr/local/lib/php. you will find a directory with a higher date. That's 
your new extension path. Just change the location in the php.ini to 
reflect the new location.


I'd second that, I'd also say that you might consider compiling the
extensions in statically and save the hassle of having to load the .so files,
if you still don't get anywhere.







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



RE: [PHP] SESSION problem

2008-08-19 Thread Ford, Mike
Been on holiday, so coming to this party a bit late, but
 
On Sat 16/08/2008 15:06 Stut wrote:
 On 16 Aug 2008, at 14:46, tedd wrote:
  At 2:11 PM +0100 8/16/08, Stut wrote:
  Ahh, I see the problem. You've never been able to use numbers as 
  keys at the root level of the $_SESSION array. It's not a bug, it's 
  just the way it is. I've just checked the documentation and can't 
  find an obvious reference to this limitation which is kinda annoying.
 
Well at http://www.php.net/manual/en/session.examples.php there's a big fat 
Note at the top of the page which includes the following: The keys in the 
$_SESSION associative array are subject to the same limitations as regular 
variable names in PHP, i.e. they cannot start with a number and must start with 
a letter or underscore..
 
[ -- SNIP -- ]

  Let me play the age-card -- in every language I've programmed in for 
  the last 43 years an array can have numeric indexes -- except php's 
  SESSION.
 
 I wish I understood the reason why it's like this but I've never 
 looked into the session extension in that level of detail, but I doubt 
 such a limitation would exist if there was not a very good reason for 
 it. 

One word suffices here: register_globals! Or, if that doesn't suffice: if 
register_globals is turned on, all the $_SESSION entries are automatically 
registered as global variables -- so any numeric indexes will obviously be 
invalid and will disappear. For consistency's sake, PHP enforces the 
restriction even with register_globals off.
 
Cheers!
 
Mike
 
-- 
Mike Ford,  Electronic Information Developer, 
Libraries  Learning Innovation, 
C507, Civic Quarter Campus, Leeds Metropolitan University,
Woodhouse Lane, LEEDS,  LS1 3HE,  United Kingdom 
Email: [EMAIL PROTECTED]Tel: +44 113 812 4730


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


Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Robert Cummings
On Tue, 2008-08-19 at 23:51 +0200, Jochem Maas wrote:
 Robert Cummings schreef:
  On Tue, 2008-08-19 at 14:36 +0200, Jochem Maas wrote:
  Jay Blanchard schreef:
  [snip]
  PS - for those that know, I'm back ... with a vengeance.
  [/snip]
 
  That explains why I didn't sleep well last night. :)
  glad to know I haven't lost my touch :-P
  
  Perv!
 
 you have no idea :-P really, and even if you could imagine, the
 reality is much worse :-)
 
 judging by you guys though I'm in good company :-)

I only took a few psychology courses in university so my ability to help
you is limited. But I guess it's better than nothing... even if my focus
was on the rather generous portion of girls in those classes compared to
the stingy numbers experience in my comp sci courses :B

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


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



Re: [PHP] Tool Tip in pdf

2008-08-19 Thread Micah Gersten
Which PDF generator are you using?

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



Subhranil wrote:
 Hi Micah,
 Sorry for late reply. Actually 15th August is our INDEPENDENCE DAY and I was
 out of work.
 I am a newbie. I have very little knowledge about pdf. Could you please give
 some tip for wraping the text

 Thanks,
 Subhranil. 



 Micah Gersten wrote:
   
 Why not wrap the text?

 Thank you,
 Micah Gersten
 onShore Networks
 Internal Developer
 http://www.onshore.com



 Subhranil wrote:
 
 Hi all,

 I am creating a pdf where text size of cell is not fixed.
 My problem is if one text is too long than that cell then it overlap the
 next cell.

 I wish to show the part of the text which are loneger than cell size and
 put
 a tool tip on that cell which show the complete text.

 Is it possible ? Looking for any suggestion.

 Thanks,
 Subhranil.
   
   
 -- 
 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