Re: [PHP] Limiting speed when using CURL functions

2007-03-15 Thread Tijnema !

On 3/15/07, Richard Lynch <[EMAIL PROTECTED]> wrote:

On Wed, March 14, 2007 6:55 am, Tijnema ! wrote:
> On 3/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
>> On Mon, March 12, 2007 7:14 am, Tijnema ! wrote:
>> > Is there any way i can limit the transfer speed when using CURL?
>> >
>> > I'm uploading a file to a server, and i don't want the script to
>> f***
>> > up all
>> > bandwidth.
>>
>> I don't recall ever seeing that in curl, but check on the curl site,
>> linked from here:
>> http://php.net/curl
> It's not on there, but i also contacted the CURL list, and they told
> me that libcurl (7.16) accepts the constants
> CURLOPT_MAX_SEND_SPEED_LARGE and CURLOPT_MAX_RECV_SPEED_LARGE, having
> the integer value of 145 and 146. In PHP those constants have not been
> defined (I check CVS, and it isn't there in PHP6). But even when using
> the integer values of those constants, it does not work. On the CURL
> list they can't help me really because they think it is a PHP problem.
>
> Tijnema
>
> ps. Installing PHP6 snapshot now to see if it differs.

I think you'll want to focus on upgrading the actual curl extension,
rather than PHP itself, which may or may not have newer curl bundled
into it...

PHP doesn't really *do* anything with 145/146 or their named
equivalents.  It just passes them into the low-level curl functions.

But if the curl library you have compiled in as the extension with PHP
is "older" than the one that introduced those constants, passing them
in won't do much, other than possible generate an error message or
even break it.

The only PHP-specific curl constant I'm aware of is
CURLOPT_BINARY_TRANSFER.

PS
If the newer functions are there, but not the constants, use something
like this:
if (!defined('CURLOPT_MAX_SEND_SPEED_LARGE')){
 define('CURLOPT_MAX_SEND_SPEED_LARGE', 145);
}
//and the same for RECV
so that your code won't need to change when you upgrade.


nvm, i created a patch for PHP5 & PHP6 and i will send it to the
internals php list so that they can integrate it into PHP.

Tijnema


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




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



Re: [PHP] Can a Form Action transfer to another file that is a form?

2007-03-15 Thread Tijnema !

On 3/15/07, Stephen <[EMAIL PROTECTED]> wrote:

I have a script file that is both the form and action handle (using
isset), which is a menu selection.

If the action handler is executing it is a switch statement that will
chose the next form.

I would like to transfer to another script file that is also a
combination form and handler.

Can I do this without using a redirect? I have no need to bounce back to
the user's browser.

Or should I just separate my forms and their action handlers?

Thanks
Stephen

Maybe you can just include your next page?

Tijnema


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




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



Re: [PHP] 北京超品锐智技术有限责任公司招聘启示 [AD]

2007-03-15 Thread Tijnema !

On 3/15/07, Faye Wang <[EMAIL PROTECTED]> wrote:

北京超品锐智技术有限责任公司招聘启示

公司简介:

国内专业本地化公司

Transpac Technology Inc., which was established on 1996, specializes in Chinese 
software localization as well as Website and other technical documentation 
translation. Our working system is consist of popular Wintel and MAC machines.

Transpac began its localization career since it was established and it has 
accomplished more than 600 projects for many companies so far. It has enough 
capabilities to handle at least 3-4 projects simultaneously and the maximum 
amount of delivery is 150,000 words per week.

公司网站:http://www.transpac.com.cn
地址:北京市海淀区学清路 16 号学知轩 607 室
邮政编码:100083
联 系 人:张大雷
电话:(10)82755645
[EMAIL PROTECTED]

  招 聘 职 位

** 海外市场推广专员 **

工作地点:北京市
招聘人数:若干
学历:本科
工作年限:二年以上
薪水范围:面议
外语要求:英语
接受简历语言:中文或英文

职位描述:
1. 熟悉翻译行业本地化的销售流程,具有本行业的相关销售经验,拥有在此行业中丰富的个人销售业绩,及时完成销售目标;
2. 具有翻译行业的相关背景,能够寻求多种渠道挖掘客户,独立开拓翻译业务,并且搜集大量的具有翻译需求的有效客户信息;
3. 较强地商务谈判、人际沟通能力,建立并维护良好的客户关系;
4. 熟练使用 OFFICE 等办公软件,优秀的英语听说读写能力,特别是文笔和口语能力;
5. 具有团队精神、诚信,对工作认真负责;
6. 计算机或英语专业本科以上学历;
7. 有良好的社会资源与客户资源者优先;
8. 最好有照片。



** 高级本地化项目经理 **

工作地点:北京市
招聘人数: 2 名
学历:本科
工作年限:三年以上
薪水范围:面议
外语要求:英语
接受简历语言:中文或英文

职位描述:
1. 管理完成项目获得客户满意;
2. 扩展客户关系和业务;
3. 进行全方位的项目管理,包括项目范围管理、时间管理、质量管理、成本管理、沟通管理等;

职位要求:
1. 有实际的本地化项目管理经验,管理的项目超过 50 万字;
2. 有 IT 行业的工作背景,有软件外包项目执行或管理经验;
3. 具有项目管理意识或立志项目管理方向;
4. 优秀的学习能力,热情向上;
5. 责任心强,具有良好的职业素养及团队合作意识;
6. 海外工作经验或者英语水平优异者优先。


请通过电子邮件投递简历。

Have a nice day!

Dalei Zhang


I can't read chinese, however when i translate it, it seems one big
advertisement... (aka SPAM)

Tijnema

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




Re: [PHP] 北京超品锐智技术有限责任公司招聘启 示 [AD]

2007-03-15 Thread Andrei
LOL...
Why you even bother to read it?

Tijnema ! wrote:
> On 3/15/07, Faye Wang <[EMAIL PROTECTED]> wrote:
>> 北京超品锐智技术有限责任公司招聘启示
>>
>> 公司简介:
>>
>> 国内专业本地化公司
>>
>> Transpac Technology Inc., which was established on 1996, specializes
>> in Chinese software localization as well as Website and other
>> technical documentation translation. Our working system is consist of
>> popular Wintel and MAC machines.
>>
>> Transpac began its localization career since it was established and
>> it has accomplished more than 600 projects for many companies so far.
>> It has enough capabilities to handle at least 3-4 projects
>> simultaneously and the maximum amount of delivery is 150,000 words
>> per week.
>>
>> 公司网站:http://www.transpac.com.cn
>> 地 址:北京市海淀区学清路 16 号学知轩 607 室
>> 邮政编码:100083
>> 联 系 人:张大雷
>> 电 话:(10)82755645
>> [EMAIL PROTECTED]
>>
>> 招 聘 职 位
>>
>> ** 海外市场推广专员 **
>>
>> 工作地点:北京市
>> 招聘人数:若干
>> 学 历:本科
>> 工作年限:二年以上
>> 薪水范围:面议
>> 外语要求:英语
>> 接受简历语言:中文或英文
>>
>> 职位描述:
>> 1. 熟悉翻译行业本地化的销售流程,具有本行业的相关销售经验,拥有在此行
>> 业中丰富的个人销售业绩,及时完成销售目标;
>> 2. 具有翻译行业的相关背景,能够寻求多种渠道挖掘客户,独立开拓翻译业
>> 务,并且搜集大量的具有翻译需求的有效客户信息;
>> 3. 较强地商务谈判、人际沟通能力,建立并维护良好的客户关系;
>> 4. 熟练使用 OFFICE 等办公软件,优秀的英语听说读写能力,特别是文笔和口
>> 语能力;
>> 5. 具有团队精神、诚信,对工作认真负责;
>> 6. 计算机或英语专业本科以上学历;
>> 7. 有良好的社会资源与客户资源者优先;
>> 8. 最好有照片。
>>
>>
>>
>> ** 高级本地化项目经理 **
>>
>> 工作地点:北京市
>> 招聘人数: 2 名
>> 学 历:本科
>> 工作年限:三年以上
>> 薪水范围:面议
>> 外语要求:英语
>> 接受简历语言:中文或英文
>>
>> 职位描述:
>> 1. 管理完成项目获得客户满意;
>> 2. 扩展客户关系和业务;
>> 3. 进行全方位的项目管理,包括项目范围管理、时间管理、质量管理、成本管
>> 理、沟通管理等;
>>
>> 职位要求:
>> 1. 有实际的本地化项目管理经验,管理的项目超过 50 万字;
>> 2. 有 IT 行业的工作背景,有软件外包项目执行或管理经验;
>> 3. 具有项目管理意识或立志项目管理方向;
>> 4. 优秀的学习能力,热情向上;
>> 5. 责任心强,具有良好的职业素养及团队合作意识;
>> 6. 海外工作经验或者英语水平优异者优先。
>>
>>
>> 请通过电子邮件投递简历。
>>
>> Have a nice day!
>>
>> Dalei Zhang
>>
> I can't read chinese, however when i translate it, it seems one big
> advertisement... (aka SPAM)
>
> Tijnema
>> -- 
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>

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



Re: [PHP] 北京超品锐智技术有限责任公司招聘启示 [AD]

2007-03-15 Thread Tijnema !

On 3/15/07, Andrei <[EMAIL PROTECTED]> wrote:

LOL...
Why you even bother to read it?


Because i hate SPAM !




Tijnema ! wrote:
> On 3/15/07, Faye Wang <[EMAIL PROTECTED]> wrote:
>> 北京超品锐智技术有限责任公司招聘启示
>>
>> 公司简介:
>>
>> 国内专业本地化公司
>>
>> Transpac Technology Inc., which was established on 1996, specializes
>> in Chinese software localization as well as Website and other
>> technical documentation translation. Our working system is consist of
>> popular Wintel and MAC machines.
>>
>> Transpac began its localization career since it was established and
>> it has accomplished more than 600 projects for many companies so far.
>> It has enough capabilities to handle at least 3-4 projects
>> simultaneously and the maximum amount of delivery is 150,000 words
>> per week.
>>
>> 公司网站:http://www.transpac.com.cn
>> 地 址:北京市海淀区学清路 16 号学知轩 607 室
>> 邮政编码:100083
>> 联 系 人:张大雷
>> 电 话:(10)82755645
>> [EMAIL PROTECTED]
>>
>> 招 聘 职 位
>>
>> ** 海外市场推广专员 **
>>
>> 工作地点:北京市
>> 招聘人数:若干
>> 学 历:本科
>> 工作年限:二年以上
>> 薪水范围:面议
>> 外语要求:英语
>> 接受简历语言:中文或英文
>>
>> 职位描述:
>> 1. 熟悉翻译行业本地化的销售流程,具有本行业的相关销售经验,拥有在此行
>> 业中丰富的个人销售业绩,及时完成销售目标;
>> 2. 具有翻译行业的相关背景,能够寻求多种渠道挖掘客户,独立开拓翻译业
>> 务,并且搜集大量的具有翻译需求的有效客户信息;
>> 3. 较强地商务谈判、人际沟通能力,建立并维护良好的客户关系;
>> 4. 熟练使用 OFFICE 等办公软件,优秀的英语听说读写能力,特别是文笔和口
>> 语能力;
>> 5. 具有团队精神、诚信,对工作认真负责;
>> 6. 计算机或英语专业本科以上学历;
>> 7. 有良好的社会资源与客户资源者优先;
>> 8. 最好有照片。
>>
>>
>>
>> ** 高级本地化项目经理 **
>>
>> 工作地点:北京市
>> 招聘人数: 2 名
>> 学 历:本科
>> 工作年限:三年以上
>> 薪水范围:面议
>> 外语要求:英语
>> 接受简历语言:中文或英文
>>
>> 职位描述:
>> 1. 管理完成项目获得客户满意;
>> 2. 扩展客户关系和业务;
>> 3. 进行全方位的项目管理,包括项目范围管理、时间管理、质量管理、成本管
>> 理、沟通管理等;
>>
>> 职位要求:
>> 1. 有实际的本地化项目管理经验,管理的项目超过 50 万字;
>> 2. 有 IT 行业的工作背景,有软件外包项目执行或管理经验;
>> 3. 具有项目管理意识或立志项目管理方向;
>> 4. 优秀的学习能力,热情向上;
>> 5. 责任心强,具有良好的职业素养及团队合作意识;
>> 6. 海外工作经验或者英语水平优异者优先。
>>
>>
>> 请通过电子邮件投递简历。
>>
>> Have a nice day!
>>
>> Dalei Zhang
>>
> I can't read chinese, however when i translate it, it seems one big
> advertisement... (aka SPAM)
>
> Tijnema
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>

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




RE: [PHP] wxWidget/.NET like framework for PHP ?

2007-03-15 Thread Edward Kay

> Hello,
>
> I am currently thinking about a php framework dedicated to web
> applications
> with rich client interfaces using AJAX.
> The goal of this framework is to provide the possibility to write
> rich web
> applications using a syntax similar to wxWidgets or .NET.
>
> An example is better than a long story :
>
>  require_once('widget.php');
>
> class myForm extends Form {
>   public function __construct(){
>   $this->Title = 'Main Window';
>
>   $button = new Button();
>   $button->Title = 'A test Button';
>   $button->OnClick = 'buttonOnClick';
>   $this->AddControl($button);
>   }
>   public function buttonOnClick(){
>   MessageBox::Show('Hello, World !'); }
> }
>
> Application::$Title = 'Widget Demo';
> Application::Run(new myForm());
> ?>
> With this example, you can have an idea of how this would work.
> In this case, Application::Run() creates a context on the client (IE,
> Firefox...) where AJAX is easily useable. It also renders the interface,
> using xhtml/css code specific to the navigator used by the client
> (Specific
> code for IE incompatibilities, for example).
>
> Button->OnClick is a public member of a class Button. It is similar to a
> delegate (or function pointer). Its job is to write code into the onClick
> javascript event of the button.
> When the button is clicked, an AJAX call is performed on the server,
> requesting the execution of the handled code, in this case :
> myForm->buttonOnClick().
>
> MessageBox::Show() is defined in the php framework and calls a
> javascript on
> the client that draws a messagebox containing a message.
>
>
>
> As you can see, the idea is pretty simple : imitating wxWidgets/.NET to
> delegate xhtml/css and AJAX to the framework. So the programmer
> can totally
> focus on his work.
>
>
> I was wondering if such a framework already existed and also was
> wondering
> about the real usefulness of something like this.
>

Hi David,

Take a look at Qcodo (http://www.qcodo.com) as this does exactly what you're
looking for.

Edward

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



[PHP] ftruncate

2007-03-15 Thread Swati Asthana

hi,

Is there any function in php through which we can delete / truncate the
content of a text file that is before the file pointer/file handler ?

can we use truncate?
actually im using a function to pick the content from a text file using 2
delimiters, but that function checks only the first instance of the
delimiter..

thanks

Swati


RE: [PHP] different and logic between PHP4 and PHP5

2007-03-15 Thread Ford, Mike
On 14 March 2007 01:00, Larry Garfield wrote:

> On Tuesday 13 March 2007 7:50 am, Vieri wrote:
> 
> >  > //$b=3;
> > $c=3;
> > $a=($b and $c);
> > echo "A = ".$a;
> > > 
> > 
> > in PHP4 I get:
> > A = 0
> > and in PHP5 I get:
> > A =
> 
> > I could call this lazyness on our part or code
> > portability through PHP versions or better yet, bad
> > inherited coding right from the start.
> 
> A little bit of each, I think. :-)
> 
> "and", like &&, is a boolean operation.  It will return
> either TRUE or FALSE.
> The string representation of TRUE and FALSE is, AFAIK, not
> defined.

Ahem.  Yes it is.  At 
http://php.net/manual/en/language.types.string.php#language.types.string.casting
 it says:

> A boolean TRUE value is converted to the string "1", the
> FALSE value is represented as "" (empty string). This way
> you can convert back and forth between boolean and string
> values.

And I can testify from personal experience that this has been true since the 
very early days of 4.0.x (in fact, I still have a 4.0.5 installation hanging 
around that I tested it on...!!), so I do not know where the *BLEEP* the OP can 
have been getting that 0 from.

Cheers!

Mike

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


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

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



RE: [PHP] different and logic between PHP4 and PHP5

2007-03-15 Thread Ford, Mike
On 12 March 2007 23:06, Richard Lynch wrote:

> On Mon, March 12, 2007 1:53 pm, Vieri wrote:
> > The following code:
> > 
> >  > $b="";
> > $c="df";
> > $a=($b and $c);
> 
> Why in the world would you use 'and' on two strings?
> 
> What is that supposed to even mean?...
> 
> Type-cast them to numbers if you want to use 'and'

Why in the world would you use 'and' on two numbers?
 
What is that supposed to even mean?...

Type-cast them to bool if you want to use 'and'

... ;) ;)

Cheers!

Mike

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


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

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



RE: [PHP] Capitalizing the first letter

2007-03-15 Thread Ford, Mike
On 14 March 2007 08:25, Richard Lynch wrote:

> On Tue, March 13, 2007 9:10 am, Todd Cary wrote:
> > I would like to write a filter that takes the text "smith" or
> > "SMith" and returns "Smith"; same for "ralph smith".
> 
> No, you don't. :-)
> 
> You *think* you want to write that function, but this is one of those
> things that is *way* more complicated than it seems to the beginner.
> 
> How about:
> 
> O'Brian
> McCormick
> Rodham-Clinton
> von Freeman
> del Castillo
> .
> .
> .

Not to mention MacDonald and Macdonald...!! ;( ;)

Cheers!

Mike

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


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

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



Re: [PHP] Capitalizing the first letter

2007-03-15 Thread Tijnema !

On 3/15/07, Ford, Mike <[EMAIL PROTECTED]> wrote:

On 14 March 2007 08:25, Richard Lynch wrote:

> On Tue, March 13, 2007 9:10 am, Todd Cary wrote:
> > I would like to write a filter that takes the text "smith" or
> > "SMith" and returns "Smith"; same for "ralph smith".
>
> No, you don't. :-)
>
> You *think* you want to write that function, but this is one of those
> things that is *way* more complicated than it seems to the beginner.
>
> How about:
>
> O'Brian
> McCormick
> Rodham-Clinton
> von Freeman
> del Castillo


hmm, maybe when you write a function of 5000 lines implementing every
rule for the english language, but well, if you look at what mike says
below:

> .
> .
> .

Not to mention MacDonald and Macdonald...!! ;( ;)

Cheers!

Mike


It is impossible to make a difference in that, only if you know that
one of both is not wanted in this case. So then you should extend your
function with another 5000 lines of exception code :)

Tijnema



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


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

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




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



RE: [PHP] 2 errors I can not understand

2007-03-15 Thread Ford, Mike
On 14 March 2007 22:52, Richard Lynch wrote:

> On Wed, March 14, 2007 6:52 am, Myron Turner wrote:
> > Richard Lynch wrote:
> > > On Tue, March 13, 2007 6:04 pm, Jonathan Kahan wrote:
> > > The = operator takes precedence, and $d is set to 0.
> > > 
> > But why?  According to the manual, the modulus operator has
> > precedence over the equals!  So shouldn't this expression  resolve
> > to:($s % $d) = 0 which gives an error?
> 
> Ya got me there.
> 
> I hadn't even checked the precedence list before answering.
> 
> Unless somebody has a rational explanation, I think this should be an
> error... 

When a similar anomaly involving the ! operator was reported 
(http://bugs.php.net/bug.php?id=17180), the response was that PHP is "smart" 
about such things and invokes the DWIM principle to silently alter the 
precedence of = in certain situations.  This resulted in the addition of a note 
to the end of the operator precedence page at 
http://uk2.php.net/manual/en/language.operators.php#language.operators.precedence,
 but it seems to me that this is too specific to the ! operator and should be 
generalized.  In fact, I'd completely forgotten that I suggested as much at the 
end of the bug report -- but this hasn't been taken up, so maybe a bunch of you 
want to re-activate the bug report and support my suggestion??

Cheers!

Mike

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


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

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



Re: [PHP] wxWidget/.NET like framework for PHP ?

2007-03-15 Thread David CHATEL

""Edward Kay"" <[EMAIL PROTECTED]> a écrit dans le message de news: 
[EMAIL PROTECTED]
>
>
> Hi David,
>
> Take a look at Qcodo (http://www.qcodo.com) as this does exactly what 
> you're
> looking for.
>
> Edward

Hi Edward,

This is indeed really close to what i'm looking for.

There's one thing : with qcodo, you still have to write xhtml/css code and 
"worse" you have to write some (even if very few) php code into the xhtml 
page.

In my idea, once you've installed the framework, all you had to do is 
writing php code, similar to the "server-side php code" of qcodo.
In other words, the framework of my idea not only provides AJAX/Javascript 
code automatically, like qcodo, but also provides default designs for the 
xhtml/css.
"Default designs" it also means, if you wish, you could change this default 
design by your own.

This framework has a final goal : writing rich internet applications that 
looks more or less like an operating system.
A "more or less good or bad" example could be eyeOs 
(http://eyeos.org/demo/desktop.php), but think more about something like 
standard OS interfaces : icons, startbars...

Of course, such RIA arent operating system, but i think the design of such 
applications is really good for applications that runs in a complex 
environment (i'm thinking about company management applications, for 
example).

Anyway, thanks for the link, it's really a very good start :)

David 

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



Re: [PHP] wxWidget/.NET like framework for PHP ?

2007-03-15 Thread Tijnema !

On 3/15/07, David CHATEL <[EMAIL PROTECTED]> wrote:


""Edward Kay"" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
>
>
> Hi David,
>
> Take a look at Qcodo (http://www.qcodo.com) as this does exactly what
> you're
> looking for.
>
> Edward

Hi Edward,

This is indeed really close to what i'm looking for.

There's one thing : with qcodo, you still have to write xhtml/css code and
"worse" you have to write some (even if very few) php code into the xhtml
page.

Qcodo is opensource, so you could add that to qcodo and then you have
what you want.

Tijnema


In my idea, once you've installed the framework, all you had to do is
writing php code, similar to the "server-side php code" of qcodo.
In other words, the framework of my idea not only provides AJAX/Javascript
code automatically, like qcodo, but also provides default designs for the
xhtml/css.
"Default designs" it also means, if you wish, you could change this default
design by your own.

This framework has a final goal : writing rich internet applications that
looks more or less like an operating system.
A "more or less good or bad" example could be eyeOs
(http://eyeos.org/demo/desktop.php), but think more about something like
standard OS interfaces : icons, startbars...

Of course, such RIA arent operating system, but i think the design of such
applications is really good for applications that runs in a complex
environment (i'm thinking about company management applications, for
example).

Anyway, thanks for the link, it's really a very good start :)

David

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




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



RE: [PHP] different and logic between PHP4 and PHP5

2007-03-15 Thread Robert Cummings
On Thu, 2007-03-15 at 10:30 +, Ford, Mike wrote:
> On 12 March 2007 23:06, Richard Lynch wrote:
> 
> > On Mon, March 12, 2007 1:53 pm, Vieri wrote:
> > > The following code:
> > > 
> > >  > > $b="";
> > > $c="df";
> > > $a=($b and $c);
> > 
> > Why in the world would you use 'and' on two strings?
> > 
> > What is that supposed to even mean?...
> > 
> > Type-cast them to numbers if you want to use 'and'
> 
> Why in the world would you use 'and' on two numbers?
>  
> What is that supposed to even mean?...
> 
> Type-cast them to bool if you want to use 'and'
> 
> ... ;) ;)

Not that I'm advocating the style (since it's less readable) but it is a
shortcut to a desired result. You save the cast operation on both
operands, and you save using an if/else clause or the ternary operator.
If you understand your type juggling then it's not a mystery what is
happening (yes I know Mike knows his type juggling -- I'm speaking in
general ;)

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



[PHP] suphp and header (Status: xxx yyyyy) not seeing default error page

2007-03-15 Thread Puskás Zsolt ( Errotan )
Hello everybody.

Sorry for my bad english.
I'm using apache 2.2.3-3.3 ; php 5.2.0-8-cgi ; suphp 0.6.2-1 on debian "etch".
I'm running php as cgi ( using suphp ).
I can't get header ("Status: 404 Not found"); and other header (xxx) commands 
to send default error page like http://example.com/nonexistent would send.
The browser gets 404 ( and other ) error code but I only see a blank page.
Is it possible to use apache's errordocuments so the users can't see the 
difference?
My main goal is to hide class php files and directories and of course other 
error pages would be useful :) .

Thanks.

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



Re: [PHP] 2 errors I can not understand

2007-03-15 Thread Myron Turner

Ford, Mike wrote:

On 14 March 2007 22:52, Richard Lynch wrote:

  

On Wed, March 14, 2007 6:52 am, Myron Turner wrote:


Richard Lynch wrote:
  

On Tue, March 13, 2007 6:04 pm, Jonathan Kahan wrote:
The = operator takes precedence, and $d is set to 0.



But why?  According to the manual, the modulus operator has
precedence over the equals!  So shouldn't this expression  resolve
to:($s % $d) = 0 which gives an error?
  

Ya got me there.

I hadn't even checked the precedence list before answering.

Unless somebody has a rational explanation, I think this should be an
error... 



When a similar anomaly involving the ! operator was reported 
(http://bugs.php.net/bug.php?id=17180), the response was that PHP is "smart" 
about such things and invokes the DWIM principle to silently alter the precedence of = in 
certain situations.  This resulted in the addition of a note to the end of the operator 
precedence page at 
http://uk2.php.net/manual/en/language.operators.php#language.operators.precedence, but it 
seems to me that this is too specific to the ! operator and should be generalized.  In 
fact, I'd completely forgotten that I suggested as much at the end of the bug report -- 
but this hasn't been taken up, so maybe a bunch of you want to re-activate the bug report 
and support my suggestion??

Cheers!

Mike

  
I've submitted a bug report with respect to this: 
http://bugs.php.net/bug.php?id=40820.


--

_
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/

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



Re: [PHP] Passing a class through an array

2007-03-15 Thread Jeff Taylor
Ahh the problem was that I was using $name1->$name instead of $name1->name
to call the variable.

Thanks though :)

> If line 140 is the $name1->name part, then you probably haven't
> written your constructor correctly to cram 'Toon1' into the name
> field...
>
>
> On Thu, March 8, 2007 11:51 pm, Jeff Taylor wrote:
> > Hey all,
> > I'm very new to programming and PHP.
> > I want to pass instances of a class through an array, and then use a
> > foreach
> > later to grab details of each class at once... but it returns a fatal
> > error
> >
> > Code:
> >
> > $me = new Toon('Toon1','1')
> > $him = new Toon('Toon2','0')
> >
> >$characterListing = array($me, $him);
> >
> >foreach ($characterListing as $name1)
> >{
> > if ($name1->GetIsPlayer())
> > {
> >  echo "Name:  ".$name1->$name;// etc etc etc
> > }
> >}
> >
> >
> >
> > the error I get is: Fatal error: Cannot access empty property in
> > c:\Inetpub\wwwroot\MyProjects\SecondOffering\htmlFns.php on line 140
> >
> > Can anyone help?
> >
> > Thanks, Jeff
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some starving artist.
> http://cdbaby.com/browse/from/lynch
> Yeah, I get a buck. So?

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



RE: [PHP] $_POST array order

2007-03-15 Thread Michael Weaver

Another option would be to use an associative array:


.
.
.
.
This way the 'submit' button wouldn't even show up as a key in the  
array, which is accessible to PHP through the $domain_object_vars array.



Best regards,

Mike Weaver

--
Michael Weaver
Founder/Chief Facilitator
Dynamic Insight
Innovation through Communication

Tel: 1.814.574.4871
Email: [EMAIL PROTECTED]
Email: [EMAIL PROTECTED] (high-capacity)
AIM: dynamicinsight


The information in this email and subsequent attachments may contain
confidential information that is intended solely for the attention  
and use of
the named addressee(s). This message or any part thereof must not be  
disclosed,
copied, distributed or retained by any person without authorization  
from the
addressee. If you are not the intended recipient, please contact the  
sender by

reply email and destroy all copies of the original message.






Re: [PHP] Environment variables...

2007-03-15 Thread David BERCOT
Hi,

Le Wed, 14 Mar 2007 17:37:02 -0500 (CDT),
"Richard Lynch" <[EMAIL PROTECTED]> a écrit :
> PHP runs as its own user in its own environment.
> 
> Stuff you cram into your environment has no effect on that, as it
> should be.
> 
> If you alter the environment of the PHP user you might get what you
> want.
> 
> You may also be able to use http://php.net/setenv
> 
> And http://php.net/getenv is probably faster than your exec.
> 
> Setting the env up in httpd.conf and/or php.ini and/or .htaccess
> should work.  httpd.conf for sure, others I think.

Yes, great... Now, I have another problem ;-)
In Debian, everything is ok. I put my variable
in /etc/apache2/httpd.conf.

But on RedHat, I don't know which file is concerned...

So, I've searched in php.ini, but I did not find a place where I can
put variables...

Do you know which is the equivalent of /etc/apache2/httpd.conf on
RedHat ?
And is it possible (and how ;-)) to put variables in the php.ini ?

Thank you very much.

David.

> On Wed, March 14, 2007 9:32 am, David BERCOT wrote:
> > Hi,
> >
> > I'd like to read an environment variable with PHP.
> > I've tried with :
> > exec ('echo $CONTEXTE_D_EXECUTION',$result);
> > $result is empty !!!
> >
> > I've put the variable in /etc/environment, in /etc/profile,
> > in /etc/bash.bashrc but nothing worked...
> >
> > Do you have any idea ?
> >
> > If it is not possible, I suppose I can put a variable in php.ini ?
> >
> > Thank you very much.
> >
> > David.
> >
> 
> 


signature.asc
Description: PGP signature


Re: [PHP] logging erros and user access to logs

2007-03-15 Thread Jason Joines
Richard Lynch wrote:
> Get the errors OFF the web page (display_errors OFF) and into the logs
> and provide your users with logs for their own domains with vhosts.
> 
> On Wed, March 14, 2007 11:02 am, Jason Joines wrote:
>> My users want to be able to debug their scripts, see mysql errors,
>> and such.  Using mysql_error(), and display_errors, problems such as
>> non-existent databases, or variable and such seem to get printed to
>> the
>> screen.  However, syntax errors do not.  They get written to the
>> global
>> php log, for example, "PHP Parse error:  parse error, unexpected
>> T_ECHO,
>> expecting ',' or ';'" when a semi-colon is missing.  I can't just give
>> all system users access to the global log.
>>
>> I saw an example at
>> http://www.php.net/manual/en/ref.errorfunc.php#ini.display-errors that
>> seemed to suggest including the script to debug in something like this
>> demodebug.php script would do the trick:
>>
>> > error_reporting(E_PARSE);
>> ini_set('display_errors','On');
>> ini_set('display_startup_errors','On');
>> include('demo.php');
>> ?>
>>
>> When I remove a semi-colon from demo.php and load demodebug.php in the
>> browser, nothing is displayed on the screen.  The error still goes to
>> the global log.
>>
>> I'm running PHP 4.3 on Apache 2.  I have these settings in my
>> php.ini:
>>
>> error_reporting  =  E_ALL & ~E_NOTICE
>> display_errors = Off
>> display_startup_errors = Off
>>
>> I thought the above debugdemo.php script was basically supposed to do
>> a
>> local override so that script could display the errors.
>>
>> Is there any good way to let users see all the errors from their
>> scripts.
>>
>>
>> Jason Joines
>> =
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
> 
> 


Unfortunately, the separate logs for separate virtual hosts doesn't
work for this situation.  It is a college web server with about 300
users and 20 departments, each with their own site in the same virtual
host and many thousand pages.

I need to be able to have users turn on error display while
creating/debugging their script and then turn it off.  The above
solution from php.net would be ideal.  The suggestion was to use a
script like this, say call it mypagedebug.php, and include the script to
be debugged, say mypage.php, like so:
  
Then when debugging was done, just delete the debug script.

I moved it to a test server and could get it to work but only if
display_errors was set to on in the global php.ini file.  I can't do
that on the production server.  The manual says display_errors can be
overridden in a script.  I used ini_get() to see if the value was
actually being changed, it was.  However, it still doesn't print the
errors unless the global ini is set.

Any ideas as to why it's not working?


Jason
===

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



RE: [PHP] Environment variables...

2007-03-15 Thread Edward Kay
> Yes, great... Now, I have another problem ;-)
> In Debian, everything is ok. I put my variable
> in /etc/apache2/httpd.conf.
> 
> But on RedHat, I don't know which file is concerned...
> 

It's /etc/httpd/conf/httpd.conf on Fedora so I'd expect Red Hat to be the same.

You'd probably be best putting in /etc/httpd/conf.d/php.conf though so as to 
keep all the PHP stuff in one place. (All the files in /etc/httpd/conf.d/ are 
imported by httpd.conf).

Edward 

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



Re: [PHP] Redirecting in a PHP script

2007-03-15 Thread tedd

At 11:28 PM -0500 3/14/07, Richard Lynch wrote:

On Tue, March 13, 2007 11:54 pm, Chris Shiflett wrote:

 Tijnema wrote:

 Did you guys ever noted that little arrow down just right of
 the back button, where you can go back 2 steps at once, so you
 don't have to click very fast?


 I think we both remember browsing before that feature was invented.


I remember the fire-storm when the IMG tag was introduced.

"Death of the Internet. Film at 11"

Various news posts went like this:

I mean, my God, man, you're going to include a FIFTEEN KILOBYTE file
on your web page?!!!

What, are you crazy???!

That's going to melt-down the entire Internet!

:-) :-) :-)


Yeah, I remember similar comments about using a mouse -- hey, things change.

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] Environment variables...

2007-03-15 Thread David BERCOT
Everything is OK !!!

Thank you very much.

David.

Le Thu, 15 Mar 2007 13:39:33 -,
"Edward Kay" <[EMAIL PROTECTED]> a écrit :
> > Yes, great... Now, I have another problem ;-)
> > In Debian, everything is ok. I put my variable
> > in /etc/apache2/httpd.conf.
> > 
> > But on RedHat, I don't know which file is concerned...
> > 
> 
> It's /etc/httpd/conf/httpd.conf on Fedora so I'd expect Red Hat to be
> the same.
> 
> You'd probably be best putting in /etc/httpd/conf.d/php.conf though
> so as to keep all the PHP stuff in one place. (All the files
> in /etc/httpd/conf.d/ are imported by httpd.conf).
> 
> Edward 


signature.asc
Description: PGP signature


[PHP] Re: [PHP-WIN] Re: [PHP] Re: Question on virus/worms

2007-03-15 Thread Seak, Teng-Fong
Stut wrote:
> Seak, Teng-Fong wrote:
>> But after I've spent some time reading the log files, I've finally
>> found out how the hackers managed to achieve worm infiltration.
>>
>> Actually, they're using an URL like this:
>> http://my-domain.com/index.php?page=http://hacker-domain.com/some-worm-file.txt?
>>
>>
>> And the some-worm-file.txt file contains some PHP code, while my
>> index.php contains this instruction:
>> include("$page.php");
>>
>> This is enough to make infiltration possible!  IMO, this instruction
>> is supposed to be used like this, isn't it?  So this is obviously a PHP
>> security loophole and I don't see how the "poorly written scripts" can
>> help anything unless a totally rewrite!  And there's no "poor server
>> security" that I can see.
>
> You mean to say that you're not validating what you're getting from
> the user? Frankly you deserve everything you get.
No, I don't deserve anything because, as I've written in the
original post (but I suppose you didn't notice), the website is
outsourced and made by a 3rd company.  I had already spent a lot of time
to learn and understand PHP, which normally isn't a part of my job.  So,
I had already done more than I should.
> This is *not* a "security loophole", it *is* a poorly written script.
Well, when something doesn't produce the expected effect/result, or
produce a side-effect, it's considered as a bug.  If that's not a bug,
why would the behaviour be changed from PHP4 to PHP5 then?
>> I've installed PHP5 and the problem seems fixed.  However, PHP
>> writes out where the problem occurs!  Indeed, the hacker could read a
>> line like this:
>> Warning: include() [function.include]: URL file-access is disabled in
>> the server configuration in
>> C:\Inetpub\wwwroot\index.php on line X
>>
>> I don't want them (the hackers) to be able to read this either.
>> That gives too much information about my server's file system.  How can
>> I stop that?
>
> Read the manual, specifically the error_reporting part. You can turn
> the display of these messages off.
I had.  Well, I had tried to do so, spending time out of my tightly
scheduled job planning.
>> By the way, I know there're still a lot of servers out there still
>> using PHP4.  Is this vulnerability a known bug?  At least, I'm not aware
>> of that before!
>
> It's not a bug. It will never be a bug. Yes PHP5 (I believe it's 5.2+)
> introduces the ability to turn off the ability to prevent this issue,
> but it's still badly written code. Stop blaming the tool, start
> blaming the mirror image and start learning how to code defensively.
>
> -Stut
>



--
* Zoner PhotoStudio 8 - Your Photos perfect, shared, organised! 
www.zoner.com/zps
  You can download your free version.

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



Re: [PHP] Re: [PHP-WIN] Re: [PHP] Re: Question on virus/worms

2007-03-15 Thread Dave Goodchild

Turn off register_globals - if you pollute your scripts with global
variables like that you are asking for trouble. If you can't make sure you
clean the variable.

Using include("$page.php") is asking for trouble.

If you can get register_globals switched off (it's off by default in PHP5
for this very reason) then use the kind of security procedure so well
explained on brainbulb.com (also well worth watching the audit cast):

Maybe something like:

$page = isset($_GET['page']) ? trim(strip_tags($_GET['page'])) : 'page';

// clean data here, ie check suffix, reun tests, and only then...

include "$page.php";


Re: [PHP] Redirecting in a PHP script

2007-03-15 Thread Satyam
- Original Message - 
From: "tedd" <[EMAIL PROTECTED]>




At 11:28 PM -0500 3/14/07, Richard Lynch wrote:

On Tue, March 13, 2007 11:54 pm, Chris Shiflett wrote:

 Tijnema wrote:

 Did you guys ever noted that little arrow down just right of
 the back button, where you can go back 2 steps at once, so you
 don't have to click very fast?


 I think we both remember browsing before that feature was invented.


I remember the fire-storm when the IMG tag was introduced.

"Death of the Internet. Film at 11"

Various news posts went like this:

I mean, my God, man, you're going to include a FIFTEEN KILOBYTE file
on your web page?!!!

What, are you crazy???!

That's going to melt-down the entire Internet!

:-) :-) :-)


Yeah, I remember similar comments about using a mouse -- hey, things 
change.


tedd
--


And this nonsense of a glass-tty! how are you supposed to really make sense 
of a program staring at that thing, seeing just 24 lines at a time?  It 
can't compare with browsing through fanfold paper in the confort of your 
desk, or even at home! Whenever, wherever an idea hits you, paper and pencil 
is just so handy.


Satyam

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



RE: [PHP] Re: question regarding form filtering

2007-03-15 Thread Tim
 

> -Message d'origine-
> De : Richard Lynch [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 14 mars 2007 23:45
> À : Tim
> Cc : 'Haydar Tuna'; php-general@lists.php.net
> Objet : RE: [PHP] Re: question regarding form filtering
> 
> On Wed, March 14, 2007 9:07 am, Tim wrote:
> >> You almost for sure do *NOT* want to attempt to send the entire 
> >> Webster's 2nd Edition dictionary to the browser as JS data so that 
> >> the JS can check. :-)
> >
> > Hehe, oh? Really? ;-)
> >
> >> I suppose you could do a Web 2.0 Ajax-y thingie for that...
> >
> > Not a fan of forcing users to download/use active-x controls..
> > (accesibility, usability etc..)
> 
> No, I meant using an XmlHttpRequest to compare their password 
> as they type it in the form with the webster's dictionary up 
> on your server.
> 
> Dunno if it would be fast enough to do it per keystroke, but 
> perhaps upon leaving the password field.

Ok more reading todo then..

> 
> >> For anything that really matters, your sanitation probably 
> ought to 
> >> be custom-tailored rather than off-the-rack anyway...
> >
> > Glad we share this opinion..
> >
> >> Plus, the easy ones are easy, and the framework probably 
> won't handle 
> >> the hard ones, so what's the point of the clutter of the framework?
> >>
> >> So I personally wouldn't even go down this road.
> >
> > Erm gonna have to explain to me what you mean... (easy ones 
> are easy..
> > Etc.)
> 
> What I mean is that trying to write Framework for your 
> sanitization routines will lock you into that Framework.
> 
> So while PCRE is *great* for most sanitization routines, it's 
> not the Right Answer for all of them.
> 
> But if your framework only does PCRE, you've given up on 
> custom sanitization for an off-the-rack answer, and are using 
> a hammer on a screw sooner or later.
> 
> The easy ones, like username or email are a one-liner anyway, 
> or a few lines of code at most.
> 
> The really complex ones like password, probably won't fit 
> into any generic Framework you can build.
> 
> I think it's better to hand-craft this code on each, rather 
> than trying to generalize it.

Ok, i see what you are saying. 

I have left my class open to new features, its pretty flexible, so i can
integrate these features in the near future (or maybe write a validation
class that extends the form class for when i need these "special"
validations). This opens up possibilities for both generic/hand-crafted
validation. So far i have no "public" user system (nor the need) so
verifying "public" passwords is not on the work list yet.. I WILL keep that
in mind and will experiment with different systems that enable "specific"
validation for certain types of input.. 

For the time being i am just either using forms to retrieve data from a
database (all standard word chars) or  putting information into the database
from an admin console (again all standard word chars) so PCRE doesthe job
just fine and saves me from coding twice php then javascript. 

If i had more time and less due-dates i would do it, maybe i'll think about
it while on vacation? hehe 

Thanks again

Regards,

Tim

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



[PHP] Re: [PHP-WIN] Re: [PHP] Re: Question on virus/worms

2007-03-15 Thread Seak, Teng-Fong
Seak, Teng-Fong wrote:
> No, I don't deserve anything because, as I've written in the
> original post (but I suppose you didn't notice), the website is
> outsourced and made by a 3rd company.
Well, I've just realised (and checked) that I forgot to mention that
my company's website was outsourced.  I mentioned it in other threads. :p

 I know ASP and JSP, but not PHP.  I've not got much time to invest
into this.


--
* Zoner PhotoStudio 8 - Your Photos perfect, shared, organised! 
www.zoner.com/zps
  You can download your free version.

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



[PHP] PHP->FLASH

2007-03-15 Thread CK

Hi,

Here's hoping one of the savvy PHP participants is also skilled with  
FLASH, the following variables are output to the browser as:


&thePrices=partCD 
+Player&thePrices=price320&thePrices=partShocks&thePrices=price450&thePr 
ices=partCa r+Cover&thePrices=price500


The desired name/value pairs...

In FLASH this is returned to the output window:
price500

Should I store the values in an array in FLASH, then loop through  
them, if so how, as my attempt returned the same price500?


PHP5 simpleXML object:


asXML() . '';
//loopthrough names and prices.
//echo $xml->getName() . '';
foreach ($xml->children() as $child){
echo $child->getName(). ": " . $child . '';
$thePrices.= "&thePrices=".   (urlencode($child->getName() . 
$child));
}

echo $thePrices;
/*
$thePrices .= (urlencode($child->getName() . $child));
'thePrices'=$thePrices;
*/


?>

Actionscript:


//Create the LoadVars instance to retrieve the prices from the PHP  
script.

var getPrices:LoadVars=new LoadVars();
//load prices from PHP.
getPrices.load("http://localhost/~username/folderpath/autoPrices/ 
pricesFlash.php?ck=" + new Date().getTime());

//
getPrices.onLoad=function(){
trace(this.thePrices);


}

XML FILE:


CD Player
320
Shocks
450
Car Cover
500






Return True,




CK
Principal/Designer/Programmer -Bushidodeep
www.bushidodeep.com
___
"An ideal is merely the projection,
on an enormously enlarged scale,
of some aspect of personality."
 -- Aldus Huxley

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



Re: [PHP] Can a Form Action transfer to another file that is a form?

2007-03-15 Thread Wolf
You can either split them off, or you will need to POST encode the data
and pass it along to the next page.  I'd have to see how the entire
process/scripts were running to give you a good code sample, but if you
want info to pass from one page to the next, POST it

Stephen wrote:
> I have a script file that is both the form and action handle (using
> isset), which is a menu selection.
> 
> If the action handler is executing it is a switch statement that will
> chose the next form.
> 
> I would like to transfer to another script file that is also a
> combination form and handler.
> 
> Can I do this without using a redirect? I have no need to bounce back to
> the user's browser.
> 
> Or should I just separate my forms and their action handlers?
> 
> Thanks
> Stephen
> 

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



[PHP] Re: PHP->FLASH

2007-03-15 Thread Mikey
To get values such as price=500 then you will need to encode that into 
your URL.  At the moment you are making thePrices=price500, so the value 
you are seeing is correct.


Tf you had price=500 then you would see a variable called price with a 
value of 500.


I suspect you are trying to make an array, so what you should try is:

thePrices[]=500&thePrices[]=400&thePrices[]=350

Etc.

HTH,

Mikey

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



Re: [PHP] Re: PHP->FLASH

2007-03-15 Thread Andrei

Mikey wrote:
> To get values such as price=500 then you will need to encode that into
> your URL.  At the moment you are making thePrices=price500, so the
> value you are seeing is correct.
>
> Tf you had price=500 then you would see a variable called price with a
> value of 500.
>
> I suspect you are trying to make an array, so what you should try is:
>
> thePrices[]=500&thePrices[]=400&thePrices[]=350
>
> Etc.
>
> HTH,
>
> Mikey
>

Or just parse the XML file directly in Flash... It's not that
complicated and there r lots of tutorials on this subject you can find
googleing it...

Andy

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



Re: [PHP] logging erros and user access to logs

2007-03-15 Thread Tijnema !

On 3/15/07, Jason Joines <[EMAIL PROTECTED]> wrote:

Richard Lynch wrote:
> Get the errors OFF the web page (display_errors OFF) and into the logs
> and provide your users with logs for their own domains with vhosts.
>
> On Wed, March 14, 2007 11:02 am, Jason Joines wrote:
>> My users want to be able to debug their scripts, see mysql errors,
>> and such.  Using mysql_error(), and display_errors, problems such as
>> non-existent databases, or variable and such seem to get printed to
>> the
>> screen.  However, syntax errors do not.  They get written to the
>> global
>> php log, for example, "PHP Parse error:  parse error, unexpected
>> T_ECHO,
>> expecting ',' or ';'" when a semi-colon is missing.  I can't just give
>> all system users access to the global log.
>>
>> I saw an example at
>> http://www.php.net/manual/en/ref.errorfunc.php#ini.display-errors that
>> seemed to suggest including the script to debug in something like this
>> demodebug.php script would do the trick:
>>
>> > error_reporting(E_PARSE);
>> ini_set('display_errors','On');
>> ini_set('display_startup_errors','On');
>> include('demo.php');
>> ?>
>>
>> When I remove a semi-colon from demo.php and load demodebug.php in the
>> browser, nothing is displayed on the screen.  The error still goes to
>> the global log.
>>
>> I'm running PHP 4.3 on Apache 2.  I have these settings in my
>> php.ini:
>>
>> error_reporting  =  E_ALL & ~E_NOTICE
>> display_errors = Off
>> display_startup_errors = Off
>>
>> I thought the above debugdemo.php script was basically supposed to do
>> a
>> local override so that script could display the errors.
>>
>> Is there any good way to let users see all the errors from their
>> scripts.
>>
>>
>> Jason Joines
>> =
>>

Might it be that when you include a new file that ini settings are reset?
I don't know if it is the problem, just a thought :)

Tijnema

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


   Unfortunately, the separate logs for separate virtual hosts doesn't
work for this situation.  It is a college web server with about 300
users and 20 departments, each with their own site in the same virtual
host and many thousand pages.

   I need to be able to have users turn on error display while
creating/debugging their script and then turn it off.  The above
solution from php.net would be ideal.  The suggestion was to use a
script like this, say call it mypagedebug.php, and include the script to
be debugged, say mypage.php, like so:
 
Then when debugging was done, just delete the debug script.

   I moved it to a test server and could get it to work but only if
display_errors was set to on in the global php.ini file.  I can't do
that on the production server.  The manual says display_errors can be
overridden in a script.  I used ini_get() to see if the value was
actually being changed, it was.  However, it still doesn't print the
errors unless the global ini is set.

   Any ideas as to why it's not working?


Jason
===

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




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



RE: [PHP] Re: [PHP-WIN] Re: [PHP] Re: Question on virus/worms

2007-03-15 Thread Jim Moseby
> 
> Seak, Teng-Fong wrote:
> > No, I don't deserve anything because, as I've written in the
> > original post (but I suppose you didn't notice), the website is
> > outsourced and made by a 3rd company.

Then you should be having this conversation with the 3rd party.  They need
to validate *EVERY* bit of data that comes into the script from outside.
This includes items passed on the URL, POSTed items, uploaded files, etc.
You CANNOT TRUST that your URL has not been tampered with, regardless of the
scripting language you use (ASP, PHP, JSP, etc)  If they do not validate the
inputted data, they have problems like you have seen.

Relying on register_globals is taboo.  Any competent PHP programmer knows
that, and likely has known it for a long time.

>  I know ASP and JSP, but not PHP.  I've not got much time 
> to invest
> into this.

Sounds like you need a good consultant.  My rates are reasonable.  ;-)

JM

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



Re: [PHP] suphp and header (Status: xxx yyyyy) not seeing default error page

2007-03-15 Thread Tijnema !

On 3/15/07, Puskás Zsolt ( Errotan ) <[EMAIL PROTECTED]> wrote:

Hello everybody.

Sorry for my bad english.
I'm using apache 2.2.3-3.3 ; php 5.2.0-8-cgi ; suphp 0.6.2-1 on debian "etch".
I'm running php as cgi ( using suphp ).
I can't get header ("Status: 404 Not found"); and other header (xxx) commands
to send default error page like http://example.com/nonexistent would send.
The browser gets 404 ( and other ) error code but I only see a blank page.
Is it possible to use apache's errordocuments so the users can't see the
difference?
My main goal is to hide class php files and directories and of course other
error pages would be useful :) .

Thanks.


You can use apache's error documents, but a user using a non-english
version of windows/linux would see the difference, as the 404 page is
translated to the users language...

I don't know a lot of the difference between PHP and PHP running as
CGI, but the PHP documentation recommends the following command:
header("HTTP/1.0 404 Not Found");

And maybe this is useful:
http://bugs.php.net/bug.php?id=27345

Tijnema


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




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



[PHP] Just upgraded to php 5, html emails showing up as text

2007-03-15 Thread Paul Nowosielski
Dear All,

I've just upgraded our systems to apache2 and php5 and all our emails are 
showing up as text now and not html. 

Any ideas??

Thank you,

-- 
Paul Nowosielski
Webmaster

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



Re: [PHP] Just upgraded to php 5, html emails showing up as text

2007-03-15 Thread Robert Cummings
On Thu, 2007-03-15 at 12:24 -0700, Paul Nowosielski wrote:
> Dear All,
> 
> I've just upgraded our systems to apache2 and php5 and all our emails are 
> showing up as text now and not html. 
> 
> Any ideas??

User error?

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



Re: [PHP] Re: PHP->FLASH

2007-03-15 Thread CK

Hi,


This is an exercise, would you elaborate, as I'm fairly new to PHP- 
>FLASH





On Mar 15, 2007, at 12:55 PM, Mikey wrote:

To get values such as price=500 then you will need to encode that  
into your URL.  At the moment you are making thePrices=price500, so  
the value you are seeing is correct.


Tf you had price=500 then you would see a variable called price  
with a value of 500.


I suspect you are trying to make an array, so what you should try is:

thePrices[]=500&thePrices[]=400&thePrices[]=350

Etc.

HTH,

Mikey

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



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



Re: [PHP] Re: PHP->FLASH

2007-03-15 Thread CK

Hi,

This is an exercise, using a simple file for the sake of learning.  
Any assistance would be appreciated.



CK




On Mar 15, 2007, at 1:08 PM, Andrei wrote:



Mikey wrote:
To get values such as price=500 then you will need to encode that  
into

your URL.  At the moment you are making thePrices=price500, so the
value you are seeing is correct.

Tf you had price=500 then you would see a variable called price  
with a

value of 500.

I suspect you are trying to make an array, so what you should try is:

thePrices[]=500&thePrices[]=400&thePrices[]=350

Etc.

HTH,

Mikey



Or just parse the XML file directly in Flash... It's not that
complicated and there r lots of tutorials on this subject you can find
googleing it...

Andy

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



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



[PHP] LAMP Opportunity

2007-03-15 Thread Efrain Sarmiento
Title:  Lamp Developer  
Skills: lamp, Linux, Apache, MySQL, php, unix   

Date:   3-15-2007   
Location:   New York, NY
Area code:  212 

Tax term:   FULLTIME CON_IND CON_W2 CON_HIRE_IND CON_HIRE_W2
Pay rate:   $70 
Length: 6-12 months 

Position ID:lamp


Job description:
Prestigious Online NY Based News Paper is seeking a solid *LAMP (see
definition of LAMP below) developer to work as part of 
A team to architect and build the software that helps the online
newspaper function as a site with an unparalleled combination of scale
and complexity. The successful candidate is enthusiastic about building
out the content offerings and dynamic features of the site and has done
significant web programming in the Unix environment.
Responsibilities: 
* * Writing application and related database objects to enable users*
* dynamic interaction with the web site
* Integrating a diverse set of data sources including related databases,
search engines, and XML data
* Integrating feeds from 3rd parties into the nytimes.com content
management system
The ideal candidate must have high standards with regard to the finished
product and must be concerned about the quality and
maintainability of the underlying software. In addition, the ideal
candidate possess the ability to design systems, communicate and 
work effectively with others, write scalable and high quality code, and
deliver work on schedule.

Necessary skills:
* B.S./B.A. in Computer Science or a degree in a related field plus
Computer Science coursework
* 3-6 years web development work experience
* Unix proficiency
* Experience with one or more scripting languages such as Perl, PHP and
Python
* Strong working knowledge of RDBMS, SQL and basic database
optimization concepts
* Experience working with XML, XSL, XPath
* Comfort with Regular Expressions
* Ability to communicate effectively with business side clients to
gather and translate functional specs
* Working knowledge of HTML, Javascript
* Experience working as part of a team
* Strong verbal and written communication skills

Desired skills:
* Formal software development methodology
* Experience writing shared and reusable components of code
* Experience designing and tuning applications that can scale
* Some background in a structured programming language, such as Java or
C/C++
* Oracle-specific SQL, PL/SQL
* Use of source control

*Short for Linux, Apache, MySQL and PHP, an open-source Web development
platform that uses Linux as the operating system, Apache as the Web
server, MySQL as the RDBMS and PHP as the object-oriented scripting
language. Perl or Python is often substituted for PHP. LAMP has become a
de facto development standard.  
 

_

Efrain Sarmiento
Technical Recruiter
MISI company

p: 212.355.5585 x332
f: 212.751.5964
c: 917.365.5656
[EMAIL PROTECTED]

Informed Usability  |  Innovative Solutions   |  Reliable Sourcing 
www.misicompany.com  
_

The information contained in this message is sent in the strictest
confidence for the addressee only. It is intended only for the use of
the addressee and may contain legally
privileged/confidential/proprietary information. If you have received
this email in error you are requested to preserve its confidentiality
and advise the sender.

 


Re: [PHP] Just upgraded to php 5, html emails showing up as text

2007-03-15 Thread Erik Jones

Are you including a mime-type header in your mail calls?

On Mar 15, 2007, at 1:45 PM, Robert Cummings wrote:


On Thu, 2007-03-15 at 12:24 -0700, Paul Nowosielski wrote:

Dear All,

I've just upgraded our systems to apache2 and php5 and all our  
emails are

showing up as text now and not html.

Any ideas??


User error?

Cheers,
Rob.
--
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



erik jones <[EMAIL PROTECTED]>
sofware developer
615-296-0838
emma(r)





Re: [PHP] Just upgraded to php 5, html emails showing up as text

2007-03-15 Thread Paul Nowosielski

That was the issue ,

thanks!


On Thursday 15 March 2007 11:56, Erik Jones wrote:

> Are you including a mime-type header in your mail calls?
>
> On Mar 15, 2007, at 1:45 PM, Robert Cummings wrote:
> > On Thu, 2007-03-15 at 12:24 -0700, Paul Nowosielski wrote:
> >> Dear All,
> >>
> >> I've just upgraded our systems to apache2 and php5 and all our
> >> emails are
> >> showing up as text now and not html.
> >>
> >> Any ideas??
> >
> > User error?
> >
> > Cheers,
> > Rob.
> > --
> > ..
> >
> > | InterJinn Application Framework - http://www.interjinn.com |
> > |
> > ::
> > :
> > | An application and templating framework for PHP. Boasting  |
> > | a powerful, scalable system for accessing system services  |
> > | such as forms, properties, sessions, and caches. InterJinn |
> > | also provides an extremely flexible architecture for   |
> > | creating re-usable components quickly and easily.  |
> >
> > `'
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
> erik jones <[EMAIL PROTECTED]>
> sofware developer
> 615-296-0838
> emma(r)

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



Re: [PHP] logging erros and user access to logs

2007-03-15 Thread Richard Lynch
On Thu, March 15, 2007 8:25 am, Jason Joines wrote:
> Richard Lynch wrote:
>> Get the errors OFF the web page (display_errors OFF) and into the
>error_reporting(E_PARSE);
> ini_set('display_errors','On');
> ini_set('display_startup_errors','On');
> include('mypage.php');
>   ?>
> Then when debugging was done, just delete the debug script.
>
> I moved it to a test server and could get it to work but only if
> display_errors was set to on in the global php.ini file.  I can't do
> that on the production server.  The manual says display_errors can be
> overridden in a script.  I used ini_get() to see if the value was
> actually being changed, it was.  However, it still doesn't print the
> errors unless the global ini is set.
>
> Any ideas as to why it's not working?

Put  into the mypage.php and see if its "Master" and
"Local" values are different for display_errors.

If they are, then it worked, and you SHOULD see the errors.

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

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



Re: [PHP] Environment variables...

2007-03-15 Thread Richard Lynch
On Thu, March 15, 2007 8:18 am, David BERCOT wrote:
> Le Wed, 14 Mar 2007 17:37:02 -0500 (CDT),
> "Richard Lynch" <[EMAIL PROTECTED]> a écrit :
>> PHP runs as its own user in its own environment.
>>
>> Stuff you cram into your environment has no effect on that, as it
>> should be.
>>
>> If you alter the environment of the PHP user you might get what you
>> want.
>>
>> You may also be able to use http://php.net/setenv
>>
>> And http://php.net/getenv is probably faster than your exec.
>>
>> Setting the env up in httpd.conf and/or php.ini and/or .htaccess
>> should work.  httpd.conf for sure, others I think.
>
> Yes, great... Now, I have another problem ;-)
> In Debian, everything is ok. I put my variable
> in /etc/apache2/httpd.conf.
>
> But on RedHat, I don't know which file is concerned...
>
> So, I've searched in php.ini, but I did not find a place where I can
> put variables...
>
> Do you know which is the equivalent of /etc/apache2/httpd.conf on
> RedHat ?
> And is it possible (and how ;-)) to put variables in the php.ini ?

It depends on who built the RPM, or if you used source to install...

/etc/httpd.conf
/etc/httpd/httpd.conf
/usr/local/lib/apache/conf/httpd.conf
.
.
.

Perhaps you can find the httpd.conf file with either of:

locate httpd.conf
find / -name httpd.conf -print

The first one will be fast, if it's been installed.
The second one could take forever, if there are many files on your drive.

I have no idea about setting env values in php.ini...

.htacces, though, should be quick and easy to try out...

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

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



Re: [PHP] logging erros and user access to logs

2007-03-15 Thread Jason Joines
On Thu, 15 Mar 2007, Richard Lynch wrote:

> Date: Thu, 15 Mar 2007 14:35:45 -0500 (CDT)
> From: Richard Lynch <[EMAIL PROTECTED]>
> To: Jason Joines <[EMAIL PROTECTED]>
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] logging erros and user access to logs
>
> On Thu, March 15, 2007 8:25 am, Jason Joines wrote:
> > Richard Lynch wrote:
> >> Get the errors OFF the web page (display_errors OFF) and into the
> >> error_reporting(E_PARSE);
> > ini_set('display_errors','On');
> > ini_set('display_startup_errors','On');
> > include('mypage.php');
> >   ?>
> > Then when debugging was done, just delete the debug script.
> >
> > I moved it to a test server and could get it to work but only if
> > display_errors was set to on in the global php.ini file.  I can't do
> > that on the production server.  The manual says display_errors can be
> > overridden in a script.  I used ini_get() to see if the value was
> > actually being changed, it was.  However, it still doesn't print the
> > errors unless the global ini is set.
> >
> > Any ideas as to why it's not working?
>
> Put  into the mypage.php and see if its "Master" and
> "Local" values are different for display_errors.
>
> If they are, then it worked, and you SHOULD see the errors.
>
> --
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some starving artist.
> http://cdbaby.com/browse/from/lynch
> Yeah, I get a buck. So?
>



Well they weren't different so I guess it didn't work.  Seems odd to
me that get_ini would show it has having been changed but phpinfo doesn't.


Jason
===

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



Re: [PHP] logging erros and user access to logs

2007-03-15 Thread Jason Joines
Richard Lynch wrote:
> On Thu, March 15, 2007 8:25 am, Jason Joines wrote:
>> Richard Lynch wrote:
>>> Get the errors OFF the web page (display_errors OFF) and into the
>>   > error_reporting(E_PARSE);
>> ini_set('display_errors','On');
>> ini_set('display_startup_errors','On');
>> include('mypage.php');
>>   ?>
>> Then when debugging was done, just delete the debug script.
>>
>> I moved it to a test server and could get it to work but only if
>> display_errors was set to on in the global php.ini file.  I can't do
>> that on the production server.  The manual says display_errors can be
>> overridden in a script.  I used ini_get() to see if the value was
>> actually being changed, it was.  However, it still doesn't print the
>> errors unless the global ini is set.
>>
>> Any ideas as to why it's not working?
> 
> Put  into the mypage.php and see if its "Master" and
> "Local" values are different for display_errors.
> 
> If they are, then it worked, and you SHOULD see the errors.
> 



Well they weren't different so I guess it didn't work.  Seems odd to
me that get_ini would show it has having been changed but phpinfo doesn't.


Jason
===

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



Re: [PHP] logging erros and user access to logs

2007-03-15 Thread Richard Lynch
On Thu, March 15, 2007 2:47 pm, Jason Joines wrote:
> Richard Lynch wrote:
>> On Thu, March 15, 2007 8:25 am, Jason Joines wrote:
>>> Richard Lynch wrote:
 Get the errors OFF the web page (display_errors OFF) and into the
>>>   >> error_reporting(E_PARSE);
>>> ini_set('display_errors','On');
>>> ini_set('display_startup_errors','On');
>>> include('mypage.php');
>>>   ?>
>>> Then when debugging was done, just delete the debug script.
>>>
>>> I moved it to a test server and could get it to work but only
>>> if
>>> display_errors was set to on in the global php.ini file.  I can't
>>> do
>>> that on the production server.  The manual says display_errors can
>>> be
>>> overridden in a script.  I used ini_get() to see if the value was
>>> actually being changed, it was.  However, it still doesn't print
>>> the
>>> errors unless the global ini is set.
>>>
>>> Any ideas as to why it's not working?
>>
>> Put  into the mypage.php and see if its "Master"
>> and
>> "Local" values are different for display_errors.
>>
>> If they are, then it worked, and you SHOULD see the errors.
>>
>
>
>
> Well they weren't different so I guess it didn't work.  Seems odd
> to
> me that get_ini would show it has having been changed but phpinfo
> doesn't.

Sounds like a bug to me -- They ought to at least agree on what the
setting is, even if you weren't allowed to change it...

Check the bug reports and file one, I guess:
http://bugs.php.net

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

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



Re: [PHP] suphp and header (Status: xxx yyyyy) not seeing default error page

2007-03-15 Thread Richard Lynch
On Thu, March 15, 2007 7:26 am, Puskás Zsolt ( Errotan ) wrote:
> My main goal is to hide class php files and directories and of course
> other
> error pages would be useful :) .

Actually, for the class files, you can move them completely out of the
web tree and use php.ini include_path to let PHP include them.

This means you'd have to REALLY mess up a vhost somewhere in
httpd.conf to get your class files exposed, which is awfully
unlikely...

You can also configure apache to not display .inc files, but it's
easier to lose that configuration (especially in .htaccess).
E.g., tar -cvf export.tar public_html will "miss" the .htaccess files,
and then if you expert on a new home, you've got your class files
exposed without realizing it.

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

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



Re: [PHP] ftruncate

2007-03-15 Thread Richard Lynch
On Thu, March 15, 2007 4:57 am, Swati Asthana wrote:
> Is there any function in php through which we can delete / truncate
> the
> content of a text file that is before the file pointer/file handler ?
>
> can we use truncate?
> actually im using a function to pick the content from a text file
> using 2
> delimiters, but that function checks only the first instance of the
> delimiter..

If you want to chop the END of a file off, the ever-so-cleverly-named
ftruncate will do that.
http://php.net/ftruncate

If you want to chop the FRONT of a file off, I don't think you can do
that...  In fact, given the way some operating systems maintain their
file catalogs, I'm almost positive you can't do that.

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

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



Re: [PHP] Environment variables...

2007-03-15 Thread Erik Jones



PHP runs as its own user in its own environment.

Stuff you cram into your environment has no effect on that, as it
should be.


Just a note for the sticklers out there:  PHP does not run as its own  
user.  It runs as whatever user runs the php script.  So, if the  
script is being run by a web server, it runs as whomever the web  
server runs as.  If you execute the script from a shell (cli), it  
runs as whatever user you are logged in as...


erik jones <[EMAIL PROTECTED]>
sofware developer
615-296-0838
emma(r)





Re: [PHP] suphp and header (Status: xxx yyyyy) not seeing default error page

2007-03-15 Thread Puskás Zsolt ( Errotan )
Thanks for replying, but header("HTTP/1.0 404 Not Found"); only works if php 
is an apache module I tried it and tried lots of other stuff.
I think it is not possible to use apache's error documents because php-cgi 
don't really communicate with apache ( apache specific functions don't work [ 
like apache_get_modules() ] ).
So I just clone them. I make a function to output the same as the apache error 
documents at least the header() function sends the correct header code.

> On 3/15/07, Puskás Zsolt ( Errotan ) <[EMAIL PROTECTED]> wrote:
> > Hello everybody.
> >
> > Sorry for my bad english.
> > I'm using apache 2.2.3-3.3 ; php 5.2.0-8-cgi ; suphp 0.6.2-1 on debian
> > "etch". I'm running php as cgi ( using suphp ).
> > I can't get header ("Status: 404 Not found"); and other header (xxx)
> > commands to send default error page like http://example.com/nonexistent
> > would send. The browser gets 404 ( and other ) error code but I only see
> > a blank page. Is it possible to use apache's errordocuments so the users
> > can't see the difference?
> > My main goal is to hide class php files and directories and of course
> > other error pages would be useful :) .
> >
> > Thanks.
>
> You can use apache's error documents, but a user using a non-english
> version of windows/linux would see the difference, as the 404 page is
> translated to the users language...
>
> I don't know a lot of the difference between PHP and PHP running as
> CGI, but the PHP documentation recommends the following command:
> header("HTTP/1.0 404 Not Found");
>
> And maybe this is useful:
> http://bugs.php.net/bug.php?id=27345
>
> Tijnema
>
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php

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



Re: [PHP] ftruncate

2007-03-15 Thread Tijnema !

On 3/15/07, Richard Lynch <[EMAIL PROTECTED]> wrote:

On Thu, March 15, 2007 4:57 am, Swati Asthana wrote:
> Is there any function in php through which we can delete / truncate
> the
> content of a text file that is before the file pointer/file handler ?
>
> can we use truncate?
> actually im using a function to pick the content from a text file
> using 2
> delimiters, but that function checks only the first instance of the
> delimiter..

If you want to chop the END of a file off, the ever-so-cleverly-named
ftruncate will do that.
http://php.net/ftruncate

If you want to chop the FRONT of a file off, I don't think you can do
that...  In fact, given the way some operating systems maintain their
file catalogs, I'm almost positive you can't do that.

What about reading the rest of the file and store it in a new file?
Then delete old file, and rename new file to old file and you have
what you need i think.

Tijnema


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

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




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



Re: [PHP] logging erros and user access to logs

2007-03-15 Thread Jason Joines
Richard Lynch wrote:
> On Thu, March 15, 2007 2:47 pm, Jason Joines wrote:
>> Richard Lynch wrote:
>>> On Thu, March 15, 2007 8:25 am, Jason Joines wrote:
 Richard Lynch wrote:
> Get the errors OFF the web page (display_errors OFF) and into the
   >>> error_reporting(E_PARSE);
 ini_set('display_errors','On');
 ini_set('display_startup_errors','On');
 include('mypage.php');
   ?>
 Then when debugging was done, just delete the debug script.

 I moved it to a test server and could get it to work but only
 if
 display_errors was set to on in the global php.ini file.  I can't
 do
 that on the production server.  The manual says display_errors can
 be
 overridden in a script.  I used ini_get() to see if the value was
 actually being changed, it was.  However, it still doesn't print
 the
 errors unless the global ini is set.

 Any ideas as to why it's not working?
>>> Put  into the mypage.php and see if its "Master"
>>> and
>>> "Local" values are different for display_errors.
>>>
>>> If they are, then it worked, and you SHOULD see the errors.
>>>
>>
>>
>> Well they weren't different so I guess it didn't work.  Seems odd
>> to
>> me that get_ini would show it has having been changed but phpinfo
>> doesn't.
> 
> Sounds like a bug to me -- They ought to at least agree on what the
> setting is, even if you weren't allowed to change it...
> 
> Check the bug reports and file one, I guess:
> http://bugs.php.net
> 


I thought I might try a modification of your virtual hosts
suggestion.  Perhaps create a virtual host with the same document root
as the main virtual host but turn display_errors on globally for the
debug vhost using phpflag.  First I tried it in a .htaccess file and
then in my main apache config file, httpd.conf.  Each time resulted in
the error:
"Invalid command 'phpflag', perhaps mis-spelled or defined by a module
not included in the server configuration."

I'm starting to think that all of the ini override stuff was
implemented in a later version of PHP than I'm using.  Haven't figured
out when it was implemented yet though.


Jason
===

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



Re: [PHP] LAMP Opportunity

2007-03-15 Thread Børge Holen
On a first thought, this mostly are not skills you wish for, but rather some 
experience. Someone should have read correction... ;D

On Thursday 15 March 2007 19:48, Efrain Sarmiento wrote:
> Title:Lamp Developer
> Skills:   lamp, Linux, Apache, MySQL, php, unix
>
> Date: 3-15-2007
> Location: New York, NY
> Area code:212
>
> Tax term: FULLTIME CON_IND CON_W2 CON_HIRE_IND CON_HIRE_W2
> Pay rate: $70
> Length:   6-12 months
>
> Position ID:  lamp
>
>
> Job description:
> Prestigious Online NY Based News Paper is seeking a solid *LAMP (see
> definition of LAMP below) developer to work as part of
> A team to architect and build the software that helps the online
> newspaper function as a site with an unparalleled combination of scale
> and complexity. The successful candidate is enthusiastic about building
> out the content offerings and dynamic features of the site and has done
> significant web programming in the Unix environment.
> Responsibilities:
> * * Writing application and related database objects to enable users*
> * dynamic interaction with the web site
> * Integrating a diverse set of data sources including related databases,
> search engines, and XML data
> * Integrating feeds from 3rd parties into the nytimes.com content
> management system
> The ideal candidate must have high standards with regard to the finished
> product and must be concerned about the quality and
> maintainability of the underlying software. In addition, the ideal
> candidate possess the ability to design systems, communicate and
> work effectively with others, write scalable and high quality code, and
> deliver work on schedule.
>
> Necessary skills:
> * B.S./B.A. in Computer Science or a degree in a related field plus
> Computer Science coursework
> * 3-6 years web development work experience
> * Unix proficiency
> * Experience with one or more scripting languages such as Perl, PHP and
> Python
> * Strong working knowledge of RDBMS, SQL and basic database
> optimization concepts
> * Experience working with XML, XSL, XPath
> * Comfort with Regular Expressions
> * Ability to communicate effectively with business side clients to
> gather and translate functional specs
> * Working knowledge of HTML, Javascript
> * Experience working as part of a team
> * Strong verbal and written communication skills
>
> Desired skills:
> * Formal software development methodology
> * Experience writing shared and reusable components of code
> * Experience designing and tuning applications that can scale
> * Some background in a structured programming language, such as Java or
> C/C++
> * Oracle-specific SQL, PL/SQL
> * Use of source control
>
> *Short for Linux, Apache, MySQL and PHP, an open-source Web development
> platform that uses Linux as the operating system, Apache as the Web
> server, MySQL as the RDBMS and PHP as the object-oriented scripting
> language. Perl or Python is often substituted for PHP. LAMP has become a
> de facto development standard.
>
>
> _
>
> Efrain Sarmiento
> Technical Recruiter
> MISI company
>
> p: 212.355.5585 x332
> f: 212.751.5964
> c: 917.365.5656
> [EMAIL PROTECTED]
>
> Informed Usability  |  Innovative Solutions   |  Reliable Sourcing
> www.misicompany.com 
> _
>
> The information contained in this message is sent in the strictest
> confidence for the addressee only. It is intended only for the use of
> the addressee and may contain legally
> privileged/confidential/proprietary information. If you have received
> this email in error you are requested to preserve its confidentiality
> and advise the sender.

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

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



[PHP] Help: DOMXPath->Query, quotes and apostrophes

2007-03-15 Thread Adam Randall
I seem to be hitting a wall here. I have the need to run an XPath query
on strings that may contain quotes, apostrophes or both. Going through
google turned up some interesting information, but nothing that solved
my issue.

An example of what I am trying to do is as follows:

$query = '\'foo"bar';
$xpath->query('/[EMAIL PROTECTED]"'.$query.'"]')->item(0);

This produces these warnings and errors:

Warning: DOMXPath::query() [function.DOMXPath-query]: Invalid predicate
Warning: DOMXPath::query() [function.DOMXPath-query]: Invalid expression
Fatal error: Call to a member function item() on a non-object

I've tried to escape the characters in the query, but that seems to be
illegal for XPath from what I've read. I've tried turning the quotes
into " and apostrophes into ' but it appears that XPath
requires that the data be unencoded to work.

I've seen reference to using XSLT to set XPath variables instead, but I
don't understand how to do implement this.

I would really appreciate any examples on what people have done to get
around this issue, if any one has at all.

Regards,

Adam.

--
Adam Randall <[EMAIL PROTECTED]>
(206) 285-8080
100 West Harrison
North Tower, Suite 300
Seattle, WA
98119

"Engineers like to solve problems. If there are no problems handily
available, they will create their own problems." - Dilbert

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



Re: [PHP] Re: [PHP-WIN] Re: [PHP] Re: Question on virus/worms

2007-03-15 Thread Richard Lynch
On Thu, March 15, 2007 9:15 am, Seak, Teng-Fong wrote:
> Stut wrote:
>> Seak, Teng-Fong wrote:
>>> But after I've spent some time reading the log files, I've
>>> finally
>>> found out how the hackers managed to achieve worm infiltration.
>>>
>>> Actually, they're using an URL like this:
>>> http://my-domain.com/index.php?page=http://hacker-domain.com/some-worm-file.txt?
>>>
>>>
>>> And the some-worm-file.txt file contains some PHP code, while
>>> my
>>> index.php contains this instruction:
>>> include("$page.php");

DON'T DO THAT!!!

It is incredibly open to the problem that has bit you.

There is a setting in php.ini to turn it OFF, actually.

>>> This is enough to make infiltration possible!  IMO, this
>>> instruction
>>> is supposed to be used like this, isn't it?  So this is obviously a
>>> PHP
>>> security loophole and I don't see how the "poorly written scripts"
>>> can
>>> help anything unless a totally rewrite!  And there's no "poor
>>> server
>>> security" that I can see.

No, it is *NOT* supposed to be used like that.

The programmer is supposed to have half a clue, and not do something
that incredibly stupid, which has been documented in a thousand
places.

Start reading here:
http://phpsec.org/

>> You mean to say that you're not validating what you're getting from
>> the user? Frankly you deserve everything you get.
> No, I don't deserve anything because, as I've written in the
> original post (but I suppose you didn't notice), the website is
> outsourced and made by a 3rd company.  I had already spent a lot of
> time
> to learn and understand PHP, which normally isn't a part of my job.
> So,
> I had already done more than I should.

Perhaps you can get some satisfaction by suing that 3rd party, on the
basis of incompetence.

Or not, if you are the one who did the include("$page.php");

>> This is *not* a "security loophole", it *is* a poorly written
>> script.
> Well, when something doesn't produce the expected effect/result,
> or
> produce a side-effect, it's considered as a bug.  If that's not a bug,
> why would the behaviour be changed from PHP4 to PHP5 then?
>>> I've installed PHP5 and the problem seems fixed.  However, PHP
>>> writes out where the problem occurs!  Indeed, the hacker could read
>>> a
>>> line like this:
>>> Warning: include() [function.include]: URL file-access is disabled
>>> in
>>> the server configuration in
>>> C:\Inetpub\wwwroot\index.php on line X

That is a configuration option in php.ini

It is not a core change to the PHP from 4 to 5.

In fact, I think it was available in PHP 4 as well, or at least later
versions of PHP 4.

>>> I don't want them (the hackers) to be able to read this either.
>>> That gives too much information about my server's file system.  How
>>> can
>>> I stop that?

In your php.ini
display_errors off

You may also want to turn the logging of errors ON so you can find
your mistakes.

While you're at it, crank up the error_reporting to E_ALL please.

Thanks.

>> Read the manual, specifically the error_reporting part. You can turn
>> the display of these messages off.
> I had.  Well, I had tried to do so, spending time out of my
> tightly
> scheduled job planning.

Guess you didn't schedule very well, then...

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

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



RE: [PHP] different and logic between PHP4 and PHP5

2007-03-15 Thread Vieri

--- "Ford, Mike" <[EMAIL PROTECTED]> wrote:

> And I can testify from personal experience that this
> has been true since the very early days of 4.0.x (in
> fact, I still have a 4.0.5 installation hanging
> around that I tested it on...!!), so I do not know
> where the *BLEEP* the OP can have been getting that
> 0 from.

PHP Version 4.0.3pl1
quite old, yes, I know



 

Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

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



[PHP] php - web service (ajax/jscript)

2007-03-15 Thread bruce
Hi

I'm trying to find information with regards to how to create/implement a
test web services app. I'm trying to find pointers to anyone who's actually
created this kind of functionality, or pointers to web sites where I can
find the information I'm looking for.

For my test, App1 has the web service, and provides the jscript/ajax code to
the 3rd Party, for use on the Test App. I'm trying to find php code for the
apps on the web servers as well as test php code for the api on the Master
Server. I'm also trying to get/find a test situation that provides test
client code (jscript/ajax) to be implemented on the test server/app.

Assume:
   Master Server3rd Party Server (separate domain)
 App1   Test App
 API File   (aa.js) (from Master Server)
 JScript (aa.js) -->>-^

The aa.js file allows the 3rd party client site to be able to interface with
the Master Server API via the API/services defined in the API File. I'm
envisioning the following actions for the user

  3rd Party Site   Master Server
 -User Enters Name >>api checks/verifies name
 -gets response 
   Master Server<<   returns response
 -user answers 
  question based
  on response, 
  sends response 
  to master server 
  via api  >>   api checks user input
 -gets response 
   Master Server<<   returns response
 -jscript then 
  gives reply/response 
  to the 3rd Party site, 
  allowing the site/app 
  to continue processing

In this case, the jscript/ajax app is really only communicating with the
Master Server, which if I understand it correctly would be in the same
domain as the ajax/jscript code. In other words, if the master server
supplies the jscript file(s) for the jscript that's to be run on the 3rd
party server, then any communication that's initiated from the jscript is
going back to the master server. There shouldn't be a cross domain issue?
Yes/No???

So, anyone who's actually implemented a real live web service, that's
willing to talk to me would be helpful, or if you can point me to sample
docs/code...

Thanks

-bruce


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

[PHP] php bar/graph scripts/library

2007-03-15 Thread Ron Croonenberg
hello all,

I am looking for some  scripts/libraries etc to produce some bar graphs etc.

Does anyone know of something "nice (that works on Linux)

thanks,
Ron

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



Re: [PHP] LAMP Opportunity

2007-03-15 Thread Nobody Special

Prestigious Online NY Based News Paper is seeking a solid *LAMP (see
definition of LAMP below) developer to work as part of
A team to architect and build the software that helps the online
newspaper function as a site with an unparalleled combination of scale
and complexity. The successful candidate is enthusiastic about building
out the content offerings and dynamic features of the site and has done
significant web programming in the Unix environment.


Did you know that were I work, plain old key value pairs sent over
HTTP is not enterprisey enough?   They blame it for application
problems rather than their crap AIX/JSP implementation.  Now they want
to convert it to soap/webmethods!  ARRGH, who subscribed them to
infoweek!!!


Responsibilities:
* * Writing application and related database objects to enable users*
* dynamic interaction with the web site


U, I can just smell the AJAX talk...



* Integrating a diverse set of data sources including related databases,
search engines, and XML data


y = integral from 1 to infinity of x /dXml


* Integrating feeds from 3rd parties into the nytimes.com content
management system


Do you have all the contracts in place so you don't get sued for
copyright infringement?  I heard that viacom, riaa, and mpaa are
always looking for a new source of income.


The ideal candidate must have high standards with regard to the finished
product and must be concerned about the quality and
maintainability of the underlying software. In addition, the ideal
candidate possess the ability to design systems, communicate and
work effectively with others, write scalable and high quality code, and
deliver work on schedule.



Well, that leaves me out.  I could care less...


Necessary skills:
* B.S./B.A. in Computer Science or a degree in a related field plus
Computer Science coursework


I got the BS part right.


* 3-6 years web development work experience


I wrote a web page 6 years ago.  Just yesterday I updated it.  Does that count.


* Unix proficiency


I can FSCK right up there with the rest of them.


* Experience with one or more scripting languages such as Perl, PHP and
Python


What do snakes have to do with it?



* Strong working knowledge of RDBMS, SQL and basic database
optimization concepts


The M in LAMP stands for mysql, I'm not sure this counts.


* Experience working with XML, XSL, XPath


and other things starting with X.



* Comfort with Regular Expressions


Sounds kinky!



* Ability to communicate effectively with business side clients to
gather and translate functional specs


Ability to translate BS into gibberish.



* Working knowledge of HTML, Javascript


I thought you wanted 3-6 years?  You just need working knowledge?


* Experience working as part of a team


Me, myself and I.



* Strong verbal and written communication skills



Duhh, like wow!  Dude I can so rap up the suits.



Desired skills:
* Formal software development methodology


You're talking LAMP, remember.


* Experience writing shared and reusable components of code


Stop it your scaring me.


* Experience designing and tuning applications that can scale


I have other uses for scales.



* Some background in a structured programming language, such as Java or
C/C++


How about turtle graphics?  It is pretty structured.



* Oracle-specific SQL, PL/SQL


Wait, there is no O in LAMP.



* Use of source control


cp myprogram.php myprogramv1.php, check.



*Short for Linux, Apache, MySQL and PHP, an open-source Web development
platform that uses Linux as the operating system, Apache as the Web
server, MySQL as the RDBMS and PHP as the object-oriented scripting
language. Perl or Python is often substituted for PHP. LAMP has become a
de facto development standard.



Are you sure this is a real job, you didn't once mention AJAX.

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



[PHP] Re: php - web service (ajax/jscript)

2007-03-15 Thread Haydar Tuna
Hello,
   Have you ever use nuSOAP libarary? You can connect any web service or 
create your own service. If you connect to MS Web Service with digest 
authentication, you will face to problems. I think MS add extra header 
information them web services. But you can connect java web services easily. 
You can find any information about nuSOAP in the 
http://sourceforge.net/projects/nusoap/  web site:)

-- 
Haydar TUNA
Republic Of Turkey - Ministry of National Education
Education Technology Department Ankara / TURKEY
Web: http://www.haydartuna.net

""bruce"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi
>
> I'm trying to find information with regards to how to create/implement a
> test web services app. I'm trying to find pointers to anyone who's 
> actually
> created this kind of functionality, or pointers to web sites where I can
> find the information I'm looking for.
>
> For my test, App1 has the web service, and provides the jscript/ajax code 
> to
> the 3rd Party, for use on the Test App. I'm trying to find php code for 
> the
> apps on the web servers as well as test php code for the api on the Master
> Server. I'm also trying to get/find a test situation that provides test
> client code (jscript/ajax) to be implemented on the test server/app.
>
> Assume:
>   Master Server3rd Party Server (separate domain)
> App1   Test App
> API File   (aa.js) (from Master Server)
> JScript (aa.js) -->>-^
>
> The aa.js file allows the 3rd party client site to be able to interface 
> with
> the Master Server API via the API/services defined in the API File. I'm
> envisioning the following actions for the user
>
>  3rd Party Site   Master Server
> -User Enters Name >>api checks/verifies name
> -gets response
>   Master Server<<   returns response
> -user answers
>  question based
>  on response,
>  sends response
>  to master server
>  via api  >>   api checks user input
> -gets response
>   Master Server<<   returns response
> -jscript then
>  gives reply/response
>  to the 3rd Party site,
>  allowing the site/app
>  to continue processing
>
> In this case, the jscript/ajax app is really only communicating with the
> Master Server, which if I understand it correctly would be in the same
> domain as the ajax/jscript code. In other words, if the master server
> supplies the jscript file(s) for the jscript that's to be run on the 3rd
> party server, then any communication that's initiated from the jscript is
> going back to the master server. There shouldn't be a cross domain issue?
> Yes/No???
>
> So, anyone who's actually implemented a real live web service, that's
> willing to talk to me would be helpful, or if you can point me to sample
> docs/code...
>
> Thanks
>
> -bruce
>
> 

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



Re: [PHP] php bar/graph scripts/library

2007-03-15 Thread Tijnema !

On 3/16/07, Ron Croonenberg <[EMAIL PROTECTED]> wrote:

hello all,

I am looking for some  scripts/libraries etc to produce some bar graphs etc.

Does anyone know of something "nice (that works on Linux)

thanks,
Ron


If i understand you correctly you want to have a moving progress bar?

If so, it is NOT possible with PHP, because PHP is server side, and
making that thing move should be done on client side (Javascript).

If you don't want to let it move, it is nothing more then just
displaying a picture of a bar :)

Tijnema


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