Re: [PHP] Flash / PHP Question

2002-10-26 Thread @ Edwin
Hello, I'm afraid that your question is more of a How can I use Flash MX? question. Maybe you should get a good book about Flash MX or just google for some more other tutorials... - E Stephen [EMAIL PROTECTED] wrote: I'm tyring to follow a DevArticle tutorial on creating a online users

Re: [PHP] PHP installation with MySQL Support

2002-10-25 Thread @ Edwin
Hello, MET [EMAIL PROTECTED] wrote: Where should you point the command --with-mysql to. The binary, header files, what? Currently I have MySQL installed at /usr/lib/mysql/. And this is a RedHat Linux 8.0. Suggestions? Try --with-mysql=/usr - E ...[snip]... -- PHP General Mailing

Re: [PHP] extract($_POST)

2002-10-25 Thread @ Edwin
Hello, Monty [EMAIL PROTECTED] wrote: Okay, I really want to understand how to make $_GET and $_POST more secure because it means changing a fundamental way my scripts are now working. So, it sounds like what I need to do in order to make form data more secure is something like this...

Re: [PHP] Creating Directories

2002-10-25 Thread @ Edwin
Hello, Please check the manual first before posting questions. ;) It seems like you're dealing with files/directories so you may want to read up a bit here: http://www.php.net/manual/en/ref.filesystem.php Stephen [EMAIL PROTECTED] wrote: Thanks again but one more question. How would you

Re: [PHP] Understanding the = operator...

2002-10-25 Thread @ Edwin
Hello, Chris Boget [EMAIL PROTECTED] wrote: Ok, let me see if I have this right: When you do: $var = new myClass(); $var instantiates and holds a copy of myClass. But when you do: $var = new myClass(); $var instantiates and references that instantiation? If so, then I'm

Re: [PHP] PHP on WinXP with Apache

2002-10-25 Thread @ Edwin
Hello, Erich Kolb [EMAIL PROTECTED] wrote: I am trying to install php-4.2.3-Win32 on MS WinXP using apache_2.0.43-win32-x86-no_ssl. I have followed instructions included in the php package only I have changed: LoadModule php4_module C:/php/sapi/php4apache.dll to LoadModule php4_module

Re: [PHP] mkdir and directory permissions

2002-10-25 Thread @ Edwin
Hello, Just a few comments... And no, I'm not Jason :) Monty [EMAIL PROTECTED] wrote: Hi Jason, I have a follow-up question about mkdir. If the files created by mkdir are owned by 'nobody', does that create a security risk for those files? No, not really. If so, how does one get around

Re: [PHP] extract($_POST)

2002-10-25 Thread @ Edwin
Hello, Rick Emery [EMAIL PROTECTED] wrote: Lets say you have a statement like: $query = SELECT * FROM mytable WHERE firstname=$firstname; And if $firstname is set to: xyz; DELETE FROM mytable Then this is executed as: SELECT* FROM mytable WHERE firstname=xyz;DELETE FROM mytable This

Re: [PHP] Problem with set_time_limit() and uploading large files

2002-10-25 Thread @ Edwin
Hello, Just a few ideas... derek fong [EMAIL PROTECTED] wrote: Hi, I am having a major problem getting set_time_limit() to work at all with PHP 4.2.3 running as a CGI program under IIS for Windows 2000 (I originally posted this message to php-win, but am hoping someone here can shed some

Re: [PHP] extract($_POST)

2002-10-25 Thread @ Edwin
True. That's why I said: then you can check whether the value is_numeric() or something. I think this narrows down what you're checking. So, if you send me any value my script would just reject it. Besides, this is just a hint--there are many ways to validate. Of course, you know that... :)

Re: [PHP] HTML file to a $var: Pls Help

2002-10-25 Thread @ Edwin
Hello, Shane [EMAIL PROTECTED] wrote: Any way to plug an entire HTML file into a variable? I looked into file_get_contents() but that was CVS format only. True. But you can make your own. Something like this: --- function file_get_contents($filename) { $fp = @fopen($filename, r); if

Re: [PHP] embedding pdf files in website

2002-10-25 Thread @ Edwin
Hello, Just wondering... danny [EMAIL PROTECTED] wrote: I want my visitor to use the navigation system of my website. (and don't want them to leave my website while reading the pdf documents). Why do you have to turn your text/documents into pdf's in the first place? I Don't like my

Re: [PHP] printing an array

2002-10-24 Thread @ Edwin
Hello, Chris Grigor [EMAIL PROTECTED] wrote: Hey there all Im sure that someone out there can answer this question.. I have a problem, how can I print each element in an array so that is returned into a table? First, make sure that you have your tr/tr's in the proper places. Then, make

Re: [PHP] WYSIWYG HTML Editor

2002-10-15 Thread @ Edwin
Well, maybe not something written in PHP. Java perhaps... - E On Wednesday, October 16, 2002 1:46 AM Chris Boget wrote: I've gone to PHPBuilder and PHPClasses and unless I totally missed something like it (a distinct possiblity :p), does anyone know of (or have) a WYSIWYG HTML editor that

Re: [PHP] Launching a Browser Win with PHP - Is it possible?

2002-10-14 Thread @ Edwin
Hello, Just some ideas... First, I don't think you can pop open a small browser window with PHP--use Javascript. With Javascript you can define the size of the window AND you can make it disappear (after the main browser window refreshes) by using onBlur() then window.close() command. Of

Re: [PHP] Inserting special characters into text fields

2002-10-14 Thread @ Edwin
Hello, On Monday, October 14, 2002 10:44 PM Maxim Maletsky wrote: [snip] ALT key? I don't think so. The only way to type other language's characters is by switch the keyboard layout (ALT-SHIFT, usually) so your keyboard inputs the ASCII mapped to your keys. That's the only way. And,

[PHP] Re: $html_code .= include (filetoinclude.txt);

2002-10-13 Thread @ Edwin
Hello, The function might be available in the next release so you don't have to define your own. http://www.php.net/manual/en/function.file-get-contents.php But until then... - E "Shawn McKenzie" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... function

Re: [PHP] Simple HTML-Form Question

2002-10-13 Thread @ Edwin
Hello, Just for the sake of the argument... On Monday, October 14, 2002 10:44 AM Chip Wiegand wrote: Sascha Cunz wrote this stuff back on Mon, 14 Oct 2002 01:13:53 +0200: This beautifies it (even makes it a bit more secure), but one doesn't need it really; should have worked without

Re: [PHP] Convert comma-delimited file or form into arrays

2002-10-12 Thread @ Edwin
Hello, You can use the fgetcsv() function (for uploaded text files). http://www.php.net/manual/en/function.fgetcsv.php - E On Saturday, October 12, 2002 2:37 AM YC Nyon wrote: I want to convert input data below (either from a webpage form or a uploadedtext file) to a set of arrays. The

Re: [PHP] fgetcsv or other

2002-10-12 Thread @ Edwin
Hello, Just remember that fgetcsv() returns an array. So the first column is $thearray[0]; You can just pass it to the function that generates the image BEFORE you go to the next line of your csv file. Or, am I missing something? - E On Saturday, October 12, 2002 2:05 AM Bryan Koschmann

Re: [PHP] Re: site path

2002-10-11 Thread @ Edwin
/a; And since we got into this, there are some servers where you don't have control over http config, so you shouldn't want to link to directories at all - you'd want to specify the exact file to link to, as in echo a href='$theURL/index.php'Go to some folder/a; Bogdan Edwin wrote: Well, I

Re: [PHP] Object-relational mapping and PHP

2002-10-11 Thread @ Edwin
Hello, Have you tried http://www.phpclasses.org/ ? -E On Friday, October 11, 2002 11:31 PM Subject: [PHP] Object-relational mapping and PHP Juhan Kundla wrote: [snip] I would rather not reinvent the wheel here, so it would be nice, if anybody could share her/his experience or suggest some

Re: [PHP] Re: site path

2002-10-10 Thread @ Edwin
Just a thought... If you're going to write an XHTML compatible code, you wouldn't really have this problem -- echo(A HREF='$my_URLhome'Go home/A); since you'll probably write something like this: echo 'a href=' . $my_URL . 'homeGo home/a'; Of course, I didn't mean that you can't do

Re: [PHP] Re: site path

2002-10-10 Thread @ Edwin
quotes? Bogdan Edwin wrote: Just a thought... If you're going to write an XHTML compatible code, you wouldn't really have this problem -- echo(A HREF='$my_URLhome'Go home/A); since you'll probably write something like this: echo 'a href=' . $my_URL . 'homeGo home

Re: [PHP] Re: site path

2002-10-10 Thread @ Edwin
='$myURL/home'Go home/a; IMHO, the second comes more natural to write, is easier to understand at a glance, is less prone to errors and, well, it's shorter! Bogdan Edwin wrote: Not exactly. Single quotes are fine. I missed the fact that the single quotes here echo(A HREF

Re: [PHP] Sessions and Cookies

2002-10-08 Thread @ Edwin
No. http://www.php.net/manual/en/ref.session.php - E R. Z. wrote: I've just read on MSDN that ASP sessions only work if the client has cookies enabled, Is that true for PHP as well. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] HTTP_USER_AGENT - list of possibilities

2002-10-08 Thread @ Edwin
I'm not aware of any but I'm sure you'll find this interesting: (if you haven't been there yet, at least) http://sourceforge.net/projects/phpsniff/ - E On Wednesday, October 09, 2002 9:20 AM Support @ Fourthrealm.com wrote: Hey everyone... do you know where I can find a list of the common

[PHP] Re: =array within an html table=

2002-10-08 Thread @ Edwin
I think this is more of an HTML problem than a PHP... Put it inside td$here/td (or trtd$here/td/tr whichever you need) and I'm sure the problem will go away. - E "Anthony Ritter" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'd like to have the record data -

Re: [PHP] running slow on Win2k

2002-10-07 Thread @ Edwin
Hello, On Tuesday, October 8, 2002 12:19 AM Support @ Fourthrealm.com wrote: Hi everyone, I notice that my PHP runs really slow on Win2k Server w/ IIS 5, and even slower when accessing a mySQL database. It's a PIII-800 with 256MB RAM. It is otherwise a great machine, and fast. Any

Re: [PHP] running slow on Win2k

2002-10-07 Thread @ Edwin
Peter, On Tuesday, October 8, 2002 12:40 AM Support Fourthrealm.com wrote: Edwin, I have no interest in getting into a Win2K/Linux debate. There are strengths and reasons for using both systems. Of course... Most of the time I code on my Windoze machine. (Besides, I use it most

Re: [PHP] MAIL taking 60 seconds to send... (too long)

2002-10-07 Thread @ Edwin
Hello, Perhaps, a DNS setting problem? - E On Tuesday, October 08, 2002 1:25 AM Negretti, John (CCI-San Diego) wrote: Hello All, I have a script which is using mail() to send an e-mail message. It seems to be working, yet taking as long as 60-65 seconds just to send the e-mail. The e-mail

Re: [PHP] Includes

2002-10-07 Thread @ Edwin
Yes, you can use .htacess for that purpose though you don't need to password protect the folder. I'm sure if you check the archives you'll find a way to do it. Something like this: (Thanks to Justin) http://marc.theaimsgroup.com/?l=php-generalm=103266066416399w=2 - E On Tuesday, October 8,

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread @ Edwin
Yes, I agree, this is an html/css question... but you can try this. Instead of putting your form tags inside the td tags, why not put them outside the table tags like this: form table tr tdinput type=whatever... //td /tr /table /form I think this won't destroy the alignment. Just an

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread @ Edwin
Yes, I agree. Besides, Justin had a similar idea (with yours). But, I was trying to help with the alignment problem--might even be useful somewhere else... ;) - E On Tuesday, October 8, 2002 1:26 PM Thoenen, Peter Mr. EPS wrote: What you want is: [snip] What I dont' understand is why you

[PHP] Re: PHP to Excel (csv)

2002-10-07 Thread @ Edwin
Perhaps, you can take them off then? I think you can use str_replace() to replace them with "". - E "Ivo Stoykov" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi I have following problem. Some data retreived from mysql db I need to send to the user as a

[PHP] Re: Using date() function

2002-10-06 Thread @ Edwin
Hello, Why not just do it in your sql query? If you're using MySQL perhaps this page would be helpful: http://www.mysql.com/doc/en/Date_and_time_functions.html Just an idea... - E On Sunday, October 6, 2002 10:01 PM Davy Obdam wrote: Hi people I have a guestbook, and i need to

[PHP] Re: Can it be Done?

2002-10-06 Thread @ Edwin
'Not really sure, but perhaps, with Javascript. But I'd rather recommend you to give up iframes... ;) - E On Monday, October 7, 2002 1:29 AM Stephen wrote: Hello, I was wondering if what I want to do is possible. I have a website that uses iframes and sometimes the search engines pick up

[PHP] Re: Can it be Done?

2002-10-06 Thread @ Edwin
Hello, Adriano wrote: Hi people, @ Edwin wrore: 'Not really sure, but perhaps, with Javascript. But I'd rather recommend you to give up iframes... ;) Can you post an example of Javascript code checking for _parent frame? I think you already got this working... however, what

Re: [PHP] Looping?

2002-10-05 Thread @ Edwin
Actually, there *is* (mysql_numrows). I think you've missed this one. ;) http://www.php.net/manual/en/printwn/aliases.php - E On Saturday, October 05, 2002 11:40 PM Subject: Re: [PHP] Looping? Marek Kilimajer wrote: Just checked the manual and there are no functions named *mysql_numrows*

[PHP] Re: ええと

2002-10-04 Thread @ Edwin
Not that this is relevant but... "解読する"(kaidoku suru) means "to decipher" or "to decode". So, perhaps, the person who posted the message was just wondering how will the ml figure out what the message was. Or, ... (I don't really know... there's a Japanese ml so the post must be a

Re: [PHP] $_SESSION only takes 1 character?

2002-10-01 Thread @ Edwin
Hello, On Tuesday, October 01, 2002 11:13 PM Subject: [PHP] $_SESSION only takes 1 character? Tim Stoop wrote: Hi there, I've got some strange behaviour here (at least, I can't explain it). I'm running PHP 4.2.3 on a Mandrake 9.0 machine. I'm using sessions in my little app and want to use

Re: [PHP] Newbie Q: Any difference what the .ext is on include() files???

2002-09-30 Thread @ Edwin
Hello, On Monday, September 30, 2002 4:32 PM Subject: Re: [PHP] Newbie Q: Any difference what the .ext is on include() files??? [ Rene Brehmer ] wrote: I appreciate your advice, but it would not really apply to my structure ... because of the amount of files I use, I've got seperate include

[PHP] Re: general apache list

2002-09-30 Thread @ Edwin
Lots of ways. Perhaps, 1. You can try finding one on the Apache website. ;) 2. Try Google. Or, 3. You can try here: http://httpd.apache.org/userslist.html - E "Electroteque" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... where can i find it ? -- PHP

[PHP] Re: general apache list

2002-09-30 Thread @ Edwin
...I mean lot of "places"... :) - E "@ Edwin" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Lots of ways. Perhaps, 1. You can try finding one on the Apache website. ;) 2. Try Google. Or, 3. You can try here: http://httpd.apa

[PHP] Re: PHP and MSSQL Problem

2002-09-28 Thread @ Edwin
Hello, ...just wondering... Are you sure VARCHAR in MS SQL can handle 5000? Should be 255 only? (I'm not really familiar with MS SQL but you can count the number of characters returned by php...) - E "Christopher J. Crane" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] where's waldo

2002-09-28 Thread @ Edwin
distribution. more for a class. "@ Edwin" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Well, I didn't really mean to imply anything about people's honesty and so forth... I just wanted to say that validating (anything) on the

Re: [PHP] Multiple Domains in cookie?

2002-09-28 Thread @ Edwin
You mean from this list? Please take a loot at the end of this e-mail... - E On Thursday, July 27, 2000 11:36 AM Saif wrote: Please how can I unsubscribe . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] where's waldo

2002-09-27 Thread @ Edwin
like to give people credit for being more honest than that. "@ Edwin" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... True. Perhaps. But, I think, you can actually do something like that WITH php. Say PHP+Flash or PHP+Javascript... Of

[PHP] Re: length function

2002-09-26 Thread @ Edwin
Why, can't you just use strlen()? http://www.php.net/manual/en/function.strlen.php Or, am I missing something? - E "Jeff Bluemel" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am looking for a function that will give me the number of characters of a

[PHP] Re: length function

2002-09-26 Thread @ Edwin
Why, can't you just use strlen()? http://www.php.net/manual/en/function.strlen.php Or, am I missing something? - E "Jeff Bluemel" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am looking for a function that will give me the number of characters of a

[PHP] Re: length function

2002-09-26 Thread @ Edwin
Why, can't you just use strlen()? http://www.php.net/manual/en/function.strlen.php Or, am I missing something? - E "Jeff Bluemel" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am looking for a function that will give me the number of characters of a

Re: [PHP] length function

2002-09-26 Thread @ Edwin
Why, can't you just use strlen()? http://www.php.net/manual/en/function.strlen.php Or, am I missing something? - E "Jeff Bluemel" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am looking for a function that will give me the number of characters of a

Re: [PHP] where's waldo

2002-09-25 Thread @ Edwin
True. Perhaps. But, I think, you can actually do something like that WITH php. Say PHP+Flash or PHP+Javascript... Of course, if you're able to do something like this just by using PHP+Javascript (and HTML only), most probably, you can just take a peek at the code and find out where waldo is...

Re: [PHP] where's waldo

2002-09-25 Thread @ Edwin
Good idea! And your idea about this is also great: input type="image" src="myimage.xxx" name="thename" / It should work... I forgot that there was someting like that in HTML... :) - E On Thursday, September 26, 2002 12:55 AM Subject: RE: [PHP] where's waldo Kevin Porter wrote: snip One

Re: [PHP] file uploads problem

2002-09-24 Thread @ Edwin
Just a comment... On Tuesday, September 24, 2002 1:39 PM Jaski wrote: snip I tried to copy this file using move_uploaded_file($userfile, "/place/to/put/uploaded/file"); and here a strange thing happened. The file was successfully copied BUT it had permissions like -rw-- which I interpret

Re: Re: [PHP] file uploads problem

2002-09-24 Thread @ Edwin
Jaski, On Tuesday, September 24, 2002 5:07 PM Jaski wrote: No Edwin .. I can't do any thing to that file .. not even from my ftp client .. can't download can't change permissions .. I think you won't be able to do anything with the file IF you use your ftp client. The reason is because *you

Re: Re: [PHP] file uploads problem

2002-09-24 Thread @ Edwin
Oops, what I wanted to post was http://www.php.net/manual/en/function.chmod.php and not http://www.php.net/manual/en/function.chown.php - E On Tuesday, September 24, 2002 6:00 PM @ Edwin wrote: Jaski, On Tuesday, September 24, 2002 5:07 PM Jaski wrote: No Edwin .. I can't do any

Re: [PHP] Best Practice

2002-09-21 Thread @ Edwin
Hi there, On Sunday, September 22, 2002 12:20 PM Subject: Re: [PHP] Best Practice Peter J. Schoenster wrote: snip On 21 Sep 2002 at 12:51, Ashley M. Kirchner wrote: I'm working on converting several static (price) pages on our site into dynamic pages, with the data stored in an

Re: [PHP] Design question.

2002-09-21 Thread @ Edwin
(Sorry if I've already sent this.) I agree. But, I don't really see any problem having *.inc files as *.inc.php (so that they'll be executed by Apache) esp. IF the config file have only this: (Even if this is executed nothing shows up...) ?php $my_super_user = 'blahblah';

[PHP] Re: POST form variables not being sent to destination page

2002-09-09 Thread @ Edwin
Hi there, I don't really see any "serious" problem in your code except that your opening body tag is in the wrong place :). Since I don't have php/apache running on my XP I cannot really tell if this is an installation problem. Anyway, I have php/apache (4.2.2/1.3.26) on Linux and

Re: [PHP] POST form variables not being sent to destination page

2002-09-09 Thread @ Edwin
Hi there, I don't really see any "serious" problem in your code except that your opening body tag is in the wrong place :). Since I don't have php/apache running on my XP I cannot really tell if this is an installation problem. Anyway, I have php/apache (4.2.2/1.3.26) on Linux and

Re: [PHP] Session problem

2002-09-09 Thread @ Edwin
I think this one worked because if($count ==1){ $user_data = mysql_fetch_row($user_res); $user_id = $user_data[0]; // --- of this if(!session_is_registered(user_id)) session_register(user_id); if(!session_is_registered(username))

Re: [PHP] help with installation

2002-09-09 Thread @ Edwin
Of course, you restarted Apache? Also, try leaving this out --- IfDefine PHP4/IfDefine and just write LoadModule php4_moduleextramodules/libphp4.so (Applies to AddModule as well...) And make sure that the extramodules folder does exists! - E On Monday, September 09, 2002 11:43 PM

Re: [PHP] BUG?: header(location: ) causes GET vars to be encoded in wrong charset in IE5.5

2002-09-09 Thread @ Edwin
Hello, On Tuesday, September 10, 2002 1:52 PM Jean-Christian Imbeault wrote: snip The problem is that the POST variables are coming in EUC-JP (japanese) correctly but for some reason IE re-encodes the variable into some other charset (SJIS I am guessing) when requesting the new page sent in

Re: [PHP] BUG?: header(location: ) causes GET vars to be encoded in wrong charset in IE5.5

2002-09-09 Thread @ Edwin
And by the way, please check the NOTE: on http://jp2.php.net/manual/en/function.header.php for the use of header(). Something's missing in the way you used it--perhaps, this is causing the problem... - E quoted Note: HTTP/1.1 requires an absolute URI as argument to Location: including the

[PHP] Re: file include relative file addressing.

2002-09-08 Thread @ Edwin
??? I thought you said "my.inc.php" but you're including "my.php". This one should work: include_once "../include/blah/my.inc.php"; // filename is my.inc.php - E "Nelr" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... From the root of a website: / I had a

[PHP] Re: file include relative file addressing.

2002-09-08 Thread @ Edwin
??? I thought you said "my.inc.php" but you're including "my.php". This one should work: include_once "../include/blah/my.inc.php"; // filename is my.inc.php - E "Nelr" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... From the root of a website: / I had a

[PHP] Re: file include relative file addressing.

2002-09-08 Thread @ Edwin
??? I thought you said "my.inc.php" but you're including "my.php". This one should work: include_once "../include/blah/my.inc.php"; // filename is my.inc.php - E "Nelr" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... From the root of a website: / I had a

Re: [PHP] contact list re-ordering (php/mySQL CMS design)

2002-09-07 Thread @ Edwin
I'm not sure if what you mean is something like this: Say, you have a table with 2 columns (1) id and (2) contact. And your table is populated in this way: id contact 1 a 2 b 3 c 4 d 5 e And, let's say that your id is auto_incremented. Also, the contacts are shown ORDER BY

Re: [PHP] Re: alter switch variable inside case?

2002-09-01 Thread @ Edwin
I'm not sure if you've already tried the idea I posted earlier. Anyway, I tried it myself and it works! (At least with this simple example...) !-- whatevername.php -- ?php echo 'myvar BEFORE the switch : ' . $_GET['myvar']; echo 'hr /'; switch ($_GET['myvar']){ case 1: $_GET['myvar'] =

Re: [PHP] Safe mode? newbie alert!

2002-09-01 Thread @ Edwin
Try the "mothership" again and type php and "safe mode" Click "Search". The first two results: http://www.dynamic-webpages.de/php/features.safe-mode.php http://info.ccone.at/INFO/PHP4/features.safe-mode.html You can read only ONE so as not to get more confused... :) - E PS Of course,

Re: [PHP] Dumb Question

2002-08-31 Thread @ Edwin
My "dumb" answer :) Try Google. Type: "procedural code" You might want to check, "object-oriented" as well... I'm sure, you'll find helpful explanations... - E And I feel foolish asking... What is meant by 'procedural code' ??? -- Gerard Samuel http://www.trini0.org:81/

Re: [PHP] alter switch variable inside case?

2002-08-31 Thread @ Edwin
Actually, you can--just don't "break;". Try it. - E I'd like to be able to modify the switch variable inside a case statement, like this: switch ($foo) { case 'step2': do_step2(); if ($error) $foo='step1'; //repeat step1 break; case 'step1': do_step1(); break;

Re: [PHP] alter switch variable inside case?

2002-08-31 Thread @ Edwin
noring any subsequent case statements. In my example, eliminating the break after step2 would cause execution of do_step1(), but also do_something_else(), which is not desired. --- "@ Edwin" [EMAIL PROTECTED] wrote: Actually, you can--just don't "break;". Try it.

Re: [PHP] Dumb Question

2002-08-31 Thread @ Edwin
ich it seems like its not :( Thanks :) @ Edwin wrote: My "dumb" answer :) Try Google. Type: "procedural code" You might want to check, "object-oriented" as well... I'm sure, you'll find helpful explanations... - E

Re: [PHP] alter switch variable inside case?

2002-08-31 Thread @ Edwin
if do_a fails, since it exits the switch statement upon seeing a break. if I remove the break after do_a, it will execute do_a and do_b -- bad. what we really want is for it to execute do_a and if do_a returns false, print_menu. Joe --- "@ Edwin" [EMAIL PROTECTED] wrote: Well, you don't

Re: [PHP] Re: Reading from a file using fgets()

2002-08-30 Thread @ Edwin
anything about whether or not it reads data sequentially from top to bottom or if there's an option to read bottom to top or anything in between. Dave On Thu, 2002-08-29 at 22:37, @ Edwin wrote: Or, is it? :) http://www.php.net/manual/en/function.file.php - E Interesting. It's

Re: [PHP] sprintf() question

2002-08-29 Thread @ Edwin
Experiment a bit and I'm sure you'll find it easy. One example, change this portion $formatted = sprintf("%01.2f", $money); to $formatted = sprintf("%01.3f", $money); then see how it works... ?php $money1 = 68.75; $money2 = 54.35; $money = $money1 + $money2; echo "This is money:

Re: [PHP] Print page

2002-08-29 Thread @ Edwin
Hi, I'm using PHP to generate some report for printing. But when I print report from IE 5.0 browser, in the bottom of page IE prints URL of page. Can I remove it ? Yes. Click on "File" - "Page settings..." then find "Footer" and you'll see something like this: ubd Take away the "u", print

RE: [PHP] Building a query on multiple variables, how to test for which variable

2002-08-29 Thread @ Edwin
Does this fit your idea of a "more elegant solution"? This is just an enhanced and tested version of the one I posted earlier (somehow I had time and was curious about it). ?php if (isset($_POST['var'])){ // if POSTed // initial query // make sure "WHERE" not included when none is

Re: [PHP] subject in big5 characters of an email can't be read in Lotus Notes

2002-08-29 Thread @ Edwin
I'm not sure if this will help but using mb_send_mail() instead of mail() solved the problems I had with Japanese characters... However, it might be the mail client itself. Check if they had no problem before (when they received similar e-mails from other sources). - E I have sent an email

Re: [PHP] Average Number For Math Functions

2002-08-29 Thread @ Edwin
I am still very new to PHP so things are still a little foreign to me - what exactly is the SUM finction - I tried to locate one on both the PHP and MySQL site but found nothing! http://www.mysql.com/doc/en/Group_by_functions.html#IDX1364 Well, it's close to "nothing" but if you study how

Re: [PHP] Re: Reading from a file using fgets()

2002-08-29 Thread @ Edwin
Or, is it? :) http://www.php.net/manual/en/function.file.php - E Interesting. It's not documented. On Thu, 2002-08-29 at 14:44, Dallas Thunder wrote: Well, this is exactly what function file() does. "David Christensen" [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] using variable ..help

2002-08-28 Thread @ Edwin
I want my tr bgcolor display with one by one like this below tr bgcolor="#E8D0E8" td/td /tr tr bgcolor="#F8EFF8" td/td /tr Try this: /* -- from here -- */ ?php $mycolor = array("#E8D0E8", "#F8EFF8"); echo "table\n"; foreach ($mycolor as $value) { echo "tr

Re: [PHP] Re: No Localhost with apache?

2002-08-28 Thread @ Edwin
Actually, the same thing happens if the ServerName directive was not set. But anyway, even if the default page doesn't show up, http://localhost/some.php would still work... - E --- "Ryan A" [EMAIL PROTECTED] wrote in message

Re: [PHP] Re: No Localhost with apache?

2002-08-28 Thread @ Edwin
forapache still only responds to 127.0.0.1 Any new ideas? Maybe you should ask the Apache ml... Cheers, -Ryan - Original Message - From: "@ Edwin" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, August 28, 2002 7:00 PM Subject: Re: [PHP

Re: [PHP] Building a query on multiple variables, how to test for which variable

2002-08-28 Thread @ Edwin
There must be a better way how to do it but this is what I would do: (Not tested--just the "idea"...) Instead of $var1, $var2... I'd use an array for the drop downs thus, $var[] $var[] $var[] $var[] Then, check if any is set, then... anyway, this is how it goes: // from here

Re: [PHP] PHP: User Authentication Script

2002-08-27 Thread @ Edwin
You can insert the line at the very end of your httpd.conf file... I'm sure you can find more info here... http://www.php.net/manual/en/install.windows.php - E Thank you for the reply Farianto. Exactly where in the httpd.conf file should I insert that line? If you could copy and paste

Re: [PHP] move_uploaded_file problem

2002-08-27 Thread @ Edwin
There could be a lot of different reasons why. Check the manual again (esp. the user's comments). I'm sure you'll find a lot of ideas. http://www.php.net/manual/en/features.file-upload.php Also, this has been discussed many times recently. I'm sure you'll find a lot too in the archives. :)

Re: [PHP] Problems with the safe mode...

2002-08-26 Thread @ Edwin
I'm not sure but... Check your httpd.conf and see if you're running Apache as "Group -1". Change this to "nobody" or better yet make a new user/group (like apache/apache for example) for your Apache and change the lines- User nobody Group -1 to User apache Group apache Then,

Re: [PHP] newbie... - undefined var

2002-08-26 Thread @ Edwin
Or, perhaps, you should do: (if register_globals off) if (!isset($_GET['vw'])){ echo "variable is not set"; } Of course, you can also do: (if you want to--for some reason) if ($_GET['vw'] == ""){ write this code } - E PS Do all vars in PHP have to be defined first? No.

Re: [PHP] Re: Blank db entry??

2002-08-26 Thread @ Edwin
I think you can use this: http://www.php.net/manual/en/function.mysql-num-rows.php - E Forgot to add one thing - I don't need to add the new number after detection to the db but rather just print it out "Johnp" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] Call to undefined function mysql_connect()

2002-08-25 Thread @ Edwin
Help! I am getting the following error message for : ? $link=mysql_connect("localhost","$user","$pass"); // line 34 ? Fatal error: Call to undefined function: mysql_connect() in /home/www/test.somename.org/aux/db-mod.php on line 34 I have used this call successfully on php v4.0.6, and am

Re: [PHP] Re: Can someone - anyone see my error?

2002-08-25 Thread @ Edwin
Just curious... Have you tried it with POSTed variables? As in the case mentioned? Just wondering... Anyway, I'll try it myself later... - E using register_globals=on and trying to echo out the $5400 errors as expected, but php sees the correct entry in the $_GET superglobal array as it

Re: [PHP] Base64 and MS Word cutting and pasting.

2002-08-25 Thread @ Edwin
isolated the problem with MS Word and MS Wordpad; The problem does not occur when pasting from Notepad. I want to make sure that all the text is ASCII before converting to MIME encoding. This shoul alleviate the problems that are occuring. Thanks, /dkm - Original Message - From: "

Re: [PHP] phpMyAdmin

2002-08-21 Thread @ Edwin
All depends on your host and how phpMyAdmin was configured. It's better to ask them directly... - E Is it possible to use phpMyAdmin to add new databases (not tables whole databases) to my website? I ask because currently my host has provided me with one database and I don't want to mix

Re: [PHP] PHP Site Mirror

2002-08-21 Thread @ Edwin
Try this Jay, http://us.php.net/mirrors.php (A mirror PLUS a list of mirrors...) - E Can someone give me a URL for a php.net mirror? I am having trouble with access... Thanks! Jay *** * Texas PHP Developers Conf Spring 2003

Re: [PHP] mail and attachments

2002-08-19 Thread @ Edwin
Also, somebody has already posted (2 weeks ago?) a similar or related question. I think, the answers given also apply to this question as well. - E If you mean that you want to add attachments to emails it is possible of course... Try Phpmailer... I recommend you to print out a copy of this

Re: [PHP] Apache 2.0 and PHP

2002-08-19 Thread @ Edwin
Would I be able to install it along side 1.3 and run it on a separate port? I know some who installed two 1.3s in two different folders, run two different daemons, in two different ports. I think it should work with 1.3 and 2.0 as well... - E Cheers John Wards SportNetwork.net -- PHP

RE: [PHP] Old PHP files not working

2002-08-19 Thread @ Edwin
It seems like if you "turn on" register_globals in php.ini, everything might just work... but, it's strange because you said that if you type everything exactly as they were in the new server everything works! Strange... Anyway, why not try it this way. Don't turn register_globals on (you

<    1   2   3   4   5   6   >