[PHP] pg_result_seek() weirdness

2003-02-03 Thread Shot
Hello. I have a problem with the newly introduced pg_result_seek() function. Until PHP 4.3.0, when I had to iterate through one pg_query result many times, I used the for loop: $result = pg_query($db, $query); // some outside loop while ($whatever) { for ($i = 0; $i pg_num_rows($result);

[PHP] POST with PHP -- please help !

2003-02-03 Thread arthur.chereau
I need to redirect the browser to an external website and to automatically send POST data to the site, without a form. Basically I need header(Location: ...) - that is true redirection - with POST. How can I do this with PHP ? -- Faites un

Re: [PHP] POST_with_PHP_--_please_help_!

2003-02-03 Thread olinux
You can do posts with curl http://www.php.net/manual/en/ref.curl.php olinux --- arthur.chereau [EMAIL PROTECTED] wrote: I need to redirect the browser to an external website and to automatically send POST data to the site, without a form. Basically I need header(Location: ...) - that is

[PHP] mktime with Feb or Jan ..

2003-02-03 Thread Torsten Rosenberger
Hello I parse the apache logfile and get a date format like this [03/Feb/2003:09:22:50 +0100] OK i split it with preg_match and the result is Array ( [0] = 03 [1] = Feb [2] = 2003 [3] = 09 [4] = 22 [5] = 50 ) Now I'd like to convert it in a timestamp with

[PHP] file copy

2003-02-03 Thread Cenk Uysal
hi, how can i copy a file from web to my local disk? http://www.xxx.com/xxx.gif i try to get xxx.gif to my local disk... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] relayed mail question

2003-02-03 Thread WMB
Situation: 1) have a website with www.widexs.nl called www.webwabwob.nl 2) have a domainname with www.bulkregister.com and basicDNS service 3) have configured basicDNSservice of bulkregister to transfer to www.webwabwob.nl Problem: All mail send to specific addressee ( [EMAIL PROTECTED] ) is

Re: [PHP] + in filenames

2003-02-03 Thread Marek Kilimajer
That double quote is escaped [EMAIL PROTECTED] wrote: On Fri, 31 Jan 2003, Marek Kilimajer wrote: I use this: $name=strtr( $name, ?*#$%^:+=/\, __); I'm hoping that double quote was a typo?? Ed -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Listbox variable

2003-02-03 Thread Marek Kilimajer
Are you using $_POST superglobal? You should use $_POST['CategoryName'] in findbycategory.php Denis L. Menezes wrote: Hello friends. I have the following code : The code works fine and the listbox is populated. But when I select a category and press the Search button, the variable

Re: [PHP] Directory size

2003-02-03 Thread Marek Kilimajer
there is no php function for this, you can use unix command du or do it in a loop Antti wrote: How do I get the directory size? Suppose there is a function for this. antti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] safe mode problem

2003-02-03 Thread Marek Kilimajer
what you did should work (you must be root to change owner). You can use -R switch to change owner recursively Gurvinder Singh wrote: hi i create a php page dynamically in my php script. this page include one of my other php file. when i run the newly created script i get this error Warning:

Re: [PHP] POST_with_PHP_--_please_help_!

2003-02-03 Thread arthur.chereau
That's right, but with curl it's not a true redirection: you just print the content of the target page, you don't redirect to the page. What I need is automated forms, that send the same data as forms but without user interaction. I can't use javascript to automatically send a form.

[PHP] arrays;session variable; empty variable

2003-02-03 Thread André Rosendaal
Hi, I have spend several hours on the following issue, and I can't figure out what I am doing wrong. Consider the next function: function CreateFileForRealPlayer () { global $playlist; $filename = $playlist[0]['url']; header(Content-Type: audio/x-pn-realaudio;); echo ($filename); }

[PHP] Re: relayed mail question

2003-02-03 Thread Manuel Lemos
Hello, On 02/03/2003 07:57 AM, Wmb wrote: [EMAIL PROTECTED]: Name service error for MAIL.rtinsmetsers.com: Host not found Because there is no DNS record for the domain MAIL.rtinsmetsers.com . -- Regards, Manuel Lemos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] safe mode problem

2003-02-03 Thread Chris Hayes
At 11:39 3-2-03, you wrote: what you did should work (you must be root to change owner). You can use -R switch to change owner recursively Gurvinder Singh wrote: hi i create a php page dynamically in my php script. this page include one of my other php file. when i run the newly created script

[PHP] Re: how to write clean code.

2003-02-03 Thread David Eisenhart
Another template engine you could consider is Smarty http://smarty.php.net/. One can write very elegant code using such an templating system david it is also good idea to separate html from the code, for instance by using some template engine. rush -- PHP General Mailing List

[PHP] exclude some results with mysql

2003-02-03 Thread Clement Noterdaem
what's wrong in this SQL line?? SELECT name FROM users WHERE email'[EMAIL PROTECTED]' (...) I want every names, except people with an email @domaine.com... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] exclude some results with mysql

2003-02-03 Thread Negrea Mihai
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 use like SELECT name FROM users WHERE email not like '[EMAIL PROTECTED]' On Monday 03 February 2003 13:05, Clement Noterdaem wrote: what's wrong in this SQL line?? SELECT name FROM users WHERE email'[EMAIL PROTECTED]' (...) I want every names,

Re: [PHP] POST_with_PHP_--_please_help_!

2003-02-03 Thread Marek Kilimajer
no way without javascript arthur.chereau wrote: That's right, but with curl it's not a true redirection: you just print the content of the target page, you don't redirect to the page. What I need is automated forms, that send the same data as forms but without user interaction. I can't use

Re: [PHP] file copy

2003-02-03 Thread Maxim Maletsky
You must change the headers for the file so it is being downloaded. Something like this: header('Content-Type: GIF'); // not sure of this one header('Content-Length: ' . filesize('file.gif'));

Re: [PHP] mktime with Feb or Jan ..

2003-02-03 Thread Maxim Maletsky
readon about strtotime() function www.php.net/strtotime you might not even need to preg_match() it -- Maxim Maletsky [EMAIL PROTECTED] Torsten Rosenberger [EMAIL PROTECTED] wrote... : Hello I parse the apache logfile and get a date format like this [03/Feb/2003:09:22:50 +0100]

php-general Digest 3 Feb 2003 13:19:58 -0000 Issue 1861

2003-02-03 Thread php-general-digest-help
php-general Digest 3 Feb 2003 13:19:58 - Issue 1861 Topics (messages 134069 through 134105): Graphic Pie Charts 134069 by: Vernon 134073 by: Andrew Brampton 134083 by: michael kimsal Re: Date and time problem 134070 by: Tom Rogers 134074 by: Larry E.

Re: [PHP] Re: MySQL/PHP Associative Array Insert

2003-02-03 Thread michael kimsal
Chris Shiflett wrote: --- Cditty [EMAIL PROTECTED] wrote: A co-worker is teaching me to move to the next level in php. I have started using associative arrays for my scripts, but I am having a problem using them to do an insert into MySQL. Can someone give me an example of how to do an insert

RE: [PHP] Sorting multidimensional arrays..

2003-02-03 Thread Ford, Mike [LSS]
-Original Message- From: Chad Day [mailto:[EMAIL PROTECTED]] Sent: 30 January 2003 19:29 I'm struggling with array_multisort, was hoping someone could give me some help. I have a multidim array, such as: $myarray[0][FIRSTNAME] = JOE $myarray[1][FIRSTNAME] = TIM

Re: [PHP] Text size in image

2003-02-03 Thread Brian V Bonini
On Sun, 2003-02-02 at 20:50, Tom Rogers wrote: Hi, Monday, February 3, 2003, 8:24:00 AM, you wrote: BVB When creating an image using the image functions how do you control the BVB type face size? If you are using imagestring() the size is determined by the font number (1 - 5) for

Re: [PHP] Text size in image

2003-02-03 Thread V Bonini (gfx-Design)
On Mon, 2003-02-03 at 08:51, Brian V Bonini wrote: On Sun, 2003-02-02 at 20:50, Tom Rogers wrote: never mind, I got it, I needed to specify a full path to the font file. Hi, Monday, February 3, 2003, 8:24:00 AM, you wrote: BVB When creating an image using the image functions how do you

[PHP] PHP Framework

2003-02-03 Thread karthikeyan.balasubramanian
Hi All, I finally decided to upgrade my PHP. Just want to know your thoughts on which Framework is the best with a clear seperation of content from presentation. Please let me know which do you think is the best and why? Have a great day. Karthikeyan. -- PHP General Mailing List

Re: [PHP] mktime with Feb or Jan ..

2003-02-03 Thread 1LT John W. Holmes
I parse the apache logfile and get a date format like this [03/Feb/2003:09:22:50 +0100] OK i split it with preg_match and the result is Array ( [0] = 03 [1] = Feb [2] = 2003 [3] = 09 [4] = 22 [5] = 50 ) Now I'd like to convert it in a timestamp with mktime

Re: [PHP] Delete Related Table

2003-02-03 Thread 1LT John W. Holmes
i need delete two related table from mysql database, but i am found and error.. this following my sql language : DELETE FROM X INNER JOIN Y ON X.ID = Y.ID WHERE Y.No = 144; i found an error in INNER JOIN syntax.. but i have successfully displaying 2 Related table in SELECT syntax.. my

[PHP] Re: PHP Framework

2003-02-03 Thread rush
Karthikeyan.Balasubramanian [EMAIL PROTECTED] wrote in message 024e01c2cb8c$bc54cfd0$[EMAIL PROTECTED]">news:024e01c2cb8c$bc54cfd0$[EMAIL PROTECTED]... I finally decided to upgrade my PHP. Just want to know your thoughts on which Framework is the best with a clear seperation of content from

Re: [PHP] + in filenames

2003-02-03 Thread ed
I'll be the first to admit I was wrong and missed that. This will work out great for me. I'm writting scripts for Realtors to upload photos to us via the web and you can only imagine what these people will include in a filename. Ed On Mon, 3 Feb 2003, Marek Kilimajer wrote: That double

[PHP] How to compare 2 strings

2003-02-03 Thread Roman Duriancik
How to compare 2 strings in PHP I hawe 2 array where I have only string values some values in both arrays are same but if command don't send me a good result. e.g foreach ($array1 as $a1) { foreach($array2 as $a2){ if ($a1 == $a2) echo good; //never system send me a good result else

Re: [PHP] Help with include path

2003-02-03 Thread Knut H. Hassel Nielsen
On Sun, 2 Feb 2003, César Aracena wrote: Hi all, I'm sorry for this re-post, but I do need help with this URGENT... I just finished loading the OS to my PC once again, installed and configured IIS and then installed PHP 4 but now, every page I try to open tells me: Failed opening

Re: [PHP] PHP Framework

2003-02-03 Thread John Wards
On Monday 03 Feb 2003 2:01 pm, karthikeyan.balasubramanian wrote: Hi All, I finally decided to upgrade my PHP. Just want to know your thoughts on which Framework is the best with a clear seperation of content from presentation. Please let me know which do you think is the best and why?

RE: [PHP] How to compare 2 strings

2003-02-03 Thread Matt Schroebel
-Original Message- From: Roman Duriancik [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 9:31 AM Subject: [PHP] How to compare 2 strings How to compare 2 strings in PHP I hawe 2 array where I have only string values some values in both arrays are same but if

Re: [PHP] How to compare 2 strings

2003-02-03 Thread 1LT John W. Holmes
How to compare 2 strings in PHP I hawe 2 array where I have only string values some values in both arrays are same but if command don't send me a good result. e.g foreach ($array1 as $a1) { foreach($array2 as $a2){ if ($a1 == $a2) echo good; //never system send me a good result

[PHP] Html forms

2003-02-03 Thread Todd Barr
I am having difficulty putting results into an form Once the query runs, I have this for my output print Input type=text name=foo value=; print $Foo; print ; This results in an HTML error being apache finds an error AFTER the /html tag Any ideas?

Re: [PHP] PHP Framework

2003-02-03 Thread Danny Shepherd
Well, Yahoo! have moved/are moving to Smarty and they get a few million views a day. The killer part with smarty is that it converts the Smarty tags, in your template, to real PHP code - that's what makes it so fast. It's also very easy to extend. Danny. - Original Message - From: John

Re: [PHP] Html forms

2003-02-03 Thread 1LT John W. Holmes
What is the error message you get? ---John Holmes... - Original Message - From: Todd Barr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 03, 2003 9:59 AM Subject: [PHP] Html forms I am having difficulty putting results into an form Once the query runs, I have this for

Re: [PHP] Html forms

2003-02-03 Thread Todd Barr
Parse error: parse error in C:\apache\htdocs\tsadbatest.php on line 148 Its the line after the html ends - Original Message - From: 1LT John W. Holmes [EMAIL PROTECTED] To: Todd Barr [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 03, 2003 9:59 AM Subject: Re: [PHP] Html

Re: [PHP] Html forms

2003-02-03 Thread 1LT John W. Holmes
Parse error: parse error in C:\apache\htdocs\tsadbatest.php on line 148 Its the line after the html ends Almost always means you forgot a closing brace somewhere. Count up your { and } and make sure they match. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Securing php files on shared servers

2003-02-03 Thread Hardik Doshi
Hi everyone, I found the same problem regarding security issue with database password file. Does anyone has solution for that? thanks Hardik John W. Holmes [EMAIL PROTECTED] wrote: Major security question: I manage a shared Linux web server running PHP 4.2.3. Apache must have read

RE: [PHP] Securing php files on shared servers

2003-02-03 Thread Adam Voigt
Yeah, on your DBConnection include file (where your username/pass is kept), encrypt the page with a encoder like IonCube (http://www.ioncube.com) they charge by the amount of code, so for say, two connection lines, it's like $1.00. Check out there site, after you sign up for an account you

Re: [PHP] php/mysql connection

2003-02-03 Thread Anthony Ritter
John W. Holmes wrote in message : Because a default install of MySQL includes an anonymous user, one with no username or password. There is also a root user with no password. Read the MySQL manual on Installation and the GRANT command on how to fix this. ---John W. Holmes...

Re: [PHP] mysql/php query - wrox

2003-02-03 Thread Anthony Ritter
Chris Shiflett wrote in message: Your query returns two rows because you have two rows in the database that match the condition: host='localhost' -- Chris .. Chris, I was under the impression that the mysql database had as default user when installed:

Re: [PHP] PHP Framework

2003-02-03 Thread PHP
How does Smarty compare with PHP FAST Template?? - Original Message - From: Danny Shepherd [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 03, 2003 2:51 PM Subject: Re: [PHP] PHP Framework Well, Yahoo! have moved/are moving to Smarty and they get a few million views a

Re: [PHP] PHP Framework

2003-02-03 Thread Maxim Maletsky
I agree, I'd go for Smarty. Though, on the other hand, I often see no reason for using the Templates of any kind. Why? Because you stil get to hard code the tags in it. Not making that much sense as many think. You might simply create a framework by appending the genuine PHP files where HTML code

Re: [PHP] Html forms

2003-02-03 Thread Chris Shiflett
--- Todd Barr [EMAIL PROTECTED] wrote: I am having difficulty putting results into an form Once the query runs, I have this for my output print Input type=text name=foo value=; print $Foo; print ; This results in an HTML error being apache finds an error AFTER the /html tag Any

[PHP] fileperms for link

2003-02-03 Thread gamin
fileperms($link) returns - 16877 The permissions seem to be that of the directory the link is pointing to. How can i get the permissions of the link ? is_link only tells me if it is a link or not. thx gamin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] escaping quotes in mail() message

2003-02-03 Thread Lowell Allen
I'm having a problem escaping double quotes in email messages sent with mail(). The message is built as a string and assigned to a variable and the variable name is passed to the mail function. The double quotes appear correctly in a simple test like this: $message = This message uses 'single'

Re: [PHP] escaping quotes in mail() message

2003-02-03 Thread 1LT John W. Holmes
I'm having a problem escaping double quotes in email messages sent with mail(). The message is built as a string and assigned to a variable and the variable name is passed to the mail function. The double quotes appear correctly in a simple test like this: $message = This message uses

[PHP] Re:_[PHP]_POST_with_PHP_--_please_help_!

2003-02-03 Thread Chris Shiflett
--- arthur.chereau [EMAIL PROTECTED] wrote: That's right, but with curl it's not a true redirection: you just print the content of the target page, you don't redirect to the page. What I need is automated forms, that send the same data as forms but without user interaction. I can't use

Re: [PHP] PHP Framework

2003-02-03 Thread rush
Maxim Maletsky [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I agree, I'd go for Smarty. Though, on the other hand, I often see no reason for using the Templates of any kind. Why? Because you stil get to hard code the tags in it. Not making that much sense as

[PHP] image size from text/font size

2003-02-03 Thread Brian V Bonini
Trying to set the image size based on the amount if text/fontsize, etc... Looked through a bunch of the functions but nothing is jumping out at me. Does anyone have an example and or can point me to the correct function(s) for this. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] escaping quotes in mail() message

2003-02-03 Thread Lowell Allen
From: 1LT John W. Holmes [EMAIL PROTECTED] I'm having a problem escaping double quotes in email messages sent with mail(). The message is built as a string and assigned to a variable and the variable name is passed to the mail function. The double quotes appear correctly in a simple test

Re: [PHP] image size from text/font size

2003-02-03 Thread R'twick Niceorgaw
ImageFtBbox() can do this for you. Here's a portion of my code that uses it. $string=This is some text; $pointsize = 15; $fontfile = getcwd()./arial.ttf; $string_size = ImageFtBbox($pointsize, 0, $fontfile, $string, array(linespacing = 1)); $s_width = $string_size[4]; $s_height =

[PHP] dealing with accents in your databases (or to entity or not to entity...)

2003-02-03 Thread Ian M. Evans
This hasn't come up too much yet in one of the databases on my site, but as I get closer to starting a big project, I thought I'd get an idea of how the rest of you handle this. How do you handle accented words and other problematic symbols on your database-driven sites? If you need to store one,

[PHP] Need to check whether a param exists!

2003-02-03 Thread Brian Dunning
Hi, All I'm trying to do is check for the presence of a query string, but everything I try gives me an Undefined Index error. I want to set a variable $pagename to whatever was passed as the ?page= value, and if it wasn't passed, set it to some default value.

Re: [PHP] Need to check whether a param exists!

2003-02-03 Thread 1LT John W. Holmes
if(isset($_REQUEST['page'])) { $pagename = $_REQUEST['page']; } else { $pagename = 'home'; } Should work... If not, let us know. Make sure your case match, too. ?page=hello and ?Page=hello are two different variables. ---John Holmes... - Original Message - From: Brian Dunning [EMAIL

Re: [PHP] dealing with accents in your databases (or to entity or not to entity...)

2003-02-03 Thread Chris Shiflett
--- Ian M. Evans [EMAIL PROTECTED] wrote: How do you handle accented words and other problematic symbols on your database-driven sites? If you need to store one, do you store it as the actual character and display it with htmlentities, or do you store it as the html entity? Most people seem

Re: [PHP] Need to check whether a param exists!

2003-02-03 Thread Chris Shiflett
--- Brian Dunning [EMAIL PROTECTED] wrote: All I'm trying to do is check for the presence of a query string, but everything I try gives me an Undefined Index error. ... http://www.mysite.com/index.php?page=hello ?php if (is_object($_REQUEST['page'])) $pagename = $_REQUEST['page']; else

Re: [PHP] Need to check whether a param exists!

2003-02-03 Thread Chris Hayes
At 17:54 3-2-03, you wrote: if (is_object($_REQUEST['page'])) for me if (isset($_REQUEST['page'])) works. I often add a check against an empty value after this check. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dealing with accents in your databases (or to entity or not to entity...)

2003-02-03 Thread 1LT John W. Holmes
--- Ian M. Evans [EMAIL PROTECTED] wrote: How do you handle accented words and other problematic symbols on your database-driven sites? If you need to store one, do you store it as the actual character and display it with htmlentities, or do you store it as the html entity? Most

Re: [PHP] dealing with accents in your databases (or to entity or not to entity...)

2003-02-03 Thread 1LT John W. Holmes
This hasn't come up too much yet in one of the databases on my site, but as I get closer to starting a big project, I thought I'd get an idea of how the rest of you handle this. How do you handle accented words and other problematic symbols on your database-driven sites? If you need to store

Re: [PHP] Html forms

2003-02-03 Thread Jeff Pauls
I wouldn't break it up into 3 lines of code. try: print Input type=\text\ name=\foo\ value=\$Foo\; or echo 'input type=text name=foo value='.$Foo.''; Jeff - Original Message - From: Todd Barr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 03, 2003 8:59 AM Subject:

[PHP] tracking bulk email

2003-02-03 Thread Lowell Allen
I've added an email feature to a content management system that will send plain text email to about 1400 contact addresses. Each contact is sent a separate email with the contact name and address in the To: header. It works fine to small test lists, but hasn't been tested with a large list.

[PHP] authentication

2003-02-03 Thread Chris Winters
I have a question that maybe someone could answer. If you by chance come across a secure area that prompts the username and passcode to a folder, how I can PHP to automagically add them in later on? Also, instead of that dialogue popping up, is there a way you can add your own via HTML form and

[PHP] PHP Sessions Not Saving

2003-02-03 Thread Jonathan Wright
Hiya, I'm currently trying to create a logon script for my web site, and i'm having problems with sessions. I've set up the server (httpd-2.0.44) with php (4.3.0) and switched on sessions. The sessions are only avalibale via cookies over a secure connection (i've got session.cookie_secure =

Re: [PHP] Need to check whether a param exists!

2003-02-03 Thread Brian Dunning
Wow, an embarrassment of riches. Thanks to all of you who replied so quickly. - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Make an MDB File on the Fly

2003-02-03 Thread Matt Babineau
I have a client that currently gets MDB exports of their database to run reports and mail merges with. Has anyone heard of or have any idea of how to make an MDB (Access Data File) on the file from PHP or any other scripting language? Thx- Matt

[PHP] Sessions

2003-02-03 Thread Mike Tuller
In an earlier post I wanted to carry an id number that I had in $HTTP_GET_VARS into another script. I was told that one way would be to store the number in the session. My question is how can I store a variable inside a session? In my books and in the documentation I see things about the global

[PHP] text color in image

2003-02-03 Thread Brian V Bonini
Any idea why this would NOT create white text? $png = ImageCreatefrompng(images/menu0.png); $tx_color = ImageColorAllocate($png,255,255,255); imagettftext($png,12,0,25,16,$tx_color,$font,$text); There IS white (255,255,255) in the source png's palette, I don't know weather that makes a

Re: [PHP] authentication

2003-02-03 Thread Chris Shiflett
--- Chris Winters [EMAIL PROTECTED] wrote: If you by chance come across a secure area that prompts the username and passcode to a folder Can you rephrase that? I can't tell what you are talking about. Does a separate window pop up prompting for a username and password, or is this part of the

Re: [PHP] PHP Sessions Not Saving

2003-02-03 Thread Chris Shiflett
--- Jonathan Wright [EMAIL PROTECTED] wrote: i'm having problems with sessions. I've set up the server (httpd-2.0.44) with php (4.3.0) and switched on sessions. I would recommend not using Apache 2 with PHP right now. Stick with the latest stable 1.3.x version. Chris -- PHP General Mailing

Re: [PHP] tracking bulk email

2003-02-03 Thread Kevin Stone
- Original Message - From: Lowell Allen [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Monday, February 03, 2003 10:37 AM Subject: [PHP] tracking bulk email I've added an email feature to a content management system that will send plain text email to about 1400 contact addresses.

Fw: [PHP] authentication

2003-02-03 Thread Kevin Stone
The question is too broad to answer in one post. Suffice to say Yes you can do all of this if you have the know-how. Recommend you continue your research with some basics on PHP.net and a good tutorial-style book such as PHP and MySQL Web Development. There is tons of information online as

Re: [PHP] authentication

2003-02-03 Thread Chris Winters
Sorry about that. What I meant was for example, sometimes I come across protected sites that require a username and passcode. So, if one was to protect a directory or folder, a regular dialog will appear for username and passcode prompt within the web browser. I was researching some variables

Re: [PHP] Sessions

2003-02-03 Thread Chris Shiflett
--- Mike Tuller [EMAIL PROTECTED] wrote: I click on the link and it adds the id number to the url like this: td align=left a href=editsoftwareasset.php?id=$row[asset_id] $row[asset_id] /a /td I think you want to have something like: ? echo $row['asset_id']; ? everywhere you

Re: [PHP] Sessions

2003-02-03 Thread Kevin Stone
It is all here: http://www.php.net/manual/en/ref.session.php -Kevin - Original Message - From: Mike Tuller [EMAIL PROTECTED] To: php mailing list list [EMAIL PROTECTED] Sent: Monday, February 03, 2003 11:06 AM Subject: [PHP] Sessions In an earlier post I wanted to carry an id number

Re: [PHP] authentication

2003-02-03 Thread Chris Shiflett
--- Chris Winters [EMAIL PROTECTED] wrote: So, if one was to protect a directory or folder, a regular dialog will appear for username and passcode prompt within the web browser. I was researching some variables that I came across which is called $PHP_AUTH_USER, $PHP_AUTH_PW, and

Re: [PHP] tracking bulk email

2003-02-03 Thread Mark McCulligh
I am doing something similar to what you are doing. Sending out a newsletter of about 1500 every month. I have one table that holds every people. I also have a campaign table. Every month I create a new newsletter campaign. The campaign holds things like name of campaign, date sent and location

Re: [PHP] text color in image

2003-02-03 Thread R'twick Niceorgaw
The first ImageColorAllocate(0 function always sets the background color . So add one more call to ImageColorAllocate() to set the background color before line $tx_color = ImageColorAllocate($png,255,255,255); and then the text will be as you set in $tx_color HTH -R'twick - Original Message

[PHP] Help with classes (oop)

2003-02-03 Thread Leonard Burton
Greetings, I am trying to figure out using classes. I have read and read and read about them but still cannot figure them new fangled things out. Could someone please alter this snippet just a bit so it would be a correct test script with a call to it? When I run the script I get this

Re: [PHP] Help with classes (oop)

2003-02-03 Thread Chris Hayes
Apparently it does not like the function name to be the same as the class name. So change one of them. ? php; class first { var $age; var $name; function first($age, $name) { return $age.$name; } } //main script $first = new first;

Re: [PHP] Help with classes (oop)

2003-02-03 Thread Chris Boget
Apparently it does not like the function name to be the same as the class name. So change one of them. No, what's happening is that when you instantiate an class, it runs (as a constructor) the function whose name is the same as the class. So when you do this: $first = new first; it's

Re: [PHP] Help with classes (oop)

2003-02-03 Thread Tim Ward
the function with the same name as the class is the constructor and is called when the instance is created. So $first = new first runs first::first() without passing any parameters hence the warning. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From:

[PHP] Re:[PHP] Help with classes (oop)

2003-02-03 Thread Daniel Leighton
Hi Leonard, Try this: ? php; class first { var $total; function first($age, $name) { $this-total = $age.$name; } } //main script $obj = new first(35, chris); print $obj-total; ? The problem with what you were doing is that when you

Re: [PHP] Help with classes (oop)

2003-02-03 Thread Johannes Schlueter
On Monday 03 February 2003 20:45, Chris Boget wrote: function setData( $age, $name ) { $age = $age; $name = $name; } Is useless ;-) I think you wanted this: function setData( $age, $name ) { $this-age = $age;

Re: [PHP] Help with classes (oop)

2003-02-03 Thread Chris Boget
function setData( $age, $name ) { $age = $age; $name = $name; } Is useless ;-) I think you wanted this: function setData( $age, $name ) { $this-age = $age; $this-name = $name; } Good

Re: [PHP] authentication

2003-02-03 Thread Chris Winters
Chris, Exactly. I am relying on the webserver to provide the restrictions. Now my next question: what functions should I utilize or come close to to do it? There isnt any PHP pages directed towards teh directory itself. Its is just a hard link to the protected areas. Are there any functions that

RE: [PHP] safe mode problem

2003-02-03 Thread gurvinder singh
and how can i be root from a php script? i want chown from the script itself which created the page. -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 12:39 PM To: Gurvinder Singh Cc: [EMAIL PROTECTED] Subject: Re: [PHP] safe mode problem

[PHP] array of unknown elements and insert query

2003-02-03 Thread Sunfire
hi.. i have an array (not written in code yet) but it is from a multiple select listbox and i want to use the elements in the array in an insert query.. and dont know how that works... (i wont know how many elements there will be on the insert)..the array elements will need to be put in 1 field

RE: [PHP] Help with classes (oop)

2003-02-03 Thread Leonard Burton
Thanks for all the help thusfar. Classes are just not something I am understanding. I have read the sections on classes in several books and the www.php.net section on them and still am missing something. It seems that these books have been telling me what a light switch is used for but not how

Re: [PHP] authentication

2003-02-03 Thread ed
There is a way to supposedly do this by authenticating a username and password through php first through such methods as database lookups and then passing the username and password through $PHP_AUTH_USER and $PHP_AUTH_PW using the header() command to point to the URL of the .htaccess protected

Re: [PHP] authentication

2003-02-03 Thread ed
I'm sorry the line should have been... header(Location:http://$PHP_AUTH_USER:$[EMAIL PROTECTED];); Ed On Mon, 3 Feb 2003 [EMAIL PROTECTED] wrote: There is a way to supposedly do this by authenticating a username and password through php first through such methods as database lookups and

[PHP] problems with fopen

2003-02-03 Thread Jason Jacobs
Afternoon all. I've been trying to write to a text file for a while. I opened it thusly: $file = fopen($filename, w+); to read it and then write to it after I modified what goes in it. The problem is it won't write. It sets the pointer to the beginning and erases everything, but doesn't

Re: [PHP] authentication

2003-02-03 Thread Chris Shiflett
There is a way to supposedly do this by authenticating a username and password through php first through such methods as database lookups and then passing the username and password through $PHP_AUTH_USER and $PHP_AUTH_PW using the header() command to point to the URL of the .htaccess

Re: [PHP] array of unknown elements and insert query

2003-02-03 Thread Kevin Stone
Something like.. $query = INSERT INTO tablename (fieldname) VALUES; foreach ($_POST['listbox'] as $key = $val) { $values[] = ('$val'); } $query .= implode(',', $values); $result = mysql_query($query); This is assuming all your listbox values go into the same table column. -Kevin -

[PHP] Can anyone help me? i'm getting crazy... : |

2003-02-03 Thread Mr. BuNgL3
I'm trying to delete a some records from a table with checkboxes and then i have this code: html titleLista de Filmes (DivX)/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 body bgcolor=#DEE3E7 form action=action1.php method=POST name=form_action1 ?

Re: [PHP] Question about if statement evaluating (0==string)as TRUE

2003-02-03 Thread Scott Hurring
I figured it was along those lines... i know that perl also caught me a few times becuase perl differentiates between == and eq for numerical or string comparisions. I'll probaly end up using the ===, becuase i've got a severe aversion to using functions for comparisions. :-) -- Scott Hurring

Re: [PHP] array of unknown elements and insert query

2003-02-03 Thread enediel
Each select control has an 'options' container, you should review it to find all values for all selected elements, and create and string to send to the server into a hidden control included in the submited form. In the server will be another history!! It's the way I use, may be somebody could

  1   2   >