php-general Digest 20 Feb 2005 21:48:40 -0000 Issue 3297

2005-02-20 Thread php-general-digest-help
php-general Digest 20 Feb 2005 21:48:40 - Issue 3297 Topics (messages 209077 through 209091): php5 and globals? 209077 by: Mike 209078 by: M. Sokolewicz 209079 by: Guillermo Nouche [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT'] 209080 by: Dave

Re: [PHP] XHTML 1.1 + php sessions = :(

2005-02-20 Thread b1nary Developement Team
Jason Barnett wrote: Not an idiot... we all had to learn it once. And some of us a few times more than that! You're welcome. Jason Okay, back to business... Here's what I've got in the method that goes at the top of the page *function headers() {* *header(Content-type: text/html;

[PHP] php5 and globals?

2005-02-20 Thread Mike
I have read that php5 does something different with global_vars. I know that many of my clients rely on them working. Will thinks start breaking after I upgrade from 4.3.10 to 5.3? TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php5 and globals?

2005-02-20 Thread M. Sokolewicz
Mike wrote: I have read that php5 does something different with global_vars. I know that many of my clients rely on them working. Will thinks start breaking after I upgrade from 4.3.10 to 5.3? TIA something different being...? maybe you mean register_globals? that change goes back to php 4.2.0,

Re: [PHP] Re: php5 and globals?

2005-02-20 Thread Guillermo Nouche
On Sun, 20 Feb 2005 15:14:27 +0100, M. Sokolewicz [EMAIL PROTECTED] wrote: Mike wrote: I have read that php5 does something different with global_vars. I know that many of my clients rely on them working. Will thinks start breaking after I upgrade from 4.3.10 to 5.3? TIA something

[PHP] [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT']

2005-02-20 Thread Dave
PHP General, The Situation: I would like to be able to specify locations of scripts and files relative to the root directory from which my web site is served. I thought this was what $_SERVER['DOCUMENT_ROOT'] was for. The Problem: When I use $_SERVER['DOCUMENT_ROOT'], it creates a

AW: [PHP] [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT']

2005-02-20 Thread Mirco Blitz
Hi, what does echo $imageFile print and what do you do afterwards with it. Probably there is the error. Mit freundlichen Grüßen Mirco Blitz -Ursprüngliche Nachricht- Von: Dave [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 20. Februar 2005 18:15 An: php-general Betreff: [PHP] [NEWBIE]

Re: [PHP] [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT']

2005-02-20 Thread b1nary Developement Team
What's Up Dave... yeah, regardless of how deep this goes into the servers file structure, it should pull out the same thing in the end. Please print out the response and let us know what happens. Dave wrote: PHP General, The Situation: I would like to be able to specify locations of

Re: [PHP] [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT']

2005-02-20 Thread Andre Dubuc
On Sunday 20 February 2005 12:15 pm, Dave wrote: PHP General, The Situation: I would like to be able to specify locations of scripts and files relative to the root directory from which my web site is served. I thought this was what $_SERVER['DOCUMENT_ROOT'] was for. The

Re: [PHP] [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT']

2005-02-20 Thread Dave
Andre, Mirco, BDT, Thank you for your responses. Here is some test code ?php echo img src=\inline/topimage.jpg\ ; echo img src=\/inline/topimage.jpg\ ; echo img src=\ . $_SERVER['DOCUMENT_ROOT'] . /inline/topimage.jpg\ ; ?: Theoretically, they should all output the same image. However: img

Re: [PHP] [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT']

2005-02-20 Thread John Nichel
Dave wrote: Here is some test code ?php echo img src=\inline/topimage.jpg\ ; echo img src=\/inline/topimage.jpg\ ; echo img src=\ . $_SERVER['DOCUMENT_ROOT'] . /inline/topimage.jpg\ ; ?: Theoretically, they should all output the same image. However: img src=inline/topimage.jpg -IMAGE DISPLAYS

Re: [PHP] [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT']

2005-02-20 Thread b1nary Developement Team
Okay, for that last possibility, the one that you used the document root variable. You have to add your domain name before, the reason being is because it's relative to where the script is, if you add the domain name (http://www.whatever.org/document/root) then it switches from relative to

[PHP] [NEWBIE] Cant get $_POST to work

2005-02-20 Thread David Freedman
I have this simple form file: html head /head body form action=test.php method=post Name: input type=text name=name value=your name /br/ Age: input type=text name=age value=your age /br/ input type=submit name=submit value=submit / /form /body /html Which passes (I wish!) data to this script:

[PHP] Handling of partially completed forms

2005-02-20 Thread Joseph E. Maxwell
Does anyone have any suggestions, info or references on php script/code that would enable partially completed multiple page forms that can be saved, retrieved and completed at a later date. I might add also enabling/disabling or other navigational features? I think there are are some java

Re: [PHP] [NEWBIE] Cant get $_POST to work

2005-02-20 Thread John Nichel
David Freedman wrote: I have this simple form file: html head /head body form action=test.php method=post Name: input type=text name=name value=your name /br/ Age: input type=text name=age value=your age /br/ input type=submit name=submit value=submit / /form /body /html Which passes (I wish!)

Re: [PHP] [NEWBIE] Cant get $_POST to work

2005-02-20 Thread b1nary Developement Team
What's up David... This script *should* work... I don't see any errors, but try this anyways. In your change your print command to this: print(Hello, . $name . ! You are . $age . years old!); What those periods do is simply append them to each other, so in this case, you have the

Re: [PHP] Handling of partially completed forms

2005-02-20 Thread b1nary Developement Team
Are you looking to code it yourself? If so, Here's the theory behind the concept... So you have this multiple page form that you want to save and continue at a later time correct? So you'll have to set up a save button. You will also require some way to recognize the same user when the come

[PHP] undefined ap_block_alarms in libphp5.so in spite of SHARED_CORE

2005-02-20 Thread Gene
Hi - I'm trying to get PHP5 to run with Apache 2.0.5 on FreeBSD 5.3. However, I keep getting the following: Cannot load /usr/local/libexec/apache2/libphp5.so into server: /usr/local/libexec/apache2/libphp5.so: Undefined symbol ap_block_alarms Googling for this error brought lot's of results,

RE: [PHP] [NEWBIE] Cant get $_POST to work

2005-02-20 Thread eatc7402
Thanks for the input. However it does no good if the variables are empty, which is my problem. The darn $_POST thing does not work at all for me, and I am trying to find out why. -Original Message- From: b1nary Developement Team [mailto:[EMAIL PROTECTED] Sent: Sunday, February 20, 2005

Re: [PHP] [NEWBIE] Cant get $_POST to work

2005-02-20 Thread b1nary Developement Team
Well this form *is* sending the data because there are no errors in your code... Their has to be some minor little mistake somewhere that we can't see in the code you gave us... look for typos, make sure the php code *is* on test.php. Also, when getting the variables from the post, try using

Re: [PHP] [NEWBIE] Cant get $_POST to work

2005-02-20 Thread Andre Dubuc
On Sunday 20 February 2005 05:07 pm, b1nary Developement Team wrote: Well this form *is* sending the data because there are no errors in your code... Their has to be some minor little mistake somewhere that we can't see in the code you gave us... look for typos, make sure the php code *is* on

Re: [PHP] [NEWBIE] Cant get $_POST to work

2005-02-20 Thread John Nichel
dbfreedman wrote: I am so new I don't know what you mean by 'test.php David Please reply to the list...better chance of finding the answer to your problem that way. You have the action of your form set to 'test.php', i.e. you should have a file in the same directory as your form called

Re: [PHP] [NEWBIE] Cant get $_POST to work

2005-02-20 Thread Randy Johnson
try $HTTP_POST_VARS maybe it is an older version of PHP Randy eatc7402 wrote: Thanks for the input. However it does no good if the variables are empty, which is my problem. The darn $_POST thing does not work at all for me, and I am trying to find out why. -Original Message- From: b1nary

Re: [PHP] [NEWBIE] Cant get $_POST to work

2005-02-20 Thread The Disguised Jedi
i think you have to use the ID parameter in the input tag in your HTML Name: input type=text name=name value=your name id=name /br/ Age: input type=text name=age value=your age id=age /br/ try that and see how it goes On Sun, 20 Feb 2005 17:52:26 -0500, Randy Johnson [EMAIL PROTECTED]

Re: [PHP] [NEWBIE] Cant get $_POST to work

2005-02-20 Thread Randy Johnson
Why do you need the ID? I never use that in my forms. Randy The Disguised Jedi wrote: i think you have to use the ID parameter in the input tag in your HTML Name: input type=text name=name value=your name id=name /br/ Age: input type=text name=age value=your age id=age /br/ try that and see how

Re: [PHP] [NEWBIE] Cant get $_POST to work

2005-02-20 Thread b1nary Developement Team
That's it right there... Damn, why didn't I think of that. Hey David, what version of php are you running? Randy Johnson wrote: try $HTTP_POST_VARS maybe it is an older version of PHP Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Extension Arrays

2005-02-20 Thread Chris Cranford
If I have a function that creates an array using add_assoc_string and then adds it to the return value as add_property_zval, then how do I iterate over the array and get the key and its value? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [NEWBIE] Cant get $_POST to work

2005-02-20 Thread John Nichel
The Disguised Jedi wrote: i think you have to use the ID parameter in the input tag in your HTML Name: input type=text name=name value=your name id=name /br/ Age: input type=text name=age value=your age id=age /br/ try that and see how it goes If I'm not mistaken, ID in a form element will

Re: [PHP] [NEWBIE] Cant get $_POST to work

2005-02-20 Thread John Nichel
Randy Johnson wrote: try $HTTP_POST_VARS maybe it is an older version of PHP Randy Good catch. -- By-Tor.com ...it's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [NEWBIE] Cant get $_POST to work

2005-02-20 Thread The Disguised Jedi
Well, I guess I was wrong...I looked it up and that is correct...I couldn't remember which was the one that was needed to get the params in the right spot. -- The Disguised Jedi [EMAIL PROTECTED] Now you have my $0.02. Or .01 Pounds, .014 Euros, or $0.025 CAN. I'm already internationally

[PHP] Is there a way I can read full path names of files on the server and enter it into the database ?

2005-02-20 Thread Vaibhav Sibal
Hello, I wanted to ask whether there is a way whereby a script can read filenames from a particular directory on the server and enter those filenames with the complete path into the MySQL database? I am trying to do this, because I am developing an application where a supervisor will be

Re: [PHP] PHP Extension Arrays

2005-02-20 Thread Joe Wollard
Chris, I have a feeling I'm missing something but from what I'm gathering you want to be able to use the key of the array right along with the value. If that's what you need then the following should work: $array = my_array_creating_function(); while(list($key, $val) = each($array)){ echo br

Re: [PHP] undefined ap_block_alarms in libphp5.so in spite of SHARED_CORE

2005-02-20 Thread Joe Wollard
Gene. I ran into a similar problem a long time ago and found that my issue was that I had foolishly tried to recompile php5 into the same paths without cleaning out the old php binaries. I don't know if this is what you are doing but if it is then as a thought you might want to make sure that

[PHP] Samba wrapper

2005-02-20 Thread Joe Wollard
Greetings, I am toying around with the idea of building a very basic script to do a _VERY_ basic index of the network shares at work. Almost all of them are Samba shares but I didn't see any easy way to access them without mounting them all to my servers local file system at some point or