[PHP] | delimiter can not be found with strpos nor with explode

2001-11-11 Thread Kal Amry

If I have the string like this str1 | str2

Then | is found

However, if I do the above as str1|str2 without spaces

Then | can not be found

I appreciate any hints on a work around.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: | delimiter can not be found with strpos nor with explode

2001-11-11 Thread Kal Amry


It works now!! It was some problems with DreamWaver ..

Kal Amry [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 If I have the string like this str1 | str2

 Then | is found

 However, if I do the above as str1|str2 without spaces

 Then | can not be found

 I appreciate any hints on a work around.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: warning eror

2001-11-11 Thread Kal Amry


This is a Cobalt box! well you should edit the code and look at line 141 -
What error it mentions.

Telnet to the box, and cd to that directory

then vi repeat.php to edit the file

then Type 141 and then Shift G

That should take you the line but if you are not familiar with vi the  do
not continue just exit by doing :q! Enter

It seems that this file is part of a php opensource or whatever application
so if you didn't code it I recoment u seek other alternatives - One could be
to copy the original file if you have it backed up and then back up that
repeat file on the server and then copy the original to the server and see
if that solve the problem!!

What error are you getting anyhow. If it is parse error then I doubt it is
line 141.

Brett [EMAIL PROTECTED] wrote in message
008a01c16a91$9da01200$89383842@home">news:008a01c16a91$9da01200$89383842@home...
Can someone please tell me what to look for when this error appears:
Warning: Cannot use a scalar value as an array in
/home/sites/site7/web/admin/repeat.php on line 141

It just came about in a page that has worked fine until now.  But that is
how problems usually arrive, I think it is fine and leave it alone and all
hell breaks loose.  If anyone has any input I would appreciate it.

Brett




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: warning eror

2001-11-11 Thread Kal Amry


I didn't see the description of the error so take that into consideration
when reading my post, yet I agree Zona.

Cc Zona [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 In article 008a01c16a91$9da01200$89383842@home,
  [EMAIL PROTECTED] (Brett) wrote:

  Can someone please tell me what to look for when this error appears:
  Warning: Cannot use a scalar value as an array in
   on line 141

 On (or before) line 141 of /home/sites/site7/web/admin/repeat.php, an
array
 function is being used on a non-array value, and that won't work.

 --
 CC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form Name Attribute Help!

2001-11-10 Thread Kal Amry

Thanks guy, well I have to edit a lot of forms then :)

Chris Hobbs [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 It doesn't appear that the name attribute is passed (ref:
 http://www.blooberry.com/indexdot/html/tagpages/f/form.htm). Instead,
 try including the following in each of your forms:

 input type='hidden' name='formname' value='formName1'

 Then you can check $formname in file.php for the value.

 Hope this helps!

 Kal Amry wrote:

  I have posted this question before so I'm giving another try in case new
  people are looking at the news list!!
 
  If I have a form in  named formName1 such as:
 
  form name=formName1 action=file.php method=post
 
  How can I get the name formName1 from within file.php
 
  My original question was:
 
  Hi guys, If I have a code in file1.php such as:
 
  form name=formName1 action=file2.php method=post
  code..
  code..
  /form
 
  And
 
  form name=formName2 action=file2.php method=post
  code..
  code..
  /form
 
  Now in file2.php, I need to check which form I am receiving!! How do I
  check!!
 
  In other words, let's assume we only have the form names formName1 and
  formName1 - What code I can use in file2.php to get the name of the
  calling form. I just want to know how can I get the name of the form (in
the
  above case, formName1 or formName2)
 
  Thanx
 
 
 
 


 --
 ___  ____    _
 Chris Hobbs   / \ \/ / |  | |/ ___\|  __ \
 Head Geek| (___  \ \  / /| |  | | (___ | |  | |
 WebMaster \___ \  \ \/ / | |  | |\___ \| |  | |
 PostMaster) |  \  /  | |__| |) | |__| |
\/\/\/ \/|_/
http://www.silvervalley.k12.ca.us
[EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] converting string to double

2001-11-10 Thread Kal Amry


Any handy function to convert a string such as

$string1 = '55.32'

To A Number such as

55.32



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: e modifier

2001-11-10 Thread Kal Amry


I just came across this so check it - It might help:

http://www.php.net/manual/en/pcre.pattern.syntax.php#regexp.reference.backsl
ash

Kal

Brian Clark [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Does anyone know when the PCRE modifier 'e' was added into PHP? Is it
 version dependant, or has it been there since 3.0?

 In 3.0.18 with `PCRE library version: 2.05 21-Apr-1999' I get:

   Warning:  Unknown option 'e' in [...]

 But in 4.2.0-dev it is, of course, fine.

 -Brian




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Form Name Attribute

2001-11-10 Thread Kal Amry

Hi guys, If I have a code in file1.php such as:

form name=formName1 action=file2.php method=post
code..
code..
/form

And

form name=formName2 action=file2.php method=post
code..
code..
/form

Now in file2.php, I need to check which form I am receiving!! How do I
check!!

In other words, let's assume we only have the form names formName1 and
formName1 - What code I can use in file2.php to get the name of the
calling form. I just want to know how can I get the name of the form (in the
above case, formName1 or formName2)

Thanx



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Form Name Attribute Help!

2001-11-10 Thread Kal Amry

I have posted this question before so I'm giving another try in case new
people are looking at the news list!!

If I have a form in  named formName1 such as:

form name=formName1 action=file.php method=post

How can I get the name formName1 from within file.php

My original question was:

Hi guys, If I have a code in file1.php such as:

form name=formName1 action=file2.php method=post
code..
code..
/form

And

form name=formName2 action=file2.php method=post
code..
code..
/form

Now in file2.php, I need to check which form I am receiving!! How do I
check!!

In other words, let's assume we only have the form names formName1 and
formName1 - What code I can use in file2.php to get the name of the
calling form. I just want to know how can I get the name of the form (in the
above case, formName1 or formName2)

Thanx



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] multiple http authentication under one directory

2001-11-03 Thread Kal Amry


I have two private areas within each other. The parent folder has one and
then another inner folder has another authentication or private area using
http basic authentication for both of the above.

The problem is that when I enter the password of the Parent directory, the
password is set to SOMETHING - Then when I try to authenticate against the
inner folder, I set $PHP_AUTH_PW but now, I get the password dialogue again
trying to authenticate me against the parent directory.

Thus, if I enter the Parent directory password, and then try accessing that
inner folder again, I will have to enter the password for that inner
directory which is in the Parent directory - And when I do that, a password
dialogue pops up again trying to authenticate me on the Parent directory,
and so on!!

One solution is to use the same username  password for the Parent directory
and inner directory. However, I want to use different passwords and user
names on those directories!!

Any solutions!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP RPM BUILD ERROR - Help!

2001-11-02 Thread Kal Amry

I am trying to build the binaries, however after the following cmd:

rpm -bb php4-2.spec

I keep getting:

configure: error: Unable to find required gettext library
Bad exit status from /var/tmp/rpm-tmp.32623 (%build)

Thanks,



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: InterBase transaction ...

2001-10-19 Thread Kal Amry

For future reference, the [] in the parameter are means either or (it list
the options you have)




Yoel Benitez Fonseca [EMAIL PROTECTED] wrote in message
00a601c1585d$7fb33ba0$[EMAIL PROTECTED]">news:00a601c1585d$7fb33ba0$[EMAIL PROTECTED]...
 Hi!

 Someone can explain me (or give me an example or more) about the function:
 ibase_commit()

 I am using PHP 4 and InterBase 6.0 over IIS 5.0, in the version of the
 manual that I have the following description appears:

 int ibase_commit ([int link_identifier, int trans_number])

 but when I use it in my script, for example:

 ibase_commit($myDB, $myTrans);

 I receive the following error:

 . Wrong parameter count for ibase_commit () in.

 thank you in advance, Yoel.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: How one can pass throught sessions arrays with no use of mysql or files ?

2001-10-19 Thread Kal Amry


The best way (to get around cookies) is to pass it on the URL

a href=phpFile.php??=SID?

or

a href=phpFile.php?? echo SID; ?

Notice no $ before SID

Kal


Arsenkirillov [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 How one can pass throught sessions arrays with no use of mysql or files ?
 help me to advance pls.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Call to undefined function: pfpro_init()

2001-10-19 Thread Kal Amry


Anyone knows how I can use pfpro_init();

It is giving me an error right away saying:

Fatal error: Call to undefined function: pfpro_init() in PATH_TO_FILE.php on
line 3

Where can I find a support for these functions?

Thanks,





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]