RE: [PHP] receiving ndr for each email sent to list

2004-03-22 Thread Chris W. Parker
ok so does anyone know why this is happening (no theories please. unless it's correct. in which case it's ok. :)? is there something a list moderator can do about it? chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Any Ideas?

2004-03-22 Thread Robert Cummings
On Mon, 2004-03-22 at 19:25, John W. Holmes wrote: Robert Cummings wrote: On Mon, 2004-03-22 at 18:51, Matthew Oatham wrote: Hi, are there any functions that retrieve the last primary key created in the MySQL table? http://www.php.net/manual/en/function.mysql-insert-id.php

[PHP] PHP installation problem in FreeBSD OS.

2004-03-22 Thread Naveen Glore
Hello All, I am not sure if this is the right place to post this problem. I tried with FreeBSD mailing list but could not get much help. I am having hard time in installing php4 using portupgrade in FreeBSD. First i have updated the port directory using cvsup. I am doing fresh installation

[PHP] Re: Passing by conditional IF statement...why?

2004-03-22 Thread Ligaya Turmelle
I think it is because the query ran successfully and returns an empty set. So the pointer is still good. Respectfully, Ligaya Turmelle Ryan A [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have this simple code in my php script: * * * * * $res = mysql_query(SELECT

Re: [PHP] Any Ideas?

2004-03-22 Thread John W. Holmes
Matthew Oatham wrote: Bit rough at the moment but I have come up with the following - it doesn't rename the file using the new ID yet but I am more concerned about my method for creating the new ID - can anyone see any potential problems such as database problems, i.e duplicate keys, bad coding

Re: [PHP] Re: Passing by conditional IF statement...why?

2004-03-22 Thread Daniel Guerrier
if(mysql_num_rows($res)) returns count of rows returned. if it 0 is false so it shouldn't execute the conditional code --- Ligaya Turmelle [EMAIL PROTECTED] wrote: I think it is because the query ran successfully and returns an empty set. So the pointer is still good. Respectfully, Ligaya

[PHP] PHP5 Release

2004-03-22 Thread daniel
Hi there i noticed RC1 is released, it states not for critical use, does that mean for development purposes still ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Passing by conditional IF statement...why?

2004-03-22 Thread Ryan A
Ryan A [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have this simple code in my php script: * * * * * $res = mysql_query(SELECT product_id, now()-1 FROM .$tc._prods where cno=$cno AND product_id='$product_id' LIMIT 1); if($res) { $r =

Re: [PHP] PHP installation problem in FreeBSD OS.

2004-03-22 Thread Filip de Waard
On Mar 22, 2004, at 7:59 PM, Naveen Glore wrote: Hello All, I am not sure if this is the right place to post this problem. I tried with FreeBSD mailing list but could not get much help. No, it isn't. There is a specific installation list ([EMAIL PROTECTED]). I am having hard time in installing

Re: [PHP] Re: Passing by conditional IF statement...why?

2004-03-22 Thread John W. Holmes
Ryan A wrote: if(($r = mysql_fetch_row($res)) =1) if($r = mysql_fetch_row($res)) will work fine if you only have one row being returned. If you have more than one that you need to loop through, then: if($r = mysql_fetch_row($res)) { do { }while($r = mysql_fetch_row($res)); } Now you have

[PHP] Image Storage

2004-03-22 Thread Matt Palermo
I am creating a system to allow users to upload images to the site. Would it be better to store the images in a MySQL table, or having it save the images to a directory on the server? Anyone have any suggestions on this? Pros? Cons? Thanks, Matt http://sweetphp.com/ -- PHP General Mailing

Re: [PHP] Image Storage

2004-03-22 Thread Michal Migurski
I am creating a system to allow users to upload images to the site. Would it be better to store the images in a MySQL table, or having it save the images to a directory on the server? Anyone have any suggestions on this? Pros? Cons? Depends on the details of your situation - I've generally

Re: [PHP] Re: Passing by conditional IF statement...why?

2004-03-22 Thread Ryan A
Hey John, Yep, this is just for one row as I need to know which file before I force a download. This is for people selling ebooks, MP3s etc I usually use a while loop if I need multiple rows returned. Cheers, -Ryan On 3/23/2004 3:07:14 AM, [EMAIL PROTECTED] wrote: Ryan A wrote: if(($r =

RE: [PHP] SQL Injection check (mysql)

2004-03-22 Thread trlists
On 23 Mar 2004 Michael Rasmussen wrote: The idea is exactly not to do any queries dynamically generated based on user input! In the rare cases where this is needed you should not allow any unparsed input. There are some applications for which queries based on typed user input are rare. But

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread trlists
On 22 Mar 2004 Andy B wrote: so the theory is: if i require that the session be named after the persons login name there is probably 1 out of 2 million chances that it will mess up the names and get confused (specially if there are only a few users allowed)... If the login name is unique and

Re: [PHP] PHP5 Release

2004-03-22 Thread Yann Larrivee
RC's should never be used in production area, you can use them to teste the new feautres and your software. Yann On Mon, 2004-03-22 at 20:45, [EMAIL PROTECTED] wrote: Hi there i noticed RC1 is released, it states not for critical use, does that mean for development purposes still ? -- PHP

[PHP] an if statement

2004-03-22 Thread Andy B
was just wondering if the statement: if(!$name || !$comments){ /*whatever here*/ } would be interpreted as : if either $name or $comments doesn't exist then or how would the if statement be?? i need to check if the $name and $comments are empty/null because both $name and $comments are

Re: [PHP] an if statement

2004-03-22 Thread John W. Holmes
Andy B wrote: was just wondering if the statement: if(!$name || !$comments){ /*whatever here*/ } would be interpreted as : if either $name or $comments doesn't exist then or how would the if statement be?? i need to check if the $name and $comments are empty/null because both $name and

[PHP] Unable connect to ORACLE

2004-03-22 Thread Timotius
Hi all, I'm newbie in PHP. I found message when I connect to ORACLE. Here you are : Warning: odbc_connect(): SQL error: [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve service name , SQL state 08004 in SQLConnect in c:\program files\apache group\apache\htdocs\connectdb.php on line 2 and

[PHP] Ticketing system

2004-03-22 Thread daniel
Hi there, ok i am asking now, but be assured that I have googled already. I am looking for a good customisable ticketing system in PHP, i had a look at request tracker, but it doesnt look customisable and its in Perl. I am trying to find if there are solutions to what we want before i go and

[PHP] re: an if statement

2004-03-22 Thread Andy B
although that'll generally work, why not use if(empty($name) || empty($comments)) { dosomething(); } -- ---John Holmes... because for some odd reason on any of the versions of php i am writing for (4.0.6-4.1.3) it always fails -- PHP General Mailing List (http://www.php.net/) To

[PHP] mysql_connect error

2004-03-22 Thread T UmaShankari
Hello, Here i am facing one problem. i have installed the following in my pc in linux platform. i am getting this error when try to execute file. Can any one tell me why this error due to ? Version : mysql-3.32.41-1 php-4.2.2-17 apache httpd-2.0.40-21 Error : Call to undefined function

[PHP] Re: an if statement

2004-03-22 Thread Evgeny Pedya
Hello, Andy! You wrote on Mon, 22 Mar 2004 22:59:02 -0500: AB was just wondering if the statement: AB if(!$name || !$comments){ AB /*whatever here*/ } AB would be interpreted as : if either $name or $comments doesn't exist AB then AB or how would the if statement be?? i need to check

RE: [PHP] mysql_connect error

2004-03-22 Thread php-general
T, You also need to load the php_mysql rpm (Assuming you loaded via rpm) Till We Meet Again... Clifford W. Hansen Operations Support Developer Aspivia (Pty) Ltd. +27 (0) 11 259-1150 (Switchboard) +27 (0) 11 259-1019 (Fax) +27 (0) 83 761-0240 (Mobile) [EMAIL PROTECTED] (EMail)

[PHP] Constants

2004-03-22 Thread Jakes
The bug server looks like its down, so I will just post the bug here, and hopefully someone will spot it PHP version: 5RC1 ?php interface Foo { const MY_FOO = hello world; } class Bar implements Foo { public function displayFoo(){ print MY_FOO; } } $obj = new Bar;

<    1   2