[PHP] TEST

2002-04-23 Thread kip
TEST -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: From where was function called?

2002-04-23 Thread Adrian Ciutureanu
You can use the 'magic constants' __FILE__ and __LINE__ For example, if you have an editor that can replace the newline \n character, you can replace all \n with \nerror_log(__FILE__ . '[' . __LINE__ . ']'); Nico Van Der Dussen [EMAIL PROTECTED] wrote in message

[PHP] store pics on mysql db

2002-04-23 Thread mm fernandez
hi...is it possible to store pics (jpeg/gif) on the mysql database? if so, how and what type should that field be? thanks. _ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- PHP General

Re: [PHP] Setting the name of a file in a download....

2002-04-23 Thread Richard Archer
At 3:59 PM +1000 23/4/02, Brian White wrote: Is there any way to get it to save as a file called file.zip? Is there any header I can set? The headers it currently returns header(Content-type: application/octet-stream; name=\file.zip\); header(Content-Disposition: attachment;

Re: [PHP] store pics on mysql db

2002-04-23 Thread Richard Archer
At 6:37 AM + 23/4/02, mm fernandez wrote: hi...is it possible to store pics (jpeg/gif) on the mysql database? if so, how and what type should that field be? How: just addslashes() on the content and insert it. What: a blob of an appropriate size. ...R. -- PHP General Mailing List

Re: [PHP] store pics on mysql db

2002-04-23 Thread Brian White
Yes. The field would need to be some kind of binary blob. You would need to access it using a PHP script that set the header eg: header( Content-type:image/gif ) and then out put the image. At 16:37 23/04/2002, mm fernandez wrote: hi...is it possible to store pics (jpeg/gif) on the

[PHP] get ip of visitors

2002-04-23 Thread Cosmin Vlasiu
Hello, How can I take the IP of the visitator of my php page? not gethostbyname... I need the ip of any visitator not for the specified visitator. Thank you Cosmin

Re: [PHP] get ip of visitors

2002-04-23 Thread Luc Saint-Elie
At 11:04 23/04/2002 +0300, Cosmin Vlasiu wrote: Hello, How can I take the IP of the visitator of my php page? not gethostbyname... I need the ip of any visitator not for the specified visitator. Thank you Cosmin Hello, function http_data() { $user_data = array (); // IP Number if

[PHP] Re: get ip of visitors

2002-04-23 Thread Cosmin
Ya I found $ip = gethostbyname($REMOTE_ADDR); Thanks anyway Cosmin Cosmin Vlasiu [EMAIL PROTECTED] wrote in message 007d01c1ea9d$9db78660$[EMAIL PROTECTED]">news:007d01c1ea9d$9db78660$[EMAIL PROTECTED]... Hello, How can I take the IP of the visitator of my php page? not gethostbyname... I need

Re: [PHP] Re: get ip of visitors

2002-04-23 Thread Claudiu
$ipaddr=getenv(REMOTE_ADDR); Cam asta ar fi... On Tue, 23 Apr 2002, Cosmin wrote: Ya I found $ip = gethostbyname($REMOTE_ADDR); Thanks anyway Cosmin Cosmin Vlasiu [EMAIL PROTECTED] wrote in message 007d01c1ea9d$9db78660$[EMAIL PROTECTED]">news:007d01c1ea9d$9db78660$[EMAIL

[PHP] need help sorting an array...tricky

2002-04-23 Thread Leif Högberg
I have an array where each element contains an array that in turn contains 2 numbers indexed by id and parent. Every id except for the first one belongs to another, its parent. What I want to do now is sort the array so that every id is put after its parent starting with id 1. Example: arr1 =

[PHP] Arrat question

2002-04-23 Thread Bas Jochems
Hello, Suppose i've got the following array $a = array( color = red, taste = sweet, shape = round, name = apple, 3 = 4 ); Now I would like to remove the color field and value. Whats the best way to do this? Thanks -- PHP General Mailing List

[PHP] Array question

2002-04-23 Thread Bas Jochems
Hello, Suppose i've got the following array: $a = array( color = red, taste = sweet, shape = round, name = apple, 3 = 4 ); Now I would like to remove the color field and value. Whats the best way to do this? Thanks. -- PHP General Mailing List

Re: [PHP] Array question

2002-04-23 Thread Michal Dvoracek
Hello, i think that unset($a['color']); is the best way :) Regards Michal Dvoracek [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: get ip of visitors

2002-04-23 Thread Cosmin
Thanks to all, very usefull samples Cosmin Cosmin Vlasiu [EMAIL PROTECTED] wrote in message 007d01c1ea9d$9db78660$[EMAIL PROTECTED]">news:007d01c1ea9d$9db78660$[EMAIL PROTECTED]... Hello, How can I take the IP of the visitator of my php page? not gethostbyname... I need the ip of any visitator

Re: [PHP] The so-called improvment in PHP 4.2.0

2002-04-23 Thread Rouvas Stathis
Miguel Cruz wrote: On Mon, 22 Apr 2002, Leif K-Brooks wrote: I use $formvar for form processing, I don't use the arrays. This is how I was taught to do it. If my host upgrades to 4.2.0, my website is as good as gone! What am I supposed to do?! Fix them! This direction was first

[PHP] dynamic drop down

2002-04-23 Thread Kunal Jhunjhunwala
Hey, I am trying to make a drop down list such that, when some one selects an option, it refreshs and displays the option on the same page. There are a couple of things already in the URL [ the query string ], which need to remain there. How would I do this easily? Regards, Kunal Jhunjhunwala

php-general Digest 23 Apr 2002 11:02:04 -0000 Issue 1303

2002-04-23 Thread php-general-digest-help
php-general Digest 23 Apr 2002 11:02:04 - Issue 1303 Topics (messages 94084 through 94134): Re: From where was function called? 94084 by: Martin Towell 94119 by: Adrian Ciutureanu Re: Second opinion needed - javascript blocker 94085 by: Martin Towell 94114

[PHP] file download in IE

2002-04-23 Thread Negrea Mihai
Hi! How on earth do I make Internet Explorer to download a file generated with: header(Content-type: application/octet-stream); header(Content-Disposition: attachment; filename=$fname); include($this-dir . $fname); exit; It works on http but I need it on https

[PHP] ASP to PHP

2002-04-23 Thread Chuck PUP Payne
I got a strange request from a client. He wants to be able to take his ASP pages and move them over to PHP so that he can run them on apache on his linux server. I saw a tool yesterday ASP2PHP, but I am wanting to know does it work, how much is lost, is it easy to use? Is there another way to

RE: [PHP] file download in IE

2002-04-23 Thread .ben
I think this is only an issue with an un-patched IE5.01, anything higher than that should work fine. .b -Original Message- From: Negrea Mihai [mailto:[EMAIL PROTECTED]] Sent: 23 April 2002 12:26 To: [EMAIL PROTECTED] Subject: [PHP] file download in IE Hi! How on earth do I

RE: [PHP] ASP to PHP

2002-04-23 Thread Cal Evans
Having moved a moderately sized website last year from ASP to PHP I can say from experience that if you can re-write it, the move will go smoother and you will have fewer lines of code. I ended up with about 1/2 as many lines of code to maintain after the port was done. =C= * * Cal Evans *

Re: [PHP] dynamic drop down

2002-04-23 Thread esivertsen
Hi Kunul, I think I have code that does what you want: function QuickJumpSelect($name=, $optionvalues, $optionnames, $stylestr=) { ($stylestr != )? $style = $stylestr : $style = ; // Calculate stuff $count =

RE: [PHP] ASP to PHP

2002-04-23 Thread .ben
I am in the process of porting an ASP site to PHP and am really chuffed with how easy it is so far. I am slightly worried that doing a straight conversion may not be the best idea, but I plan to go through the site again when i'm done, and optimise for PHP where possible. .b -Original

[PHP] Array indices

2002-04-23 Thread esivertsen
Hi all, I have a question regarding array indices: At a certain point in code, I run array_diff() on two arrays to produce a reduced version of one of the argument arrays. Problem is, I dont want the key-value associations to be preserved. I need that the returned array has new (integer, not

[PHP] Re: IP of visitors

2002-04-23 Thread esivertsen
This variable contains the IP address of the visitor: $HTTP_SERVER_VARS[REMOTE_ADDR] Best regards, Eivind -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: get ip of visitors

2002-04-23 Thread esivertsen
This variable contains the IP address of the visitor: $HTTP_SERVER_VARS[REMOTE_ADDR] Best regards, Eivind - Original Message - From: Cosmin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 12:16 PM Subject: [PHP] Re: get ip of visitors

[PHP] object variables declararing

2002-04-23 Thread robert janeczek
hi have look at this code: class test { function test(){ //$this-a = 10; print_r($this); } function test2(){ print_r($this); } } $t=new test(); $t-test2(); what do you see? empty object twice... now uncomment the commented line. now the object got a variable - which is

[PHP] PHP-script in MySQL-table

2002-04-23 Thread Michael Cronström
Hi all, I would like to enter ?php include (doc.php);? directly into MySQL-table. How do I escape? the above so that the script is executed? Is it possible? Web inventor Michael Cronstrom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dynamic drop down

2002-04-23 Thread Justin French
Are you talking about refreshing/dynamicly modifying the pull-down (client side, javascript), or refreshing the page (server side, php)?? You can set a pull down to submit the form onchange, (check out javascript sites for this FAQ) and the action of your form would be something like (untested):

Re: [PHP] PHP 4.1.2 problem with IE

2002-04-23 Thread Dave Sugar
I disagree with your assessment of the situation being related to the index.html. If I browse directly to http://gdpim.glencoe.com/login/login.php (using IE 6.0 on Windows) I get an error from IE (not from the webserver) saying 'The page cannot be displayed. It is the same error that I get if I

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-23 Thread Erik Price
First thing I should say is, you only need to quote the relevant part of an email -- that way, everyone knows exactly what to read (rather than pages of old email threads) to answer the question. But don't worry about it. Now, on to your situation -- That clears up a lot. I sort of thought

[PHP] Cgi modules

2002-04-23 Thread Richard Thomas
I have php compiled as both a module and cgi on my server... Running php from the command line works just fine, no unexpected output.. However running it as cgi from the webserver is really wierd... The very first line #!/usr/bin/local/php ALWAYS shows up on the webpage... Its driving me

Re: [PHP] PHP-script in MySQL-table

2002-04-23 Thread Andreas Stehn
Not sure if this is exactly what you are looking for, but you might want to take a look at the Eval function. (http://www.php.net/manual/en/function.eval.php ) /a Michael Cronström said: Hi all, I would like to enter ?php include (doc.php);? directly into MySQL-table. How do I escape?

RE: [PHP] remove last character in a string

2002-04-23 Thread Ford, Mike [LSS]
-Original Message- From: Evan Nemerson [mailto:[EMAIL PROTECTED]] Sent: 23 April 2002 04:54 Why get strlen involved??? $string = substr($string, 0, -1); Why get quotes involved??? $string = substr($string, 0, -1); Cheers! Mike

[PHP] RE: PHP 4.2.0 Release Announcement

2002-04-23 Thread Brinkman, Theodore
Does anybody know if they completed the handling of the 'echo shortcut' to work with all 3 opening tag styles? (As of 4.0.x, I seem to recall that '?=' and '%=' were equivalent to '? echo', and '% echo' respectively, but '?php=' wasn't equivalent to '?php echo'. I also seem to recall some

RE: [PHP] Re: Better standards in PHP-coding

2002-04-23 Thread Ford, Mike [LSS]
-Original Message- From: michael kimsal [mailto:[EMAIL PROTECTED]] Sent: 21 April 2002 04:17 Second, *HOW MANY* PHP statements can be followed by a { ? I can think of three if (foo) { function foo () { class foo { Maybe there's one more that I'm missing [...] Off the top

[PHP] Page Refresh

2002-04-23 Thread Crane, Christopher
I use a template page and then split out the middle of the page to do my PHP stuff depending on a variable I pass to it. I have a problem I hope someone can help me on. The template page has a meta refresh in the header set for 60 secs. One of the things this page does is insert data into a MySQL

RE: [PHP] file download in IE

2002-04-23 Thread Rodolfo Gonzalez
On Tue, 23 Apr 2002, .ben wrote: I think this is only an issue with an un-patched IE5.01, anything higher than that should work fine. In my experience, there're problems even with MSIE 6.x. Regards, Rodolfo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] remove last character in a string

2002-04-23 Thread Evan Nemerson
Haha you wouldn't feel that way if you saw some of MY code... ;) On Monday 22 April 2002 20:57 pm, you wrote: Because I'm kinda stupid. :) tyler - Original Message - From: Evan Nemerson [EMAIL PROTECTED] To: Tyler Longren [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday,

[PHP] extracting a html file name

2002-04-23 Thread php
Hello, Anybody have any suggestions on how i could get the test.html from the following: http://www.mydomain.com/member.php/randy/test.html Here is the part that I am having trouble with: the randy is not a directory it is a member name so it can change ie bill, car, jack, moneypower

Re: [PHP] The so-called improvment in PHP 4.2.0

2002-04-23 Thread Erik Price
On Tuesday, April 23, 2002, at 06:48 AM, Rouvas Stathis wrote: This change improves your security, so it'd be rational to be happy about it. No it doesn't. It just provides another excuse for lazy programming. Nothing will save a lazy programmer or one that doesn't understand basic

Re: [PHP] PHP editor for windows

2002-04-23 Thread vania
HTMLEDITOR is very good. I use it and i catch beatifull results. - Original Message - From: .ben [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Monday, April 22, 2002 9:36 AM Subject: [PHP] PHP editor for windows Other than notepad, interdev, ultraedit, etc (which i currently use

Re: [PHP] RE: PHP 4.2.0 Release Announcement

2002-04-23 Thread Rasmus Lerdorf
No, this has not been implemented. I can't think of anything uglier and less sensical than ?php=2? Code should be readable and not misleading. -Rasmus On Tue, 23 Apr 2002, Brinkman, Theodore wrote: Does anybody know if they completed the handling of the 'echo shortcut' to work with all 3

Re: [PHP] dynamic drop down

2002-04-23 Thread Erik Price
On Tuesday, April 23, 2002, at 07:01 AM, Kunal Jhunjhunwala wrote: I am trying to make a drop down list such that, when some one selects an option, it refreshs and displays the option on the same page. There are a couple of things already in the URL [ the query string ], which need to

Re: [PHP] extracting a html file name

2002-04-23 Thread Matt Williams
On Tuesday 23 April 2002 6:59 pm, [EMAIL PROTECTED] wrote: ie bill,  car, jack, moneypower   etc... example http://www.mydomain.com/member.php/moneypower/test.html I have experimented with the php variables that come in , but the only way I could figure out to get test.html out of there

Re: [PHP] Page Refresh

2002-04-23 Thread esivertsen
You could use a SESSION variable called for instance 'SUBMIT_TO_DB'. After submitting to the database, you simply set this variable 'SUBMIT_TO_DB' to 'NO'... The next time the page is reloaded, you won't have to submit one more time to the database, provided you check whether 'SUBMIT_TO_DB' is

Re: [PHP] PHP editor for windows

2002-04-23 Thread esivertsen
There is also one called 'phpbuilder'... Eivind -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How do i upgrade from PHP 4.1.2 to 4.2.0?

2002-04-23 Thread Sebastian A.
What do I have to do to upgrade from PHP 4.1.2 to 4.2.0? Do I just overwrite all the old PHP files with the new ones or must I do something else? Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] extracting a html file name

2002-04-23 Thread Randy Johnson
Matt, Thanks That worked perfectly! I cannot believe I did not think of explode, i have used it before :-) Thanks again, Randy - Original Message - From: Matt Williams [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Dave Sugar [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April

RE: [PHP] dynamic drop down

2002-04-23 Thread Leotta, Natalie (NCI/IMS)
Do you want to submit every time the dropdown changes? If you just want the second dropdown to update and don't want a submit, let me know. I am doing this in one of my programs and I can send you some code if you think it would help. Ex of my program: We want to show populations. There's a

Re: [PHP] How do i upgrade from PHP 4.1.2 to 4.2.0?

2002-04-23 Thread Tyler Longren
Just do it like you're installing new. You don't have to remove the old one, just: ./configure --blah-blah make make install restart apache. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: Sebastian A. [EMAIL PROTECTED] To:

[PHP] Re: How do i upgrade from PHP 4.1.2 to 4.2.0?

2002-04-23 Thread Julio Nobrega Trabalhando
Are you using Windows? That's the one I can give you a tip about :-) Stop the server, overwrite all php files with the new ones, pick up the new php4ts.dll and copy it to your Windows, Windows\System and Windows\System32. Restart the server :-) -- Julio Nobrega. Um dia eu chego lá:

[PHP] Re: extracting a html file name

2002-04-23 Thread Leif Högberg
not exactly sure if what you want is to extract the username or if its the html file at the end but here goes.. To extract the html file you could use basename() ex: $file = basename(http://www.mydomain.com/member.php/randy/test.html;); echo $file; // outputs test.html if you want the

[PHP] Add FTP user via PHP?

2002-04-23 Thread Shane McBride
Is there a way to add an ftp user and assign them to a directory when the host server does not and will not load the ftp module? Shane McBride RDI Technologies www.rditech.net Office: 410-575-6326 Fax:410-575-6327 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] The so-called improvment in PHP 4.2.0

2002-04-23 Thread Miguel Cruz
On Tue, 23 Apr 2002, Rouvas Stathis wrote: Miguel Cruz wrote: On Mon, 22 Apr 2002, Leif K-Brooks wrote: I use $formvar for form processing, I don't use the arrays. This is how I was taught to do it. If my host upgrades to 4.2.0, my website is as good as gone! What am I supposed to do?!

Re: [PHP] Add FTP user via PHP?

2002-04-23 Thread Geoff Hankerson
Could you write the user info to a file and have a cron job parse the file and add them as a user? - Original Message - From: Shane McBride [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 9:43 AM Subject: [PHP] Add FTP user via PHP? Is there a way to

[PHP] Send mail and attachment with php - looking for PHP module

2002-04-23 Thread Krzysztof Kocjan
Hi, I'm looking for PHP module which allows to send mail and attachment both. Is there any one ? Thank You for any suggestions. Krzysztof -- Muzyka dla Twoich uszu... http://link.interia.pl/f15ac -- PHP General Mailing

RE: [PHP] Send mail and attachment with php - looking for PHP module

2002-04-23 Thread Rudolf Visagie
function mail_attachment ($to, $subject, $message, $addr_from, $attachment, $filename) { /* This function sends an e-mail with a file attachment using the standard PHP mail function with parameters $to, $subject and $message. The $attachment parameter is a string

[PHP] MSSQL help w/ auto_increment

2002-04-23 Thread David Orn Johannsson
I’m having a problem wiht creating a db in MSSQL, I’ve only used Mysql be for so I tryed the syntax just the same way. I’m trying to execute this code: create table test ( news_id int not null auto_increment , title varchar(50) not null , ndate varchar(50) not null , headline varchar(150)

Re: [PHP] MSSQL help w/ auto_increment

2002-04-23 Thread Geoff Hankerson
I believe the auto increment field has to be set as the primary key as well. - Original Message - From: David Orn Johannsson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 10:04 AM Subject: [PHP] MSSQL help w/ auto_increment I'm having a problem wiht creating a

RE: [PHP] Page Refresh

2002-04-23 Thread Crane, Christopher
That is my goal to only use only file and I do use a lot of IF statements. I will try this. I have not used the Header() function. I will take a look at it. If you have an example, that would be great. -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April

Re: [PHP] MSSQL help w/ auto_increment

2002-04-23 Thread Miguel Cruz
Unfortunately there is a lot of variation from one RDBMS' SQL implementation to another. Try something like this: create table test ( news_id int identity, title varchar(50), blah blah... miguel - Original Message - From: David Orn Johannsson [EMAIL PROTECTED] To: [EMAIL

[PHP] List, Key, Value oh my.

2002-04-23 Thread John S. Huggins
I have a problem. I am fetching rows from a MySQL table called temp. Each row has four fields: Name, 1, 2 and 3 Then I do this function which will eventually generate records for a lookup table for any skills in the 1, 2 or 3 fields that equal the string YES associated with the Name (right

Re: [PHP] List, Key, Value oh my.

2002-04-23 Thread John S. Huggins
I forgot to show you some output from this thing... ---{0,BLOW, JOE}---Name is BLOW, JOE, Key = 0 | ---{Name,BLOW, JOE}---Name is BLOW, JOE, Key = Name | ---{1,YES}---1 | ---{2,}--- ---{3,YES}---3 | The way I see it, that first line should have not printed because $key is equal to 0 not

[PHP] Re: Interesting Links, can be not PHP

2002-04-23 Thread J Smith
The # is used to point to an anchor on a page. Usually, you need the anchor name after the hash symbol, i.e. http://www.example.com/#anchor. However, in this case, odds are it's a JavaScript thing. In some older browsers, like pre-Netscape 4.7, I believe, when you created a link that had an

Re: [PHP] The so-called improvment in PHP 4.2.0

2002-04-23 Thread Rouvas Stathis
Erik Price wrote: On Tuesday, April 23, 2002, at 06:48 AM, Rouvas Stathis wrote: This change improves your security, so it'd be rational to be happy about it. No it doesn't. It just provides another excuse for lazy programming. Nothing will save a lazy programmer or one that

Re: [PHP] List, Key, Value oh my.

2002-04-23 Thread Miguel Cruz
Amazing things happen when you compare values of different types. The numerical value of Name is zero. Try using === to compare type as well as value. miguel On Tue, 23 Apr 2002, John S. Huggins wrote: I forgot to show you some output from this thing... ---{0,BLOW, JOE}---Name is BLOW,

[PHP] transfering a file from one host to another

2002-04-23 Thread Dave
Is there a way to create a file to a remote host. IE: I have a php script on www.somedomain.com for example - and I want to fill out a form on this php script and make it create a file called index.html on say www.someotherdomain.com for example. I have admin and root access to BOTH domains.

Re: [PHP] List, Key, Value oh my.

2002-04-23 Thread John S. Huggins
The Earth shook, Angles sang, there was much rejoicing. Behold Miguel is correct. === did the trick. It sure is nice to know I am not going nuts. Much thanks. John On Tue, 23 Apr 2002, Miguel Cruz wrote: -Amazing things happen when you compare values of different types. The -numerical

Re: [PHP] The so-called improvment in PHP 4.2.0

2002-04-23 Thread Erik Price
On Tuesday, April 23, 2002, at 11:46 AM, Rouvas Stathis wrote: Preventing namespace pollution...now you convince me. I used the term lazy programming without explaining what I meant, hence the misunderstanding. I refer to lazy programming in the sense of not properly and thoroughly

Re: [PHP] The so-called improvment in PHP 4.2.0

2002-04-23 Thread Rouvas Stathis
Miguel Cruz wrote: On Tue, 23 Apr 2002, Rouvas Stathis wrote: Miguel Cruz wrote: On Mon, 22 Apr 2002, Leif K-Brooks wrote: I use $formvar for form processing, I don't use the arrays. This is how I was taught to do it. If my host upgrades to 4.2.0, my website is as good as gone!

[PHP] If else question

2002-04-23 Thread Jennifer Downey
Hi all, I am wondering. When you use an if else statement and a condition exists isn't the if part suppose to stop? Then if the condition doesn't exist it is suppose to do something else? I am wondering because I have a form that goes something like this. select such and such from the table if

Re: [PHP] If else question

2002-04-23 Thread Miguel Cruz
On Tue, 23 Apr 2002, Jennifer Downey wrote: I am wondering. When you use an if else statement and a condition exists isn't the if part suppose to stop? Then if the condition doesn't exist it is suppose to do something else? I am wondering because I have a form that goes something like this.

RE: [PHP] List, Key, Value oh my.

2002-04-23 Thread Brian Drexler
Wow, I didn't know Angles could sing...:-) Sorry, bad attempt at humor. -Original Message- From: John S. Huggins [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 11:53 AM To: Miguel Cruz Cc: [EMAIL PROTECTED] Subject: Re: [PHP] List, Key, Value oh my. The Earth shook, Angles

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
If and else expect to be followed by exactly 1 statement. To aggregate multiple statements as one, surround them with {curly braces}. I'm guessing you didn't do that, and you're seeing the execution of all but the first of the statements following the else. So it should be: if ($var1)

RE: [PHP] If else question

2002-04-23 Thread Leotta, Natalie (NCI/IMS)
Does it show the message and the form or just the message? -Natalie -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 12:23 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] If else question If and else expect to be followed by exactly 1

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
It shows both. Natalie Leotta [EMAIL PROTECTED] wrote in message 7546CB15C0A1D311BF0D0004AC4C4B0C024ABFC3@SSIMSEXCHNG">news:7546CB15C0A1D311BF0D0004AC4C4B0C024ABFC3@SSIMSEXCHNG... Does it show the message and the form or just the message? -Natalie -Original Message- From: Jennifer

[PHP] Browser cache

2002-04-23 Thread José León Serna
Hello: How could I disable the browser cache?, I have a script that generates an image and shows it via IMG SRC=myimage. The problem is if I change the image, the browser doesn't reflect the changes until I push refresh. I supose is sending a header, but which header? Best Regards.

[PHP] Error connecting to mssql

2002-04-23 Thread David Orn Johannsson
I’m trying to connect to a mssql server but i results a “could not connect to server” error. The server is Win2000 IIS running MSSQL 2000. PHP 4.1.2 Server API CGI mssql config: mssql MSSQL Support enabled Active Persistent Links 0 Active Links 0 Library version 7.0 Directive Local

Re: [PHP] Browser cache

2002-04-23 Thread Rodolfo Gonzalez
http://www.php.net/manual/en/function.header.php RT... M :) On Tue, 23 Apr 2002, José León Serna wrote: Hello: How could I disable the browser cache?, I have a script that generates an image and shows it via IMG SRC=myimage. The problem is if I change the image, the browser doesn't

Re: [PHP] Browser cache

2002-04-23 Thread Stuart Dallas
José León Serna [EMAIL PROTECTED] wrote: Hello: How could I disable the browser cache?, I have a script that generates an image and shows it via IMG SRC=myimage. The problem is if I change the image, the browser doesn't reflect the changes until I push refresh. I supose is sending a

Re: [PHP] Browser cache

2002-04-23 Thread Jennifer Downey
PLEASE TAKE THIS OUT OF MY THREAD. I am trying to get an answer to my question. Not yours. Thank you Jennifer Stuart Dallas [EMAIL PROTECTED] wrote in message 000d01c1eae5$96243450$de01420a@stuart">news:000d01c1eae5$96243450$de01420a@stuart... José León Serna [EMAIL PROTECTED] wrote: Hello:

RE: [PHP] If else question

2002-04-23 Thread Leotta, Natalie (NCI/IMS)
My officemate and I talked about this and the only thing he could come up with was a possible problem with your parser. Are you using a beta version or something unusual? I don't know if you have a way to know this - the programmers didn't set up PHP where I work, but I know our web server is

[PHP] authentication

2002-04-23 Thread Fifield, Mike
I have one directory that is protected with an .htaccess file on my server where I store all member content. What I want to do is have a page where members can log in, and after they have entered there user name and password I what the php script to authenticate them against the .htaccess file.

[PHP] problem compiling Apche 2.0.35 and PHP 4.2.0

2002-04-23 Thread Michael Geier
OS : Redhat 7.1 apache compile option : --prefix=/path --enable-module=so php compile option : --with-apxs2=/path/bin/apxs --enable-force-cgi-redirect --with-pear

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
I just looked at my hosting service thinkg it may have been because they just upgraded to 4.1 php. so I dumped my database and loaded it to my machine at home and find that it does the same thing. I have 4.06 php on win me my hosting service is 4.1 php on redhat linux so I'm thinking that is

Re: [PHP] If else question

2002-04-23 Thread -BD-
Is this a nested if? (inside another if statement?) - Original Message - From: Jennifer Downey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 1:05 PM Subject: Re: [PHP] If else question I just looked at my hosting service thinkg it may have been because they

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
No this is the first if statement but there are nested if's after that. I'd post the code but everyone yells at me about my coding style. If you promise not to yell I will post it. Jennifer -Bd- [EMAIL PROTECTED] wrote in message 001d01c1eae9$d58f4360$[EMAIL

RE: [PHP] Browser cache

2002-04-23 Thread Nathan Cassano
?php header(Cache-Control: no-cache); ? -Original Message- From: José León Serna [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 9:31 AM To: [EMAIL PROTECTED] Subject: [PHP] Browser cache Hello: How could I disable the browser cache?, I have a script that

Fw: [PHP] If else question

2002-04-23 Thread Richard Emery
OK...this has dragged on... Jennifer, show us your ACTUAL code, including database access statements. We can't help you if you expect us to read your mind... - Original Message - From: Jennifer Downey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 12:17 PM

RE: [PHP] authentication

2002-04-23 Thread Maxim Maletsky \(PHPBeginner.com\)
There are several ways to do that, But in your case, I believe the best would be having a page somewhere and include the protected files. Alternativelly look into the Chapter 17. of PHP Documentation: HTTP authentication with PHP http://it2.php.net/manual/en/features.http-auth.php Sincerely,

[PHP] Question and PHP DOMXML and Apache

2002-04-23 Thread Sebastian A.
Have the new DOM XML functions been included in the latest version of PHP (4.2) when I try to use one of the new functions, such as domxml_open_file() I get an error message saying I am calling and undefined function. Has anyone successfully used these new functions with PHP 4.2? My second

RE: [PHP] If else question

2002-04-23 Thread Maxim Maletsky \(PHPBeginner.com\)
Look also at the examples in docs: -- header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);// Date in the past header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); // always modified header(Cache-Control: no-store, no-cache,

RE: [PHP] If else question

2002-04-23 Thread Maxim Maletsky \(PHPBeginner.com\)
Post it, Jennifer, post it - we promise not to yell (ignore the yelling people - they never sleep enough, that is why...) Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -Original Message- From: Jennifer Downey [mailto:[EMAIL

RE: [PHP] Browser Cache

2002-04-23 Thread Maxim Maletsky \(PHPBeginner.com\)
Sorry, that was regarding the browser cache. Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -Original Message- From: Maxim Maletsky (PHPBeginner.com) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 7:44 PM To: 'Richard

RE: [PHP] If else question

2002-04-23 Thread Fifield, Mike
Have you checked the obvious, that the condition of the if statement is actually being met? I mean are you sure that $var is returning greater then 1? -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 11:18 AM To: [EMAIL PROTECTED]

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
Ok you asked for it. Don't say I didn't warn you. session_start(); $query = SELECT name FROM {$config[prefix]}_users WHERE uid={$session[uid]}; $ret = mysql_query($query); while($row = mysql_fetch_array($ret)) { $user = $row['name']; $query = SELECT uid, id, iname, image, quantity, type FROM

RE: [PHP] ASP to PHP

2002-04-23 Thread Maxim Maletsky \(PHPBeginner.com\)
Just try it on. I heard some good reviews about it. And, if the site is not too complex, try estimating the time it would take you to re-create the functionality and compare it to the time you think you would take for debugging. I once had to do this and have choosen rewriting the code ourselves.

RE: [PHP] If else question

2002-04-23 Thread Maxim Maletsky \(PHPBeginner.com\)
OK, here's what I've done from your code. Check the line I mentioned. ? session_start(); $query = SELECT name FROM {$config[prefix]}_users WHERE uid={$session[uid]}; $ret = mysql_query($query); while($row = mysql_fetch_array($ret)) { $user = $row['name'];

  1   2   >