[PHP] Getting the size of a mysql table using php

2004-08-13 Thread Brent Clements
How does one get the size of a mysql table using php? I tried taking a look at how phpmyadmin does it but got lost in the code. Anyone have any simple or elegant ways of doing this? -Thanks Brent

Re: [PHP] looking for a good FormMail PHP script

2004-08-13 Thread raditha dissanayake
Juan Nin wrote: Hi I'm looking for a good FormMail PHP script which beheaves like Matt Wright's FormMail.pl script (but lacks it's exploitable problems :) I found several on the net, but didn't like them too much... any recommendations? you have obviously not looked at the PHP manual. -- Raditha

RE: [PHP] String compare of 7 text strings

2004-08-13 Thread Ed Lazor
Nice solution =) > -Original Message- > sort ( $array ); > if ( $array[ 0 ] !== $array[ count ( $array )-1 ] ) { > // Not all fields in the array are the same... > } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php+iptables

2004-08-13 Thread Joel n.solanki
Great ..I will surely do what u told me. This really sounds good to work on. I will start implementing this in 1 or 2 days. Can i contact youi personally if i need little help ? Regards and thank for your help Joel On Thu, 2004-08-12 at 21:20, Robby Russell wrote: > On Thu, 2004-08-12 at 01:31,

Re: [PHP] String compare of 7 text strings

2004-08-13 Thread Hannes Magnusson
sort ( $array ); if ( $array[ 0 ] !== $array[ count ( $array )-1 ] ) { // Not all fields in the array are the same... } On Fri, 13 Aug 2004 21:10:50 -0500 [EMAIL PROTECTED] (Brent Clements) wrote: > Let me rephase my question in my previous email: > > I'd like to compare 7 strings(which are in

Re: [PHP] String compare of 7 text strings

2004-08-13 Thread Brent Clements
Let me rephase my question in my previous email: I'd like to compare 7 strings(which are in an array). Each string should be the same, if they are not, a message should be outputted. How would one do this outside of using a huge if/then statement? Thanks, Brent - Original Message - From:

[PHP] String compare of 7 text strings

2004-08-13 Thread Brent Clements
I wanted to see if anyone has an easier way to do this. The end result is this: I need to compare 7 different text strings(which are in an array). They should all be the same, if they are not the same, a message should be outputted saying they weren't. How would one do this outside of using a hu

RE: [PHP] auto include?

2004-08-13 Thread Ed Lazor
Nope, at least not that I know of. We're dealing more with Apache issues than PHP issues. That's why I'd use the approach outlined below. > -Original Message- > is there anything that would show up in phpinfo() that would tell me if > that feature is disabled? > > Jon > > On Aug 13, 20

[PHP] Re: Combined Production + Development Hosting

2004-08-13 Thread Hannes Magnusson
On Sat, 14 Aug 2004 00:43:26 +0100 [EMAIL PROTECTED] (Watty) wrote: > I am beginning to host my own website, but I also develop other > websites. I have no budget for new equipment so I need to do both > production and development hosting on one system. I run Linux with > apache, php + mysql. I ne

[PHP] Combined Production + Development Hosting

2004-08-13 Thread Watty
I am beginning to host my own website, but I also develop other websites. I have no budget for new equipment so I need to do both production and development hosting on one system. I run Linux with apache, php + mysql. I need a way to essentially hosting two versions of PHP, 4 + 5, reading two diffe

Re: [PHP] auto include?

2004-08-13 Thread Jonathan Hadddad
is there anything that would show up in phpinfo() that would tell me if that feature is disabled? Jon On Aug 13, 2004, at 7:10 PM, Ed Lazor wrote: Yea, it depends on whether your server allows you to put settings in .htaccess. Try putting an invalid command in there like NotAValidDirective and

RE: [PHP] auto include?

2004-08-13 Thread Ed Lazor
Yea, it depends on whether your server allows you to put settings in .htaccess. Try putting an invalid command in there like NotAValidDirective and test to see if your pages stop working and whether you get a log error saying that the htaccess file includes an invalid command. -Ed > -Origin

[PHP] looking for a good FormMail PHP script

2004-08-13 Thread Juan Nin
Hi I'm looking for a good FormMail PHP script which beheaves like Matt Wright's FormMail.pl script (but lacks it's exploitable problems :) I found several on the net, but didn't like them too much... any recommendations? Thanks in advance, Juan -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Securing Forms???

2004-08-13 Thread Gerard Samuel
Chris Shiflett wrote: You might find these resources helpful: http://education.nyphp.org/phundamentals/PH_spoofed_submission.php http://shiflett.org/talks/oscon2004/php-security/36 Hope that helps. Thanks. These are doable.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] unexpected T_VARIABLE

2004-08-13 Thread Curt Zirzow
* Thus wrote Dustin Krysak: > Hi there, I am working with a script that I found online to export a > SQL statement (results) to an excel file., now everytime i run the > script, i get the error: > > Parse error: parse error, unexpected T_VARIABLE in > /var/www/html/siteadmin/mysql_export/export

Re: [PHP] auto include?

2004-08-13 Thread Jonathan Hadddad
Is there any reason why values I attempt to set in .htaccess wouldn't work? this is what I have: php_value auto_prepend /Users/jhaddad/Sites/oldirtyhaddad.com/public_html/connection.php php_value include_path .:/Users/jhaddad/Sites/oldirtyhaddad.com/libraries is there a server variable that m

Re: [PHP] Yet another Newb Question - error

2004-08-13 Thread Matthew Weier O'Phinney
* Andy Moore <[EMAIL PROTECTED]>: >> Does PostGres show up in the test page we did earler? If not PHP needs >> to be compiled as stated above > > No, PG doesn't show up... What do you mean, "compiled?" Do you mean > installed? I used > ># apt-get install postrgesql > > Are you saying I should say

Re: [PHP] auto include?

2004-08-13 Thread Justin Patrin
On Fri, 13 Aug 2004 16:23:26 -0400, Jonathan Hadddad <[EMAIL PROTECTED]> wrote: > is there a way to always have a certain script evaluate at the start of > every page? > Look in the php.ini settings for "auto prepend". -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.p

Re: [PHP] auto include?

2004-08-13 Thread Chris Shiflett
--- Jonathan Hadddad <[EMAIL PROTECTED]> wrote: > is there a way to always have a certain script evaluate at the start of > every page? Yes, the auto_prepend_file configuration directive. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fa

[PHP] unexpected T_VARIABLE

2004-08-13 Thread Dustin Krysak
Hi there, I am working with a script that I found online to export a SQL statement (results) to an excel file., now everytime i run the script, i get the error: Parse error: parse error, unexpected T_VARIABLE in /var/www/html/siteadmin/mysql_export/export.php on line 11 Now the code that is lo

[PHP] auto include?

2004-08-13 Thread Jonathan Hadddad
is there a way to always have a certain script evaluate at the start of every page? Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Securing Forms???

2004-08-13 Thread Justin Patrin
On Fri, 13 Aug 2004 15:36:34 -0400, James E Hicks III <[EMAIL PROTECTED]> wrote: > On Friday 13 August 2004 02:57 pm, Gerard Samuel wrote: > > I've read (at least on 2 occasions) that one can secure their forms, to > > ensure that the form came from the site, and not via a script kiddie. > > Not th

Re: [PHP] Ignoring carriage returns from data field

2004-08-13 Thread Justin Patrin
On Fri, 13 Aug 2004 14:54:28 -0400, Vern <[EMAIL PROTECTED]> wrote: > I am creating a datadump to a csv file and have noticed that text fields > that contain carriage returns are causing trouble when opening the csv file > in an Excel spreadsheet. I'm sure there's a away to ignore those extra > cha

Re: [PHP] Yet another Newb Question - error

2004-08-13 Thread Hannes Magnusson
On Fri, 13 Aug 2004 13:06:58 -0700 [EMAIL PROTECTED] (Andy Moore) wrote: > > Does PostGres show up in the test page we did earler? If not PHP needs > > to be compiled as stated above > > No, PG doesn't show up... What do you mean, "compiled?" Do you mean > installed? I used http://www.php.net/m

Re: [PHP] Yet another Newb Question - error

2004-08-13 Thread Andy Moore
Does PostGres show up in the test page we did earler? If not PHP needs to be compiled as stated above No, PG doesn't show up... What do you mean, "compiled?" Do you mean installed? I used # apt-get install postrgesql Are you saying I should say # apt-get install postgresql --with-pgsql ? Or, [sni

[PHP] Re: Yet another Newb Question - error

2004-08-13 Thread Hannes Magnusson
No, PostgreSQL is not build in by default. see http://www.php.net/manual/en/ref.pgsql.php On Fri, 13 Aug 2004 12:36:26 -0700 [EMAIL PROTECTED] (Andy Moore) wrote: > Thanks to this newsgroup I finally overcame one of my biggest errors in > PHP. But it still doesn't work completely. :) > > --- >

Re: [PHP] Kerberos authentication

2004-08-13 Thread Justin Patrin
On Fri, 13 Aug 2004 12:26:45 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Well, UC Santa Cruz uses a Kerberos server to authenticate students and faculty > onto their network. We need to create a login form that will allow various > departments to use a web-based-interface to log into thei

RE: [PHP] Yet another Newb Question - error

2004-08-13 Thread Jay Blanchard
[snip] Thanks to this newsgroup I finally overcame one of my biggest errors in PHP. But it still doesn't work completely. :) --- Fatal error: Call to undefined function: pg_connect() in /var/www/include/db.php on line 30 --- Undefined function? Isn't it a standard command? [/snip] >From http:/

Re: [PHP] Newb PHP Question

2004-08-13 Thread Andy Moore
httpd got access to all the files? Ah! I fixed it now. Ok, this problem is solved, thanks all :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Yet another Newb Question - error

2004-08-13 Thread Andy Moore
Thanks to this newsgroup I finally overcame one of my biggest errors in PHP. But it still doesn't work completely. :) --- Fatal error: Call to undefined function: pg_connect() in /var/www/include/db.php on line 30 --- Undefined function? Isn't it a standard command? - Andy Moore -- PHP General

Re: [PHP] Securing Forms???

2004-08-13 Thread Curt Zirzow
* Thus wrote Gerard Samuel: > I've read (at least on 2 occasions) that one can secure their forms, to > ensure that the form came from the site, and not via a script kiddie. > Not the method where one puts a graphic of random text to copy to the > form, but via a hidden field. > It has to do with

RE: [PHP] Securing Forms???

2004-08-13 Thread Chris Shiflett
--- Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > I've read (at least on 2 occasions) that one can secure their forms, to > ensure that the form came from the site, and not via a script kiddie. > Not the method where one puts a graphic of random text to copy to the > form, but via a hidden f

Re: [PHP] Securing Forms???

2004-08-13 Thread James E Hicks III
On Friday 13 August 2004 02:57 pm, Gerard Samuel wrote: > I've read (at least on 2 occasions) that one can secure their forms, to > ensure that the form came from the site, and not via a script kiddie. > Not the method where one puts a graphic of random text to copy to the > form, but via a hidden

Re: [PHP] Ignoring carriage returns from data field

2004-08-13 Thread Vern
Sorry, I must be somewhat dense today but I can't make heads nor tails of your response. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Kerberos authentication

2004-08-13 Thread matthew
Well, UC Santa Cruz uses a Kerberos server to authenticate students and faculty onto their network. We need to create a login form that will allow various departments to use a web-based-interface to log into their websites, and they'd all like to use the pre-existing Kerberos server to do so. That

RE: [PHP] Securing Forms???

2004-08-13 Thread Jay Blanchard
[snip] I've read (at least on 2 occasions) that one can secure their forms, to ensure that the form came from the site, and not via a script kiddie. Not the method where one puts a graphic of random text to copy to the form, but via a hidden field. It has to do with having a hidden field of data,

Re: [PHP] Ignoring carriage returns from data field

2004-08-13 Thread Curt Zirzow
* Thus wrote Vern: > I am creating a datadump to a csv file and have noticed that text fields > that contain carriage returns are causing trouble when opening the csv file > in an Excel spreadsheet. I'm sure there's a away to ignore those extra > characters but for the life of me I can't recall wha

Re: [PHP] Newb PHP Question

2004-08-13 Thread Hannes Magnusson
httpd got access to all the files? If the include path is wrong include() will rase error, I'm guessing httpd don't got permission to read one ( or more ) of the files. On Fri, 13 Aug 2004 11:53:46 -0700 [EMAIL PROTECTED] (Andy Moore) wrote: > > Can we see some of the code throwing the error? P

[PHP] Securing Forms???

2004-08-13 Thread Gerard Samuel
I've read (at least on 2 occasions) that one can secure their forms, to ensure that the form came from the site, and not via a script kiddie. Not the method where one puts a graphic of random text to copy to the form, but via a hidden field. It has to do with having a hidden field of data, that mu

[PHP] Ignoring carriage returns from data field

2004-08-13 Thread Vern
I am creating a datadump to a csv file and have noticed that text fields that contain carriage returns are causing trouble when opening the csv file in an Excel spreadsheet. I'm sure there's a away to ignore those extra characters but for the life of me I can't recall what it is. Anyone know how th

Re: [PHP] Newb PHP Question

2004-08-13 Thread Andy Moore
Can we see some of the code throwing the error? PHP is working correctly if you got the page above (a handy thing to keep around BTW). I assumed it was a configuration error because the error occured on line 0. But in any case, here's some lowdown. main.php - the file everyone will be seeing, and

Re: [PHP] Newb PHP Question

2004-08-13 Thread Curt Zirzow
* Thus wrote Andy Moore: > I'm getting an error... And I have no idea how to fix it. I've never > been able to get PHP to work. > > --- > Warning: Unknown(/var/www/test.php): failed to open stream: Permission > denied in Unknown on line 0 > > Warning: (null)(): Failed opening '/var/www/test.php

Re: [PHP] Using Post like Get

2004-08-13 Thread Joshua D. Drake
Dennis Gearon wrote: What I'm trying to achieve is to have the same cookie IDENTIFY a user on different (or same) applications (on the same server), but require them to log in for each application, and get a different session.. Basically, to keep separate 'user trails and in process variables' f

Re: [PHP] Exporting data from database using fopen

2004-08-13 Thread Vern
I knew that ;) Some times it takes another set of eyes... Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newb PHP Question

2004-08-13 Thread Hannes Magnusson
Are you trying to include or fopen file? httpd have access to that file? - Hannes On Fri, 13 Aug 2004 11:37:08 -0700 [EMAIL PROTECTED] (Andy Moore) wrote: > > Andy do a small page with only this in it and see if it will load. > > > > > > > phpinfo(); > > > > ?> > > That churned out a rather

Re: [PHP] Newb PHP Question

2004-08-13 Thread John Nichel
Andy Moore wrote: Andy do a small page with only this in it and see if it will load. phpinfo(); ?> That churned out a rather long page with all sorts of information... so now I'm assuming that PHP is parsing correctly, but I have some sort of configuration error? What that would be, I'm unsure.

RE: [PHP] Newb PHP Question

2004-08-13 Thread Jay Blanchard
[snip] That churned out a rather long page with all sorts of information... so now I'm assuming that PHP is parsing correctly, but I have some sort of configuration error? What that would be, I'm unsure... [/snip] Can we see some of the code throwing the error? PHP is working correctly if you go

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread James E Hicks III
On Friday 13 August 2004 01:14 pm, Torsten Roehr wrote: > James, have you tried with manually calling session_start() and setting > auto_start = 0? If not, please try this. > > Haven't followed your previous thread so please forgive me if I'm asking > something you already wrote. Are you using cook

Re: [PHP] Exporting data from database using fopen

2004-08-13 Thread Vern
I did. ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newb PHP Question

2004-08-13 Thread Andy Moore
Andy do a small page with only this in it and see if it will load. phpinfo(); ?> That churned out a rather long page with all sorts of information... so now I'm assuming that PHP is parsing correctly, but I have some sort of configuration error? What that would be, I'm unsure... -Andy -- PHP Ge

Re: [PHP] PHP 5.0.1 cli with mysqli on FreeBSD core dump

2004-08-13 Thread Curt Zirzow
* Thus wrote Unreal HSHH: > try FreeBSD 4.x and 5.x > cli with mysqli usage,core dump catch(question) { echo 'non existent.'; } Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP Gener

RE: [PHP] Newb PHP Question

2004-08-13 Thread Jay Blanchard
[snip] I'm getting an error... And I have no idea how to fix it. I've never been able to get PHP to work. [/snip] Andy do a small page with only this in it and see if it will load. No HTML or anything else, just this -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

[PHP] Newb PHP Question

2004-08-13 Thread Andy Moore
I'm getting an error... And I have no idea how to fix it. I've never been able to get PHP to work. --- Warning: Unknown(/var/www/test.php): failed to open stream: Permission denied in Unknown on line 0 Warning: (null)(): Failed opening '/var/www/test.php' for inclusion (include_path='.:/var/ww

[PHP] Re: mail() and the From: attribute...

2004-08-13 Thread Manuel Lemos
Hello, On 08/13/2004 09:23 AM, Tristan Pretty wrote: I'm sending out a mail, en mass to about 25 people, using the while loop from a MySQL query... Anyhoo, In the mail() function, if I use the final field for the From: attribute. I'm having probs... HAving: ..."From: [EMAIL PROTECTED]"); doesn'

Re: [PHP] PHP in a Masters of Computer Science Program

2004-08-13 Thread Justin Patrin
On Fri, 13 Aug 2004 11:03:52 -0700, Michael Seely <[EMAIL PROTECTED]> wrote: > HI > > Anyone know of a graduate masters program in computer science that is > focused on PHP? > Bwahahahaha! Wouldn't that be funny! I seriously doubt you'll find anything like this. Not only is PHP relatively new

[PHP] PHP in a Masters of Computer Science Program

2004-08-13 Thread Michael Seely
HI Anyone know of a graduate masters program in computer science that is focused on PHP? Thanks - Mike _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Michael Seely (408) 353-9008

[PHP] PHP 5.0.1 cli with mysqli on FreeBSD core dump

2004-08-13 Thread Unreal HSHH
try FreeBSD 4.x and 5.x cli with mysqli usage,core dump -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Email Address Testing

2004-08-13 Thread Manuel Lemos
Hello, On 08/13/2004 12:04 PM, Css wrote: Question: Is it possible to know which one of my hundreds if not thousands of email addresses are invalid without ever going through my return to sender address unknown emails or the receiver of the email ever responding? You may want to try this class

RE: [PHP] Problem querying postgres

2004-08-13 Thread Jay Blanchard
[snip] I am new to postgres using PHP. I have gotten PHP POSTGRES and PHPADMIN installed and have a database setup using PHPADMIN. The problem that I am having is that when I connect to postgres outside of PHPADMIN and try use pg_query() to do a select such as "SELECT PersonID FROM person" the

[PHP] PHP 5.0.1 Released!

2004-08-13 Thread Andi Gutmans
The PHP Development Team is glad to announce the release of PHP 5.0.1. This release is a maintenance release consisting mainly of bug fixes. It also includes new installation docs which are now auto-generated directly from the PHP Manual (INSTALL in the UNIX source package, install.txt in the Win

Re: [PHP] Email Address Testing

2004-08-13 Thread John Nichel
Curt Zirzow wrote: The only sure way, to ensure an email is valid is by tricking the user to click on a link, like for example.. a spamcease link :) Curt Not truethose links are not to validate your email address...those links are to actually remove you from the SPAM list. SPAMMERS would not

Re: [PHP] Exporting data from database using fopen

2004-08-13 Thread Jason Wong
On Saturday 14 August 2004 00:31, Vern wrote: > I got it. In case anyone is interested. I changed the code so that the > field value was a became the variable $name and it worked. > > $name = $rsITEMS->Fields('item_id'); > fwrite($fp, "$name\n"); But did you take the fopen() out of the while-loo

Re: [PHP] Email Address Testing

2004-08-13 Thread Curt Zirzow
* Thus wrote Ed Lazor: > Right. It's been a while, but I vaguely remember playing an SMTP class a > while back that would actually establish a connection with the remote server > and verify whether the address was a valid recipient. Of course, I also > seem to recall that it took forever and bogg

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread Torsten Roehr
Hi Andre, hi James, please see below "Andre Dubuc" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Friday 13 August 2004 11:19 am, you wrote: > > On Friday 13 August 2004 11:14 am, Andre Dubuc wrote: > > > Hi James, > [snip] > > .for thatt matter, have you 'saved' it using sess

Re: [PHP] Kerberos authentication

2004-08-13 Thread Justin Patrin
On Thu, 12 Aug 2004 21:15:40 -0700, Matthew Runo <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello- > > I am working on a project that requires Kerberos authentication, > however - we are unable to use the apache module that one would > normally use [sys admin

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread Andre Dubuc
On Friday 13 August 2004 11:19 am, you wrote: > On Friday 13 August 2004 11:14 am, Andre Dubuc wrote: > > Hi James, [snip] .for thatt matter, have you 'saved' it using session_write_close(); > > From the Manual: > Session data is usually stored after your script terminated without the > need to

[PHP] PHP Security Workbook

2004-08-13 Thread Chris Shiflett
This news is a bit old, but I have made the workbook for my OSCON tutorial freely available from this URL: http://shiflett.org/php-security.pdf It's a 55 page PDF that has a lot of information (more than the slides) about some of the more important security topics. I hope you find it helpful. C

RE: [PHP] Problem querying postgres

2004-08-13 Thread Michael Sims
Joshua Capy wrote: > of PHPADMIN and try use pg_query() to do a select such as "SELECT > PersonID FROM person" > > the string that is sent is "select personid from person". Now this is > a problem because in the data base the field PersonID is not the same > case as in the select that is sent and I

Re: [PHP] Exporting data from database using fopen

2004-08-13 Thread riese
Hi Vern, Vern wrote: Sorry the previous post got sent prematurely. this one, too. # It does work, however, the problem is in the fwrite($fp, "$rsITEMS->Fields('item_id')\n"); I KNOW, this was the 2nd change in my code-sniplet ;o) what gets written to the file is exactly "$rsITEMS->Field

Re: [PHP] Exporting data from database using fopen

2004-08-13 Thread Vern
I got it. In case anyone is interested. I changed the code so that the field value was a became the variable $name and it worked. $name = $rsITEMS->Fields('item_id'); fwrite($fp, "$name\n"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Exporting data from database using fopen

2004-08-13 Thread Vern
Sorry the previous post got sent prematurely. It does work, however, the problem is in the fwrite($fp, "$rsITEMS->Fields('item_id')\n"); what gets written to the file is exactly "$rsITEMS->Fields('item_id')" for as many records are return when I want the value to be inserted in the fi

[PHP] Problem querying postgres

2004-08-13 Thread Joshua Capy
Hi, I am new to postgres using PHP. I have gotten PHP POSTGRES and PHPADMIN installed and have a database setup using PHPADMIN. The problem that I am having is that when I connect to postgres outside of PHPADMIN and try use pg_query() to do a select such as "SELECT PersonID FROM person" the str

Re: [PHP] Exporting data from database using fopen

2004-08-13 Thread riese
Hi Vern, Vern wrote: I'm trying to write data to a file from a Postgres database using the following code while (!$rsITEMS->EOF) { $fp = fopen("./dump.sql", "w"); fwrite($fp, "$rsITEMS->Fields('item_id')\n"); $rsITEMS->MoveNext(); > [shortened] I wouldn't do, if I were you. It

RE: [PHP] Email Address Testing

2004-08-13 Thread Ed Lazor
Right. It's been a while, but I vaguely remember playing an SMTP class a while back that would actually establish a connection with the remote server and verify whether the address was a valid recipient. Of course, I also seem to recall that it took forever and bogged up a lot on addresses like A

[PHP] Exporting data from database using fopen

2004-08-13 Thread Vern
I'm trying to write data to a file from a Postgres database using the following code EOF) { //CREATE CSV //OPEN DUMP FILE $fp = fopen("./dump.sql", "w"); //WRITE DATA TO DUMP fwrite($fp, "$rsITEMS->Fields('item_id')\n"); //LOOP $rsITEMS->MoveNext();

RE: [PHP] Email Address Testing

2004-08-13 Thread Jay Blanchard
[snip] Aren't there PHP SMTP classes that allow you to verify the validity of an email address? [/snip] Well, there is valid e-mail address formation and then valid, working, e-mail addresses. I think he is asking about the latter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Email Address Testing

2004-08-13 Thread Ed Lazor
Aren't there PHP SMTP classes that allow you to verify the validity of an email address? > -Original Message- > >[snip] > >Question: Is it possible to know which one of my hundreds if not > >thousands of email addresses are invalid without ever going through my > >return to sender addres

Re: [PHP] Template Question

2004-08-13 Thread Stephan Fiedler
Hi Jonathan, Jonathan Hadddad wrote: > [code in a template] Think you're right this IS a problem. Use Templates to seperate code from the ouput 'layer'. If you still have code in your template, maybe it's bad design. why don't you simply add some more variables to your template and tell the templa

Re: [PHP] Template Question

2004-08-13 Thread Jonathan Haddad
eval takes a string and evaluates it as PHP, which I also thought would work. But this is a file of mixed PHP and HTML. I've designed it this way because I work with guys that are dreamweaver crazy and want to do all their layout there. Maybe I should parse the file, and eval() the PHP and ech

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread James E Hicks III
On Friday 13 August 2004 11:14 am, Andre Dubuc wrote: > Hi James, > > Well for what it's worth: > > Your code in Test1 sets the paraemters - > if(!$_SESSION['start_time']){ > echo("\n Session Reset"); > $_SESSION['start_time'] = time(); > > yet when Test2 loads, you haven't called $_SES

Re: [PHP] Email Address Testing

2004-08-13 Thread raditha dissanayake
Jay Blanchard wrote: [snip] Question: Is it possible to know which one of my hundreds if not thousands of email addresses are invalid without ever going through my return to sender address unknown emails or the receiver of the email ever responding? [/snip] Do you mean using PHP? if you do

Re: [PHP] Email Address Testing

2004-08-13 Thread John Nichel
CSS wrote: Question: Is it possible to know which one of my hundreds if not thousands of email addresses are invalid without ever going through my return to sender address unknown emails or the receiver of the email ever responding? See, you have to write a Perl script to access a PostgreSQL d

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread Andre Dubuc
Hi James, Well for what it's worth: Your code in Test1 sets the paraemters - if(!$_SESSION['start_time']){ echo("\n Session Reset"); $_SESSION['start_time'] = time(); yet when Test2 loads, you haven't called $_SESSION[''start_time'} nor, for that matter, have you 'saved' it usin

RE: [PHP] Email Address Testing

2004-08-13 Thread Jay Blanchard
[snip] Question: Is it possible to know which one of my hundreds if not thousands of email addresses are invalid without ever going through my return to sender address unknown emails or the receiver of the email ever responding? [/snip] Do you mean using PHP? -- PHP General Mailing List (http

[PHP] Email Address Testing

2004-08-13 Thread CSS
Question: Is it possible to know which one of my hundreds if not thousands of email addresses are invalid without ever going through my return to sender address unknown emails or the receiver of the email ever responding? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread James E Hicks III
OK, so it wasn't the nut behind the wheel after all. I am still having problems with sessions after upgrading to PHP 4.3.8. The test code below works as expected on server equipped with PHP 4.3.6 and keeps the session start time the same no matter what link you click on. However with version 4.

RE: [PHP] If Else Syntax Incorrect (I Think)

2004-08-13 Thread Ford, Mike [LSS]
On 13 August 2004 12:52, Jay Blanchard wrote: > if( strlen( $UserID ) != 0 > && strlen( $UserPassword ) != 0 > && strlen( $SecretPassword ) != 0 > && strlen( $UserMail ) != 0 ) > { > Do something > } > elseif ( strlen( $UserID ) == 0 > > > strlen( $UserPassword ) == 0 > > > strlen( $SecretPassword

Re: [PHP] mail() and the From: attribute...

2004-08-13 Thread Stephan Fiedler
Hi Tristan, [EMAIL PROTECTED] wrote: HAving: ..."From: [EMAIL PROTECTED]"); doesn't work on all recipients... BUT.. ..." From: justaname"); Works on others... but not all...? Surely this can't be? I've never come accross this before? Any ideas what's up? Well, what I do when sending mail with a

Re: [PHP] mail() and the From: attribute...

2004-08-13 Thread Tristan . Pretty
I've tried just having a name, and it still doesn't reach my notes based E-mail... :-( Hmmm, also, how do you specify to send in the BCC field, using the mail() function? All in all, we're getting there..! -John Nichel <[EMAIL PROTECTED]> wrote: - To: [EMAIL PROTECTED] From: John N

Re: [PHP] mail() and the From: attribute...

2004-08-13 Thread John Nichel
[EMAIL PROTECTED] wrote: I've tried just having a name, and it still doesn't reach my notes based E-mail... :-( Hmmm, also, how do you specify to send in the BCC field, using the mail() function? In the headers http://us4.php.net/manual/en/function.mail.php mail ( to, subject, message [, addi

Re: [PHP] access a file

2004-08-13 Thread raditha dissanayake
Curlys wrote: -rwxr-xr-x1 root root 133 Aug 13 15:48 zeed.php group and owner like this , how does it workable plz help thanx curlys The fact that root owns the php script does not mean it runs as root - you need the suexec or sudo mechanism for that and it's described in t

Re: [PHP] access a file

2004-08-13 Thread Peter Risdon
Curlys wrote: -rwxr-xr-x1 root root 133 Aug 13 15:48 zeed.php group and owner like this , how does it workable plz help chown www /path/to/zeed.php Peter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail() and the From: attribute...

2004-08-13 Thread John Nichel
[EMAIL PROTECTED] wrote: I'm sending out a mail, en mass to about 25 people, using the while loop from a MySQL query... You could send out just one mail, and put all the names in the BCC field. Save yourself a few SMTP connections. I think there's a limit to how many addresses you can have in a

[PHP] PHP 5.0.1 is out, so is WAMP5 1.2 for Windows !

2004-08-13 Thread Romain Bourdon
The new version of WAMP5 is now online. WAMP5 now includes PHP 5.0.1, the PECL extensions, sqlitemanager 0.9.8. Many other new features have been added, to know them see the changelog on the wampserver web site : http://www.en.wampserver.com Of course you can directly upgrade from version 1.0 or

[PHP] mail() and the From: attribute...

2004-08-13 Thread Tristan . Pretty
I'm sending out a mail, en mass to about 25 people, using the while loop from a MySQL query... Anyhoo, In the mail() function, if I use the final field for the From: attribute. I'm having probs... HAving: ..."From: [EMAIL PROTECTED]"); doesn't work on all recipients... BUT.. ..." From: justana

Re: [PHP] weird error, might be javascript?SOLVED

2004-08-13 Thread Angelo Zanetti
Hi, Well I had to basically reconstruct my Javascript file by uncommenting a function and testing that it didnt give an error. I eventually found a small error. It was a really long process and the line numbers in the errrors didnt help. So, thanks to those that contributed anyway. Angelo >>>

RE: [PHP] If Else Syntax Incorrect (I Think)

2004-08-13 Thread Jay Blanchard
[snip] Can someone help with this please...? if( strlen( $UserID ) != 0 & strlen( $UserPassword ) != 0 & strlen( $SecretPassword ) != 0 & strlen( $UserMail ) != 0 ) { Do something } elseif ( strlen( $UserID ) == 0 or strlen( $UserPassword ) == 0 or strlen( $SecretPassword ) == 0 or strlen( $UserMa

Re: [PHP] If Else Syntax Incorrect (I Think)

2004-08-13 Thread Jason Wong
On Friday 13 August 2004 19:33, Harlequin wrote: > Can someone help with this please...? > > if( strlen( $UserID ) != 0 > & strlen( $UserPassword ) != 0 > & strlen( $SecretPassword ) != 0 > & strlen( $UserMail ) != 0 ) > { > Do something > } > elseif ( strlen( $UserID ) == 0 > or strlen( $UserPassw

[PHP] ello! =))

2004-08-13 Thread thies
Argh, i don't like the plaintext :) ..btw, "02017" is a password for archive -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] weird error, might be javascript?

2004-08-13 Thread Harlequin
I have had similar problems in the past Angelo and viewing the source of the HTML file usually helps identify and localise the problematic line. -- - Michael Mason Arras People www.arraspeople.co.uk - "John Holmes" <[EMAIL PROTECTED]> wro

  1   2   >