php-general Digest 20 Mar 2001 15:53:13 -0000 Issue 578

Topics (messages 44681 through 44762):

off the topic but relevant with us
        44681 by: Jacky
        44703 by: Yasuo Ohgaki
        44754 by: Angerer, Chad

Re: wordwrap() in php4.03pl1 does not work(?)
        44682 by: Tiki

Re: PHP hosts?
        44683 by: Robert Morse

Re: checboxex and sessions
        44684 by: Yasuo Ohgaki
        44688 by: karakedi
        44694 by: Yasuo Ohgaki
        44762 by: Tim Ward

Mail and a DSL Router
        44685 by: Todd Cary

Re: Using php4.02 on IIS5
        44686 by: Data Driven Design
        44699 by: Phil Driscoll

Re: get name of file
        44687 by: Data Driven Design

Re: PHP w/ Oracle OCI8 - how stable?
        44689 by: Rudolf Visagie
        44709 by: Neil Kimber
        44730 by: Hardy Merrill
        44731 by: Thies C. Arntzen

Re: HELP insert still dosn't work
        44690 by: Rudolf Frint

The right way to include class files?
        44691 by: Chien-pin Wang
        44692 by: Chien-pin Wang

[Q] Parser behavior in a string
        44693 by: Yasuo Ohgaki

Conversion between dates and weeknumbers
        44695 by: Michel Groenenstijn
        44701 by: Yasuo Ohgaki
        44702 by: Jennifer Woodhead

Re: Help with array creation
        44696 by: Yasuo Ohgaki
        44740 by: Tim Ward

Re: get_meta_tags bug?
        44697 by: Yasuo Ohgaki
        44718 by: Yasuo Ohgaki
        44738 by: Paul rees

Re: PHP & MYSQL BOOKS
        44698 by: Luke Welling

Re: dl()-function
        44700 by: Yasuo Ohgaki

Re: "deleted" cookie
        44704 by: Yasuo Ohgaki

Re: Editing Variables from another script.
        44705 by: techzeus.pacific.net.sg
        44707 by: Stewart Taylor
        44708 by: techzeus.pacific.net.sg
        44713 by: ben
        44715 by: Neil Kimber
        44719 by: Thomas Schneider
        44748 by: techzeus.pacific.net.sg
        44751 by: Neil Kimber
        44753 by: techzeus.pacific.net.sg

presentation software used by Rasmus Lerdorf
        44706 by: Henkie

Re: Why not 'file_exists()' for URLs?
        44710 by: Mike
        44717 by: Yasuo Ohgaki

imap functions
        44711 by: Calin Rotaru

Hash syntaxes? simple but helpful
        44712 by: Costas
        44716 by: Alexander Gräf
        44733 by: almir

Re: Dynamic generation of text files?
        44714 by: Dan Costello

General security Question (Databases)
        44720 by: ben.2.edwards.bt.com

Re: weeks revisited
        44721 by: Christian Reiniger

Re: Remember my username & password
        44722 by: Batis

Booking by Date/Time in mySQL
        44723 by: Thomas Edison Jr.
        44726 by: Thomas Edison Jr.
        44761 by: Jeff Armstrong

Re: php editors
        44724 by: almir

usage of constants
        44725 by: almir
        44741 by: Yasuo Ohgaki

is PHP sftp ready?
        44727 by: Nando2

Re: \"deleted\" cookie
        44728 by: almir
        44729 by: almir

PHP4 Compile As Per Bug id #2933
        44732 by: Grant Walters

Easy Object Reading
        44734 by: Thorsten Viel
        44737 by: Stewart Taylor
        44749 by: Grant Walters
        44752 by: Neil Kimber

get filename?
        44735 by: KPortsmout.aol.com
        44743 by: Jon Haworth
        44745 by: Yasuo Ohgaki
        44747 by: Data Driven Design
        44750 by: Joe Sheble (Wizaerd)

Re: Script to convert # of seconds to HH:mm
        44736 by: Tim Ward

PHP4 Compile As Per Bug id #2933 AMMENDED
        44739 by: Grant Walters

Re: PHP4 Compile As Per Bug id #2933 AMMENDED - FIXED!
        44742 by: Grant Walters

phpinfo() doesn't list compiled --with
        44744 by: Gary Huntress

Problems connecting to remote mySQL server
        44746 by: Floyd Piedad
        44758 by: almir

Re: BEST Network  Marketer Leads
        44755 by: jennivaughn_02.juno.com

Cookies
        44756 by: Francesc Lladó

Working with files
        44757 by: Jon
        44760 by: Chris Lee

Status on ISAPI PHP
        44759 by: Carsten Gehling

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]


----------------------------------------------------------------------


Hi people
this is off the topic but I want to change teh DNS setup for one of my site 
www.europeanevents.com and I went to http://www.networksolutions.com/makechanges to do 
that , but it said the domain was not found in WHOIS database, wherelse I can check up 
to chaneg DNS?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"




Are you sure your domain is managed by NSI (network solutions)?
My domains are not (bunch of .com .net .org), and your domain might be.

If you are just looking for whois server, I suggest to use search engines. (i.e.
yahoo, lycos, etc)

Regards,
--
Yasuo Ohgaki

""Jacky"" <[EMAIL PROTECTED]> wrote in message
024801c0b15f$a53e31e0$[EMAIL PROTECTED]">news:024801c0b15f$a53e31e0$[EMAIL PROTECTED]...
Hi people
this is off the topic but I want to change teh DNS setup for one of my site
www.europeanevents.com and I went to http://www.networksolutions.com/makechanges
to do that , but it said the domain was not found in WHOIS database, wherelse I
can check up to chaneg DNS?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"






Probably wherever you registered your domain name.  Unless you have had it
transferred somewhere.

chad angerer
html programmer

.. :one man with a club is a hooligan. a thousand men with clubs are a
regiment: ..



-----Original Message-----
From: Jacky [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 11:03 AM
To: [EMAIL PROTECTED]
Cc: Ben Weinberger
Subject: [PHP] off the topic but relevant with us


Hi people
this is off the topic but I want to change teh DNS setup for one of my site
www.europeanevents.com and I went to
http://www.networksolutions.com/makechanges to do that , but it said the
domain was not found in WHOIS database, wherelse I can check up to chaneg
DNS?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"




It's working for me. How is your call coded?

"Nicole Lallande" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Sheesh - I forgot - the function is wordwrap()
>
> Nicole Lallande wrote:
> >
> > Hi All,
> >
> > Am trying to use this function which in the manual is defined as working
> > in versions of php > 4.02 -- well, I qualify - but the feature does not
> > work.  Anyone know what is going on?
> >
> > TIA,
> >
> > Nicole
> > --
> > ########################
> > Nicole Lallande
> > [EMAIL PROTECTED]
> > 760.753.6766
> > ########################
> >
> > --
> > 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]
>
> --
> ########################
> Nicole Lallande
> [EMAIL PROTECTED]
> 760.753.6766
> ########################
>
> --
> 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]
>






As long as you don't need domain hosting you could go to 
http://members.evolt.org. They provide free hosting with MySQL and 
PHP and CF.



>I am looking for some sites that host PHP.  I can't really afford to 
>pay for hosting space anymore, so I was wondering if there were any 
>good (free) web hosts, that had PHP and/or MySQL.
>
>I would like to get a fast and stable place to host my files, but if 
>there was a preference, I would probably prefer a more stable place 
>that's not on/offline a lot.




It sounds like you are not getting value from unchecked checkboxes. When checkbox is not checked, no values are sent to server. (Radio buttons are the same) Therefore, you probably cannot register since there is no value for register. Create value with NULL/False value for checkboxes if they are not set. Is this the problem? -- Yasuo Ohgaki ""karakedi"" <[EMAIL PROTECTED]> wrote in message 996hu3$cjn$[EMAIL PROTECTED]">news:996hu3$cjn$[EMAIL PROTECTED]... > how can i store checkbox variables into sessions so that i can use them on > other pages ? > > i know how to register sessions but simply cant do that with checkboxes. > thx in adv. > > > > -- > 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] >



how can i vreate a null/false value for them and how to assing them to
sessions pls ?


""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message
996p60$fjv$[EMAIL PROTECTED]">news:996p60$fjv$[EMAIL PROTECTED]...
> It sounds like you are not getting value from unchecked checkboxes.
> When checkbox is not checked, no values are sent to server.
> (Radio buttons are the same)
>
> Therefore, you probably cannot register since there is no value for
register.
> Create value with NULL/False value for checkboxes if they are not set.
> Is this the problem?
>
> --
> Yasuo Ohgaki
>
> ""karakedi"" <[EMAIL PROTECTED]> wrote in message
> 996hu3$cjn$[EMAIL PROTECTED]">news:996hu3$cjn$[EMAIL PROTECTED]...
> > how can i store checkbox variables into sessions so that i can use them
on
> > other pages ?
> >
> > i know how to register sessions but simply cant do that with checkboxes.
> > thx in adv.
> >
> >
> >
> > --
> > 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 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]
>






For example, if you have <from method="post"> Please check here<input type="checkbox" name="checkbox_test" value="User Checked Test Checkbox"> </form> If user does not check the checkbox, you'll get nothing since browser does not send data at all for the checkbox. However, since you've created the form by yourself, you know there is the checkbox named "checkbox_test". So you can check like if (!isset($HTTP_POST_VARS['checkbox_test'])) { $HTTP_SESSION_VARS['FORM']['checkbox_text'] = NULL; //NULL requires recent PHP4 } Regards, -- Yasuo Ohgaki ""karakedi"" <[EMAIL PROTECTED]> wrote in message 996qeb$s1a$[EMAIL PROTECTED]">news:996qeb$s1a$[EMAIL PROTECTED]... > how can i vreate a null/false value for them and how to assing them to > sessions pls ? > > > ""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message > 996p60$fjv$[EMAIL PROTECTED]">news:996p60$fjv$[EMAIL PROTECTED]... > > It sounds like you are not getting value from unchecked checkboxes. > > When checkbox is not checked, no values are sent to server. > > (Radio buttons are the same) > > > > Therefore, you probably cannot register since there is no value for > register. > > Create value with NULL/False value for checkboxes if they are not set. > > Is this the problem? > > > > -- > > Yasuo Ohgaki > > > > ""karakedi"" <[EMAIL PROTECTED]> wrote in message > > 996hu3$cjn$[EMAIL PROTECTED]">news:996hu3$cjn$[EMAIL PROTECTED]... > > > how can i store checkbox variables into sessions so that i can use them > on > > > other pages ? > > > > > > i know how to register sessions but simply cant do that with checkboxes. > > > thx in adv. > > > > > > > > > > > > -- > > > 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 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 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] >



You need to submit the form, at which point any checkboxes ticked will be
available in php (under their html name attribute) for assigning as session
variables. Any not set will, unfortunately, not be sent. You can initialise
the session variables, defaulting to false, on the form page to get around
this.

        Tim Ward
        Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


> -----Original Message-----
> From: karakedi [mailto:[EMAIL PROTECTED]]
> Sent: 20 March 2001 03:17
> To: [EMAIL PROTECTED]
> Subject: checboxex and sessions
> 
> 
> how can i store checkbox variables into sessions so that i 
> can use them on
> other pages ?
> 
> i know how to register sessions but simply cant do that with 
> checkboxes.
> thx in adv.
> 
> 
> 




I have switched to a DSL Router (D-Link 704) for my Win 98/NT based
system.  The Router has a Gateway IP of 192.168.0.1 and the computer on
which the www server resides is 192.168.0.11.

When I am anot clear on what I should put into the php.ini file.  This
does not work:

[mail function]
SMTP = 192.168.0.11

The router has port 25 set to 192.168.0.11.

Has anyone had experience with this configuration?

Todd


--
Todd Cary
Ariste Software
[EMAIL PROTECTED]






If you're talking about windows PWS that's probably your path that you set
in the .reg file needs to point directly at the .dll file you chose, whether
it was the isapi or exe. Move the .dll file out of the 'sapi' folder into
the main php folder and you'll probably be ok.

----- Original Message -----
From: James Cox <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 19, 2001 5:46 PM
Subject: [PHP] Using php4.02 on IIS5


Hey ,

I have been trying to set up some php applications on my local webserver, as
part of a transition from asp to php. I have unzipped the php distro into
it's own dir, added in the ini file, (left it at default setting) and then
added the engine into IIS as described in the install document.

Now, I have 500 Internal Server Errors on the php page.. any ideas?

I will happily RTFM, if I can find one that'd help ;)

Thanks,

James






I guess you have installed the ISAPI module which, as stated in the
instructions, is not very stable.
Switch to the cgi version and all will come good. Change php4isapi.dll to
php.exe in your script mappings, and remove phpp from the filters list.

Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org





<?php echo $SCRIPT_NAME ?>

----- Original Message ----- 
From: Matthew Delmarter <[EMAIL PROTECTED]>
To: PHP Mailing List <[EMAIL PROTECTED]>
Sent: Monday, March 19, 2001 6:51 PM
Subject: [PHP] get name of file


> How do I return the name of a file without any extensions or path info.
> 
> Eg how do I return "about" from "http://www.domainz.com/about.htm".
> 
> Regards,
> 
> Matthew Delmarter
> 
> -- 
> 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]
> 
> 





Very stable.

Rudolf Visagie
[EMAIL PROTECTED]

-----Original Message-----
From: Hardy Merrill [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2001 01:18
To: [EMAIL PROTECTED]
Subject: [PHP] PHP w/ Oracle OCI8 - how stable?


I'm thinking of using PHP to talk to an Oracle database with
the OCI8 interface - is PHP's OCI8 interface stable?  Anything
unusual I should know about?

I'm using:

  Redhat 6.1 Linux
  PHP 4.0.4pl1
  Oracle 8i 8.1.6
  Apache 1.3.14

TIA.

-- 
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com

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




Nothing unusual. Very robust and stable.

-----Original Message-----
From: Hardy Merrill [mailto:[EMAIL PROTECTED]]
Sent: 19 March 2001 23:18
To: [EMAIL PROTECTED]
Subject: [PHP] PHP w/ Oracle OCI8 - how stable?


I'm thinking of using PHP to talk to an Oracle database with
the OCI8 interface - is PHP's OCI8 interface stable?  Anything
unusual I should know about?

I'm using:

  Redhat 6.1 Linux
  PHP 4.0.4pl1
  Oracle 8i 8.1.6
  Apache 1.3.14

TIA.

-- 
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com

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







I configured PHP --with-oci8=/path/to/oracle/home, and I'm seeing
"flaky" behavior when I restart Oracle without restarting the
web server - ORA-03113 and ORA-03114 errors all over.  Then when
I restart the webserver everything is fine again.

Is this unusual?  Did I do something wrong in the setup?  I shouldn't
have to restart the webserver after I restart Oracle should I?

TIA.

-- 
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com

Neil Kimber [[EMAIL PROTECTED]] wrote:
> Nothing unusual. Very robust and stable.
> 
> -----Original Message-----
> From: Hardy Merrill [mailto:[EMAIL PROTECTED]]
> Sent: 19 March 2001 23:18
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP w/ Oracle OCI8 - how stable?
> 
> 
> I'm thinking of using PHP to talk to an Oracle database with
> the OCI8 interface - is PHP's OCI8 interface stable?  Anything
> unusual I should know about?
> 
> I'm using:
> 
>   Redhat 6.1 Linux
>   PHP 4.0.4pl1
>   Oracle 8i 8.1.6
>   Apache 1.3.14
> 
> TIA.
> 
> -- 
> Hardy Merrill
> Mission Critical Linux, Inc.
> http://www.missioncriticallinux.com
> 
> -- 
> 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 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]

-- 
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com




On Tue, Mar 20, 2001 at 07:20:35AM -0500, Hardy Merrill wrote:
> I configured PHP --with-oci8=/path/to/oracle/home, and I'm seeing
> "flaky" behavior when I restart Oracle without restarting the
> web server - ORA-03113 and ORA-03114 errors all over.  Then when
> I restart the webserver everything is fine again.
> 
> Is this unusual?  Did I do something wrong in the setup?  I shouldn't
> have to restart the webserver after I restart Oracle should I?

    if you use persistent connections it's a good idea to HUP you
    apache afer an oracle bounce. 

    tc




thx very much
oracle statments don't need " but ' and it did exaktly what it should


At 01:30 20.03.2001 +0100, you wrote:
>On Tue, 20 Mar 2001, David Robley wrote:
>
> > On Tue, 20 Mar 2001 03:32, Rudolf Frint wrote:
> >
> > > > I want to insert the Values into my Database like this
> > >
> > > $handle = ora_logon("iusr@test","kiwi1");
> > > $cursor1 = ora_open($handle);
> > > $query = "insert into internet_tmp select
> > > rv_ret($FF),$FF,$sesid,(sysdate+0.0021) from dual";
> > > ora_parse($cursor1,$query) or die;
> > > ora_exec($cursor1);
> > > ora_close($cursor1);
> > >
> > > tring the insert query on sql-plus works fine what do I do wrong??
> > >
> > > oh yea error msg is like this
> > > Warning: Ora_Parse failed (ORA-00923: FROM keyword not found where
> > > expected -- while processing OCI function OPARSE) in test2.php on line
> > > 40
> > >
> > > line40 is parse line
> > >
> > > plaese help is very urgent
> > > rudi
> >
> > I'm not an Oracle person, but it sounds like you may have a syntax error
> > in your SQL. Try echo-ing $query and see how it looks.
> >
> > --
> > David Robley                        | WEBMASTER & Mail List Admin
> > RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
> > AusEinet                            | http://auseinet.flinders.edu.au/
> >             Flinders University, ADELAIDE, SOUTH AUSTRALIA
> >
>
>I've had a few troubles with PHP/MySQL with requests like that... Maybe
>you could try that (it worked for me) :
>
>$query = "insert into internet_tmp select
>rv_ret(\"$FF\"),\"$FF\",$sesid,(sysdate+0.0021) from dual";
>
>the \"$var\" are important : ".$var." won't do, even if with an echo
>$query, you _seem_ to get the same results...
>
>--
>Ben
>As well look for a needle in a bottle of hay.
>   Miguel de Cervantes
>
>
>--
>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]





Dear all,

    Attached are three files I used to demonstrate the problem I'm
troubled with. Some experiments may be required to see the problem.

    To put the problem in short, I'd like to ask what the proper way is to
include classA and classB in order to make test.php work? In the attached
file, I have included both class files in test.php and it works
properly. However, in real case, the caller of classB may not know the
relationship between classA and classB. So including classA from within
classB makes more sense. In that case, PHP throws Fatal Error: No parent
class available in this context., when running test.php.

    ClassB is extended from classA, and re-implements method A1 as a
wrapper function to method A1 found in its parent, classA. Use
$this->A1("ABC", "DEF") can get away from the fatal error, but runs into
core dump because it calls itself undefined number of times. So, let me
re-phrase my problem: Do I need to include all inheriting class files in
the caller program (like test.php) in order to make the construct of
re-implementing a wrapping function works?

    Thank you for reading this far. I wish I've explained my problem clear
enouth and someone can kindly pick it up from there. Thanks again.

Chien-pin

#!/usr/local/bin/php -q

<SCRIPT LANGUAGE="php">
include("./classA.class");
include("./classB.class");
$obj=new B;
$obj->A1();
</SCRIPT> 





Dear all,

    Attached are three files I used to demonstrate the problem I'm
troubled with. Some experiments may be required to see the problem.

    To put the problem in short, I'd like to ask what the proper way is to
include classA and classB in order to make test.php work? In the attached
file, I have included both class files in test.php and it works
properly. However, in real case, the caller of classB may not know the
relationship between classA and classB. So including classA from within
classB makes more sense. In that case, PHP throws Fatal Error: No parent
class available in this context., when running test.php.

    ClassB is extended from classA, and re-implements method A1 as a
wrapper function to method A1 found in its parent, classA. Use
$this->A1("ABC", "DEF") can get away from the fatal error, but runs into
core dump because it calls itself undefined number of times. So, let me
re-phrase my problem: Do I need to include all inheriting class files in
the caller program (like test.php) in order to make the construct of
re-implementing a wrapping function works?

    Thank you for reading this far. I wish I've explained my problem clear
enouth and someone can kindly pick it up from there. Thanks again.

Chien-pin
#!/usr/local/bin/php -q

<SCRIPT LANGUAGE="php">
include("/home/cpw/classA.class");
include("/home/cpw/classB.class");
$obj=new B;
$obj->A1();
</SCRIPT> 




I noticed that PHP4 accepts and does not raise error (notice messages) for following code. $arr = array('first' => 'one'); $str = "This is first element of array: $arr[first]"; Question: Is this expected behavior that PHP parse w/o errors? If this is not a expected behavior and subject to change, I'm not going to use array w/o ' or " for assoc arrays. Because I log all error messages for production system including notice messages. Thank you. [Note for those who are not familiar with use of {} in PHP] {} can be used to resolve ambiguity not only for arrays, but also for variables in strings. $str = "This is first element of array: {$arr['first']}"; // works as it should. $str = "This is first element of array: $arr['first']"; // parse error. You can use {} for multi-dimensional array and nested objects properties in strings also. i.e. "Text {$obj->foo->var} Text" works like 'Text '. $obj->foo->var .' Text'. -- Yasuo Ohgaki



Hello everybody,

I need to convert between dates and weeknumbers, with PHP.  Converting a
given date to a weeknumber can be done with MySQL, but I don't know how
to go the other way around. I need a function like
get_dates_in_week($weeknumber). A function to convert between a date and
a weeknumber without using mysql would help too...

Can anyone help?

Thanx!
Michel





How about use PEAR/Date/Calc.php?

Regards,
--
Yasuo Ohgaki

"Michel Groenenstijn" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello everybody,
>
> I need to convert between dates and weeknumbers, with PHP.  Converting a
> given date to a weeknumber can be done with MySQL, but I don't know how
> to go the other way around. I need a function like
> get_dates_in_week($weeknumber). A function to convert between a date and
> a weeknumber without using mysql would help too...
>
> Can anyone help?
>
> Thanx!
> Michel
>
>
> --
> 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]
>





I think you can do it using
strftime

%V - The ISO 8601:1988 week number of the current year as a decimal number,
range 01 to 53, where week 1 is the first week that has at least 4 days in
the current year, and with Monday as the first day of the week. 

%W - week number of the current year as a decimal number, starting with the
first Monday as the first day of the first week 


-----Original Message-----
From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2001 09:03
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Conversion between dates and weeknumbers


How about use PEAR/Date/Calc.php?

Regards,
--
Yasuo Ohgaki

"Michel Groenenstijn" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello everybody,
>
> I need to convert between dates and weeknumbers, with PHP.  Converting a
> given date to a weeknumber can be done with MySQL, but I don't know how
> to go the other way around. I need a function like
> get_dates_in_week($weeknumber). A function to convert between a date and
> a weeknumber without using mysql would help too...
>
> Can anyone help?
>
> Thanx!
> Michel
>
>
> --
> 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 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]




Just use $HTTP_POST_VARS and $HTTP_GET_VARS.
(Recent PHP4 is always compiled with "enable-track-vars", if you are using older
PHP set track-vars to true in php.ini)

Read
http://www.php.net/manual/en/language.variables.php
and
http://www.php.net/manual/en/language.variables.external.php

Regards,
--
Yasuo Ohgaki

"Chris Carbaugh" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hello,
>
> I'm trying to take the query string of a url and turn it into an
> associative array.
>
> Let's say I have a URL like
>
> myHost.com/somepage.php?val1=one&val2=two
>
> I can get the query with HTTP_SERVER_VARS["QUERY_STRING"], but how do I
> generate an array equivilent to
>
> array('val1'=>'one', 'val2'=>'two')
>
> Also, this example uses a GET method.  First, can I do this?  Also, can
> I do this with a POST method?
>
> Thanks,
> Chris
>
>
> --
> 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]
>





they are already in one ... $HTTP_POST_VARS or $HTTP_GET_VARS

        Tim Ward
        Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


> -----Original Message-----
> From: Chris Carbaugh [mailto:[EMAIL PROTECTED]]
> Sent: 19 March 2001 21:58
> To: [EMAIL PROTECTED]
> Subject: Help with array creation
> 
> 
> 
> Hello,
> 
> I'm trying to take the query string of a url and turn it into an
> associative array.
> 
> Let's say I have a URL like 
> 
> myHost.com/somepage.php?val1=one&val2=two
> 
> I can get the query with HTTP_SERVER_VARS["QUERY_STRING"], 
> but how do I
> generate an array equivilent to
> 
> array('val1'=>'one', 'val2'=>'two')
> 
> Also, this example uses a GET method.  First, can I do this?  
> Also, can
> I do this with a POST method?
> 
> Thanks,
> Chris
> 
> 




May be get_meta_tags() is XHTML compliant. (XHTML requires "" and lowercases for attributes) I suggest you to use double quotes. -- Yasuo Ohgaki "Paul Rees" <[EMAIL PROTECTED]> wrote in message r19NDKAFmot6Ew$[EMAIL PROTECTED]">news:r19NDKAFmot6Ew$[EMAIL PROTECTED]... > Hi, > > The php function 'get_meta_tags' doesn't work when the meta tag name/ > content values are single quoted. It's fine for double quotes. I've had > a look but can't find anything on the w3 site to say whether or not > double quotes are required in meta tags. Does anyone know what the rule > is? > > (php v 4.04pl1, apache, linux 2.2.18) > > All the best > -- > Paul > > -- > 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] >



FYI: Looks like it is fixed in CVS version and get_meta_tags() now accepts single quotes. (I still recommends to use double quotes for your application, but we cannot force others and single quotes should be accepted for older HTML versions) Regards, -- Yasuo Ohgaki ""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message 9974us$e26$[EMAIL PROTECTED]">news:9974us$e26$[EMAIL PROTECTED]... > May be get_meta_tags() is XHTML compliant. > (XHTML requires "" and lowercases for attributes) > I suggest you to use double quotes. > > -- > Yasuo Ohgaki > > "Paul Rees" <[EMAIL PROTECTED]> wrote in message > r19NDKAFmot6Ew$[EMAIL PROTECTED]">news:r19NDKAFmot6Ew$[EMAIL PROTECTED]... > > Hi, > > > > The php function 'get_meta_tags' doesn't work when the meta tag name/ > > content values are single quoted. It's fine for double quotes. I've had > > a look but can't find anything on the w3 site to say whether or not > > double quotes are required in meta tags. Does anyone know what the rule > > is? > > > > (php v 4.04pl1, apache, linux 2.2.18) > > > > All the best > > -- > > Paul > > > > -- > > 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 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] >



In article <997dil$t5u$[EMAIL PROTECTED]>, Yasuo Ohgaki
<[EMAIL PROTECTED]> writes

>> "Paul Rees" <[EMAIL PROTECTED]> wrote in message
>> r19NDKAFmot6Ew$[EMAIL PROTECTED]">news:r19NDKAFmot6Ew$[EMAIL PROTECTED]...
>> > Hi,
>> >
>> > The php function 'get_meta_tags' doesn't work when the meta tag name/
>> > content values are single quoted. It's fine for double quotes. I've had
>> > a look but can't find anything on the w3 site to say whether or not
>> > double quotes are required in meta tags. Does anyone know what the rule
>> > is?
>> >
>> > (php v 4.04pl1, apache, linux 2.2.18)

>FYI:
>Looks like it is fixed in CVS version and get_meta_tags() now accepts single
>quotes.
>(I still recommends to use double quotes for your application, but we cannot
>force
>others and single quotes should be accepted for older HTML versions)

Yes, you're right. Thanks very much. Out of interest, why do you
recommend the use of double quotes? It's so much easier to use single
quotes in these sort of cases:

echo "<INPUT type='text' name='name' value='value'>\n";

rather than:

echo "<INPUT type=\"text\" name=\"name\" value=\"value\">\n";

or:

echo '<INPUT type="text" name="name" value="value">' . "\n";

...and according to this:

http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2

... double, single, and (sometimes) no quotes are all acceptable.

All the best,
-- 
Paul Rees




It is $39.95 at barnesandnobel.com and at fatbrain.com.

That GST is a killer.  It will probably have an RRP around $110 here in
Australia too.

Cheers,

Luke Welling.
""YoBro"" <[EMAIL PROTECTED]> wrote in message
995r3k$poh$[EMAIL PROTECTED]">news:995r3k$poh$[EMAIL PROTECTED]...
> I actually think this is the book I have been waiting for. A bookstore in
> New Zealand told me not until March 2001. It must be pretty good, all the
> Sams books are. The only problem is in NZ it is about $170 as opposed to
> amazons $49.95US ($100NZ). If you know somewhere cheaper than amazon, I am
> all ears.
>
> Cheers
> Chris
>
> ""Luke Welling"" <[EMAIL PROTECTED]> wrote in message
> 99528g$v58$[EMAIL PROTECTED]">news:99528g$v58$[EMAIL PROTECTED]...
> : ""YoBro"" <[EMAIL PROTECTED]> wrote:
> : > Does anybody know any good books & websites to recommend for PHP &
MySql
> : > together. I am looking to advance my knowledge and would really
> appreciate
> : a
> : > helpful tip.
> : >
> : > Really looking for a book that explains all the advanced features of
> PHP4
> : > and MySql as a compliment.
> :
> : I can't give you an unbiased opinion on whether it is good or not, but
you
> : might like to look at "PHP and MySQL Web Development"
> : by Luke Welling and Laura Thomson.
> :
> : Here is a link to it on Amazon.
> : http://www.amazon.com/exec/obidos/ASIN/0672317842
> : although you can probably get it cheaper elsewhere.
> :
> : It will be published in 10 days.
> :
> : Cheers,
> :
> : Luke Welling
> :
> :
> :
> : --
> : 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 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]
>






Did you read
http://www.php.net/manual/en/function.dl.php
and related manual pages?

If you are having problem with dl(), what is  your PHP version?
I forgot which version, but some PHP seems does not load extensions with dl().
Look for bug db, I think this bug is closed.

As a short term resolution, how about just use php.ini to load it?

Regards,
--
Yasuo Ohgaki

"Jochen Kaechelin" <[EMAIL PROTECTED]> wrote in message
NFBBLHGFAKNLFNPOHMPHGEHFCCAA.jk@intern">news:NFBBLHGFAKNLFNPOHMPHGEHFCCAA.jk@intern...
> How can I dynamically load the PDF-extension only when
> needed?
>
>
> --
> phpArbeitsgruppe in Gruendung - Jochen Kaechelin
> Stuttgarter Str.3, D-73033 Goeppingen
> Tel. 07161-92 95 94, Fax 07161-92 95 98
> http://www.php-arbeitsgruppe.de, mailto:[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]
>





"Nikolai Vladychevski" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> My site has been working with cookies just fine .... until i discovered
> that some browsers (i think it is some browser under MacOS, I'm
> investigating) instead of deleting a cookie, set it to value "deleted",
> so in my code this variable has a value and believes there is a user
> called "deleted" trying to reauth..... a lot users can't login to my
> site ater their session times out due to this cause.... My question is,

I'm not sure what you ment for "deleted cookie". Anyway,

I heard some of Internet Explor will not take cookies that have expire time less
than current_time + 7200 sec.
(I don't verify this myself, though) Is your cookie expire time is long enough?

Regards,
--
Yasuo Ohgaki

> I am dealing with some new bug of explorer or there is a standard I am
> missing? Should I implement in my code this feature doing with "deleted"
> cookies? Or maybe it's a php bug? I run php-4.0.4pl1 ....
>
> Thanks in advance
>
> Nikolai
>
> --
> 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]
>





Okay, basically,

I'm trying to create a script such that it will change the variables inside
of my .inc page.

Something like

lets say I have this file called "database.inc"
Inside it I have :

$dbhost = 'blah'
$dbuser= 'blah'
$dbpass= 'blah'

I would like to make a script such that I can modify the $variables into
something else like, $dbhost into localhost.

How can it be done?
----- Original Message -----
From: "Jason Stechschulte" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "'PHP General List. (E-mail)'" <[EMAIL PROTECTED]>
Sent: Monday, March 19, 2001 11:03 PM
Subject: Re: [PHP] Editing Variables from another script.


> On Sun, Mar 18, 2001 at 01:06:34PM +0800, [EMAIL PROTECTED] wrote:
>
> > I'm trying to create a form whereby I can edit the variables with just
the form.
> >
> > It will be something like a form for me to change the database
details(username,server,password) in a .inc I'm using.
> >
> > Is there anyway for me to pass information into another file's variable
and have it saved in there?
> >
> > If anyone have seen Newspro (CGI) before, when you edit some parts in a
form, the information will be saved. How can it be done in PHP?
>
> There is probably a hundred or more ways this can be done.  For me to be
> able to give you specifics, you will have to be more specific with what
> you are doing and what you have tried.
>
> --
> Jason Stechschulte
> [EMAIL PROTECTED]
> --
> Well, I think Perl should run faster than C.  :-)
>              -- Larry Wall in <[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]
>







include "database.inc"
.
.
.
.
$dbhost='localhost';



-Stewart

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2001 09:26
To: Jason Stechschulte
Cc: 'PHP General List. (E-mail)'
Subject: Re: [PHP] Editing Variables from another script.


Okay, basically,

I'm trying to create a script such that it will change the variables inside
of my .inc page.

Something like

lets say I have this file called "database.inc"
Inside it I have :

$dbhost = 'blah'
$dbuser= 'blah'
$dbpass= 'blah'

I would like to make a script such that I can modify the $variables into
something else like, $dbhost into localhost.

How can it be done?
----- Original Message -----
From: "Jason Stechschulte" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "'PHP General List. (E-mail)'" <[EMAIL PROTECTED]>
Sent: Monday, March 19, 2001 11:03 PM
Subject: Re: [PHP] Editing Variables from another script.


> On Sun, Mar 18, 2001 at 01:06:34PM +0800, [EMAIL PROTECTED] wrote:
>
> > I'm trying to create a form whereby I can edit the variables with just
the form.
> >
> > It will be something like a form for me to change the database
details(username,server,password) in a .inc I'm using.
> >
> > Is there anyway for me to pass information into another file's variable
and have it saved in there?
> >
> > If anyone have seen Newspro (CGI) before, when you edit some parts in a
form, the information will be saved. How can it be done in PHP?
>
> There is probably a hundred or more ways this can be done.  For me to be
> able to give you specifics, you will have to be more specific with what
> you are doing and what you have tried.
>
> --
> Jason Stechschulte
> [EMAIL PROTECTED]
> --
> Well, I think Perl should run faster than C.  :-)
>              -- Larry Wall in <[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 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]




I think you didn't get what I meant,

I need a script such that I can change the content of database.inc from an
external script (form or whatever)


----- Original Message -----
From: "Stewart Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, March 20, 2001 5:57 PM
Subject: RE: [PHP] Editing Variables from another script.


>
>
> include "database.inc"
> .
> .
> .
> .
> $dbhost='localhost';
>
>
>
> -Stewart
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 20 March 2001 09:26
> To: Jason Stechschulte
> Cc: 'PHP General List. (E-mail)'
> Subject: Re: [PHP] Editing Variables from another script.
>
>
> Okay, basically,
>
> I'm trying to create a script such that it will change the variables
inside
> of my .inc page.
>
> Something like
>
> lets say I have this file called "database.inc"
> Inside it I have :
>
> $dbhost = 'blah'
> $dbuser= 'blah'
> $dbpass= 'blah'
>
> I would like to make a script such that I can modify the $variables into
> something else like, $dbhost into localhost.
>
> How can it be done?
> ----- Original Message -----
> From: "Jason Stechschulte" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: "'PHP General List. (E-mail)'" <[EMAIL PROTECTED]>
> Sent: Monday, March 19, 2001 11:03 PM
> Subject: Re: [PHP] Editing Variables from another script.
>
>
> > On Sun, Mar 18, 2001 at 01:06:34PM +0800, [EMAIL PROTECTED] wrote:
> >
> > > I'm trying to create a form whereby I can edit the variables with just
> the form.
> > >
> > > It will be something like a form for me to change the database
> details(username,server,password) in a .inc I'm using.
> > >
> > > Is there anyway for me to pass information into another file's
variable
> and have it saved in there?
> > >
> > > If anyone have seen Newspro (CGI) before, when you edit some parts in
a
> form, the information will be saved. How can it be done in PHP?
> >
> > There is probably a hundred or more ways this can be done.  For me to be
> > able to give you specifics, you will have to be more specific with what
> > you are doing and what you have tried.
> >
> > --
> > Jason Stechschulte
> > [EMAIL PROTECTED]
> > --
> > Well, I think Perl should run faster than C.  :-)
> >              -- Larry Wall in <[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 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 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]
>
>





On Tue, 20 Mar 2001 [EMAIL PROTECTED] wrote:

> I think you didn't get what I meant,
> 
> I need a script such that I can change the content of database.inc from an
> external script (form or whatever)

Have you tried with global variables (see array $GLOBALS) ?

--
Ben
Committee, n.: A group of men who individually can do nothing but as a
group decide that nothing can be done. -- Fred Allen

> ----- Original Message -----
> From: "Stewart Taylor" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Tuesday, March 20, 2001 5:57 PM
> Subject: RE: [PHP] Editing Variables from another script.
> 
> > include "database.inc"
> > .
> > .
> > .
> > .
> > $dbhost='localhost';
> >
> > -Stewart
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: 20 March 2001 09:26
> > To: Jason Stechschulte
> > Cc: 'PHP General List. (E-mail)'
> > Subject: Re: [PHP] Editing Variables from another script.
> >
> > Okay, basically,
> >
> > I'm trying to create a script such that it will change the variables
> inside
> > of my .inc page.
> >
> > Something like
> >
> > lets say I have this file called "database.inc"
> > Inside it I have :
> >
> > $dbhost = 'blah'
> > $dbuser= 'blah'
> > $dbpass= 'blah'
> >
> > I would like to make a script such that I can modify the $variables into
> > something else like, $dbhost into localhost.
> >
> > How can it be done?
> > ----- Original Message -----
> > From: "Jason Stechschulte" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Cc: "'PHP General List. (E-mail)'" <[EMAIL PROTECTED]>
> > Sent: Monday, March 19, 2001 11:03 PM
> > Subject: Re: [PHP] Editing Variables from another script.
> >
> >
> > > On Sun, Mar 18, 2001 at 01:06:34PM +0800, [EMAIL PROTECTED] wrote:
> > >
> > > > I'm trying to create a form whereby I can edit the variables with just
> > the form.
> > > >
> > > > It will be something like a form for me to change the database
> > details(username,server,password) in a .inc I'm using.
> > > >
> > > > Is there anyway for me to pass information into another file's
> variable
> > and have it saved in there?
> > > >
> > > > If anyone have seen Newspro (CGI) before, when you edit some parts in
> a
> > form, the information will be saved. How can it be done in PHP?
> > >
> > > There is probably a hundred or more ways this can be done.  For me to be
> > > able to give you specifics, you will have to be more specific with what
> > > you are doing and what you have tried.
> > >
> > > --
> > > Jason Stechschulte
> > > [EMAIL PROTECTED]
> > > --
> > > Well, I think Perl should run faster than C.  :-)
> > >              -- Larry Wall in <[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]






Do you mean that you want to alter the physical contents of 'database.inc'?
This would require you parsing the existing file yourself, writing a new
version of the file, altering the relevant line of code, removing the
original file and renaming your new file to the original filename.

This isn't a good approach, are you sure there isn't a different way for you
acheive your aims?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2001 10:02
To: Stewart Taylor; [EMAIL PROTECTED]
Subject: Re: [PHP] Editing Variables from another script.


I think you didn't get what I meant,

I need a script such that I can change the content of database.inc from an
external script (form or whatever)


----- Original Message -----
From: "Stewart Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, March 20, 2001 5:57 PM
Subject: RE: [PHP] Editing Variables from another script.


>
>
> include "database.inc"
> .
> .
> .
> .
> $dbhost='localhost';
>
>
>
> -Stewart
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 20 March 2001 09:26
> To: Jason Stechschulte
> Cc: 'PHP General List. (E-mail)'
> Subject: Re: [PHP] Editing Variables from another script.
>
>
> Okay, basically,
>
> I'm trying to create a script such that it will change the variables
inside
> of my .inc page.
>
> Something like
>
> lets say I have this file called "database.inc"
> Inside it I have :
>
> $dbhost = 'blah'
> $dbuser= 'blah'
> $dbpass= 'blah'
>
> I would like to make a script such that I can modify the $variables into
> something else like, $dbhost into localhost.
>
> How can it be done?
> ----- Original Message -----
> From: "Jason Stechschulte" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: "'PHP General List. (E-mail)'" <[EMAIL PROTECTED]>
> Sent: Monday, March 19, 2001 11:03 PM
> Subject: Re: [PHP] Editing Variables from another script.
>
>
> > On Sun, Mar 18, 2001 at 01:06:34PM +0800, [EMAIL PROTECTED] wrote:
> >
> > > I'm trying to create a form whereby I can edit the variables with just
> the form.
> > >
> > > It will be something like a form for me to change the database
> details(username,server,password) in a .inc I'm using.
> > >
> > > Is there anyway for me to pass information into another file's
variable
> and have it saved in there?
> > >
> > > If anyone have seen Newspro (CGI) before, when you edit some parts in
a
> form, the information will be saved. How can it be done in PHP?
> >
> > There is probably a hundred or more ways this can be done.  For me to be
> > able to give you specifics, you will have to be more specific with what
> > you are doing and what you have tried.
> >
> > --
> > Jason Stechschulte
> > [EMAIL PROTECTED]
> > --
> > Well, I think Perl should run faster than C.  :-)
> >              -- Larry Wall in <[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 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 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 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]









I think there should not be a problem to do it just with a global variable
or you can pass
variables from external script to the (internal) script just by post or
get-methods. but what, if
the scripts are on different domains?


i have the problem that netscape 4.6 and more can't allow access to
scripts/documents at another domain
(javascript error). anyway i have a checking_status-script on domain
first.xxx.xx which calls a script on domain second.yyy.yy, ie and netscape
4.0 work quit well with this...
but not 4.6 and more. error: not allowed/disaccess script on other domain...

now i was thinking to manage it with a
(global?)php-variable (same php-modul running on the domains) to communicate
to  the script in the second domain...
can somenone help or have some tips?

greetings
tom


At 11:34 20.03.01 +0100, you wrote:
>On Tue, 20 Mar 2001 [EMAIL PROTECTED] wrote:
>
>> I think you didn't get what I meant,
>> 
>> I need a script such that I can change the content of database.inc from an
>> external script (form or whatever)
>
>Have you tried with global variables (see array $GLOBALS) ?
>
>--
>Ben
>Committee, n.: A group of men who individually can do nothing but as a
>group decide that nothing can be done. -- Fred Allen
>
>> ----- Original Message -----
>> From: "Stewart Taylor" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
>> Sent: Tuesday, March 20, 2001 5:57 PM
>> Subject: RE: [PHP] Editing Variables from another script.
>> 
>> > include "database.inc"
>> > .
>> > .
>> > .
>> > .
>> > $dbhost='localhost';
>> >
>> > -Stewart
>> >
>> > -----Original Message-----
>> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> > Sent: 20 March 2001 09:26
>> > To: Jason Stechschulte
>> > Cc: 'PHP General List. (E-mail)'
>> > Subject: Re: [PHP] Editing Variables from another script.
>> >
>> > Okay, basically,
>> >
>> > I'm trying to create a script such that it will change the variables
>> inside
>> > of my .inc page.
>> >
>> > Something like
>> >
>> > lets say I have this file called "database.inc"
>> > Inside it I have :
>> >
>> > $dbhost = 'blah'
>> > $dbuser= 'blah'
>> > $dbpass= 'blah'
>> >
>> > I would like to make a script such that I can modify the $variables into
>> > something else like, $dbhost into localhost.
>> >
>> > How can it be done?
>> > ----- Original Message -----
>> > From: "Jason Stechschulte" <[EMAIL PROTECTED]>
>> > To: <[EMAIL PROTECTED]>
>> > Cc: "'PHP General List. (E-mail)'" <[EMAIL PROTECTED]>
>> > Sent: Monday, March 19, 2001 11:03 PM
>> > Subject: Re: [PHP] Editing Variables from another script.
>> >
>> >
>> > > On Sun, Mar 18, 2001 at 01:06:34PM +0800, [EMAIL PROTECTED] wrote:
>> > >
>> > > > I'm trying to create a form whereby I can edit the variables with just
>> > the form.
>> > > >
>> > > > It will be something like a form for me to change the database
>> > details(username,server,password) in a .inc I'm using.
>> > > >
>> > > > Is there anyway for me to pass information into another file's
>> variable
>> > and have it saved in there?
>> > > >
>> > > > If anyone have seen Newspro (CGI) before, when you edit some parts in
>> a
>> > form, the information will be saved. How can it be done in PHP?
>> > >
>> > > There is probably a hundred or more ways this can be done.  For me to be
>> > > able to give you specifics, you will have to be more specific with what
>> > > you are doing and what you have tried.
>> > >
>> > > --
>> > > Jason Stechschulte
>> > > [EMAIL PROTECTED]
>> > > --
>> > > Well, I think Perl should run faster than C.  :-)
>> > >              -- Larry Wall in <[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 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]
>
>
>



---------------------------------------------------------
---------------------------------------------------------
-foerderverein kunst und internet e.V.
-lothringerstr. 23
-D-52062 aachen

thomas schneider
----------------
   tel:    +49 241.33686        (buero)
   mobil:  +49 179.4548 234
   fax:    +49 241.33636

'kulturraum raststaette'
'kulturserver heimat.de'
'kulturdatennetzwerk culturebase.org'

----------------------------------------------------------







What other ways might there be ?


----- Original Message -----
From: "Neil Kimber" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Stewart Taylor"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, March 20, 2001 6:10 PM
Subject: RE: [PHP] Editing Variables from another script.


> Do you mean that you want to alter the physical contents of
'database.inc'?
> This would require you parsing the existing file yourself, writing a new
> version of the file, altering the relevant line of code, removing the
> original file and renaming your new file to the original filename.
>
> This isn't a good approach, are you sure there isn't a different way for
you
> acheive your aims?
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 20 March 2001 10:02
> To: Stewart Taylor; [EMAIL PROTECTED]
> Subject: Re: [PHP] Editing Variables from another script.
>
>
> I think you didn't get what I meant,
>
> I need a script such that I can change the content of database.inc from an
> external script (form or whatever)
>
>
> ----- Original Message -----
> From: "Stewart Taylor" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Tuesday, March 20, 2001 5:57 PM
> Subject: RE: [PHP] Editing Variables from another script.
>
>
> >
> >
> > include "database.inc"
> > .
> > .
> > .
> > .
> > $dbhost='localhost';
> >
> >
> >
> > -Stewart
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: 20 March 2001 09:26
> > To: Jason Stechschulte
> > Cc: 'PHP General List. (E-mail)'
> > Subject: Re: [PHP] Editing Variables from another script.
> >
> >
> > Okay, basically,
> >
> > I'm trying to create a script such that it will change the variables
> inside
> > of my .inc page.
> >
> > Something like
> >
> > lets say I have this file called "database.inc"
> > Inside it I have :
> >
> > $dbhost = 'blah'
> > $dbuser= 'blah'
> > $dbpass= 'blah'
> >
> > I would like to make a script such that I can modify the $variables into
> > something else like, $dbhost into localhost.
> >
> > How can it be done?
> > ----- Original Message -----
> > From: "Jason Stechschulte" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Cc: "'PHP General List. (E-mail)'" <[EMAIL PROTECTED]>
> > Sent: Monday, March 19, 2001 11:03 PM
> > Subject: Re: [PHP] Editing Variables from another script.
> >
> >
> > > On Sun, Mar 18, 2001 at 01:06:34PM +0800, [EMAIL PROTECTED]
wrote:
> > >
> > > > I'm trying to create a form whereby I can edit the variables with
just
> > the form.
> > > >
> > > > It will be something like a form for me to change the database
> > details(username,server,password) in a .inc I'm using.
> > > >
> > > > Is there anyway for me to pass information into another file's
> variable
> > and have it saved in there?
> > > >
> > > > If anyone have seen Newspro (CGI) before, when you edit some parts
in
> a
> > form, the information will be saved. How can it be done in PHP?
> > >
> > > There is probably a hundred or more ways this can be done.  For me to
be
> > > able to give you specifics, you will have to be more specific with
what
> > > you are doing and what you have tried.
> > >
> > > --
> > > Jason Stechschulte
> > > [EMAIL PROTECTED]
> > > --
> > > Well, I think Perl should run faster than C.  :-)
> > >              -- Larry Wall in <[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 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 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 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 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]
>





It depends upon what your overall aim actually is.

If you want a different value depending upon where this file is being used
in your site, then you should probably just set the value accordingly in
that part of the site.
i.e.
> > include "database.inc"
> > .
> > .
> > .
> > .
> > $dbhost='localhost';

If you want a different value in the same place based upon a different
'user' or other criteria, then you should probably write some logic to
handle the situation.
i.e.

        include "database.inc";

        if (MYCRITERIA)
                {
                $dbhost='localhost';
                }

The only reason that I can think of for you wanting to change the physical
file would be if you are writing some code to generate a release for
different users. In which case, you'll probably want to build a parser and
use some kind of templating system.

Neil

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2001 14:08
To: Neil Kimber; Stewart Taylor; [EMAIL PROTECTED]
Subject: Re: [PHP] Editing Variables from another script.


What other ways might there be ?


----- Original Message -----
From: "Neil Kimber" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Stewart Taylor"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, March 20, 2001 6:10 PM
Subject: RE: [PHP] Editing Variables from another script.


> Do you mean that you want to alter the physical contents of
'database.inc'?
> This would require you parsing the existing file yourself, writing a new
> version of the file, altering the relevant line of code, removing the
> original file and renaming your new file to the original filename.
>
> This isn't a good approach, are you sure there isn't a different way for
you
> acheive your aims?
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 20 March 2001 10:02
> To: Stewart Taylor; [EMAIL PROTECTED]
> Subject: Re: [PHP] Editing Variables from another script.
>
>
> I think you didn't get what I meant,
>
> I need a script such that I can change the content of database.inc from an
> external script (form or whatever)
>
>
> ----- Original Message -----
> From: "Stewart Taylor" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Tuesday, March 20, 2001 5:57 PM
> Subject: RE: [PHP] Editing Variables from another script.
>
>
> >
> >
> > include "database.inc"
> > .
> > .
> > .
> > .
> > $dbhost='localhost';
> >
> >
> >
> > -Stewart
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: 20 March 2001 09:26
> > To: Jason Stechschulte
> > Cc: 'PHP General List. (E-mail)'
> > Subject: Re: [PHP] Editing Variables from another script.
> >
> >
> > Okay, basically,
> >
> > I'm trying to create a script such that it will change the variables
> inside
> > of my .inc page.
> >
> > Something like
> >
> > lets say I have this file called "database.inc"
> > Inside it I have :
> >
> > $dbhost = 'blah'
> > $dbuser= 'blah'
> > $dbpass= 'blah'
> >
> > I would like to make a script such that I can modify the $variables into
> > something else like, $dbhost into localhost.
> >
> > How can it be done?
> > ----- Original Message -----
> > From: "Jason Stechschulte" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Cc: "'PHP General List. (E-mail)'" <[EMAIL PROTECTED]>
> > Sent: Monday, March 19, 2001 11:03 PM
> > Subject: Re: [PHP] Editing Variables from another script.
> >
> >
> > > On Sun, Mar 18, 2001 at 01:06:34PM +0800, [EMAIL PROTECTED]
wrote:
> > >
> > > > I'm trying to create a form whereby I can edit the variables with
just
> > the form.
> > > >
> > > > It will be something like a form for me to change the database
> > details(username,server,password) in a .inc I'm using.
> > > >
> > > > Is there anyway for me to pass information into another file's
> variable
> > and have it saved in there?
> > > >
> > > > If anyone have seen Newspro (CGI) before, when you edit some parts
in
> a
> > form, the information will be saved. How can it be done in PHP?
> > >
> > > There is probably a hundred or more ways this can be done.  For me to
be
> > > able to give you specifics, you will have to be more specific with
what
> > > you are doing and what you have tried.
> > >
> > > --
> > > Jason Stechschulte
> > > [EMAIL PROTECTED]
> > > --
> > > Well, I think Perl should run faster than C.  :-)
> > >              -- Larry Wall in <[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 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 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 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 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 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]







Basically, thats not what I'm going to do.

I'm making an administrative script such that admins can change the location
and values of the $dbhost, $dbuser, $dbpass in the database.inc with just a
form.

Kinda tough eh ?

----- Original Message -----
From: "Neil Kimber" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Stewart Taylor"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, March 20, 2001 10:25 PM
Subject: RE: [PHP] Editing Variables from another script.


> It depends upon what your overall aim actually is.
>
> If you want a different value depending upon where this file is being used
> in your site, then you should probably just set the value accordingly in
> that part of the site.
> i.e.
> > > include "database.inc"
> > > .
> > > .
> > > .
> > > .
> > > $dbhost='localhost';
>
> If you want a different value in the same place based upon a different
> 'user' or other criteria, then you should probably write some logic to
> handle the situation.
> i.e.
>
> include "database.inc";
>
> if (MYCRITERIA)
> {
> $dbhost='localhost';
> }
>
> The only reason that I can think of for you wanting to change the physical
> file would be if you are writing some code to generate a release for
> different users. In which case, you'll probably want to build a parser and
> use some kind of templating system.
>
> Neil
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 20 March 2001 14:08
> To: Neil Kimber; Stewart Taylor; [EMAIL PROTECTED]
> Subject: Re: [PHP] Editing Variables from another script.
>
>
> What other ways might there be ?
>
>
> ----- Original Message -----
> From: "Neil Kimber" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; "Stewart Taylor"
> <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Tuesday, March 20, 2001 6:10 PM
> Subject: RE: [PHP] Editing Variables from another script.
>
>
> > Do you mean that you want to alter the physical contents of
> 'database.inc'?
> > This would require you parsing the existing file yourself, writing a new
> > version of the file, altering the relevant line of code, removing the
> > original file and renaming your new file to the original filename.
> >
> > This isn't a good approach, are you sure there isn't a different way for
> you
> > acheive your aims?
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: 20 March 2001 10:02
> > To: Stewart Taylor; [EMAIL PROTECTED]
> > Subject: Re: [PHP] Editing Variables from another script.
> >
> >
> > I think you didn't get what I meant,
> >
> > I need a script such that I can change the content of database.inc from
an
> > external script (form or whatever)
> >
> >
> > ----- Original Message -----
> > From: "Stewart Taylor" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Tuesday, March 20, 2001 5:57 PM
> > Subject: RE: [PHP] Editing Variables from another script.
> >
> >
> > >
> > >
> > > include "database.inc"
> > > .
> > > .
> > > .
> > > .
> > > $dbhost='localhost';
> > >
> > >
> > >
> > > -Stewart
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > Sent: 20 March 2001 09:26
> > > To: Jason Stechschulte
> > > Cc: 'PHP General List. (E-mail)'
> > > Subject: Re: [PHP] Editing Variables from another script.
> > >
> > >
> > > Okay, basically,
> > >
> > > I'm trying to create a script such that it will change the variables
> > inside
> > > of my .inc page.
> > >
> > > Something like
> > >
> > > lets say I have this file called "database.inc"
> > > Inside it I have :
> > >
> > > $dbhost = 'blah'
> > > $dbuser= 'blah'
> > > $dbpass= 'blah'
> > >
> > > I would like to make a script such that I can modify the $variables
into
> > > something else like, $dbhost into localhost.
> > >
> > > How can it be done?
> > > ----- Original Message -----
> > > From: "Jason Stechschulte" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Cc: "'PHP General List. (E-mail)'" <[EMAIL PROTECTED]>
> > > Sent: Monday, March 19, 2001 11:03 PM
> > > Subject: Re: [PHP] Editing Variables from another script.
> > >
> > >
> > > > On Sun, Mar 18, 2001 at 01:06:34PM +0800, [EMAIL PROTECTED]
> wrote:
> > > >
> > > > > I'm trying to create a form whereby I can edit the variables with
> just
> > > the form.
> > > > >
> > > > > It will be something like a form for me to change the database
> > > details(username,server,password) in a .inc I'm using.
> > > > >
> > > > > Is there anyway for me to pass information into another file's
> > variable
> > > and have it saved in there?
> > > > >
> > > > > If anyone have seen Newspro (CGI) before, when you edit some parts
> in
> > a
> > > form, the information will be saved. How can it be done in PHP?
> > > >
> > > > There is probably a hundred or more ways this can be done.  For me
to
> be
> > > > able to give you specifics, you will have to be more specific with
> what
> > > > you are doing and what you have tried.
> > > >
> > > > --
> > > > Jason Stechschulte
> > > > [EMAIL PROTECTED]
> > > > --
> > > > Well, I think Perl should run faster than C.  :-)
> > > >              -- Larry Wall in <[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 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 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 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 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 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]
>
>
>





Hi,

Recently, I saw a presentation by Rasmus Lerdorf about php.  He used
netscape and php scripts as presentation software and it looked really cool.
Does someone know if this is somewhere available ?

Thanks,

Henk






On 19 Mar 2001 06:53:00 -0800, [EMAIL PROTECTED] ("David G.") wrote:
> Since fopen/fread/fclose all work with standard URLs, why not allow
> file_exists() to work with URLs as well?
> What is the procedure to make such a request?


Try this:

function url_exist($url) {
        $url_parts = parse_url($url);
        $fp = fsockopen($url_parts["host"], 80);
        if (!$fp) return false;
        $path = $url_parts["path")?$url_parts["path"]:"/";
        fwrite($fp, "GET $path HTTP/1.0\r\n\r\n");
        $response = fgets($fp, 500);
        preg_match("/^HTTP\/\d\.\d[ \t]+(\d+)[ \t]*([^\r]*)/", $response, $matches);
        switch ($matches[1]) {
                case 404: // HTTP error not found
                        return false;
                case 200: // HTTP OK
                        return true;
                default:
                        return false; // other responses probably counts false
        }
}





[Since original poster requests for procedure for feature/change request.]

You can use bug reporting system to request new feature or changes.
http://www.php.net/bugs.php

Use "Feature/Change Request" as "Type of bug".
It will be sent to php-dev mail list and stored as feature/change request in db.

Regards,

--
Yasuo Ohgaki

"Mike" <[EMAIL PROTECTED]> wrote in message 1103_985083470@matthew">news:1103_985083470@matthew...
> On 19 Mar 2001 06:53:00 -0800, [EMAIL PROTECTED] ("David G.") wrote:
> > Since fopen/fread/fclose all work with standard URLs, why not allow
> > file_exists() to work with URLs as well?
> > What is the procedure to make such a request?
>
>
> Try this:
>
> function url_exist($url) {
> $url_parts = parse_url($url);
> $fp = fsockopen($url_parts["host"], 80);
> if (!$fp) return false;
> $path = $url_parts["path")?$url_parts["path"]:"/";
> fwrite($fp, "GET $path HTTP/1.0\r\n\r\n");
> $response = fgets($fp, 500);
> preg_match("/^HTTP\/\d\.\d[ \t]+(\d+)[ \t]*([^\r]*)/", $response, $matches);
> switch ($matches[1]) {
> case 404: // HTTP error not found
> return false;
> case 200: // HTTP OK
> return true;
> default:
> return false; // other responses probably counts false
> }
> }
>
>
> --
> 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]
>





I cofigured apache 1.3.14 with php4 on my computer(Mandrake 7.2) but I can 
not use imap functions. I read that I have to compile PHP with imap. I did 
it, but I get some errors when compile apache whit this php.
Can anybody help me with some advices?
Thanks.

Calin




I am used to perl syntax of:

$var->{'abc'}   for a hash (associative array)

Can this syntax be done for PHP.

What other syntax is there for PHP hashes? Any that look like this?







$xy=array("a"=>"orange","b"=>"banana","c"=>"fruit");



--


[EMAIL PROTECTED]
+49 9721 188848
+49 171 370 97 15


""Costas"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
997b0s$3cl$[EMAIL PROTECTED]">news:997b0s$3cl$[EMAIL PROTECTED]...
> I am used to perl syntax of:
>
> $var->{'abc'}   for a hash (associative array)
>
> Can this syntax be done for PHP.
>
> What other syntax is there for PHP hashes? Any that look like this?
>
>
>
> --
> 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]
>






use
$aArray["abc"]=7;
echo $aArray["abc"];
""Costas"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
997b0s$3cl$[EMAIL PROTECTED]">news:997b0s$3cl$[EMAIL PROTECTED]...
> I am used to perl syntax of:
>
> $var->{'abc'}   for a hash (associative array)
>
> Can this syntax be done for PHP.
>
> What other syntax is there for PHP hashes? Any that look like this?
>
>
>
> --
> 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]
>






Michael-

Thank you, it works perfectly!

--Dan

"Michael Kimsal" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> <a href="/scripts/GenericCard.php?uid=UniqueUserKey">Click here for John
> Doe's vCard</a>
>
> GenericCard.php would have something like...
>
> //
> // build $text from $uid passed in
> //
> header("Content-type: x/y");
> header("Content-Disposition: attachment; filename=$filename" );
> print $text;
> exit();
>
> "x/y" would be something like text/html or application/vnd.excel or
> something like that.  Whatever the defined MIME header for
> Vcards is, put that after the content-type.  $filename
> would be the name of the file you want to call this - something.vcf
> I'd expect.
>
> We do this with Excel files all the time - sending down tab-delimited
text,
> and putting an excel application header on the file.
>
> Dan Costello wrote:
>
> > Hi,
> >
> > I'm trying to get my site to generate text files with a certain
extension
> > and MIME-type from a database, "on the fly".
> >
> > Specifically, I would like to build something that can create vCards,
that
> > is, text files of a particular format with the extension *.vcf,
mime-type
> > text/x-vcard, _at the time that the user clicks the link to download the
> > file_.
> >
> > Currently, the only way I have of doing this is prebuilding all the vcf
> > files when the page is built, then deleting them when the user goes
> > somewhere else -- pretty inefficient. I'd really like to have, e.g. a
bunch
> > of links that look like this:
> >
> > <a href="/scripts/GenericCard.vcf?uid=UniqueUserKey">Click here for John
> > Doe's vCard</a>
> >
> > ...so that when the user clicks the link, their contact manager
(Outlook, or
> > whatever) fires up on their machine and displays the freshly-generated
> > vCard.
> >
> > I have, of course, thought of modifying the httpd.conf to have apache
parse
> > files with a .vcf extension through the php interpreter -- I think that
this
> > would be a very bad idea. ;-)
> >
> > So, is this too much to hope for?
>
>
> --
> 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]
>






The examples of holding passwords in databases (i.e. mysql) tend to encrypt
the password.  Although this seems sensible (if not necessary) it douse mean
that if a user forgets there password the normal solution is to generate a
new random password and email it to them.  Then I realised that this fafing
about was all a bit unnecessary.  Surly if security has been breached to the
extent that the user table can be accesses chances are that the intruder
could delete data from tables or even drop them.  In fact the best solution
is to set up proper database users rather than your own 'application' users.
This way you can set it up (at database level) so that for 'Punters' they
can only read most of the data and 'Administrators' have fuller access.

So maybe the conclusion is there is no point in encryption passwords but
there are very good reasons to have users an 'real' database users.

What do you lot reckon.

Ben.

--
[EMAIL PROTECTED] (ben@work until end March)
[EMAIL PROTECTED] (ben@home)





On Monday 19 March 2001 23:55, you wrote:

> my next question would be.  I'm working on a list of meetings.  I
> return a list for the current month, what I would like to do is make
> the current week meetings show in red. However, I'm not sure of the
> best approach to do this.

Just get the current week via getdate() and do an
if ($RecordWeek == $CurrentWeek)
  Highlight()

on each record.

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

Those who will not reason, are bigots,
those who cannot, are fools,
and those who dare not, are slaves.

- George Gordon Noel Byron (1788-1824), [Lord Byron]




        
Hello,

thanx to everyone who replied, I have found all the info I was looking for.

Cheers.

.................................................................
.. Dimitris Batis ....................... [EMAIL PROTECTED] ..
.. http://www.ravencrypt.com ....................................
.. ICQ: 18204204 .................... Yahoo! ID: deggial_wrath ..
.................................................................

"The road to truth is long, and lined the entire way with annoying bastards."
-- Alexander Jablokov, The place of no shadows





I'm facing this problem. 
I have made a room booking application. 
There is a Start Date & Time and End Date & Time of
Booking a room. 

Problem is that once booked, you can't book a room
with a date or time that falls between an Already
booked  Date & Time. 

For example, if someone's booked a room from 3rd March
to 10th March between 4:00 p.m. to 12:00 p.m. , you
can't book the same room for the any date between 3rd
March to 10th March and between 4 pm & 12 pm. 

How do i do that? 

Regards,
T. Edison jr.


=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
*******************************************

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




Peter, 

what do you mean by Newdate between date1 & date2??
the logic i'm using is that i'm checkin if the new
Start Date & End date lies between the old Start Date
& End Date or not. If it does, than entry is denied,
else booking is succesfull. But things are not
running, following is the code i'm using ... 
----------
<?php
    $db = mysql_connect("localhost","root");
    mysql_select_db("nidc_intranet",$db);
    
    $realsdate="$syear"."-"."$smonth"."-"."$stdate";
    $realedate="$eyear"."-"."$emonth"."-"."$endate";
    $realstime="$shh".":"."$smm"." "."$sttime";
    $realetime="$ehh".":"."$emm"." "."$entime";

$result = mysql_query("SELECT * FROM booking where
room='$rooms',$db);
if ($myrow = mysql_fetch_array($result)) {
  do {
if ($realsdate>=$myrow[sdate]) &&
($realsdate<=$myrow[edate]) &&
($realedate>=$myrow[sdate]) &&
($realedate<=$myrow[edate]) {
echo "Sorry";
}
else {

    $sql = "INSERT INTO booking
(room,sdate,edate,stime,etime,purpose,reserved) VALUES
('$rooms','$realsdate','$realedate','$realstime','$realetime','$purpose','$res')";
    $result = mysql_query($sql) or Die ("An unexpected
error occured. Please go back and book again.");
    echo "<font face=helvetica size=2
color=#140057><b>Thank you! <font
color=#ff0000>$rooms</font>, has been booked from
<font color=#ff0000>$realsdate</font> to <font
color=#ff0000>$realedate</font>.
    <br><br>
    ** Entries will be deleted 2 weeks after the End
Date.
    ";
}
  } while ($myrow = mysql_fetch_array($result));
}
     ?>
------------

Regards,
T. Edison jr.

--- "Peter Chr. Hansen" <[EMAIL PROTECTED]> wrote:
> Can't you use "
>       Newdate between date1 and date2
> 
> 
> -----Oprindelig meddelelse-----
> Fra: Thomas Edison Jr.
> [mailto:[EMAIL PROTECTED]]
> Sendt: 20. marts 2001 12:25
> Til: [EMAIL PROTECTED]
> Emne: [PHP] Booking by Date/Time in mySQL
> 
> 
> I'm facing this problem. 
> I have made a room booking application. 
> There is a Start Date & Time and End Date & Time of
> Booking a room. 
> 
> Problem is that once booked, you can't book a room
> with a date or time that falls between an Already
> booked  Date & Time. 
> 
> For example, if someone's booked a room from 3rd
> March
> to 10th March between 4:00 p.m. to 12:00 p.m. , you
> can't book the same room for the any date between
> 3rd
> March to 10th March and between 4 pm & 12 pm. 
> 
> How do i do that? 
> 
> Regards,
> T. Edison jr.
> 
> 
> =====
> Rahul S. Johari (Director)
> ******************************************
> Abraxas Technologies Inc.
> Homepage : http://www.abraxastech.com
> Email : [EMAIL PROTECTED]
> Tel : 91-4546512/4522124
> *******************************************
> 
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail. 
> http://personal.mail.yahoo.com/
> 
> -- 
> 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]


=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
*******************************************

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




One problem is that you are only checking the first booking.
  select * from booking where room='room'
gives ALL bookings, and you look like you are just testing
the FIRST one.

why not turn it round and do:
  select * from booking where
    ('$start'>=startdate and '$start'<=enddate) or
    ('$end'>=startdate and '$end'<=enddate)

This lets mySQL do the test for you.
If it returns a row you already have a booking.


-----Original Message-----
From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 11:50 AM
To: Peter Chr. Hansen
Cc: [EMAIL PROTECTED]
Subject: Re: SV: [PHP] Booking by Date/Time in mySQL


Peter,

what do you mean by Newdate between date1 & date2??
the logic i'm using is that i'm checkin if the new
Start Date & End date lies between the old Start Date
& End Date or not. If it does, than entry is denied,
else booking is succesfull. But things are not
running, following is the code i'm using ...
----------
<?php
    $db = mysql_connect("localhost","root");
    mysql_select_db("nidc_intranet",$db);

    $realsdate="$syear"."-"."$smonth"."-"."$stdate";
    $realedate="$eyear"."-"."$emonth"."-"."$endate";
    $realstime="$shh".":"."$smm"." "."$sttime";
    $realetime="$ehh".":"."$emm"." "."$entime";

$result = mysql_query("SELECT * FROM booking where
room='$rooms',$db);
if ($myrow = mysql_fetch_array($result)) {
  do {
if ($realsdate>=$myrow[sdate]) &&
($realsdate<=$myrow[edate]) &&
($realedate>=$myrow[sdate]) &&
($realedate<=$myrow[edate]) {
echo "Sorry";
}
else {

    $sql = "INSERT INTO booking
(room,sdate,edate,stime,etime,purpose,reserved) VALUES
('$rooms','$realsdate','$realedate','$realstime','$realetime','$purpose','$r
es')";
    $result = mysql_query($sql) or Die ("An unexpected
error occured. Please go back and book again.");
    echo "<font face=helvetica size=2
color=#140057><b>Thank you! <font
color=#ff0000>$rooms</font>, has been booked from
<font color=#ff0000>$realsdate</font> to <font
color=#ff0000>$realedate</font>.
    <br><br>
    ** Entries will be deleted 2 weeks after the End
Date.
    ";
}
  } while ($myrow = mysql_fetch_array($result));
}
     ?>
------------

Regards,
T. Edison jr.

--- "Peter Chr. Hansen" <[EMAIL PROTECTED]> wrote:
> Can't you use "
>       Newdate between date1 and date2
>
>
> -----Oprindelig meddelelse-----
> Fra: Thomas Edison Jr.
> [mailto:[EMAIL PROTECTED]]
> Sendt: 20. marts 2001 12:25
> Til: [EMAIL PROTECTED]
> Emne: [PHP] Booking by Date/Time in mySQL
>
>
> I'm facing this problem.
> I have made a room booking application.
> There is a Start Date & Time and End Date & Time of
> Booking a room.
>
> Problem is that once booked, you can't book a room
> with a date or time that falls between an Already
> booked  Date & Time.
>
> For example, if someone's booked a room from 3rd
> March
> to 10th March between 4:00 p.m. to 12:00 p.m. , you
> can't book the same room for the any date between
> 3rd
> March to 10th March and between 4 pm & 12 pm.
>
> How do i do that?
>
> Regards,
> T. Edison jr.
>
>
> =====
> Rahul S. Johari (Director)
> ******************************************
> Abraxas Technologies Inc.
> Homepage : http://www.abraxastech.com
> Email : [EMAIL PROTECTED]
> Tel : 91-4546512/4522124
> *******************************************
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> --
> 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]


=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
*******************************************

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

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





homesite is very nice

www.allaire.com

almir

""Richard Lynch"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
01f901c0b0c8$291ba800$[EMAIL PROTECTED]">news:01f901c0b0c8$291ba800$[EMAIL PROTECTED]...
> > I am looking for good php editors. Currently, i am using PHP coder. It
> > highlights syntax and checks my syntax. It's also executes my PHP codes.
> Are
> > there any editors like that? I just want a editor that highlights my
code
> > and check my syntax.
>
> Give the Zend IDE a trial run.
>
> You'll be able to debug your code with an integrated debugger.
>
> There's also a site somewhere that lists all the PHP Editors, but I don't
> have the URL handy...
>
> --
> Visit the Zend Store at http://www.zend.com/store/
> Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
> Volunteer a little time: http://chatmusic.com/volunteer.htm
>
>
>
> --
> 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]
>






are constants global, do i have to do something in my classes so that i can
use them as object variables, i have tested in with functions seems to be
global but how about classes and has anybody used it realy

regards
almir






""almir"" <[EMAIL PROTECTED]> wrote in message 997fat$jdk$[EMAIL PROTECTED]">news:997fat$jdk$[EMAIL PROTECTED]... > are constants global, do i have to do something in my classes so that i can > use them as object variables, i have tested in with functions seems to be > global but how about classes and has anybody used it realy > I'm not sure if I get your point or not, anyway. Constants can be accessed from anywhere, in function, in class - NOT class initilizer if there are expressions involved. i.e. classs foo { var $something = CONSTANT1 | CONSTANT2; // This is INVALID var $another = CONSTANT1; // This is VALID } I use a lots of constants with my classes. Regards, -- Yasuo Ohgaki > regards > almir > > > > -- > 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] >



Hello everybody,

I already am familiar with PHP's ftp capabilities. My question though is if anyone has 
ever used or know wether PHP is compatible or not with sftp (OpenSSH secure FTP). If 
so, can I use the same libraries or is there any PHP extention that I must download in 
order to enable it.

Thank you,

Carlos Fernando Scheidecker Antunes.




set its valu to nothing , or expiery date to yesterday
the best is both

-almir
"Nikolai Vladychevski" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> [EMAIL PROTECTED] wrote:
> >
> > How do you "delete" the cookie?
>
> I delete like this:
>
>
> <?
>    setcookie("username");
>    setcookie("passwd");
>    header("Location: http://".$HTTP_HOST."/logout.html");
>    exit;
> ?>
>
> is this correct?
> to set cookie i use:
>  setcookie("username",$username);
>
> Nikolai
>
> >
> > Nikolai Vladychevski <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > My site has been working with cookies just fine .... until i
discovered
> > > that some browsers (i think it is some browser under MacOS, I'm
> > > investigating) instead of deleting a cookie, set it to value
"deleted",
> > > so in my code this variable has a value and believes there is a user
> > > called "deleted" trying to reauth..... a lot users can't login to my
> > > site ater their session times out due to this cause.... My question
is,
> > > I am dealing with some new bug of explorer or there is a standard I am
> > > missing? Should I implement in my code this feature doing with
"deleted"
> > > cookies? Or maybe it's a php bug? I run php-4.0.4pl1 ....
> > >
> > > Thanks in advance
> > >
> > > Nikolai
> > >
> > > --
> > > 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 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]
>






and I dont think you should use haeder functions with cookie together
do it with javascript , i had some problems if I used this two together
(cookie, and header)

-almir
"Nikolai Vladychevski" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> [EMAIL PROTECTED] wrote:
> >
> > How do you "delete" the cookie?
>
> I delete like this:
>
>
> <?
>    setcookie("username");
>    setcookie("passwd");
>    header("Location: http://".$HTTP_HOST."/logout.html");
>    exit;
> ?>
>
> is this correct?
> to set cookie i use:
>  setcookie("username",$username);
>
> Nikolai
>
> >
> > Nikolai Vladychevski <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > My site has been working with cookies just fine .... until i
discovered
> > > that some browsers (i think it is some browser under MacOS, I'm
> > > investigating) instead of deleting a cookie, set it to value
"deleted",
> > > so in my code this variable has a value and believes there is a user
> > > called "deleted" trying to reauth..... a lot users can't login to my
> > > site ater their session times out due to this cause.... My question
is,
> > > I am dealing with some new bug of explorer or there is a standard I am
> > > missing? Should I implement in my code this feature doing with
"deleted"
> > > cookies? Or maybe it's a php bug? I run php-4.0.4pl1 ....
> > >
> > > Thanks in advance
> > >
> > > Nikolai
> > >
> > > --
> > > 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 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]
>






Hi,

>From a search of the PHP Site.
------------------------------
Status: Closed User Modify   Dev Modify
From: [EMAIL PROTECTED]
Date: 1999-12-07 16:51:27
Type: Compile Failure
OS: AIX 4.2.1
PHP Version: 4.0 Latest CVS (07/12/1999)
Assigned To:
Short Desc.: SQLCHAR undeclared
------------------------------

I have the same error compiling php4.0.1p2 on SCO Openserver 5.0.5 (with gcc
2.95).

I'm not sure about the CVS thing, but I downloaded a php-latest tar file
from the snapshots site, which I can't get to compile at all.

I even tried taking the etc/odbc directory from the snapshot and putting it
into the pl2 directory I have (as you can see I'm not a C programmer :-) ).
But this didn't work.

Is it possible to get detail on the patch that was applied, or another
solution.

Regards

Grant Walters
Brainbench 'Most Valuable Professional' for Unix Admin
Walters & Associates, P O Box 13-043 Johnsonville, Wellington, NEW ZEALAND
Telephone: +64 4 4765175, CellPhone 025488265, ICQ# 23511989






Hi,

does somebody know a function where I can read all variables of an object
independent of there name?

I have to test with large classes, more than 30 vars per class, and dont
want to implement a function just for testing.
I want to echo all values of vars of a class without specifyieng explicitly
every single varname.

Hope somebody can help me.


Thanks

Thorsten






You could try 
   echo serialize($object_var);
to display the object in it's serialized form.

-Stewart

-----Original Message-----
From: Thorsten Viel [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2001 12:59
To: [EMAIL PROTECTED]
Subject: [PHP] Easy Object Reading


Hi,

does somebody know a function where I can read all variables of an object
independent of there name?

I have to test with large classes, more than 30 vars per class, and dont
want to implement a function just for testing.
I want to echo all values of vars of a class without specifyieng explicitly
every single varname.

Hope somebody can help me.


Thanks

Thorsten



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




> -----Original Message-----
> From: Thorsten Viel [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 21 March 2001 00:59
> To: [EMAIL PROTECTED]
> Subject: [PHP] Easy Object Reading
>
>
> Hi,
>
> does somebody know a function where I can read all variables of an object
> independent of there name?
>
> I have to test with large classes, more than 30 vars per class, and dont
> want to implement a function just for testing.
> I want to echo all values of vars of a class without specifyieng
> explicitly
> every single varname.
>

var_dump(PHP3 >= 3.0.5, PHP4 )
Dumps information about a variable
void var_dump (mixed expression)
This function returns structured information about an expression that
includes its type and value.
Arrays are explored recursively with values indented to show structure.
Compare var_dump() to print_r().

1
2 <pre>
3 <?php
4 $a = array (1, 2, array ("a", "b", "c"));
5 var_dump ($a);
6 ?>
7 </pre>
8


Regards

Grant Walters
Brainbench 'Most Valuable Professional' for Unix Admin
Walters & Associates, P O Box 13-043 Johnsonville, Wellington, NEW ZEALAND
Telephone: +64 4 4765175, CellPhone 025488265, ICQ# 23511989





If you don't want to dump this to the screen but would prefer to have this
in a string (to send to a log file etc..) then use the following function:

function getStringFromObject($prmAryIn)
{
        // Following code was ripped from
http://www.php.net/manual/en/function.var-dump.php
        // it's very nice indeed!!
        ob_start();
        var_dump($prmAryIn);
        $output = ob_get_contents();
        ob_end_clean();

        return $output;
}


-----Original Message-----
From: Grant Walters [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2001 14:08
To: Php-General
Cc: Thorsten Viel
Subject: RE: [PHP] Easy Object Reading


> -----Original Message-----
> From: Thorsten Viel [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 21 March 2001 00:59
> To: [EMAIL PROTECTED]
> Subject: [PHP] Easy Object Reading
>
>
> Hi,
>
> does somebody know a function where I can read all variables of an object
> independent of there name?
>
> I have to test with large classes, more than 30 vars per class, and dont
> want to implement a function just for testing.
> I want to echo all values of vars of a class without specifyieng
> explicitly
> every single varname.
>

var_dump(PHP3 >= 3.0.5, PHP4 )
Dumps information about a variable
void var_dump (mixed expression)
This function returns structured information about an expression that
includes its type and value.
Arrays are explored recursively with values indented to show structure.
Compare var_dump() to print_r().

1
2 <pre>
3 <?php
4 $a = array (1, 2, array ("a", "b", "c"));
5 var_dump ($a);
6 ?>
7 </pre>
8


Regards

Grant Walters
Brainbench 'Most Valuable Professional' for Unix Admin
Walters & Associates, P O Box 13-043 Johnsonville, Wellington, NEW ZEALAND
Telephone: +64 4 4765175, CellPhone 025488265, ICQ# 23511989


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







Hi

Whats the best method to get the filename of the file I am using. E.G if the 
file is called tom_woz_here.php and would I go about stickin that into 
$FileName= ???

Thanks




$FileName = $PHP_SELF;

HTH
Jon


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2001 13:20
To: [EMAIL PROTECTED]
Subject: [PHP] get filename?


Hi

Whats the best method to get the filename of the file I am using. E.G if the

file is called tom_woz_here.php and would I go about stickin that into 
$FileName= ???

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]



**********************************************************************
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or
confidentiality'

**********************************************************************




$HTTP_SERVER_VARS['PHP_SELF'],$HTTP_SERVER_VARS['SCRIPT_NAME'], etc.
There are many values, that you can use to get script name, in
$HTTP_SERVER_VARS.

Regards,
--
Yasuo Ohgaki

<[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi
>
> Whats the best method to get the filename of the file I am using. E.G if the
> file is called tom_woz_here.php and would I go about stickin that into
> $FileName= ???
>
> 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_SELF will be the filename including $QUERY_STRING and $PATH_INFO
variables, $SCRIPT_NAME should be just the filename.

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 20, 2001 5:19 AM
Subject: [PHP] get filename?


> Hi
>
> Whats the best method to get the filename of the file I am using. E.G if
the
> file is called tom_woz_here.php and would I go about stickin that into
> $FileName= ???
>
> 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]
>
>





excuse my ignorance here, but is this a configurable options?  Anytime I 
use $PHP_SELF, it strictly the directory and filename..

for example say I have a forum running at 
www.somedomain.com/forum/index?Message=12

my $PHP_SELF strictly gives me /forum/index.php.  I know this for a fact 
because I use a hybrid of the CF coding style of fusebox, and all my form 
actions are set to $PHP_SELF and the $QUERY_STRING info is never appended 
to it...

At 09:05 AM 3/20/01 -0800, Data Driven Design wrote:
>$PHP_SELF will be the filename including $QUERY_STRING and $PATH_INFO
>variables, $SCRIPT_NAME should be just the filename.
>
>----- Original Message -----
>From: <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, March 20, 2001 5:19 AM
>Subject: [PHP] get filename?
>
>
> > Hi
> >
> > Whats the best method to get the filename of the file I am using. E.G if
>the
> > file is called tom_woz_here.php and would I go about stickin that into
> > $FileName= ???
> >
> > 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 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]





if your input is a number of seconds why not just treat it as a unix
timestamp so ...

echo date("H:i:s", $num_seconds)

... will work.

        Tim Ward
        Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


> -----Original Message-----
> From: Yoshi Melrose [mailto:[EMAIL PROTECTED]]
> Sent: 19 March 2001 22:09
> To: [EMAIL PROTECTED]
> Subject: Script to convert # of seconds to HH:mm
> 
> 
> Can someone direct me or send me a script that will convert number of
> seconds into a format readable as HH:mm? I've tried making it 
> myself, but it
> gets all messed up in the calculations. Thanks!!!!
> 
> Yoshi
> 
> 




Actually my error is
php_odbc.c: In function `odbc_column_lengths':
php_odbc.c:606: `SQLINTEGER' undeclared (first use in this function)
php_odbc.c:606: (Each undeclared identifier is reported only once
php_odbc.c:606: for each function it appears in.)
php_odbc.c:606: parse error before `len'
php_odbc.c:634: `len' undeclared (first use in this function)

Not The SQLCHAR one below

Line 606 says

SQLINTEGER len;

Which I assume means a variable declaration of type SQLINTEGER.

>From a search of the PHP Site.
------------------------------
Status: Closed User Modify   Dev Modify
From: [EMAIL PROTECTED]
Date: 1999-12-07 16:51:27
Type: Compile Failure
OS: AIX 4.2.1
PHP Version: 4.0 Latest CVS (07/12/1999)
Assigned To:
Short Desc.: SQLCHAR undeclared
------------------------------

I have the same error compiling php4.0.1p2 on SCO Openserver 5.0.5 (with gcc
2.95).

I'm not sure about the CVS thing, but I downloaded a php-latest tar file
from the snapshots site, which I can't get to compile at all.

I even tried taking the etc/odbc directory from the snapshot and putting it
into the pl2 directory I have (as you can see I'm not a C programmer :-) ).
But this didn't work.

Is it possible to get detail on the patch that was applied, or another
solution.

Regards

Grant Walters
Brainbench 'Most Valuable Professional' for Unix Admin
Walters & Associates, P O Box 13-043 Johnsonville, Wellington, NEW ZEALAND
Telephone: +64 4 4765175, CellPhone 025488265, ICQ# 23511989





> Actually my error is
> php_odbc.c: In function `odbc_column_lengths':
> php_odbc.c:606: `SQLINTEGER' undeclared (first use in this function)
> php_odbc.c:606: (Each undeclared identifier is reported only once
> php_odbc.c:606: for each function it appears in.)
> php_odbc.c:606: parse error before `len'
> php_odbc.c:634: `len' undeclared (first use in this function)

I went back to the latest source relaaes and found the following which I
have included in my pl2 version.

----------------------------------------------------------------------------
-------
#if defined(HAVE_SOLID) || defined(HAVE_SOLID_30) || defined(HAVE_OPENLINK)
        /* this seems to be necessary for Solid2.3 ( tested by
         * [EMAIL PROTECTED]) and Solid 3.0 (tested by
[EMAIL PROTECTED])
         * Solid does not seem to declare a SQLINTEGER, but it does declare a
         * SQL_INTEGER which does not work (despite being the same type as a
SDWORD.
         * Solid 3.5 does not have this issue.
         */
        SDWORD len;
#else
        SQLINTEGER len;
#endif
----------------------------------------------------------------------------
-------

php_odbc.c now compiles, the rest is still compiling :-)

Regards

Grant Walters
Brainbench 'Most Valuable Professional' for Unix Admin
Walters & Associates, P O Box 13-043 Johnsonville, Wellington, NEW ZEALAND
Telephone: +64 4 4765175, CellPhone 025488265, ICQ# 23511989





I compiled php --with-pgsql, but phpinfo() doesn't list that.....is this a
problem with php.ini?

Thanks,

Gary






I am trying to connect to a remote mySQL server through PHP but I get a
mySQL error of "Unknown Database".  I can connect to the remote mySQL server
using the mysql command but not with PHP.

1. How can I debug what the problem is?
2. Do I need to specify the Port parameter in PHP?
3. Which mySQL error logs do I examine to help me out - the one on the local
machine or on the remote machine?
4. And where is the mySQL error logs anyway?

I tried other lists but no help there.  I hope this list helps!

Thanks all,

Floyd Piedad





when you connect to server issue
"show databases" -query then look inside what you can see some servers are
case sensitive
i hope that will help,
and are you sure that you are connected , it could be that you may not
connect at all because of firewalls or something like that
-almir



"Floyd Piedad" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am trying to connect to a remote mySQL server through PHP but I get a
> mySQL error of "Unknown Database".  I can connect to the remote mySQL
server
> using the mysql command but not with PHP.
>
> 1. How can I debug what the problem is?
> 2. Do I need to specify the Port parameter in PHP?
> 3. Which mySQL error logs do I examine to help me out - the one on the
local
> machine or on the remote machine?
> 4. And where is the mySQL error logs anyway?
>
> I tried other lists but no help there.  I hope this list helps!
>
> Thanks all,
>
> Floyd Piedad
>
>
> --
> 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]
>









ATTENTION!

I Found this company on the internet.  They came very highly recommended
by several of my friends and associates.  They have the most qualified leads I
have ever worked.  Forget those generic phone leads... sign up 5 out of
15 or more every time!!

They Are having a 33% off sale this week only!!

Sale Ends Friday, So I wanted this to get out to anyone who would find this
service of use, as I very much did!!

Thanks,
Jenni Vaughn

Oh...by the waY... THERE SITE ADDRESS IS: 

http://www.geocities.com/leads4you911/






**************************************************************
THIS EMAIL COMPLIES WITH ALL REGULATIONS.  TO BE REMOVED SIMPLY
EMAIL [EMAIL PROTECTED] FOR IMMEDIATE REMOVAL FROM ANY
FUTURE EMAILS FROM OUR COMPANY.
**************************************************************




<? setcookie("nombre1",'nombre2',time()+86400); ?>

Utilizo este código para depositar una cookie en el cliente, lo único
que me caduca al cabo de un tiempo, ¿alguién sabe qué es lo que tengo
que poner para que la cookie no caduque nunca?

Gracias

--
Francesc Lladó i Dardet
[EMAIL PROTECTED]

Interkonet Publishers s.l.
Atenes 22
08006 Barcelona
Tel. 932 530 866
Fax. 932 530 866
http://www.interkonet.com
[EMAIL PROTECTED]






It is a newbie question about working with local files. I just want to know
if it posible to open and modify a local file (I mean that it is located in
the local hard disk of the client machine) or because of security reasons it
is only posible to open and modify it when the file resides in the server
machine. Besides, I would also like to know which are the functions I should
use to work with this file.

Thanks in advanced,






stanard newbie answer :)

    php is server side, not client side

php is serverside there is no way of ever ever doing anything client side because of 
this.

    http://php.net/manual/en/function.fopen.php

are the functions for opening files.


-- 

 Chris Lee
 [EMAIL PROTECTED]



""Jon"" <[EMAIL PROTECTED]> wrote in message 997rk2$q1i$[EMAIL PROTECTED]">news:997rk2$q1i$[EMAIL PROTECTED]...
It is a newbie question about working with local files. I just want to know
if it posible to open and modify a local file (I mean that it is located in
the local hard disk of the client machine) or because of security reasons it
is only posible to open and modify it when the file resides in the server
machine. Besides, I would also like to know which are the functions I should
use to work with this file.

Thanks in advanced,



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






What is the status on the ISAPI version of PHP?

Last I looked (4.0.1) it was still rather unstable.

- Carsten




Reply via email to