Re: [PHP] Convert html to pdf with php

2008-03-21 Thread Kai Kauer
Am Donnerstag, 20. März 2008 22:42:59 schrieb Robert Burdo: Does anyone know how to convert an HTML form to a pdf with php? Do you know FPDF? This can be a possibility. www.fpdf.org Kai -- Mit freundlichen Grüßen Kai Kauer Bruno - Taut - Ring 60 39130 Magdeburg Tel.: 0391 - 506 99 76

Re: [PHP] question about customized error

2008-03-21 Thread M. Sokolewicz
Jim Lucas wrote: Sudhakar wrote: if a user by mistake types the wrong url directly in the address bar ex= www.website.com/abou.php instead of typing www.website.com/aboutus.php instead of the browser displaying File not found or a 404 error message i would like to display a customized page

[PHP] Re: fwrite/fclose troubles

2008-03-21 Thread Al
int file_put_contents ( string $filename, mixed $data [, int $flags [, resource $context]] ) This function is identical to calling fopen(), fwrite() and fclose() successively to write data to a file. This native function does it for you Mark Weaver wrote: Hi all, I've been lurking and

Re: [PHP] Re: fwrite/fclose troubles

2008-03-21 Thread Dave Goodchild
Why are you writing a logging class? Why not use error_log and enable error logging? On Fri, Mar 21, 2008 at 1:11 PM, Al [EMAIL PROTECTED] wrote: int file_put_contents ( string $filename, mixed $data [, int $flags [, resource $context]] ) This function is identical to calling fopen(),

[PHP] Re: [PHP-INSTALL] I cant get php_gd.dll to work

2008-03-21 Thread Daniel Brown
On Thu, Mar 20, 2008 at 10:04 PM, Mark [EMAIL PROTECTED] wrote: Hi, Im new to php and i cant get the gd graphics library to work. Im running Apache, Mysql, Windows xp I downloaded and installed php from php.net. After much screwing around I finally got in to work with mysql and wrote a

Re: [PHP] Re: fwrite/fclose troubles

2008-03-21 Thread Thijs Lensselink
Quoting Dave Goodchild [EMAIL PROTECTED]: Why are you writing a logging class? Why not use error_log and enable error logging? Maybe he wants to log user actions in an application? Can log so much more then just errors. But the answer to this problem was already given. :) On Fri, Mar

Re: [PHP] question about customized error

2008-03-21 Thread Daniel Brown
On Thu, Mar 20, 2008 at 6:54 PM, Sudhakar [EMAIL PROTECTED] wrote: if a user by mistake types the wrong url directly in the address bar ex= www.website.com/abou.php instead of typing www.website.com/aboutus.php instead of the browser displaying File not found or a 404 error message i would

[PHP] Re: [PHP-DB] ini_set ...

2008-03-21 Thread Daniel Brown
On Fri, Mar 21, 2008 at 10:20 AM, VanBuskirk, Patricia [EMAIL PROTECTED] wrote: I have the line ini_set('display_errors', 'on'); in my code, but it is not working. Does it need to be the first command on the page? [merge] I have full access to the php.ini file, which is what I do now to

[PHP] spider

2008-03-21 Thread tedd
Hi gang: How do you spider a remote web site in php? I get the general idea, which is to take the root page, strip out the links and repeat the process on those links. But, what's the code? Does anyone have an example they can share or a direction for me to take? Also, is there a way to

Re: [PHP] spider

2008-03-21 Thread Wolf
tedd [EMAIL PROTECTED] wrote: Hi gang: How do you spider a remote web site in php? I get the general idea, which is to take the root page, strip out the links and repeat the process on those links. But, what's the code? Does anyone have an example they can share or a direction

Re: [PHP] spider

2008-03-21 Thread Robert Cummings
On Fri, 2008-03-21 at 13:58 -0400, Wolf wrote: tedd [EMAIL PROTECTED] wrote: In one word: CURL In another word: WGET Both are pretty effecitve and give pretty much the same results, however with the CURL you can pass other things alone (user:pass) which with wget you can not do.

Re: [PHP] spider

2008-03-21 Thread Daniel Brown
On Fri, Mar 21, 2008 at 1:58 PM, Wolf [EMAIL PROTECTED] wrote: In one word: CURL In another word: WGET Both are pretty effecitve and give pretty much the same results, however with the CURL you can pass other things alone (user:pass) which with wget you can not do. [EMAIL PROTECTED]

Re: [PHP] spider

2008-03-21 Thread Wolf
Daniel Brown [EMAIL PROTECTED] wrote: On Fri, Mar 21, 2008 at 1:58 PM, Wolf [EMAIL PROTECTED] wrote: In one word: CURL In another word: WGET Both are pretty effecitve and give pretty much the same results, however with the CURL you can pass other things alone (user:pass)

Re: [PHP] spider

2008-03-21 Thread Børge Holen
On Friday 21 March 2008 18:58:59 Wolf wrote: tedd [EMAIL PROTECTED] wrote: Hi gang: How do you spider a remote web site in php? I get the general idea, which is to take the root page, strip out the links and repeat the process on those links. But, what's the code? Does anyone

Re: [PHP] Double click problem [SOLVED]

2008-03-21 Thread tedd
Hi gang: This is probably trivial for most of you, but here's my solution to the problem I presented earlier. The problem was, I just wanted to be certain that if a use clicked a button that they could only do it once. Sounds simple enough, huh? Certainly, one can use javascript, but I

Re: [PHP] spider

2008-03-21 Thread Børge Holen
On Friday 21 March 2008 19:12:04 Wolf wrote: Daniel Brown [EMAIL PROTECTED] wrote: On Fri, Mar 21, 2008 at 1:58 PM, Wolf [EMAIL PROTECTED] wrote: In one word: CURL In another word: WGET Both are pretty effecitve and give pretty much the same results, however with the

Re: [PHP] spider

2008-03-21 Thread Wolf
Børge Holen [EMAIL PROTECTED] wrote: On Friday 21 March 2008 19:12:04 Wolf wrote: Daniel Brown [EMAIL PROTECTED] wrote: On Fri, Mar 21, 2008 at 1:58 PM, Wolf [EMAIL PROTECTED] wrote: In one word: CURL In another word: WGET Both are pretty effecitve and

[PHP] pulling text from a file

2008-03-21 Thread Richard Kurth
I have a text file that looks like the one below. I need to read the file into a database. I was trying the script below but is not working can you help? $lines = file_get_contents('clientlist1.txt'); $find=Address:; $f= strstr($f,$find); $separat=City:; $ADDRESS = substr($f, 0,

Re: [PHP] spider

2008-03-21 Thread tedd
At 1:52 PM -0400 3/21/08, tedd wrote: Hi gang: How do you spider a remote web site in php? You guys are always doing this. I ask a simple question like what's a + b and you guys high-jack the thread and start discussing the quadratic equation. :-) I knew sometime I would have to figure

Re: [PHP] spider

2008-03-21 Thread Daniel Brown
On Fri, Mar 21, 2008 at 1:52 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: How do you spider a remote web site in php? I get the general idea, which is to take the root page, strip out the links and repeat the process on those links. But, what's the code? I make absolutely no warranty

RE: [PHP] pulling text from a file

2008-03-21 Thread Jay Blanchard
[snip] I have a text file that looks like the one below. I need to read the file into a database. I was trying the script below but is not working can you help? [/snip] Loop through with fopen and fgets http://www.php.net/fopen http://www.php.net/fgets -- PHP General Mailing List

Re: [PHP] spider

2008-03-21 Thread Ray Hauge
tedd wrote: Hi gang: How do you spider a remote web site in php? I get the general idea, which is to take the root page, strip out the links and repeat the process on those links. But, what's the code? Does anyone have an example they can share or a direction for me to take? Also, is there

Re: [PHP] Double click problem [SOLVED]

2008-03-21 Thread Eric Butera
On Fri, Mar 21, 2008 at 2:24 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: This is probably trivial for most of you, but here's my solution to the problem I presented earlier. The problem was, I just wanted to be certain that if a use clicked a button that they could only do it once.

Re: [PHP] spider

2008-03-21 Thread Wolf
I knew sometime I would have to figure out what CURL is, but now WGET (WETFTI) as well. I was hoping for something simple that wouldn't hurt my brain. Thanks a lot guys! :-) For hijacking the thread? No Problem! For making your brain hurt? Anytime!! We're just here to help! ;) --

Re: [PHP] pulling text from a file

2008-03-21 Thread Richard Kurth
Richard Kurth wrote: I have a text file that looks like the one below. I need to read the file into a database. I was trying the script below but is not working can you help? $lines = file_get_contents('clientlist1.txt'); $find=Address:; $f= strstr($f,$find); $separat=City:; $ADDRESS =

Re: [PHP] spider

2008-03-21 Thread Eric Butera
On Fri, Mar 21, 2008 at 1:52 PM, tedd [EMAIL PROTECTED] wrote: Also, is there a way to spider through a remote web site gathering directory permissions? I should hope not. If not, can one attempt to write a file and record the failures/successes (0777 directories)? I don't know if

Re: [PHP] spider

2008-03-21 Thread TG
Ok, so the CURL and WGET stuff has been mentioned, but I don't think that really addresses your question. You didn't ask what the best way to do this, you asked how you would do it in PHP. Here's what I would consider to be the 'theory' of the exercise: * Do we obey robots.txt? If so, get

[PHP] Posting Summary for Week Ending 21 March, 2008: php-general@lists.php.net

2008-03-21 Thread PostTrack [Dan Brown]
Posting Summary for PHP-General List Week Ending: Friday, 21 March, 2008 Messages| Bytes | Sender ++-- 349 (100%) 782080 (100%) EVERYONE 27 (7.7%)

Re: [PHP] spider

2008-03-21 Thread TG
Good call, Ray. And depending on how much you need to pull, you might also include img and iframe src values. Also test to make sure there's an href value for the a tags, they could also be a name=somename without an href. It gets really tricky when you start looking at javascript

Re: [PHP] spider

2008-03-21 Thread tedd
To get directory permissions, you'd really have to go through either FTP or a terminal connection (telnet, etc). Yes, but that's doing it programmatically, what about this? What if you knew that a directory on a site was set to 0777 -- what damage could you cause? I have seen scripts that

[PHP] Re: MCrypt not decrypting simple text

2008-03-21 Thread Dan
Ok, looks like I'm not getting much intrest here, can anyone recomend which newsgroup I should post this under? Is there a crypto group or anything of the like?: - Dan Dan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using MCrypt and I have two very simple functions. All

Re: [PHP] Double click problem [SOLVED]

2008-03-21 Thread Jim Lucas
tedd wrote: Hi gang: This is probably trivial for most of you, but here's my solution to the problem I presented earlier. The problem was, I just wanted to be certain that if a use clicked a button that they could only do it once. Sounds simple enough, huh? Certainly, one can use

[PHP] relative linking in php

2008-03-21 Thread Sudhakar
i am using a self submitting for using php form action=?php echo $_SERVER[PHP_SELF]; ? method=POST id=test2 name=registrationform the registration page starts with a lot of terms and other details about the registration and then the form fields for the user to fill the registration page. i have

[PHP] problem with sessions config.

2008-03-21 Thread N . Boatswain
Hello guys; i'm having a problem with session behavior; i'm going straight to it, but first some considerations: PHP Version 5.2.5IIF 5.1Running on localhost (XP machine)I start sessions at the top of every page. A the start of a test page, just as example, i do the assignment: