[PHP] How to findout if the file is over

2002-04-29 Thread Rodrigo
I've got the following problem: I'm trying to send a number of messages to a certain number of e-mails, the e-mails are writen in a text file and I need to findout when the file is over. The sample code is under this line , if someone can help me, I'd apreciate it. ?php $Emails =

RE: [PHP] How to findout if the file is over

2002-04-29 Thread John Holmes
Please read the manual on what file() does. www.php.net/file It reads a file and assigns each line of it to an array. So $Emails will be an array with each line of emails.txt in an element. So, to see how many elements you have, you count() them. $num_emails = count($Emails);

Re: [PHP] What's wrong????

2002-04-29 Thread hugh danaher
Arpan De, you have mysql not mssql. Your statement might work if you change it from mssql_connect() to mysql_connect() Hope this helps, Hugh - Original Message - From: Arpan De [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 29, 2002 6:09 PM Subject: Re: [PHP] What's

Re: [PHP] Thumbnails from Binary DB info.

2002-04-29 Thread Jason Wong
On Tuesday 30 April 2002 09:49, Shane wrote: Greetings folks. I'm looking for a solution to make thumbnails from my binary files inside my mySQL DB. Can anyone give me some direction for options besides Image Magick? Manual Image functions -- Jason Wong - Gremlins Associates -

RE: [PHP] What's wrong????

2002-04-29 Thread John Holmes
Maybe, but I believe he's trying to connect to MSSQL, which uses mssql_* functions. ---John Holmes... -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 8:36 PM To: php Subject: Re: [PHP] What's wrong Arpan De, you have mysql not

[PHP] If statement leading to another php page

2002-04-29 Thread baldey_uk
Hello all, How can i force a transfer to another php page from an if statement? I have been trying: if (condition){ echo A HREF=3Dwww.link.comLink/A; } else { something else } without much luck, i keep getting parse errors. Thanks for anyhelp in advance! Cheers From baldey_uk -- PHP

Re: [PHP] If statement leading to another php page

2002-04-29 Thread Jason Wong
On Tuesday 30 April 2002 12:36, baldey_uk wrote: Hello all, How can i force a transfer to another php page from an if statement? I have been trying: if (condition){ echo A HREF=3Dwww.link.comLink/A; } else { something else } if (something) { header(Location:

[PHP] parse error after ?

2002-04-29 Thread Ironfroggy
I have a PHP script which gets a parse error on the last line (a blank line after the last ?). I really have no idea what could cause this. I checked for all my closing brackets. = Question __ Do You Yahoo!? Yahoo! Health - your guide to

Re: [PHP] parse error after ?

2002-04-29 Thread Justin French
That's the only likely solution -- missing }'s. Unless you're working on a mac, in which case the unix machine might be reading your entire file as one line, hence not giving you an acurate line for the error. I do my editing in BBEdit, which the option of saving all files in unix or windows or

Re: [PHP] parse error after ?

2002-04-29 Thread Jason Wong
On Tuesday 30 April 2002 12:40, Ironfroggy wrote: I have a PHP script which gets a parse error on the last line (a blank line after the last ?). I really have no idea what could cause this. I checked for all my closing brackets. Check for missing braces } semicolons ;, they're the usual

RE: [PHP] parse error after ?

2002-04-29 Thread John Holmes
Check again. You're missing a closing bracket or an ending quote... something along those lines. ---John Holmes... -Original Message- From: Ironfroggy [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 9:41 PM To: [EMAIL PROTECTED] Subject: [PHP] parse error after ? I have

[PHP] Followup on blank line parse error

2002-04-29 Thread Ironfroggy
Here is the file, with unuseful header comments and passwords removed, of course. ?php /* Standard Globals */ $GLOBALS[PageTitle] = ironfroggy.com; $GLOBALS[SiteName] = www.ironfroggy.com; $GLOBALS[STD_PHP_Version] = 1.0; $GLOBALS[PageAuthor] = ironfroggy; function PageAuthor() {

Re: [PHP] Followup on blank line parse error

2002-04-29 Thread Justin French
function SetPageAuthor() seems to be missing a } :) Justin French on 30/04/02 3:19 PM, Ironfroggy ([EMAIL PROTECTED]) wrote: ?php /* Standard Globals */ $GLOBALS[PageTitle] = ironfroggy.com; $GLOBALS[SiteName] = www.ironfroggy.com; $GLOBALS[STD_PHP_Version] = 1.0;

[PHP] How to see the error from mysql?

2002-04-29 Thread Jack
Dear all I had made a page which import some csv file data into Mysql, when i test this page, it doesn't show any message or error, but the data didn't load into mysql table, so is there anyway i could use in php to show me the status of mysql? -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP

Re: [PHP] How to see the error from mysql?

2002-04-29 Thread Jason Wong
On Tuesday 30 April 2002 13:56, Jack wrote: Dear all I had made a page which import some csv file data into Mysql, when i test this page, it doesn't show any message or error, but the data didn't load into mysql table, so is there anyway i could use in php to show me the status of mysql?

<    1   2   3