Re: [PHP] supplied argument is not a valid

2004-09-24 Thread John Taylor-Johnston
Ramil, Got that. thanks. Yeah, I mis-named a field in the seond table. Needed to name title for district $sql2 = "select * from ".$db.".".$table_GLOfficers." where title='" . $mydata->district. "'"; Thanks for that. Getting late, i guess. John -- PHP General Mailing List (http://www.php.net/

Re: [PHP] supplied argument is not a valid

2004-09-24 Thread Ramil Sagum
On Sat, 25 Sep 2004 01:01:13 -0400, John Taylor-Johnston <[EMAIL PROTECTED]> wrote: > Hi, Hi, the error on the line line 101> while ($mydata2 = mysql_fetch_object($news2)) says that $news2 is null. The line $news2 = mysql_query($sql2); //desc => z-a probably didn't work. How about trying; $n

[PHP] supplied argument is not a valid

2004-09-24 Thread John Taylor-Johnston
Hi, My question: can I open $table2 within $table1 - I thought so. I thought I had this set up correctly. Sorry to throw all these lines of code at you. But I need to situate the error for someone to see plainly what I'm doing. I'm getting this error: Warning: mysql_fetch_object(): supplied arg

[PHP] Re: echo to rtf format

2004-09-24 Thread Manuel Lemos
Hello, On 09/24/2004 11:16 PM, John Taylor-Johnston wrote: I know there is a way to print to pdf. Wh«t about rtf? I'm getting real tired of doing it myself. Must be an easier answer? You may want to try this RTF generator class: http://www.phpclasses.org/rtfgenerator -- Regards, Manuel Lemos PHP C

[PHP] simple templateing

2004-09-24 Thread Mag
Hi, I am searching for a REAL simple templateing class/package I have googled for this and basically SMARTY and PAT is too bulky, the people who will be using this script will be pretty dumb and all I can trust them to do would be something like this: and the template should have a cach

[PHP] echo to rtf format

2004-09-24 Thread John Taylor-Johnston
I know there is a way to print to pdf. Wh«t about rtf? I'm getting real tired of doing it myself. Must be an easier answer? header("Content-type: text/rtf"); header("Content-Disposition: attachment; filename=directory.rtf"); echo "{\\rtf1\ansi\ansicpg1252\deff0\deflang1033\deflangfe1033{\fonttb

Re: [PHP] opening table 2 inside table1

2004-09-24 Thread John Taylor-Johnston
Curt, Thanks. > > #mysql_select_db($db2,$myconnection2); #not necessary > > Why isn't this necessary? if you have just opened a connection you > must select a database. Besides the fact that the second connection > isn't necessary. > >From what I have experimented with, if I declare $db.$table in

RE: [PHP] Re: A few questions about system requirements

2004-09-24 Thread Steven
One thing I forgot to mention that the files themselves will probably run between 12 - 14 megs per pop before they even touch the mysql/php server (this is all done by hand). I'm not even sure how much space they will take up when being entered in to the database. On average it should be about 15

[PHP] php upload script problems

2004-09-24 Thread AMC
Hi, I have the following php page. The page just opens up blank and I assume I made an error I cannot see. I'm new to php and any help would be greatly appreciated: http://www.corrige2.bluehill.com/pdfs";; //url where files are uploaded $absolute_path = "http://www.corrige2.bluehill.com/pdfs";;

Re: [PHP] interesting behavior of ob_end_flush() in __destruct()

2004-09-24 Thread Chris Dowell
it seems that php first ends output buffering and then calls then destructs the objects. so the output buffering is still ended when the destructor is calles. one has to unset the object to reverse that order manually. aRZed If I remember correctly, there were a number of posts about this subj

[PHP] Re: A few questions about system requirements

2004-09-24 Thread M. Sokolewicz
Steven wrote: Howdy, I'm going to be writing an app for our company that handles the day-to-day processes here and I have a question for the experienced devs out here that would know the ins and outs of working with CMS and good stats on what is needed for a server. I wa

[PHP] A few questions about system requirements

2004-09-24 Thread Steven
Howdy, I'm going to be writing an app for our company that handles the day-to-day processes here and I have a question for the experienced devs out here that would know the ins and outs of working with CMS and good stats on what is needed for a server. I want to integrat

[PHP] interesting behavior of ob_end_flush() in __destruct()

2004-09-24 Thread aRZed
I discovered an interesting behavior, when ob_end_flush() or ob_end_clean() is used in a destructor of an object. I don't think it is actually a bug, so i decided to post it here. $f = new foo(); // end of file ?> this ends in an error: Notice: ob_end_flush(): failed to delete buffer. No buffer

[PHP] Re: mailing to hotmail

2004-09-24 Thread Manuel Lemos
Hello, On 09/24/2004 01:23 PM, Diana Castillo wrote: for some reasons my mails I send to hotmail are never arriving, (using mail($email,$subject_line,$msg,$headers);) anyone ever heard of this? If you are sending HTML only messages, that is not surprising because HTML messages have to be properl

[PHP] is that possible with Objects in php 4 or php5 ?

2004-09-24 Thread Alawi Albaity
I have object A and object B that extended from object A and have it Own abilities and object C that extended from object A and have it Own abilities I want to use the abilities of object B on object C and abilities of object C on object B , but the problem that what found out is that I must merge

[PHP] [SOLVED] [PHP] Pear::Image_Text - how to change background color from black

2004-09-24 Thread Chris Dowell
Just FYI I figured it out - there is an $options['canvas'] option which accepts, amongst other things, a handle to an image resource. Trivial then to use imagecreate() and imagecolorallocate() to create a white-background starting point. Sorry for wasting everyone's time Cheers Chris Chris Dowe

[PHP] PHP 5.0.2 Released

2004-09-24 Thread Andi Gutmans
The PHP Development Team is proud to announce the immediate release of PHP 5.0.2. This is a maintenance release that in addition to many non-critical bug fixes, addresses a problem with GPC input processing. All Users of PHP 5 are encouraged to upgrade to this release as soon as possible. For

Re: [PHP] mailing to hotmail

2004-09-24 Thread Jim Grill
> for some reasons my mails I send to hotmail are never arriving, (using > mail($email,$subject_line,$msg,$headers);) > anyone ever heard of this? > > What is in $headers? Make sure the "From: " domain can be reverse resolved to the machine the mail is being sent from. [EMAIL PROTECTED] will fai

Re: [PHP] mailing to hotmail

2004-09-24 Thread John Nichel
Diana Castillo wrote: for some reasons my mails I send to hotmail are never arriving, (using mail($email,$subject_line,$msg,$headers);) anyone ever heard of this? Does the box that you're running php on have a dynamic address? Do you have reverse DNS? -- John C. Nichel ÜberGeek KegWorks.com

Re: [PHP] mailing to hotmail

2004-09-24 Thread Greg Donald
On Fri, 24 Sep 2004 18:23:39 +0200, Diana Castillo <[EMAIL PROTECTED]> wrote: > for some reasons my mails I send to hotmail are never arriving, (using > mail($email,$subject_line,$msg,$headers);) > anyone ever heard of this? Yeah, Hotmail will blacklist just about anyone these days. Legit or not

Re: [PHP] mailing to hotmail

2004-09-24 Thread Jason Wong
On Saturday 25 September 2004 00:23, Diana Castillo wrote: > for some reasons my mails I send to hotmail are never arriving, (using > mail($email,$subject_line,$msg,$headers);) > anyone ever heard of this? Check your mailserver logs. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open

Re: [PHP] mailing to hotmail

2004-09-24 Thread Jason Davidson
Do you have reverse dns set up on your machine? Jason "Diana Castillo" <[EMAIL PROTECTED]> wrote: > > for some reasons my mails I send to hotmail are never arriving, (using > mail($email,$subject_line,$msg,$headers);) > anyone ever heard of this? > > > -- > Diana Castillo > Global Reservas

[PHP] mailing to hotmail

2004-09-24 Thread Diana Castillo
for some reasons my mails I send to hotmail are never arriving, (using mail($email,$subject_line,$msg,$headers);) anyone ever heard of this? -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Ext 216 Fax : 00-34-915228673 email: [EMAIL PRO

Re: [PHP] HTML in Download data?

2004-09-24 Thread Marek Kilimajer
Thomas Hochstetter wrote: Should I redirect after the reading of the file? This somehow does not make much sense ... I first need to let the user decide to download the file or not. No, you should output a html page containing: download Then, in downloadzip.php send the headers, build the zip and

RE: [PHP] csv inssue

2004-09-24 Thread Dustin Wish with INDCO Networks
Go it fixed. I used the same code to a degree, but use the array items as needed by just accessing $val[1], $val[2] etc. so if I need a custom select with in the loop I access the array Insert into mytable (item,product) values ($val[1],$val[2]); Dustin Wish System Engineer & Programmer INDCO Ne

Re: [PHP] csv inssue

2004-09-24 Thread Jim Grill
> Well it was very close the only issue is the trailing comma on the inserts. > See below: > > INSERT INTO mytable (one,two,three,four,five) VALUES(14,Radial H714 > 155/80r13s,26, > All Season > S Rated > UTQG: 380/A/B > WSW: White Sidewall > > 4 groove version of all-season performance radial. The

Re: [PHP] PHP as CGI or Module

2004-09-24 Thread raditha dissanayake
Binay wrote: But when after lotttsss of hair pulling couldn't make turck run with 4.3.8 , finally decided to check type (mode) of PHP installation. I m sorry for convience caused. I admire your attitude. Many others would have come out with a flame in response to my message. Please let me tip

[PHP] Pear::Image_Text - how to change background color from black

2004-09-24 Thread Chris Dowell
Guys Without hacking the pear library, does anyone know of any way (using the API) to change the background color of an image created with Image_Text from black? The bg is black because the image resource is created using imagecreatetruecolor() which returns a black image - this is on some of

RE: [PHP] Missing $_POST data from a Outlook Express email form

2004-09-24 Thread Gryffyn, Trevor
But Outlook Express, like most Microsoft products, use an embedded version of IE to display HTML documents. Which makes sense, no sense having two HTML rendering engines on the same box. I'm not sure why it WOULDN'T send the post data if the HTML form in email was properly set up with http://www.

Re: [PHP] csv inssue

2004-09-24 Thread Jim Grill
> I was curious if anyone could help me. I need to write an insert to take > data from a csv file to put into a MySQL db. I am not sure know to parse out > 5 items of the string at a time i.e. (1,2,3,4,5,1,2,3,4,5,1...etc) so that > the five putted items get inserted everytime. Like: > > "insert in

Re: [PHP] csv inssue

2004-09-24 Thread Petar Nedyalkov
On Friday 20 August 2004 16:28, Dustin Wish with INDCO Networks wrote: > I was curious if anyone could help me. I need to write an insert to take > data from a csv file to put into a MySQL db. I am not sure know to parse > out 5 items of the string at a time i.e. (1,2,3,4,5,1,2,3,4,5,1...etc) so >

[PHP] csv inssue

2004-09-24 Thread Dustin Wish with INDCO Networks
I was curious if anyone could help me. I need to write an insert to take data from a csv file to put into a MySQL db. I am not sure know to parse out 5 items of the string at a time i.e. (1,2,3,4,5,1,2,3,4,5,1...etc) so that the five putted items get inserted everytime. Like: "insert into produc

Re: [PHP] New Line Character while downloading a file!

2004-09-24 Thread Divick Kishore
Sorry what I have is header('Content-Disposition: attachment; filename=' . $relative_file); And changing that to fileName solved my problem perfectly. Thanks a lot once again. Divick Kishore "Divick Kishore" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have > header('Co

Re: [PHP] New Line Character while downloading a file!

2004-09-24 Thread Divick Kishore
I have header('Content-Disposition: attachment; filename=' . $fileName); > Do you have > > header('Content-Disposition: attachment; filename=' . $relative_file); > > or > > header('Content-Disposition: attachment; filename=' . $fileName); > > ? "Marek Kilimajer" <[EMAIL PROTECTED]> wrote

Re: [PHP] New Line Character while downloading a file!

2004-09-24 Thread Marek Kilimajer
Divick Kishore wrote: Indeed you figured it right. I do have a new line at the top of the Do you have header('Content-Disposition: attachment; filename=' . $relative_file); or header('Content-Disposition: attachment; filename=' . $fileName); ? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Setcookie doenn't work

2004-09-24 Thread pete M
doh!! ta ;-) S ilvio Porcellana wrote: $ok = setcookie("client_id", "argh", 259300); //* expire in a month ish Nope, it expired a long time ago... :-) Read the manual for setcookie: http://php.libero.it/manual/en/function.setcookie.php (mainly the part about the "expire" parameter) HTH, cheers Silv

Re: [PHP] Re: configure --with-xsl & getting error

2004-09-24 Thread Christian Stocker
On Fri, 24 Sep 2004 08:46:23 +0200, Gerrit P. Haase <[EMAIL PROTECTED]> wrote: > Christian Stocker wrote: > > > Ever thought of reporting a bug to http://bugs.php.net instead of > > trolling around here? > > > But I don't think, it's a bug, because --with-dom is enabled by > > default, so ther

Re: [PHP] Setcookie doenn't work

2004-09-24 Thread Silvio Porcellana
> > $ok = setcookie("client_id", "argh", 259300); //* expire in a month ish > Nope, it expired a long time ago... :-) Read the manual for setcookie: http://php.libero.it/manual/en/function.setcookie.php (mainly the part about the "expire" parameter) HTH, cheers Silvio -- PHP General Mailing Lis

Re: [PHP] New Line Character while downloading a file!

2004-09-24 Thread Divick Kishore
Indeed you figured it right. I do have a new line at the top of the wrote in message news:[EMAIL PROTECTED] > On Fri, 24 Sep 2004 16:15:19 +0530, Divick Kishore > <[EMAIL PROTECTED]> wrote: > >Another problem is that when the file is downloaded a new > >line character is added to the top of it

Re: [PHP] New Line Character while downloading a file!

2004-09-24 Thread Ramil Sagum
On Fri, 24 Sep 2004 16:15:19 +0530, Divick Kishore <[EMAIL PROTECTED]> wrote: >Another problem is that when the file is downloaded a new >line character is added to the top of it unncessarily due to which it can't >be opened with any image viewer. >Once I reomove that newline character, it works fi

[PHP] Setcookie doenn't work

2004-09-24 Thread pete M
I've got this function in a class object, however the cookie does not set even though £ok returns true !!! I've got cookies enables on all my borswers (firefox, mozilla, opera , IE).. any ideas !! function updateClient($arr){ extract($arr); //print_r($arr); $sql = "update clients set n

Re: [PHP] New Line Character while downloading a file!

2004-09-24 Thread Divick Kishore
Thanks for pointing that out. But still it doesn't solve my problem. Thanks for a prompt response. "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Divick Kishore wrote: > > Hi, > > I am a newbie to php so pls be gentle. > > > > I am having problems while downl

Re: [PHP] HTML in Download data?

2004-09-24 Thread Marek Kilimajer
Thomas Hochstetter wrote: Hi there, I am (again) trying to download a file from off the server and force it to use the download dialog box. I have been trying pclzip.lib for compression and used my own headers (as depicted below). This version did zip nicely and the files were intact in the tmp

Re: [PHP] New Line Character while downloading a file!

2004-09-24 Thread Marek Kilimajer
Divick Kishore wrote: Hi, I am a newbie to php so pls be gentle. I am having problems while downloading a file via this script. I am sending the following headers and then a call to readfile function in the swcript. This leads to opening of a download popup but the file name being shown is the

[PHP] HTML in Download data?

2004-09-24 Thread Thomas Hochstetter
Hi there, I am (again) trying to download a file from off the server and force it to use the download dialog box. I have been trying pclzip.lib for compression and used my own headers (as depicted below). This version did zip nicely and the files were intact in the tmp folder. But once I used th

Re: [PHP] Wrong php.ini being read at my hosting account

2004-09-24 Thread missshus
On Fri, 24 Sep 2004 09:24:03 +0100, Chris Dowell wrote: > I think you really need to contact your hosting company and berate them > for lying to you. > > Like Jason says, the definitive list is from *your* php_info(), not the > hosting companies - you might like to send them copies of both and

[PHP] New Line Character while downloading a file!

2004-09-24 Thread Divick Kishore
Hi, I am a newbie to php so pls be gentle. I am having problems while downloading a file via this script. I am sending the following headers and then a call to readfile function in the swcript. This leads to opening of a download popup but the file name being shown is the name of the script fi

Re: [PHP] Re: configure --with-xsl & getting error

2004-09-24 Thread Gerrit P. Haase
Christian Stocker wrote: There's actually no --with-dom option at all, just --without-dom.. Master blaster, it seems you're one of those guys here who knows everything about usage and misusage of PHP and its build system. Probably you are also able to tell me what is the reason behind the decision

RE: [PHP] Re: PDF from PHP generated HTML, possible?

2004-09-24 Thread Graham Cossey
Many thanks to all (especially Brad) for your input on this. Although I have not got as far as producing PDFs I have managed to implement output buffering and saving of generated pages under a hashed name, and of course retrieving it instead of doing all the queries again. I've trimmed slightly th

Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility

2004-09-24 Thread Bostjan Skufca @ domenca.com
Well, it could hardly mean that it is installed as sapi wouldn't it? On Friday 24 of September 2004 10:19, Binay wrote: > correct > > It show Server API CGI. > > So does it mean PHP is installed as CGI and not the apache module? > > Thanks > Binay > - Original Message - > From: "Bost

Re: [PHP] Wrong php.ini being read at my hosting account

2004-09-24 Thread Chris Dowell
I think you really need to contact your hosting company and berate them for lying to you. Like Jason says, the definitive list is from *your* php_info(), not the hosting companies - you might like to send them copies of both and ask them to explain the differences. Cheers Chris missshus wrote:

Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility

2004-09-24 Thread Binay
correct It show Server API CGI. So does it mean PHP is installed as CGI and not the apache module? Thanks Binay - Original Message - From: "Bostjan Skufca @ domenca.si" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 24, 2004 1:21 PM Subject: Re: [PHP] PHP 4.3.8 a

Re: [PHP] PHP as CGI or Module

2004-09-24 Thread Binay
Hi, I knew that Turck does not work in CGI mode. But didn't find it worth checking cuz earlier it was working and my administrator said he only upgraded the php and did nothing. So i presumed that PHP is still running as apache module only. But when after lotttsss of hair pulling couldn't make tu

Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility

2004-09-24 Thread Bostjan Skufca @ domenca.si
Look at phpinfo() output. Search for Server API Apache 2.0 Handler or Server API Apache 2.0 Filter or something about apachehook(s) All above means it is installed as module If you find something refering to CGI then it is installed as CGI (and not $_SERVER, Apache environment and l

[PHP] Re: Thumbnails and access denied.

2004-09-24 Thread James Smith
James Smith wrote: Hi, I'm having a problem with loading a page full of thumbnails. I'm useing this to load each thumbnail. header("Content-type: image/jpeg"); readfile ($dir."/thumbs/".$filename); but, if your connection to the server is too fast (eg, your on a lan or the same ISP with broadband)

Re: [PHP] PHP as CGI or Module

2004-09-24 Thread raditha dissanayake
Binay wrote: Hi How to check whether PHP is installed as CGI or Apache module? Thanks Binay I assume this is a spin of from your thread on turck mmcache. I am pretty sure you have not read the mmcache docs or searched for google on this. Because there are countless articles on installing turc

Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility

2004-09-24 Thread raditha dissanayake
Binay wrote: So how to check whether php is installled as Apache module or CGI mode? phpinfo(); Did you try out what I said in my reply to your Original Post? -- Raditha Dissanayake. http://www.radinks.com/sftp/ |

Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility

2004-09-24 Thread Binay
So how to check whether php is installled as Apache module or CGI mode? Thanks - Original Message - From: "Bostjan Skufca @ domenca.com" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 24, 2004 12:30 PM Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility > I

Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility

2004-09-24 Thread Bostjan Skufca @ domenca.com
It works on php 4.3.8 and 4.3.9 fine (as server module it does, it does not work as cgi though - as page states) lp, Bostjan On Friday 24 of September 2004 08:29, Binay wrote: > Hi > > I don't need everything i.e encoder, optimizer, accelerator etc. What i > need is Loader which can decode the