Re: [PHP] meet problem while use imap_close

2004-06-03 Thread php maillist
Let me answer my question myself my os is installed redhat 9.0 and use imap rpm after I start deamon imap and imaps (I didn't start imaps deamon at startup) everything goes well~! but it still need to add "/notls" behind protocol Frederick Kuo 6/3 Php Maillist wrote: hello everybody, I need help fo

AW: [PHP] how to insert form data // BigMark

2004-06-03 Thread Shahed, Raja
BigMark wrote $sql = "INSERT INTO whosaid (name,quote) VALUES ('$name', '$quote')"; //$sql = "INSERT INTO whosaid (name,quote) VALUES ('','$name', '$quote')"; //if you have auto_incrementing id $result = mysql_qeury($sql); Try this way! Best regards Raja shahed >-Ursprüngliche Nachr

[PHP] Alternative to freetype?

2004-06-03 Thread Victor Spång Arthursson
Hi! Since it's almost impossible to find a web server which has freetype installed, I wonder which the alternatives are to put text on an image…? Sincerely Victor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [PHP-General] - LOC/FP for PHP.

2004-06-03 Thread francesco[AT]automationsoft[DOT]biz
Hi all, I have a question about PHP in relation with software engineering, and in particular, in order to apply COCOMO metod in a web-oriented software. I want to do a cost estimation of a software write in PHP-MySQL (and Linux-Apache) for a LAN. I know the teory about the software enginnering

Re: [PHP] Re: Can session.save_path data be saved to a database instead of a file system?

2004-06-03 Thread Marek Kilimajer
Caleb Walker wrote: This is how I would do it and would require no additional changes to the code - just set your auto prepend in a .htaccess file if you're using Apache. This sounds interesting. Could you elaborate a little more? I mean what is the "auto prepend" and what is the syntax for th

[PHP] Sophisticated rss builder class

2004-06-03 Thread electroteque
Hi there, I am wanting to know if there is any good rss builder classes, that is similar to what the PEAR XML_Tree class can do. Sadly there is no pear rss builder out there, and the ones on PHP classes are dodgy. Please let me know thanks. -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] PHP and HVCI

2004-06-03 Thread Arndt Touby
Hi, does anybody have an idea how to implement HBCI-functionality to a PHP-Site? greetings Arndt Touby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: how to insert form data

2004-06-03 Thread Ford, Mike [LSS]
On 03 June 2004 03:57, Ligaya Turmelle wrote: > shouln't be > QUOTE: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] (Newbie question) Advice on comment system (no db!) design issues

2004-06-03 Thread Yngve
Hi! I am about to write a comment system in PHP, but as i am not any good at PHP i am seeking some advice. This is what i want from the system: * Flexibility! I want to be able to attach it where i want let the user give comments easily. For example comments could be on a blog entry or on a downl

[PHP] IMPORTANT MASSAGE FROM THE BANK

2004-06-03 Thread Davies Harries
FROM:Mr DAVIES HARRIES bills and exchange director GUARANTY TRUST BANK PLC Email:[EMAIL PROTECTED] Fax No:14134519233 Dear Sir, I am Mr.Davies Harries the bills and exchange director at the GUARANTY TRUST BANK PLC, I am writing this letter to solicit for support and assistance from you to carry

[PHP] Class Syntax Help or Globals issue

2004-06-03 Thread bob pilly
Hi All I am new to classes and are trying to work out whether they will make my coding experience easier. I have written the following test class which is trying to take three variables from a mssql query and add them as variables in a new class. This isnt working as i keep getting an error that s

Re: [PHP] Class Syntax Help or Globals issue

2004-06-03 Thread Marek Kilimajer
bob pilly wrote: Hi All I am new to classes and are trying to work out whether they will make my coding experience easier. I have written the following test class which is trying to take three variables from a mssql query and add them as variables in a new class. This isnt working as i keep getting

[PHP] PHP 4.3.7 Released

2004-06-03 Thread Ilia Alshanetsky
PHP Development Team is proud to announce the release of PHP 4.3.7. This is a maintenance release that in addition to several non-critical bug fixes, addresses an input validation vulnerability in escapeshellcmd() and escapeshellarg() functions on the Windows platform. Users of PHP on Windows ar

[PHP] Re: mail() problem

2004-06-03 Thread Ben Ramsey
I would also suggest adding the following headers to the message, as they are supposed to help keep the spam filters from recognizing a message as spam: X-Priority: 3 X-MSMail-Priority: Normal Of course, you can read up on the various priority levels and change them if you want, but these setti

Re: [PHP] php installation verification

2004-06-03 Thread Ben Ramsey
Did you fix this problem yet? The lines below are fine for your apache httpd.conf file. The only thing that appears out of the ordinary is the location of libphp4.so. In my setup (I'm also using Red Hat and Apache 2.0), when I compile PHP, it places libphp4.so in the modules directory (/etc/h

[PHP] Best way to sort?

2004-06-03 Thread Brian Dunning
I'm not sure if this is a complex SQL query or a PHP array sorting thing, but what's the best way to take this data: Tom Greg Brian Tom Brian Tom And return the following results, sorted by number of records: Tom - 3 Brian - 2 Greg - 1 Any thoughts? -- PHP General Mailing List (

Re: [PHP] Best way to sort?

2004-06-03 Thread John Nichel
Brian Dunning wrote: I'm not sure if this is a complex SQL query or a PHP array sorting thing, but what's the best way to take this data: Tom Greg Brian Tom Brian Tom And return the following results, sorted by number of records: Tom - 3 Brian - 2 Greg - 1 Any thoughts? MySQL's

RE: [PHP] Best way to sort?

2004-06-03 Thread Angelo Zanetti
select thename, count(thename) from order by thename asc group by thename Try this -Original Message- From: Brian Dunning [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 3:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Best way to sort? I'm not sure if this is a complex SQL query o

RE: [PHP] php installation verification

2004-06-03 Thread Nguyen, Long P (Mission Systems)
I removed the line AddType application/x-httpd-php .php and add SetOutputFilter PHP SetInputFilter PHP restarted httpd and didn't work - what displayed on the browser was: -Original Message- From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 20

[PHP] Re: IMPORTANT MASSAGE FROM THE BANK

2004-06-03 Thread Stephen Lake
wonders if this is the exact same scam that cost millions of dollars in Canada last year as I do not see a LEGIT "bank" URL or email address besides what is this BS doing here??? this a PHP MAIL LIST!!! Not a scam list!!! "Davies Harries" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

Re: [PHP] php installation verification

2004-06-03 Thread Ben Ramsey
Please reply to the list so that everyone can benefit from the conversation. I am running Apache 2.0.49 and PHP 4.3.7, but that shouldn't make too much difference. Did you check to make sure that libphp4.so is, in fact, in your modules directory? Also, use the AddType statements instead of the

Re: [PHP] php installation verification

2004-06-03 Thread Ben Ramsey
I also noticed that you're using .php and .phps in your AddType statement. Take out the dot (.) so that it's just php and phps. That may be the cause of the problem. Ben Ramsey wrote: Please reply to the list so that everyone can benefit from the conversation. I am running Apache 2.0.49 and

[PHP] weird error

2004-06-03 Thread pagongski
Hi guys, I recently installed easy-php on my laptop so i could work on the go without having to upload my scripts to the server to test them out. The problem is that when i tried one of my scripts on it, i get some weird errors, and the script works fine on the online server.

Re: [PHP] Best way to sort?

2004-06-03 Thread Rob Adams
"Angelo Zanetti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > select thename, count(thename) from order by thename asc group > by thename or... to sort by number of records select name, count(name) as ncnt from table group by name order by ncnt desc -- Rob -- PHP General M

[PHP] $_FILES passed by value

2004-06-03 Thread Daniel Guerrier
If I pass a $_FILES to an object by value. Does it create a copy of the actual posted files as well? In other words if I post a 2MB file to save.php and in turn pass $_FILES to an object $file->fileis($_FILES); Does that create 4MB of data in memory? Thanks Danny

Re: [PHP] weird error

2004-06-03 Thread "Miguel J. Jiménez"
Better if you use $_SERVER['REMOTE_ADDR'] and so on... pagongski wrote: Hi guys, I recently installed easy-php on my laptop so i could work on the go without having to upload my scripts to the server to test them out. The problem is that when i tried one of my scripts on it, i get

[PHP] Re: weird error

2004-06-03 Thread Ben Ramsey
Pardon me for asking, but what is "easy-php"? Pagongski wrote: Hi guys, I recently installed easy-php on my laptop so i could work on the go without having to upload my scripts to the server to test them out. The problem is that when i tried one of my scripts on it, i get some w

RE: [PHP] php installation verification

2004-06-03 Thread Nguyen, Long P (Mission Systems)
I think I know what I did wrong... I should place the "test.php" file under the Document_Root directory and I should be bringing up the "test.php" file on the browser address as: http://localhost/test.php right??? What I was doing before was just going to the browser's File --> Open --> and sp

Re: [PHP] Re: weird error

2004-06-03 Thread pagongski
Pardon me for asking, but what is "easy-php"? Easy-php is a simple solution to install apache+php+mysql+phpmyadmin, all in a nice simple to admin package. Its great to test locally your scripts and DB access. Sorry, i sound like a salesman, i am in no ways affilliated to it, just a happ

[PHP] Re: weird error

2004-06-03 Thread Rob Adams
"Pagongski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Here are some example errors: > > Notice: Use of undefined constant REMOTE_ADDR - assumed > 'REMOTE_ADDR' in c:\win2kapp\easyphp1-7\www\index.php on line 35 These aren't exactly 'errors.' If this is all

Re: [PHP] php installation verification

2004-06-03 Thread Ben Ramsey
Yes, you should be accessing it through http://localhost/test.php That's most definitely the cause of the problem. Long P Nguyen wrote: I think I know what I did wrong... I should place the "test.php" file under the Document_Root directory and I should be bringing up the "test.php" file on the bro

[PHP] Re: $_FILES passed by value

2004-06-03 Thread Rob Adams
"Daniel Guerrier" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If I pass a $_FILES to an object by value. Does it > create a copy of the actual posted files as well? > > In other words if I post a 2MB file to save.php and in > turn pass $_FILES to an object $file->fileis($_FILES);

RE: [PHP] php installation verification

2004-06-03 Thread Nguyen, Long P (Mission Systems)
OK - thanks for all the help everyone!! -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 11:02 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] php installation verification Yes, you should be accessing it through http://localhost/test.php That's mo

[PHP] FW: Your Request

2004-06-03 Thread Nguyen, Long P (Mission Systems)
Is anyone else getting this email whenever you send an email to the [EMAIL PROTECTED] list? I get this whenever I send a post. -Original Message- From: Information Desk [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 11:09 AM To: Nguyen, Long P (Miss

Re: [PHP] $_FILES passed by value

2004-06-03 Thread John W. Holmes
From: "Daniel Guerrier" <[EMAIL PROTECTED]> > If I pass a $_FILES to an object by value. Does it > create a copy of the actual posted files as well? > > In other words if I post a 2MB file to save.php and in > turn pass $_FILES to an object $file->fileis($_FILES); > Does that create 4MB of data i

Re: [PHP] weird error

2004-06-03 Thread John W. Holmes
From: "pagongski" <[EMAIL PROTECTED]> > Notice: Use of undefined constant REMOTE_ADDR - assumed > 'REMOTE_ADDR' in c:\win2kapp\easyphp1-7\www\index.php on line 35 > > Notice: Undefined variable: HTTP_REFERER in . > > I have register globals on. (was off so i turned t

Re: [PHP] Re: $_FILES passed by value

2004-06-03 Thread Marek Kilimajer
Rob Adams wrote: "Daniel Guerrier" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] If I pass a $_FILES to an object by value. Does it create a copy of the actual posted files as well? In other words if I post a 2MB file to save.php and in turn pass $_FILES to an object $file->fileis($_

Re: [PHP] weird error

2004-06-03 Thread Marek Kilimajer
John W. Holmes wrote: From: "pagongski" <[EMAIL PROTECTED]> Notice: Use of undefined constant REMOTE_ADDR - assumed 'REMOTE_ADDR' in c:\win2kapp\easyphp1-7\www\index.php on line 35 Notice: Undefined variable: HTTP_REFERER in . I have register globals on. (was off so i tu

[PHP] When did mysql_query quit allowing multiple queries separated by a semicolon

2004-06-03 Thread James Harrell
Hi PHP gurus, Asked this question on the PHP-DB list, no response there. Hoping someone here may have the answer. :) Mostly a research question. I recall (a long time ago - php3?) that some php packages could be compromised by injecting a secondary query though GET/POST variables when they were

RE: [PHP] weird error

2004-06-03 Thread Ford, Mike [LSS]
On 03 June 2004 15:52, pagongski wrote: > Hi guys, > > I recently installed easy-php on my laptop so i > could work on the > go without having to upload my scripts to the server to test them > out. The problem is that when i tried one of my scripts on it, i get > some weird erro

Re: [PHP] Best way to sort?

2004-06-03 Thread Daniel Clark
SELECT DISTINCT person_name, count(*) FROM table_name GROUP BY person_name ORDER BY 2 DESC > I'm not sure if this is a complex SQL query or a PHP array sorting > thing, but what's the best way to take this data: > >Tom >Greg >Brian >Tom >Brian >Tom > > And return the follow

Re: [PHP] weird error

2004-06-03 Thread John W. Holmes
From: "Marek Kilimajer" <[EMAIL PROTECTED]> > > The second error shows you did not turn on register globals. Look at a > > phpinfo() page to confirm you edited the right php.ini. You must restart > > your webserver after the change, also. > > Or he typed the url into the location bar, or selected a

[PHP] FW: Variables within Variables

2004-06-03 Thread Nunners
I've had no luck on the smarty list. does anyone else know? _ From: Nunners [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 16:22 To: '[EMAIL PROTECTED]' Subject: Variables within Variables (Sorry for the naff subject - that's the only way I could describe it.!) I'm trying to set

Re: [PHP] When did mysql_query quit allowing multiple queries separated by a semicolon

2004-06-03 Thread John W. Holmes
From: "James Harrell" <[EMAIL PROTECTED]> > Mostly a research question. I recall (a long time ago - php3?) that > some php packages could be compromised by injecting a secondary query > though GET/POST variables when they were not properly sanitized. > > ex: > $query="select a from $b"; > mysql_qu

[PHP] OT (Re: IMPORTANT MASSAGE FROM THE BANK)

2004-06-03 Thread Mark Pecaut
On Thu, Jun 03, 2004 at 11:14:29AM -0300, Stephen Lake wrote: > wonders if this is the exact same scam that cost millions of dollars in > Canada last year as I do not see a LEGIT "bank" URL or email address > besides what is this BS doing here??? this a PHP MAIL LIST!!! Not a scam > list!!! http:

Re: [PHP] Best way to sort?

2004-06-03 Thread Raúl Castro
The best way is: SELECT person_name, count(*) FROM table_name GROUP BY person_name ORDER BY 2 DESC - Original Message - From: "Daniel Clark" <[EMAIL PROTECTED]> To: "Brian Dunning" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, June 03, 2004 10:30 AM Subject: Re: [PHP] Best

Re: [PHP] When did mysql_query quit allowing multiple queries separated by a semicolon

2004-06-03 Thread Marek Kilimajer
James Harrell wrote: Hi PHP gurus, Asked this question on the PHP-DB list, no response there. Hoping someone here may have the answer. :) Mostly a research question. I recall (a long time ago - php3?) that some php packages could be compromised by injecting a secondary query though GET/POST varia

[PHP] Asuming query without the ?

2004-06-03 Thread Robert Winter
Is it possible to configure PHP/.htAccess/etc. for assuming a query when the users enters a path like this: www.myserver.com/path/154--> assumes www.myserver.com/path/index.php?code=154 The only thing I could do is avoid writing index.php but I still have to write the ?: www.myserver.com/path

Re: [PHP] Asuming query without the ?

2004-06-03 Thread John Nichel
Robert Winter wrote: Is it possible to configure PHP/.htAccess/etc. for assuming a query when the users enters a path like this: www.myserver.com/path/154--> assumes www.myserver.com/path/index.php?code=154 The only thing I could do is avoid writing index.php but I still have to write the ?: ww

[PHP] Fatal Error Help

2004-06-03 Thread Ryan Schefke
Can someone verify that the solution to this problem is to change my php.ini file's "memory_limit = 8M;" line to "memory_limit = 16M;"? My script was working fine (file uploading) before. Then, last night I upgraded to php 4.3.6 and installed Turck mmcache. Now I get the following error:

Re: [PHP] Fatal Error Help

2004-06-03 Thread Marek Kilimajer
Ryan Schefke wrote: Can someone verify that the solution to this problem is to change my php.ini file's "memory_limit = 8M;" line to "memory_limit = 16M;"? What about verifying it yourself? Yes, that should help. If not, try higher values. Don't forget to restart the webserver. -- PHP General M

Re: [PHP] Asuming query without the ?

2004-06-03 Thread Marek Kilimajer
Robert Winter wrote: Is it possible to configure PHP/.htAccess/etc. for assuming a query when the users enters a path like this: www.myserver.com/path/154--> assumes www.myserver.com/path/index.php?code=154 The only thing I could do is avoid writing index.php but I still have to write the ?: ww

RE: [PHP] Fatal Error Help

2004-06-03 Thread Ryan Schefke
I will try it but I wanted to make sure that was the best way to solve the issue. Why would the same script work before (with memory_limit = 8MB) and now it has that error? That's where I'm confused. -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Thursday, Ju

Re: [PHP] Fatal Error Help

2004-06-03 Thread raditha dissanayake
Ryan Schefke wrote: I will try it but I wanted to make sure that was the best way to solve the issue. Why would the same script work before (with memory_limit = 8MB) and now it has that error? That's where I'm confused. depends on the data you are working with. What about verifying it yourse

[PHP] Re: PHP and HVCI

2004-06-03 Thread Torsten Roehr
Hi, google for 'php pear hbci'. You'll find some useful sites. Regards, Torsten Roehr "Arndt Touby" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > does anybody have an idea how to implement HBCI-functionality to a PHP-Site? > > greetings > > Arndt Touby -- PHP General M

[PHP] Re: Sophisticated rss builder class

2004-06-03 Thread Manuel Lemos
Hello, On 06/03/2004 06:28 AM, Electroteque wrote: Hi there, I am wanting to know if there is any good rss builder classes, that is similar to what the PEAR XML_Tree class can do. Sadly there is no pear rss builder out there, and the ones on PHP classes are dodgy. Please let me know thanks. Did you

[PHP] Call JS Function with PHP Header()?

2004-06-03 Thread Nick Wilson
Hi everyone, I am trying to work within someone elses modular system so my flexibility is rather limited. I'm trying to do this: header("Location: javascript:this.print()"); Which of course does not work. Anyone know how I might do it? Many thanks... -- Nick W -- PHP General Mailing List

[PHP] Re: Call JS Function with PHP Header()?

2004-06-03 Thread Torsten Roehr
"Nick Wilson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi everyone, > > I am trying to work within someone elses modular system so my > flexibility is rather limited. > > I'm trying to do this: > > header("Location: javascript:this.print()"); > > Which of course does not work.

Re: [PHP] Call JS Function with PHP Header()?

2004-06-03 Thread John Nichel
Nick Wilson wrote: Hi everyone, I am trying to work within someone elses modular system so my flexibility is rather limited. I'm trying to do this: header("Location: javascript:this.print()"); Which of course does not work. Anyone know how I might do it? Many thanks... You can't call JS function

Re: [PHP] Re: Call JS Function with PHP Header()?

2004-06-03 Thread Nick Wilson
* and then Torsten Roehr declared > > header("Location: javascript:this.print()"); > > > > Which of course does not work. Anyone know how I might do it? > > > try this: > > echo " > > "; Thanks Torsten, I have managed to do that, but it's in the like this:

Re: [PHP] Re: Call JS Function with PHP Header()?

2004-06-03 Thread Nick Wilson
* and then Nick Wilson declared > > > Right in the middle of the body. It doesnt work LoL! - Seems to me that > it should do...? Ah... XHTML Strict - Gotta remove the comment tags ;-) Thanks mate.. -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

[PHP] imploding a multi-dimensional array

2004-06-03 Thread Tom Wuyts
Hi, I want to implode a multi-dimensional array into 1 string. I use the next code to put it into the array: $spots = Array(); $rows = explode( "@", $row['spots'] ); foreach( $rows as $rij ) { $spots[] = explode( "&", $rij );

Re: [PHP] Re: Call JS Function with PHP Header()?

2004-06-03 Thread Dennis Seavers
You should be able to use the comment tags, just put them inside the tags: echo "