php-general Digest 6 Sep 2007 12:58:02 -0000 Issue 5003

2007-09-06 Thread php-general-digest-help

php-general Digest 6 Sep 2007 12:58:02 - Issue 5003

Topics (messages 261762 through 261772):

Re: Command line socket server and SSL
261762 by: Paul

Re: Using PHP to determine if user has Java installed
261763 by: Paul Scott
261764 by: Matt Livingston

Re: Curl redirection problem.
261765 by: Stut

Re: capital I letters in func/class method names do not work with turkish 
locale in php5
261766 by: Roman Neumüller
261772 by: Tijnema

mail doesnt work
261767 by: Diana Castillo

cant mail
261768 by: Diana Castillo
261769 by: Robert Degen
261770 by: Diana Castillo
261771 by: Diana Castillo

Administrivia:

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

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

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


--
---BeginMessage---

Greg Donald wrote:

On Wed, 5 Sep 2007, Paul wrote:

Because the client is incapable of HTTPS or HTTP protocols.

Not that I really should need to answer this. Why on earth would you assume I
don't have a good reason? In what way is this answer to my question even a
little helpful?


It's not every day someone wants to use php with openssl but omit the web 
server component.


Do you have anything to offer in answer to my question to the list that
actually might help?


Have you tried using the openssl s_server directly?


Worth a look. Thanks.
---End Message---
---BeginMessage---

On Wed, 2007-09-05 at 20:41 -0400, tedd wrote:
 Java Runtime Environment == Java
 JavaScript != Java
 

How about something like:

if ( navigator.javaEnabled() ) {
alert('JRE is installed!');
window.location=page_with_a_JAVA_applet;
}
else {
alert('JRE is not installed!');
window.location=error_page;
}


All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm 
---End Message---
---BeginMessage---
Thanks,

http://www.php.net/manual/en/ref.java.php has the information I needed.  The
purpose of this script is on a website I will be managing we distribute
software written in Java, so when they go to download the software I thought
it would be a nice touch to alert them if they do not have JRE installed and
provide a link to the Java site where they can download it.

Thanks again all!

-Matt


On 9/5/07, David Powers [EMAIL PROTECTED] wrote:

 tedd wrote:
  At 3:17 PM -0600 9/5/07, Matt Livingston wrote:
 
  I want to know if it is possible to use PHP to find out if a visitor
 has
  Java Runtime Environment installed on a computer.
 
  But you can attempt to run a js script from php to see if javascript is
  enabled.

 Java Runtime Environment == Java
 JavaScript != Java

 There is a PECL extension for Java, allows you to get the version of
 Java installed. I have never used it, but details are here:

 http://www.php.net/manual/en/ref.java.php

 --
 David Powers

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




-- 
-Matt Livingston
---End Message---
---BeginMessage---

Chris wrote:



Basically I want to redirect to: http://www.website.org/index.php after
logging in using curl.


Curl won't redirect you, you have to do it.

header('Location: http://www.website.org');


But bear in mind that any cookies you've set up with curl will not be 
there when you redirect the client since they're in your cookie jar not 
on the clients machine, so if you're trying to do what I think you're 
trying to do it won't work.


-Stut

--
http://stut.net/
---End Message---
---BeginMessage---

I'm a german web-designer living in Turkey.
Sometimes I use opensource software like gallery2 or WP to have customers  
have some
nice web albums or blog. The turkish translation files of such opensource  
software
usually use gettext and .po files for i18n and are always a bit behind the  
translation

status of other european languages.

I decided to work a bit on some of those tr.po files on my local linux box
(opensuse 10.2 with apache 2.x mysql 5.x and php 5.2.0). But when I  
started the

test phase in turkish I couldn't test because of strange errors.
I contacted the forum of gallery2 and after investigating the problem I
stumbled over an answer of bug #35050 at bugs.php.net:

  http://bugs.php.net/bug.php?id=35050

and its status: WONT FIX

Now that's really great. It means that turkish hosting providers cannot  
use php5 at all!
And as of the news on php.net php4 will not be supported or developed any  
further

after the end of 2007! Will Turks really have now to wait for a php6?
When will that come out?
That's seems to me to be a sort of discrimination of turkish language in  
php5.

Is it technical so difficult to develop a patch for this bug?

Sincerely
---End Message---
---BeginMessage---
On 9/6/07, Roman Neumüller [EMAIL PROTECTED] wrote:
 

php-general Digest 7 Sep 2007 01:48:45 -0000 Issue 5004

2007-09-06 Thread php-general-digest-help

php-general Digest 7 Sep 2007 01:48:45 - Issue 5004

Topics (messages 261773 through 261808):

Re: capital I letters in func/class method names do not work with turkish 
locale in php5
261773 by: Dan Shirah
261775 by: Roman
261780 by: Eric Butera

Re: cant mail
261774 by: Daniel Brown
261784 by: David Wonderly
261785 by: Sanjeev N

Re: Curl redirection problem.
261776 by: Rahul Sitaram Johari
261777 by: Stut

Flow chart graph library
261778 by: Dani Castaños
261779 by: Jay Blanchard
261792 by: Sanjeev N

Re: Generating foldout menus in php
261781 by: Ken Kixmoeller -- reply to ken.kixmoeller.com
261782 by: Edward Kay
261783 by: Ken Kixmoeller -- reply to ken.kixmoeller.com
261786 by: Ken Kixmoeller -- reply to ken.kixmoeller.com
261787 by: tedd

IE Not Following Header(Location: /path/to/file.php);
261788 by: Scott Wilcox
261789 by: Edward Kay
261790 by: Kevin Murphy
261791 by: Sanjeev N
261793 by: Andrew Brampton
261800 by: brian

Preventing Access to Private Files
261794 by: Stephen
261795 by: mike
261796 by: Daevid Vincent
261797 by: TG
261804 by: tedd
261805 by: Daevid Vincent
261807 by: brian

Loosing session data between requests
261798 by: robert mena
261799 by: Edward Kay
261803 by: robert mena

403 Forbiden
261801 by: Jesús de Diego Alarcón
261802 by: Jesús de Diego Alarcón
261806 by: brian

Re: Opening a file
261808 by: Ronald Wiplinger

Administrivia:

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

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

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


--
---BeginMessage---
Now that's service!

On 9/6/07, Tijnema [EMAIL PROTECTED] wrote:

 On 9/6/07, Roman Neumüller [EMAIL PROTECTED] wrote:
  I'm a german web-designer living in Turkey.
  Sometimes I use opensource software like gallery2 or WP to have
 customers
  have some
  nice web albums or blog. The turkish translation files of such
 opensource
  software
  usually use gettext and .po files for i18n and are always a bit behind
 the
  translation
  status of other european languages.
 
  I decided to work a bit on some of those tr.po files on my local linux
 box
  (opensuse 10.2 with apache 2.x mysql 5.x and php 5.2.0). But when I
  started the
  test phase in turkish I couldn't test because of strange errors.
  I contacted the forum of gallery2 and after investigating the problem I
  stumbled over an answer of bug #35050 at bugs.php.net:
 
http://bugs.php.net/bug.php?id=35050
 
  and its status: WONT FIX
 
  Now that's really great. It means that turkish hosting providers cannot
  use php5 at all!
  And as of the news on php.net php4 will not be supported or developed
 any
  further
  after the end of 2007! Will Turks really have now to wait for a php6?
  When will that come out?
  That's seems to me to be a sort of discrimination of turkish language in
  php5.
  Is it technical so difficult to develop a patch for this bug?
 
  Sincerely
 

 Well, only 1 hour later than your email, there has been posted a patch
 on the bug page that fixes it.

 Tijnema


 --
 If this is a mailing list: DO NOT TOP POST! why?:
 http://www.caliburn.nl/topposting.html

 Vote for PHP Color Coding (aka Syntax Highlighting) in Gmail! -
 http://gpcc.tijnema.info

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


---End Message---
---BeginMessage---

On Thu, 06 Sep 2007 15:57:57 +0300, Tijnema [EMAIL PROTECTED] wrote:


On 9/6/07, Roman Neumüller [EMAIL PROTECTED] wrote:

I'm a german web-designer living in Turkey.
Sometimes I use opensource software like gallery2 or WP to have  
customers

have some
nice web albums or blog. The turkish translation files of such  
opensource

software
usually use gettext and .po files for i18n and are always a bit behind  
the

translation
status of other european languages.

I decided to work a bit on some of those tr.po files on my local linux  
box

(opensuse 10.2 with apache 2.x mysql 5.x and php 5.2.0). But when I
started the
test phase in turkish I couldn't test because of strange errors.
I contacted the forum of gallery2 and after investigating the problem I
stumbled over an answer of bug #35050 at bugs.php.net:

  http://bugs.php.net/bug.php?id=35050

and its status: WONT FIX

Now that's really great. It means that turkish hosting providers cannot
use php5 at all!
And as of the news on php.net php4 will not be supported or developed  
any

further
after the end of 2007! Will Turks really have now to wait for a php6?
When will that come out?
That's seems to me to be a sort of discrimination of turkish language in
php5.
Is it 

Re: [PHP] Curl redirection problem.

2007-09-06 Thread Stut

Chris wrote:



Basically I want to redirect to: http://www.website.org/index.php after
logging in using curl.


Curl won't redirect you, you have to do it.

header('Location: http://www.website.org');


But bear in mind that any cookies you've set up with curl will not be 
there when you redirect the client since they're in your cookie jar not 
on the clients machine, so if you're trying to do what I think you're 
trying to do it won't work.


-Stut

--
http://stut.net/

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



[PHP] php5: capital I letters in func/class method names do not work with turkish locale in php5

2007-09-06 Thread Roman Neumüller

I'm a german web-designer living in Turkey.
Sometimes I use opensource software like gallery2 or WP to have customers  
have some
nice web albums or blog. The turkish translation files of such opensource  
software
usually use gettext and .po files for i18n and are always a bit behind the  
translation

status of other european languages.

I decided to work a bit on some of those tr.po files on my local linux box
(opensuse 10.2 with apache 2.x mysql 5.x and php 5.2.0). But when I  
started the

test phase in turkish I couldn't test because of strange errors.
I contacted the forum of gallery2 and after investigating the problem I
stumbled over an answer of bug #35050 at bugs.php.net:

  http://bugs.php.net/bug.php?id=35050

and its status: WONT FIX

Now that's really great. It means that turkish hosting providers cannot  
use php5 at all!
And as of the news on php.net php4 will not be supported or developed any  
further

after the end of 2007! Will Turks really have now to wait for a php6?
When will that come out?
That's seems to me to be a sort of discrimination of turkish language in  
php5.

Is it technical so difficult to develop a patch for this bug?

Sincerely

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



[PHP] mail doesnt work

2007-09-06 Thread Diana Castillo
when I try to send mail using this code:

mail([EMAIL PROTECTED],TEST MAIL,TESTING MAIL);

I get this error:


Warning: mail() [function.mail]: SMTP server response: 554 
[EMAIL PROTECTED]: Recipient address rejected: Access denied in 
C:\Inetpub\wwwroot\intranet\test.php on line 4

my settings in php.ini are
SMTP = smtp.tsanalytics.com
smtp_port = 25 

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



[PHP] cant mail

2007-09-06 Thread Diana Castillo
when I try to send mail using this code:

mail([EMAIL PROTECTED],TEST MAIL,TESTING MAIL);

I get this error:

Warning: mail() [function.mail]: Failed to connect to mailserver at 
smtp.tsanalytics.com port 25, verify your SMTP and smtp_port setting 
in php.ini or use ini_set() in C:\Inetpub\wwwroot\intranet\test.php on line 
4


my settings in php.ini are
SMTP = smtp.tsanalytics.com
smtp_port = 25

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



Re: [PHP] cant mail

2007-09-06 Thread Robert Degen
Connection/Firewall ?!
--
Run telnet SMTPSERVER 25, type EHLO ENTER and see if he 
talks to you

No anonymous relaying ?!

Set the From header, caus maybe your smtp doesn't relay for 
everyone :-)

mail ($addressee, $sub, $body, 'From: [EMAIL PROTECTED]');

or write it into your php.ini at...

sendmail_from   NULLPHP_INI_ALL

(found at http://de3.php.net/mail, Runtime Configuration)

So far!
Rob

-- 
Und komm, Du brauchst nur einen Baum
um 1000 Streichhölzer herzustellen.
Aber Du brauchst nur einen Streichholz
um 1000 Bäume abzubrennen.
Meine Güte wer soll das denn jetzt verstehen?
Ganz egal, komm wir bleiben noch etwas länger.
Die Bedeutung zahlt ja immer der Empfänger

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



Fw: [PHP] cant mail

2007-09-06 Thread Diana Castillo


sorry I dont know how to run that telnet command, it doesnt work in my dos 
window.  I downloaded absolute telnet but I dont know how to send a message 
withit.


as far as sendmail_from, I already have that set to an email, so that isnt 
theproblem.


Could it be that in out look express it says in my mail setup My server 
requires authentification?



- Original Message - 
From: Robert Degen [EMAIL PROTECTED]

To: PHP Genral php-general@lists.php.net
Sent: Thursday, September 06, 2007 12:54 PM
Subject: Re: [PHP] cant mail



Connection/Firewall ?!
--
Run telnet SMTPSERVER 25, type EHLO ENTER and see if he
talks to you

No anonymous relaying ?!

Set the From header, caus maybe your smtp doesn't relay for
everyone :-)

mail ($addressee, $sub, $body, 'From: [EMAIL PROTECTED]');

or write it into your php.ini at...

sendmail_from NULL PHP_INI_ALL

(found at http://de3.php.net/mail, Runtime Configuration)

So far!
Rob




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



Fw: [PHP] cant mail

2007-09-06 Thread Diana Castillo

I found telenet.exe that comes with windows, but when I type in
SMTPSERVER 25, type EHLO ENTER 
it says Command not valid


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



Re: [PHP] php5: capital I letters in func/class method names do not work with turkish locale in php5

2007-09-06 Thread Tijnema
On 9/6/07, Roman Neumüller [EMAIL PROTECTED] wrote:
 I'm a german web-designer living in Turkey.
 Sometimes I use opensource software like gallery2 or WP to have customers
 have some
 nice web albums or blog. The turkish translation files of such opensource
 software
 usually use gettext and .po files for i18n and are always a bit behind the
 translation
 status of other european languages.

 I decided to work a bit on some of those tr.po files on my local linux box
 (opensuse 10.2 with apache 2.x mysql 5.x and php 5.2.0). But when I
 started the
 test phase in turkish I couldn't test because of strange errors.
 I contacted the forum of gallery2 and after investigating the problem I
 stumbled over an answer of bug #35050 at bugs.php.net:

   http://bugs.php.net/bug.php?id=35050

 and its status: WONT FIX

 Now that's really great. It means that turkish hosting providers cannot
 use php5 at all!
 And as of the news on php.net php4 will not be supported or developed any
 further
 after the end of 2007! Will Turks really have now to wait for a php6?
 When will that come out?
 That's seems to me to be a sort of discrimination of turkish language in
 php5.
 Is it technical so difficult to develop a patch for this bug?

 Sincerely


Well, only 1 hour later than your email, there has been posted a patch
on the bug page that fixes it.

Tijnema


-- 
If this is a mailing list: DO NOT TOP POST! why?:
http://www.caliburn.nl/topposting.html

Vote for PHP Color Coding (aka Syntax Highlighting) in Gmail! -
http://gpcc.tijnema.info

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



Re: [PHP] php5: capital I letters in func/class method names do not work with turkish locale in php5

2007-09-06 Thread Dan Shirah
Now that's service!

On 9/6/07, Tijnema [EMAIL PROTECTED] wrote:

 On 9/6/07, Roman Neumüller [EMAIL PROTECTED] wrote:
  I'm a german web-designer living in Turkey.
  Sometimes I use opensource software like gallery2 or WP to have
 customers
  have some
  nice web albums or blog. The turkish translation files of such
 opensource
  software
  usually use gettext and .po files for i18n and are always a bit behind
 the
  translation
  status of other european languages.
 
  I decided to work a bit on some of those tr.po files on my local linux
 box
  (opensuse 10.2 with apache 2.x mysql 5.x and php 5.2.0). But when I
  started the
  test phase in turkish I couldn't test because of strange errors.
  I contacted the forum of gallery2 and after investigating the problem I
  stumbled over an answer of bug #35050 at bugs.php.net:
 
http://bugs.php.net/bug.php?id=35050
 
  and its status: WONT FIX
 
  Now that's really great. It means that turkish hosting providers cannot
  use php5 at all!
  And as of the news on php.net php4 will not be supported or developed
 any
  further
  after the end of 2007! Will Turks really have now to wait for a php6?
  When will that come out?
  That's seems to me to be a sort of discrimination of turkish language in
  php5.
  Is it technical so difficult to develop a patch for this bug?
 
  Sincerely
 

 Well, only 1 hour later than your email, there has been posted a patch
 on the bug page that fixes it.

 Tijnema


 --
 If this is a mailing list: DO NOT TOP POST! why?:
 http://www.caliburn.nl/topposting.html

 Vote for PHP Color Coding (aka Syntax Highlighting) in Gmail! -
 http://gpcc.tijnema.info

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




Re: Fw: [PHP] cant mail

2007-09-06 Thread Daniel Brown
On 9/6/07, Diana Castillo [EMAIL PROTECTED] wrote:
 I found telenet.exe that comes with windows, but when I type in
  SMTPSERVER 25, type EHLO ENTER
 it says Command not valid

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



First of all, I wasn't sure which post of yours to reply to, but
since Rob replied here, I'll jump in on this one.

What he means is to do the following (since you're on Windows):

1.) Click the Start menu.
2.) Click `Run`
3.) Type: telnet
4.) When telnet starts, type: open SMTPSERVER 25
(Note: Replace SMTPSERVER with the correct server address)
5.) If it connects, type: EHLO
  5b.) If it doesn't connect, then investigate the possible reasons why.

Hope that helps with the part your testing now, Diana.


-- 
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

Give a man a fish, he'll eat for a day.  Then you'll find out he was
allergic and is hospitalized.  See?  No good deed goes unpunished

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



Re: [PHP] php5: capital I letters in func/class method names do not work with turkish locale in php5

2007-09-06 Thread Roman

On Thu, 06 Sep 2007 15:57:57 +0300, Tijnema [EMAIL PROTECTED] wrote:


On 9/6/07, Roman Neumüller [EMAIL PROTECTED] wrote:

I'm a german web-designer living in Turkey.
Sometimes I use opensource software like gallery2 or WP to have  
customers

have some
nice web albums or blog. The turkish translation files of such  
opensource

software
usually use gettext and .po files for i18n and are always a bit behind  
the

translation
status of other european languages.

I decided to work a bit on some of those tr.po files on my local linux  
box

(opensuse 10.2 with apache 2.x mysql 5.x and php 5.2.0). But when I
started the
test phase in turkish I couldn't test because of strange errors.
I contacted the forum of gallery2 and after investigating the problem I
stumbled over an answer of bug #35050 at bugs.php.net:

  http://bugs.php.net/bug.php?id=35050

and its status: WONT FIX

Now that's really great. It means that turkish hosting providers cannot
use php5 at all!
And as of the news on php.net php4 will not be supported or developed  
any

further
after the end of 2007! Will Turks really have now to wait for a php6?
When will that come out?
That's seems to me to be a sort of discrimination of turkish language in
php5.
Is it technical so difficult to develop a patch for this bug?

Sincerely



Well, only 1 hour later than your email, there has been posted a patch
on the bug page that fixes it.

Tijnema


Now that's great!

But...
I had a view in my php5.2.0 source package in the Zend folder
(phpinfo says: Zend Engine v2.2.0) for the file to be patched
(zend_operators.c) and there is no such code in the file and no
#define zend_tolower(c)

What do I have to do now?

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



Re: [PHP] Curl redirection problem.

2007-09-06 Thread Rahul Sitaram Johari
Chris wrote:

 Curl won't redirect you, you have to do it.
 header('Location: http://www.website.org');
 
 But bear in mind that any cookies you've set up with curl will not be
 there when you redirect the client since they're in your cookie jar not
 on the clients machine, so if you're trying to do what I think you're
 trying to do it won't work.
 
 -Stut

Exactly!! And it doesn¹t work!
Stut you¹re absolutely right. I did indeed try the header('Location:
http://www.website.org'); directive in many different ways. When it failed
to work, I realized that the cookies that curl setup are stores in the
cookie jar, not the client browser/machine ­ therefore ­ the redirection
took me to the ³unlogged-in² page, and not the ³logged-in² page of the
website. 

So what¹s the work around?


~~~
Rahul Sitaram Johari
CEO, Twenty Four Seventy Nine Inc.

W: http://www.rahulsjohari.com
E: [EMAIL PROTECTED]

³I morti non sono piu soli ... The dead are no longer lonely²



Re: [PHP] Curl redirection problem.

2007-09-06 Thread Stut

Rahul Sitaram Johari wrote:

Chris wrote:


 Curl won't redirect you, you have to do it.
 header('Location: http://www.website.org');

 But bear in mind that any cookies you've set up with curl will not be
 there when you redirect the client since they're in your cookie jar not
 on the clients machine, so if you're trying to do what I think you're
 trying to do it won't work.

 -Stut


Exactly!! And it doesn’t work!
Stut you’re absolutely right. I did indeed try the header('Location: 
http://www.website.org'); directive in many different ways. When it 
failed to work, I realized that the cookies that curl setup are stores 
in the cookie jar, not the client browser/machine – therefore – the 
redirection took me to the “unlogged-in” page, and not the “logged-in” 
page of the website.


So what’s the work around?


If you really need to do this you need to do it with client-side 
technology like activex so the cookies get set in the browser.


The only site I know that does this is egg.com, and they do it with an 
activex control that runs an embedded IE control. Yes, it's IE only.


If all you want to do is log them in using a username and password that 
you have simply fake the login form from the other site on your page 
with hidden text fields, auto-fill it with the details and set the 
action to the same place the login form on the other site submits to. 
Then submit that form using javascript and boom, the user is logged in 
to that other site.


Evil, nasty, insecure and other such stuff but that's how I'd do it if I 
had to do it at all.


-Stut

--
http://stut.net/

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



[PHP] Flow chart graph library

2007-09-06 Thread Dani Castaños

Hi all!

Does anybody know a PHP library to create Flow chart graphs??
I need it to do something like this:

   (yes)
Is it true   ? --- Update
 |
(no) |
 |
 
 Cancel

Thank you in advance!

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



RE: [PHP] Flow chart graph library

2007-09-06 Thread Jay Blanchard
[snip]
Does anybody know a PHP library to create Flow chart graphs??
I need it to do something like this:

(yes)
Is it true   ? --- Update
  |
 (no) |
  |
  
  Cancel

Thank you in advance!
[/snip]

http://www.phpclasses.org/browse/file/13723.html

It was the first thing that Google came up with. 

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



Re: [PHP] php5: capital I letters in func/class method names do not work with turkish locale in php5

2007-09-06 Thread Eric Butera
On 9/6/07, Tijnema [EMAIL PROTECTED] wrote:
 On 9/6/07, Roman Neumüller [EMAIL PROTECTED] wrote:
  I'm a german web-designer living in Turkey.
  Sometimes I use opensource software like gallery2 or WP to have customers
  have some
  nice web albums or blog. The turkish translation files of such opensource
  software
  usually use gettext and .po files for i18n and are always a bit behind the
  translation
  status of other european languages.
 
  I decided to work a bit on some of those tr.po files on my local linux box
  (opensuse 10.2 with apache 2.x mysql 5.x and php 5.2.0). But when I
  started the
  test phase in turkish I couldn't test because of strange errors.
  I contacted the forum of gallery2 and after investigating the problem I
  stumbled over an answer of bug #35050 at bugs.php.net:
 
http://bugs.php.net/bug.php?id=35050
 
  and its status: WONT FIX
 
  Now that's really great. It means that turkish hosting providers cannot
  use php5 at all!
  And as of the news on php.net php4 will not be supported or developed any
  further
  after the end of 2007! Will Turks really have now to wait for a php6?
  When will that come out?
  That's seems to me to be a sort of discrimination of turkish language in
  php5.
  Is it technical so difficult to develop a patch for this bug?
 
  Sincerely
 

 Well, only 1 hour later than your email, there has been posted a patch
 on the bug page that fixes it.

 Tijnema


 --
 If this is a mailing list: DO NOT TOP POST! why?:
 http://www.caliburn.nl/topposting.html

 Vote for PHP Color Coding (aka Syntax Highlighting) in Gmail! -
 http://gpcc.tijnema.info

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



I wouldn't hold my breath on that.

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



Re: [PHP] Generating foldout menus in php

2007-09-06 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]


On Sep 3, 2007, at 12:42 PM, tedd wrote:



that would be more complicated than just using css with js, like so:

http://sperling.com/examples/menuh/

http://sperling.com/examples/menuv/

Why complicate your life?



Hey, tedd - - - -

I like this tool, and am playing with it -- --

Just wondering, though, if you have ever created PHP code to generate  
these menus on-the-fly? I am working on an intranet application in  
which I take values from rights-and-responsibilities tables and use  
it to generate navigation options. Got a start on it, but if you  
already had some code I'd appreciate getting a gander at it.


KixJaguar - -

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



RE: [PHP] Generating foldout menus in php

2007-09-06 Thread Edward Kay


 -Original Message-
 From: Ken Kixmoeller -- reply to [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: 06 September 2007 16:48
 To: tedd; php-general@lists.php.net
 Subject: Re: [PHP] Generating foldout menus in php
 
 
 
 On Sep 3, 2007, at 12:42 PM, tedd wrote:
 
 
  that would be more complicated than just using css with js, like so:
 
  http://sperling.com/examples/menuh/
 
  http://sperling.com/examples/menuv/
 
  Why complicate your life?
 
 
 Hey, tedd - - - -
 
 I like this tool, and am playing with it -- --
 
 Just wondering, though, if you have ever created PHP code to generate  
 these menus on-the-fly? I am working on an intranet application in  
 which I take values from rights-and-responsibilities tables and use  
 it to generate navigation options. Got a start on it, but if you  
 already had some code I'd appreciate getting a gander at it.
 

Hi Ken,

You may want to take a look at Yahoo's YUI menu:
http://developer.yahoo.com/yui/menu/

These can be defined using standard XHTML markup.

Edward

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



Re: [PHP] Generating foldout menus in php

2007-09-06 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]


On Sep 6, 2007, at 11:02 AM, Edward Kay wrote:


You may want to take a look at Yahoo's YUI menu:
http://developer.yahoo.com/yui/menu/

These can be defined using standard XHTML markup.


Thank you --- I will do that --

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



Re: [PHP] cant mail

2007-09-06 Thread David Wonderly

Diana Castillo wrote:

when I try to send mail using this code:

mail([EMAIL PROTECTED],TEST MAIL,TESTING MAIL);

I get this error:

Warning: mail() [function.mail]: Failed to connect to mailserver at 
smtp.tsanalytics.com port 25, verify your SMTP and smtp_port setting 
in php.ini or use ini_set() in C:\Inetpub\wwwroot\intranet\test.php on line 
4



my settings in php.ini are
SMTP = smtp.tsanalytics.com
smtp_port = 25

  
I had this problem and I found that changing the port to 26 instead of 
25 fixed all SMTP problems that I had.


Maybe this will help.

-Dave

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



RE: [PHP] cant mail

2007-09-06 Thread Sanjeev N
Hi,
Try to set from the program using ini_set()function and or check your mail
server is correct or what.

In most of the case I have used as follows
Ini_set(SMPT,mail.domainname.com);
And port

If mail server doesn't exist then used as
Ini_set(SMPT,domainname.com);
And port

And believe me it worked well...
You just confirm your mailing server and your problem solves


Warm Regards,
Sanjeev
http://www.sanchanworld.com/
http://webdirectory.sanchanworld.com - Submit your website URL
http://webhosting.sanchanworld.com - Choose your best web hosting plan
-Original Message-
From: Diana Castillo [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 06, 2007 4:12 PM
To: php-general@lists.php.net
Subject: [PHP] cant mail

when I try to send mail using this code:

mail([EMAIL PROTECTED],TEST MAIL,TESTING MAIL);

I get this error:

Warning: mail() [function.mail]: Failed to connect to mailserver at 
smtp.tsanalytics.com port 25, verify your SMTP and smtp_port setting 
in php.ini or use ini_set() in C:\Inetpub\wwwroot\intranet\test.php on line 
4


my settings in php.ini are
SMTP = smtp.tsanalytics.com
smtp_port = 25

-- 
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] Generating foldout menus in php

2007-09-06 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]


On Sep 6, 2007, at 10:47 AM, Ken Kixmoeller -- reply to  
[EMAIL PROTECTED] wrote:


Just wondering, though, if you have ever created PHP code to  
generate these menus on-the-fly?


Never mind === I got it working. (Mechanically) --

Aesthetically, though, even though I used the horizontal classes,  
it comes out vertical -- any clues?


thanks ---

Ken

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



Re: [PHP] IE Not Following Header(Location: /path/to/file.php);

2007-09-06 Thread Edward Kay

Scott Wilcox wrote:

hey folks.

I have a strange problem with IE sometimes. It doesn't seem to accept
and follow a header sent to the browser. The action occurs when a user
logs in, then is sent this header.

Any hints/ideas appreciated.

Scott.
  
Get Microsoft's (free) Fiddler Tool and look at the exact info been sent 
and received:

http://www.fiddlertool.com/fiddler/

Edward

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



Re: [PHP] Generating foldout menus in php

2007-09-06 Thread tedd

At 10:05 AM -0500 9/6/07, phphelp -- kbk wrote:

On Sep 3, 2007, at 12:42 PM, tedd wrote:


that would be more complicated than just using css with js, like so:

http://sperling.com/examples/menuh/

http://sperling.com/examples/menuv/

Why complicate your life?


Hey, tedd - - - -

I like this tool, and am playing with it -- --

Just wondering, though, if you have ever created PHP code to 
generate these menus on-the-fly? I am working on an intranet 
application in which I take values from rights-and-responsibilities 
tables and use it to generate navigation options. Got a start on it, 
but if you already had some code I'd appreciate getting a gander at 
it.


KixJaguar - -


Unfortunately, I have not done anything in php with this and I could 
not do anything without the aid of some client-side help (i.e., ajax) 
-- so, why reinvent the wheel? CSS works!


Cheers,

tedd

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

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



[PHP] IE Not Following Header(Location: /path/to/file.php);

2007-09-06 Thread Scott Wilcox
hey folks.

I have a strange problem with IE sometimes. It doesn't seem to accept
and follow a header sent to the browser. The action occurs when a user
logs in, then is sent this header.

Any hints/ideas appreciated.

Scott.

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



Re: [PHP] IE Not Following Header(Location: /path/to/file.php);

2007-09-06 Thread Kevin Murphy
Also, turn on error reporting and see if an error is being generated  
before the header is sent.


--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada College
www.wnc.edu
775-445-3326

P.S. Please note that my e-mail and website address have changed from  
wncc.edu to wnc.edu.



On Sep 6, 2007, at 11:44 AM, Edward Kay wrote:


Scott Wilcox wrote:

hey folks.

I have a strange problem with IE sometimes. It doesn't seem to accept
and follow a header sent to the browser. The action occurs when a  
user

logs in, then is sent this header.

Any hints/ideas appreciated.

Scott.

Get Microsoft's (free) Fiddler Tool and look at the exact info been  
sent and received:

http://www.fiddlertool.com/fiddler/

Edward

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





RE: [PHP] IE Not Following Header(Location: /path/to/file.php);

2007-09-06 Thread Sanjeev N
There may be some output before header() or may be IE browsing interface is
not getting refresh properly

Warm Regards,
Sanjeev
http://www.sanchanworld.com/
http://webdirectory.sanchanworld.com - Submit your website URL
http://webhosting.sanchanworld.com - Choose your best web hosting plan

-Original Message-
From: Scott Wilcox [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 06, 2007 11:59 PM
To: php-general@lists.php.net
Subject: [PHP] IE Not Following Header(Location: /path/to/file.php);

hey folks.

I have a strange problem with IE sometimes. It doesn't seem to accept
and follow a header sent to the browser. The action occurs when a user
logs in, then is sent this header.

Any hints/ideas appreciated.

Scott.

-- 
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] Flow chart graph library

2007-09-06 Thread Sanjeev N
Hi,

The following link may help you for what you want to achieve. I had
bookmarked this link a long back.

http://www.phpclasses.org/browse/package/3009.html

But I have not tried.

Warm Regards,
Sanjeev
http://www.sanchanworld.com/
http://webdirectory.sanchanworld.com - Submit your website URL
http://webhosting.sanchanworld.com - Choose your best web hosting plan

-Original Message-
From: Dani Castaños [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 06, 2007 8:22 PM
To: php-general@lists.php.net
Subject: [PHP] Flow chart graph library

Hi all!

Does anybody know a PHP library to create Flow chart graphs??
I need it to do something like this:

(yes)
Is it true   ? --- Update
  |
 (no) |
  |
  
  Cancel

Thank you in advance!

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

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



Re: [PHP] IE Not Following Header(Location: /path/to/file.php);

2007-09-06 Thread Andrew Brampton

That is not valid, the Location field must contain the full URL, so
/path/to/file.php
should be
http://yourserver/path/to/file.php

Read RFC rfc2616, section 14
Will help find it: 
http://www.google.com/search?hl=enq=HTTP+Header+FieldbtnG=Google+Search


Andrew

- Original Message - 
From: Scott Wilcox [EMAIL PROTECTED]

To: php-general@lists.php.net
Sent: Thursday, September 06, 2007 7:29 PM
Subject: [PHP] IE Not Following Header(Location: /path/to/file.php);



hey folks.

I have a strange problem with IE sometimes. It doesn't seem to accept
and follow a header sent to the browser. The action occurs when a user
logs in, then is sent this header.

Any hints/ideas appreciated.

Scott.

--
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] Preventing Access to Private Files

2007-09-06 Thread mike
On 9/6/07, Stephen [EMAIL PROTECTED] wrote:
 I understand how to use PHP with MySQL to have a
 members table to validate passwords. And to limit the
 generation of member pages to members only.

 But what about photographs? If someone knows the
 complete URL they could view it directly, unless the
 directory is protected using .htpassword

 But I don't want to have passwords in two places, nor
 muck with the password file everytime a new member
 joins.

you could use a PHP wrapper file, and do something like:

if(is logged in and has rights) {
 passthru('file.jpg')
} else {
header(location: somewhere else);
exit();
}

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



[PHP] Loosing session data between requests

2007-09-06 Thread robert mena
Hi,

I am facing a strange problem.  I have two servers (both Centos 4.5, httpd
2.0.52, php 5.1.6) and in one of them a webmail (uebimiau) looses session
data between requests and in another it does not.

I've compared php.ini from both with nothing different except for some
memory limits they are equal.

I've checked both /tmp and the session file sess_x in one server is
empty and in another has the data.  Both $_SESSION are ok (I've checked with
a var_dump).

What could it be?

thanks.


Re: [PHP] Preventing Access to Private Files

2007-09-06 Thread TG

You could use PHP to read the file and send the proper image format header.

Your URL might look something like this:

http://www.yoursite.com/image.php?id=234

If you're worried about people hotlinking it in web forums or something, you 
can research 'hotlink protection'.  There's a million ways you could do it. 
 I don't know what the best common practice is, but it could involve 
something in the URL that indicates the ID # of the image plus a date/time 
so if someone tried to use the link more than like 10 seconds after the 
link was generated, it wouldn't load.

example:
http://www.yoursite.com/image.php?id=20070909150523234

So if someone tried to access the link after Sept 9, 2007, 3:05pm and 23 
seconds (+/- like 10 sec maybe) using the image id 234, it would fail.   
You could encode that number so it wasn't so obvious what it was.

You could also maybe look at the REFERRER to see what page linked to the 
image and if it's not one of your pages, block it.

Also, a common practice for using files without them being publicly 
accessible (outside the web server) would be to store the files in a path 
that's not available to the web server.

For example, if you have your files in:

/somepath/webroot/
/somepath/webroot/images(for common public things like buttons, banner 
graphics, etc)
/somepath/webroot/docs   (for public documents like PDFs or something you 
want people to be able to download easily)

Store sensitive files in:

/somepath/includes   (included/required files that may contain stuff like 
database passwords and such)
/somepath/photos (photos you don't want publicly available to be 
direct linked as you describe)

The web server software has access to certain directories, but PHP itself can 
have access to things outside the main web folders.

Just some thoughts.  Good luck!

-TG

- Original Message -
From: Stephen [EMAIL PROTECTED]
To: php-general@lists.php.net
Date: Thu, 6 Sep 2007 16:03:52 -0400 (EDT)
Subject: [PHP] Preventing Access to Private Files

 I understand how to use PHP with MySQL to have a
 members table to validate passwords. And to limit the
 generation of member pages to members only.
 
 But what about photographs? If someone knows the
 complete URL they could view it directly, unless the
 directory is protected using .htpassword
 
 But I don't want to have passwords in two places, nor
 muck with the password file everytime a new member
 joins.
 
 Suggestions?
 
 Thanks
 Stephen
 
 -- 
 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] Preventing Access to Private Files

2007-09-06 Thread Daevid Vincent
 -Original Message-
 From: Stephen [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 06, 2007 1:04 PM
 To: php-general@lists.php.net
 Subject: [PHP] Preventing Access to Private Files
 
 I understand how to use PHP with MySQL to have a
 members table to validate passwords. And to limit the
 generation of member pages to members only.
 
 But what about photographs? If someone knows the
 complete URL they could view it directly, unless the
 directory is protected using .htpassword
 
 But I don't want to have passwords in two places, nor
 muck with the password file everytime a new member
 joins.
 
 Suggestions?
 
 Thanks
 Stephen

http://modauthmysql.sourceforge.net/

Pretty much the greatest plugin ever invented for Apache.
I use it religiously.

Then you can have both methods sharing the same db table and it's seemless
and WAY more secure than trying to do some 'index.php' or 'header' tricks...

Basically add something like this to your apache vhost_foo.conf file:

Directory /home/foo/public_html/admin
  Options All +Includes
  AllowOverride None   

  AuthName  My Private Admin Stuff
  AuthType  Basic
  require   valid-user

  AuthMySQLHost localhost
  AuthMySQLDB   mydatabase 
  AuthMySQLUser mydbuser 
  AuthMySQLPassword mydbpass 
  AuthMySQLPwEncryption sha1
  AuthMySQLUserTableusers
  AuthMySQLNameFieldusername
  AuthMySQLPasswordFieldpassword
  AuthMySQLUserConditiontype = 'Admin' AND enabled = 1
/Directory
 
That last AuthMySQLUserCondition is the most useful addition.

Also take a look at this, for some additional ideas in making your login
look more professional than just some form fields on a web page...

http://www.php.net/manual/en/features.http-auth.php

You can combine all three methods and chicks will love you like no other...

D.Vin
http://daevid.com

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



[PHP] Preventing Access to Private Files

2007-09-06 Thread Stephen
I understand how to use PHP with MySQL to have a
members table to validate passwords. And to limit the
generation of member pages to members only.

But what about photographs? If someone knows the
complete URL they could view it directly, unless the
directory is protected using .htpassword

But I don't want to have passwords in two places, nor
muck with the password file everytime a new member
joins.

Suggestions?

Thanks
Stephen

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



Re: [PHP] Loosing session data between requests

2007-09-06 Thread Edward Kay



robert mena wrote:

I've checked both /tmp and the session file sess_x in one server is
empty and in another has the data.  Both $_SESSION are ok (I've checked with
a var_dump).

  

Check the permissions on /var/lib/php/session

Edward

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



Re: [PHP] IE Not Following Header(Location: /path/to/file.php);

2007-09-06 Thread brian

Edward Kay wrote:


Get Microsoft's (free) Fiddler Tool and look at the exact info been sent 
and received:

http://www.fiddlertool.com/fiddler/

Edward



I'd just like to say thanks for posting that. This might be the sugar i 
need to face the bitter prospect of booting Windows for testing.


brian

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



Re: [PHP] Loosing session data between requests

2007-09-06 Thread robert mena
Edward,

My session.save_path = /tmp.

The sess_X is created but with no contents


On 9/6/07, Edward Kay [EMAIL PROTECTED] wrote:



 robert mena wrote:
  I've checked both /tmp and the session file sess_x in one server is
  empty and in another has the data.  Both $_SESSION are ok (I've checked
 with
  a var_dump).
 
 
 Check the permissions on /var/lib/php/session

 Edward



RE: [PHP] Preventing Access to Private Files

2007-09-06 Thread Daevid Vincent
Depends on your host I guess. Some hosts give you an entire Virtual Machine
with root access. It depends on your distro too. But usually it's in
/etc/apache...

If you don't have direct access, you will have to talk to them about if
mod_auth_mysql is installed and have them setup for you. If it's installed,
you could also do the .htaccess route, but that's not as elegant.

d 

 -Original Message-
 From: tedd [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 06, 2007 5:02 PM
 To: Daevid Vincent; php-general@lists.php.net
 Subject: RE: [PHP] Preventing Access to Private Files
 
 At 1:15 PM -0700 9/6/07, Daevid Vincent wrote:
 Basically add something like this to your apache vhost_foo.conf file:
 
 Where's that?
 
 I'm on a hosted server -- is that something that I can get to?
 
 Cheers,
 
 tedd
 -- 
 ---
 http://sperling.com  http://ancientstones.com  http://earthstones.com
 

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



Re: [PHP] Preventing Access to Private Files

2007-09-06 Thread brian

Daevid Vincent wrote:

Depends on your host I guess. Some hosts give you an entire Virtual Machine
with root access. It depends on your distro too. But usually it's in
/etc/apache...

If you don't have direct access, you will have to talk to them about if
mod_auth_mysql is installed and have them setup for you. If it's installed,
you could also do the .htaccess route, but that's not as elegant.



You can see if the module is installed with phpinfo() (under the apache 
section).


brina

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



Re: [PHP] Fwd: 403 Forbiden

2007-09-06 Thread brian

Jesús de Diego Alarcón wrote:

(Excuse me... wrong button)


Hello all and thank you in advance.
I'm totally beginer in PHP .

I'm developing:
http://www.my3dgis.es/visor/visor.htm#

At Options  Herramientas  Búsqueda en Catastro  the application shows a
form (ExtJS). In this form, the combobox Provincias should be loaded using:

http://www.my3dgis.es/visor/php/provincias.php

However, using Firebug i can see that call to php/provincias.php always
shows 403 (403 Forbidden).

I don't know where the problem can be... this application is working ok for
me at localhost



Check the permissions on php/provincias.php

brian

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



RE: [PHP] Preventing Access to Private Files

2007-09-06 Thread tedd

At 1:15 PM -0700 9/6/07, Daevid Vincent wrote:

Basically add something like this to your apache vhost_foo.conf file:


Where's that?

I'm on a hosted server -- is that something that I can get to?

Cheers,

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

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



[PHP] Fwd: 403 Forbiden

2007-09-06 Thread Jesús de Diego Alarcón
(Excuse me... wrong button)


Hello all and thank you in advance.
I'm totally beginer in PHP .

I'm developing:
http://www.my3dgis.es/visor/visor.htm#

At Options  Herramientas  Búsqueda en Catastro  the application shows a
form (ExtJS). In this form, the combobox Provincias should be loaded using:

http://www.my3dgis.es/visor/php/provincias.php

However, using Firebug i can see that call to php/provincias.php always
shows 403 (403 Forbidden).

I don't know where the problem can be... this application is working ok for
me at localhost

Thank you in advance.

Jesús de Diego


Re: [PHP] Re: Opening a file

2007-09-06 Thread Ronald Wiplinger
On Wed, 2007-09-05 at 10:29 -0400, Dan Shirah wrote:
 Correction, I am now getting this error:
 
 PHP Warning: file(fruits.txt)
 [function.filehttp://develop1/credit%20card%20processing/function.file]:
 failed to open stream: No such file or directory
 PHP Warning: in_array()
 [function.in-arrayhttp://develop1/credit%20card%20processing/function.in-array]:
 Wrong datatype for second argument
 
 But the file IS in the same folder.

does ls -l   give  you the answer?  (Does your web server has permission
to read the file?)

bye

Ronald

 
 
 On 9/5/07, Dan Shirah [EMAIL PROTECTED] wrote:
 
  Good Morning!
 
  Opening this file is proving to be a pain. I have a folder that contains a
  PHP page and a text file. I am trying to open the contents of the txt file
  using file() but it keeps erroring out. Below is the code I'm using to try
  and open it:
 
  ?php
  $fruit = apple);
  $lines = file(fruits.txt);
  if (in_array($fruit,$lines))
{
$a = Y;
}
  ?
 
  So, I'm setting my variable, opening my file as an array in $lines, then
  checking to see if my variable is in the array, and if it is, assign a value
  ot a new variable.  However, I am getting the following error:
 
  PHP Warning: in_array() 
  [function.in-arrayhttp://develop1/credit%20card%20processing/function.in-array]:
  Wrong datatype for second argument
 
  Any ideas?
 

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



Re: [PHP] Generating foldout menus in php

2007-09-06 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]


On Sep 6, 2007, at 1:17 PM, Ken Kixmoeller -- reply to  
[EMAIL PROTECTED] wrote:


Aesthetically, though, even though I used the horizontal classes,  
it comes out vertical


Never mind (not that you did) -- got it working fine ---

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



[PHP] 403 Forbiden

2007-09-06 Thread Jesús de Diego Alarcón
Hello all and thank you in advance.
I'm totally beginer in PHP .

I'm developing:
http://www.my3dgis.es/visor/visor.htm#

At Options  Herramientas  Búsq