[PHP] pdf

2006-06-29 Thread weetat
Hi all , I am using PHP 4.3.2 and MYSQL database. I need to convert the sql query to Adobe PDF format. Any one have any suggestion how to do this? I have search phpclasses , found SQL2PdfReport classes , however it gave error message as shown below : Error in opening pdf Lookup

Re: [PHP] pdf

2006-06-29 Thread Jyry Kuukkanen
Hello On Thu, 29 Jun 2006, weetat wrote: Hi all , I am using PHP 4.3.2 and MYSQL database. I need to convert the sql query to Adobe PDF format. Any one have any suggestion how to do this? I have used fpdf (http://www.fpdf.org/) in order to create PDF documents with PHP and it

Re: [PHP] pdf

2006-06-29 Thread Paul Novitski
At 11:50 PM 6/28/2006, weetat wrote: I am using PHP 4.3.2 and MYSQL database. I need to convert the sql query to Adobe PDF format. Any one have any suggestion how to do this? I'm enjoying using the PHP class FPDF http://www.fpdf.org/ It's not a one-step conversion utility, it's a PHP

[PHP] FTP - moving/copying files

2006-06-29 Thread James Nunnerley
I'm setting up an ftp manager which allows a user to connect to their space on an external server. All the php-ftp functions work fine - after I'd realized how to use the passive functionality - see previous email to list! I've also got working the download and upload functionality, which

RE: [PHP] Multiple if() statements

2006-06-29 Thread Ford, Mike
On 29 June 2006 01:03, David Tulloh wrote: I'm also going to throw in an elseif for fun, to get this (hopefully) improved version: if($row[1] == none) { print(tr); print(td$row[0] $row[2]/td); print(/tr); } elseif($row[1] == $row[2]) { print(tr); print(td$row[0]

[PHP] running number in paging

2006-06-29 Thread weetat
Hi all , I have using PEAR:Pager , to do paging . Everthing are ok . Except the running no will always start from 1 to 10 . Anyway to increase the running number when user click next page for example Page 1 : 1 to 10, Page 2 : 11 to 20, and so on Thanks below is the code , the

[PHP] Re: pdf

2006-06-29 Thread Jo�o C�ndido de Souza Neto
How can i see, everyon here use that class. I use it too. It always worked fine to me. weetat [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hi all , I am using PHP 4.3.2 and MYSQL database. I need to convert the sql query to Adobe PDF format. Any one have any suggestion

Re: [PHP] Programming question - New to PHP

2006-06-29 Thread Dave Goodchild
On 29/06/06, Chris [EMAIL PROTECTED] wrote: Russbucket wrote: I took an example of a script from the PHP documentation and try to connect to my database. If I leave in the or die part of line 3, I get nothing, if I comment out that part I get the echo message on line 4. ?php //

[PHP] image upload problem

2006-06-29 Thread suresh kumar
Hi, This is the code i am using for image upload. if ($_FILES['ufile']['name'] != NULL) { $FlName= $_FILES['ufile']['name']; if(!is_uploaded_file($_FILES['ufile']['tmp_name'])){ print Script type=\text/javascript\ alert(\Error! The expected file wasn't

Re: [PHP] FTP - moving/copying files

2006-06-29 Thread Jochem Maas
James Nunnerley wrote: I'm setting up an ftp manager which allows a user to connect to their space on an external server. All the php-ftp functions work fine - after I'd realized how to use the passive functionality - see previous email to list! I've also got working the

RE: [PHP] image upload problem

2006-06-29 Thread Jay Blanchard
[snip] The Code is running properly.But I dont Know Where The uploaded image is Stored in the server.I checked /tmp directory,but image is not there,is there any function where i can specify the location of the server where my image is to be stored i also tired move_uploaded_image() function

[PHP] Re: image upload problem

2006-06-29 Thread Jo�o C�ndido de Souza Neto
Please, check that: http://br.php.net/manual/pt_BR/function.move-uploaded-file.php suresh kumar [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hi, This is the code i am using for image upload. if ($_FILES['ufile']['name'] != NULL) { $FlName= $_FILES['ufile']['name'];

Re: [PHP] Multiple if() statements

2006-06-29 Thread tedd
At 8:15 PM -0400 6/28/06, Robert Cummings wrote: On Wed, 2006-06-28 at 20:02, David Tulloh wrote: Grae Wolfe - PHP wrote: ... want. Any help would be great! -snip- if/elseif -snip- holy war id=opinion Whenever you need a elseif, then it's time to consider a switch -- like thus: print(

[PHP] [NEWBIE] PHP General List Guide Other Good Stuff

2006-06-29 Thread Jay Blanchard
Recommended reading http://zirzow.dyndns.org/php-general/NEWBIE http://phpsec.org/ http://www.php.net/manual/en/security.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pdf

2006-06-29 Thread Kim Steinhaug
Hi all , I am using PHP 4.3.2 and MYSQL database. I need to convert the sql query to Adobe PDF format. Any one have any suggestion how to do this? I have search phpclasses , found SQL2PdfReport classes , however it gave error message as shown below : Error in opening pdf

[PHP] Documentation software

2006-06-29 Thread Mathieu Dumoulin
This is not a php specific question but more a programming question. I'd like to know names of software that help in creating documentation like the microsoft style of documentation when you visit the MSDN library. I can also see that often one some sites like the VBCORLIB web site. I'm sure

RE: [PHP] Programming question - New to PHP

2006-06-29 Thread Jeremy Schreckhise
Try $link = mysql_connect('localhost',$youruser,$yourpassword) or die(); mysql_select_db('yourdb'); $query = 'SELECT * FROM Moses_Lake_Lions'; if(!$result = mysql_query ($query,$link)) { // do error checking here } Jeremy

[PHP] Update site through email

2006-06-29 Thread Rodrigo de Oliveira Costa
Hy guys I'd like to know if there is a way to update a site through sending an email. Something like this, you send an email and the body of the email substitutes a text you use in your site. Igreat apreciate any help since I couldn't find anything on this topic. Thanks, doRodrigo -- PHP

RE: [PHP] Update site through email

2006-06-29 Thread Jim Moseby
Hy guys I'd like to know if there is a way to update a site through sending an email. Something like this, you send an email and the body of the email substitutes a text you use in your site. Igreat apreciate any help since I couldn't find anything on this topic. How much time did you spend

[PHP] creating a threaded message system--sorting messages

2006-06-29 Thread Ben Liu
This question might deviate from PHP into the domain of MySQL but I thought best to post here first. I'm building a message board system with PHP/MySQL. I'm trying to present the messages to the users in threaded order rather than flat. I'm having a lot of trouble figuring out how to sort the

Re: [PHP] Update site through email

2006-06-29 Thread KermodeBear
Hello, At my last job there were several companies that would send us text invoices by email. These email accounts were on a Linux box, and when the mail would come in the message was sent to scripts via STDIN. I'm not sure HOW it was done but I know that it CAN be done. I would be concerned

Re: [PHP] Update site through email

2006-06-29 Thread John Nichel
Jim Moseby wrote: Hy guys I'd like to know if there is a way to update a site through sending an email. Something like this, you send an email and the body of the email substitutes a text you use in your site. Igreat apreciate any help since I couldn't find anything on this topic. How much

Re: [PHP] Update site through email

2006-06-29 Thread John Nichel
Nathanael Merrill wrote: I will be on vacation from June 26th through July 17th. I will have limited access to email and will get back to you as soon as I can. Thank you. - nathanael merrill You just made the list Nathanael. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com

[PHP] Re: Update site through email

2006-06-29 Thread Mathieu Dumoulin
How i'd do it is not simple, i'm sure there is an easier method but here goes for mine. First you have to setup an inbox that you can read, it can be POP3 or IMAP, as long as your PHP script can read it it's fine. Second, create a script that can actually connect to that inbox and read for

Re: [PHP] Re: Update site through email

2006-06-29 Thread Dan McCullough
There are several blog software packages and cms packages that do something like this you might want to download and take a peek. Wordpress one that comes to mind. On 6/29/06, Mathieu Dumoulin [EMAIL PROTECTED] wrote: How i'd do it is not simple, i'm sure there is an easier method but here

Re: [PHP] Programming question - New to PHP

2006-06-29 Thread Russbucket
On Thursday 29 June 2006 06:29, Jeremy Schreckhise wrote: snip Try $link = mysql_connect('localhost',$youruser,$yourpassword) or die(); mysql_select_db('yourdb'); $query = 'SELECT * FROM Moses_Lake_Lions'; if(!$result = mysql_query ($query,$link)) {

[PHP] Re: modify xml before parse

2006-06-29 Thread Adam Zey
Yeo Wee Tat wrote: Hi Adam, I can modify the xml file without any error , however when I tried to unserializer the xml file using PEAR:XML , it gave the error message below. I have attached my code for your perusal. Any ideas ? thanks ?php ini_set('display_errors', E_ALL); require_once

[PHP] Re: creating a threaded message system--sorting messages

2006-06-29 Thread Adam Zey
Ben Liu wrote: This question might deviate from PHP into the domain of MySQL but I thought best to post here first. I'm building a message board system with PHP/MySQL. I'm trying to present the messages to the users in threaded order rather than flat. I'm having a lot of trouble figuring out how

RE: [PHP] running system()

2006-06-29 Thread Mark Steudel
I'm trying to use gpgp to encrypt and decrypt files. I can get it to work if it's a scheduled task, as the user that's running the task isn't the web user, but I was just wondering if there was a way to safely enable system for a shared environment. -Original Message- From: Chris

[PHP] Re: Re: creating a threaded message system--sorting messages

2006-06-29 Thread Ben Liu
On 6/29/06, Adam Zey [EMAIL PROTECTED] wrote: Just throwing an idea out there, but you can do the sorting entirely in the SQL query. The trick is to figure out the best way. The first idea that came to mind (and it sucks, but it works), is a text field with padded numbers separated by dots,

RE: [PHP] Re: Re: creating a threaded message system--sorting messages

2006-06-29 Thread KermodeBear
Sounds like that darn Hierarchial Data again. Give this a read and see if it helps you out at all. In particular, you may find the area 'Finding the Depth of the Nodes' helpful. http://dev.mysql.com/tech-resources/articles/hierarchical-data.html Hope it helps, -K.Bear -- PHP General Mailing

Re: [PHP] working on a template system...

2006-06-29 Thread Charlene Wroblewski
*joining the fray a little late* What is the difference between this, Smarty and template.inc? I have found Smarty to be unusable in my situation where a graphic designer needs to be able to edit the html and is easily confused by non-html. So, I am using template.inc which is apparently

[PHP] design?

2006-06-29 Thread Sjef
Hi there, I am starting a new, very small project. A simple question and answering form. In one screen, question and answer can be typed, the strings will be saved in a database table questions which holds question and answer (as there is only one answer to a question). There will be a webpage

[PHP] Re: Update site through email

2006-06-29 Thread Manuel Lemos
Hello, on 06/29/2006 10:54 AM Rodrigo de Oliveira Costa said the following: Hy guys I'd like to know if there is a way to update a site through sending an email. Something like this, you send an email and the body of the email substitutes a text you use in your site. Igreat apreciate any help

Re: [PHP] image upload problem

2006-06-29 Thread Jochem Maas
suresh kumar wrote: Hi, hi ([EMAIL PROTECTED]([EMAIL PROTECTED]([EMAIL PROTECTED](*%([EMAIL PROTECTED]([EMAIL PROTECTED]@# I am waiting reply from any one do we have someone here called 'any one'? how about you reply to one of the people who answer your questions. PS - the tmp file is

Re: [PHP] Documentation software

2006-06-29 Thread Jochem Maas
Mathieu Dumoulin wrote: This is not a php specific question but more a programming question. I'd oh we'll answer Q's on anything from ASP to STDs on this list ;-) like to know names of software that help in creating documentation like the microsoft style of documentation when you visit the

[PHP] Re: Update site through email

2006-06-29 Thread Adam Zey
Manuel Lemos wrote: Hello, on 06/29/2006 10:54 AM Rodrigo de Oliveira Costa said the following: Hy guys I'd like to know if there is a way to update a site through sending an email. Something like this, you send an email and the body of the email substitutes a text you use in your site. Igreat

[PHP] Re: Re: creating a threaded message system--sorting messages

2006-06-29 Thread Ben Liu
SOLVED, almost. I read the article suggested by K.Bear and found the recommended solution to be a bit more complicated than I wanted to implement. I then found another way to do this using the existing Adjacency List Model through a recursive function. So basically, you query the database for the

[PHP] Find out cookies on a computer?

2006-06-29 Thread Peter Lauri
Is it possible to some how find out all cookies on a specific computer and their name and value? I assume not :) /Peter

[PHP] Re: creating a threaded message system--sorting messages

2006-06-29 Thread Adam Zey
Ben Liu wrote: SOLVED, almost. I read the article suggested by K.Bear and found the recommended solution to be a bit more complicated than I wanted to implement. I then found another way to do this using the existing Adjacency List Model through a recursive function. So basically, you query the

[PHP] RE: Find out cookies on a computer?

2006-06-29 Thread Peter Lauri
Is the question dumb? Why you answer it then? It is very interesting in a security manner. I have very low knowledge about them, so therefore the question. And if you think this question is unethical, and the rest of the society does that, we would probably not have as secure technology regarding

[PHP] Re: Find out cookies on a computer?

2006-06-29 Thread Adam Zey
Peter Lauri wrote: Is it possible to some how find out all cookies on a specific computer and their name and value? I assume not :) /Peter No, because you don't OWN them, therefore you have no right (either technologically or ethically) to see them. Asking such unethical questions on

[PHP] Re: Find out cookies on a computer?

2006-06-29 Thread Michael Rasmussen
On Fri, 30 Jun 2006 04:23:51 +0700, Peter Lauri wrote: Is it possible to some how find out all cookies on a specific computer and their name and value? I assume not :) The global array $_COOKIE should hold any cookie which is available to you -- Hilsen/Regards Michael Rasmussen

RE: [PHP] Re: creating a threaded message system--sorting messages

2006-06-29 Thread KermodeBear
Hello, As Adam pointed out, this can be deadly to your database, especially as the number of posts grows. If you want to go that route, I would recommend selecting all the posts in that particular thread and sorting the data out in PHP somehow. No need to slam your database with (potentially)

RE: [PHP] Re: Find out cookies on a computer?

2006-06-29 Thread Peter Lauri
snip The global array $_COOKIE should hold any cookie which is available to you /snip Yes, but that is just for the ones available for me. Like Google, they set a cookie if you click on one of their adwords ads and then use them in the tracking of the customer conversion. Cookies like this are

RE: [PHP] Re: Find out cookies on a computer?

2006-06-29 Thread Jay Blanchard
[snip] But I am loosing hope that it can be done now :) [/snip] I will go ahead and remove all hope. If you do not own the cookie, you cannot see it or use it. It is a rule of this jungle that has been in place for years. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Re: Find out cookies on a computer?

2006-06-29 Thread Michael Rasmussen
On Fri, 30 Jun 2006 05:06:33 +0700, Peter Lauri wrote: Yes, but that is just for the ones available for me. Like Google, they set a cookie if you click on one of their adwords ads and then use them in the tracking of the customer conversion. The place where the cookies are stored is

Re: [PHP] Re: Find out cookies on a computer?

2006-06-29 Thread Dave Goodchild
On 29/06/06, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] But I am loosing hope that it can be done now :) [/snip] I will go ahead and remove all hope. If you do not own the cookie, you cannot see it or use it. It is a rule of this jungle that has been in place for years. Yes, let's put this

Re: [PHP] RE: Find out cookies on a computer?

2006-06-29 Thread Richard Collyer
Peter Lauri wrote: Is the question dumb? Why you answer it then? It is very interesting in a security manner. I have very low knowledge about them, so therefore the question. And if you think this question is unethical, and the rest of the society does that, we would probably not have as secure

Re: [PHP] Re: creating a threaded message system--sorting messages

2006-06-29 Thread Dan McCullough
I've come into this discussion pretty late so please bear with me if I go over something that has been ruled out. You are trying to print out in a threaded method the first post in a thread followed by each post after that, that is a child/reply to that post. Is that correct? So something like

RE: [PHP] RE: Find out cookies on a computer?

2006-06-29 Thread Peter Lauri
Thank you, great reading :) -Original Message- From: Richard Collyer [mailto:[EMAIL PROTECTED] Sent: Friday, June 30, 2006 5:01 AM To: php-general@lists.php.net Subject: Re: [PHP] RE: Find out cookies on a computer? Peter Lauri wrote: Is the question dumb? Why you answer it then? It is

Re: [PHP] running number in paging

2006-06-29 Thread Chris
weetat wrote: Hi all , I have using PEAR:Pager , to do paging . If you have a pear question, ask on the pear mailing list. http://pear.php.net/support/ We do not know their code or how to use it. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List

Re: [PHP] [NEWBIE] PHP General List Guide Other Good Stuff

2006-06-29 Thread Chris
Jay Blanchard wrote: Recommended reading http://zirzow.dyndns.org/php-general/NEWBIE Should we add a link to the pear support page for pear related questions? Something as simple as: If you have a question about any of the pear packages, join the appropriate list here:

Re: [PHP] [NEWBIE] PHP General List Guide Other Good Stuff

2006-06-29 Thread Scott Heinrichs
This was listed in another thread but I think would be a great tool and online refference for any one who is programming in PHP and especially for NEWBIES. http://www.hudzilla.org/phpbook/ note: This is one of the best reads I have seen, both online and in print. On 6/29/06, Chris [EMAIL

[PHP] xpath question

2006-06-29 Thread bruce
hi... in getting information on xpath/xml.. i thought i'd ask these lists as well... i'm trying to find out if there's a tool that i could use to load an HTML web page into, that would allow me to point to a given item/element within the Tree/DOM structure and allow me to see what the Xpath

Re: [PHP] design?

2006-06-29 Thread David Tulloh
Sjef wrote: Hi there, I am starting a new, very small project. A simple question and answering form. In one screen, question and answer can be typed, the strings will be saved in a database table questions which holds question and answer (as there is only one answer to a question). There

Re: [PHP] Multiple if() statements

2006-06-29 Thread Larry Garfield
On Thursday 29 June 2006 06:51, tedd wrote: At 8:15 PM -0400 6/28/06, Robert Cummings wrote: On Wed, 2006-06-28 at 20:02, David Tulloh wrote: Grae Wolfe - PHP wrote: ... want. Any help would be great! -snip- if/elseif -snip- holy war id=opinion Whenever you need a elseif,

[PHP] Functions

2006-06-29 Thread [EMAIL PROTECTED]
I am trying to create a function to clean up variables that are user inputted from a form. I am not getting this script to work. Can anyone help. ---Start Script--- function cleaner($var) { trim(strip_tags(ucfirst(addslashes($var; } $var = abc's; echo $var; ---End Script--- When I run

Re: [PHP] creating a threaded message system--sorting messages

2006-06-29 Thread Larry Garfield
On Thursday 29 June 2006 09:11, Ben Liu wrote: relevant data structure loosely: post_id (unique, autoincrement, primary index) parent_id (if the post is a child, this field contains the post_id of its parent) ... 1) Query the database for all messages under a certain topic, sort by

Re: [PHP] Multiple if() statements

2006-06-29 Thread John Meyer
Larry Garfield wrote: switch is fine if your elseif comparisons are equality based. If they're not equality based, then they don't map to switch as well. In other words, if you look at a logical ladder as the roots of the tree, as long as each root has the same number of forks (say each

Re: [PHP] Functions

2006-06-29 Thread John Meyer
Two things: 1. You're not returning anything from the function. 2. You're not even using the function. [EMAIL PROTECTED] wrote: I am trying to create a function to clean up variables that are user inputted from a form. I am not getting this script to work. Can anyone help. ---Start

Re: [PHP] Functions

2006-06-29 Thread Chris
[EMAIL PROTECTED] wrote: I am trying to create a function to clean up variables that are user inputted from a form. I am not getting this script to work. Can anyone help. ---Start Script--- function cleaner($var) { trim(strip_tags(ucfirst(addslashes($var; } $var = abc's; echo $var;