[PHP] Re: Creating watermarks

2007-08-05 Thread Christian Hänsel
"zerof" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] Tom Ray [Lists] escreveu: I've been learning how to use PHP with the GD Library and I've managed to learn quite a bit. I can upload, resize, create thumbnails and I'm even able to create "security code" images for forms.

Re: [PHP] About MySQL Tables

2007-08-05 Thread Robert Cummings
On Sun, 2007-08-05 at 21:35 -0700, Kelvin Park wrote: > I have two tables that share product codes to relate data. > One table is called IMAGE, and another one is called the PRODUCT. > There are more than one image for every product, for example product > code 1122 will have 3 images and 4938 will

[PHP] About MySQL Tables

2007-08-05 Thread Kelvin Park
I have two tables that share product codes to relate data. One table is called IMAGE, and another one is called the PRODUCT. There are more than one image for every product, for example product code 1122 will have 3 images and 4938 will have 5 images within the IMAGE table. Since all my product

Re: [PHP] PDO lastInsertID always returns zero for MySQL tables [SOLVED]

2007-08-05 Thread Ken Tozier
Disregard. After more head scratching I found that I was branching to the 'insert' handler without calling this->db->query($query). On Aug 5, 2007, at 9:18 PM, Ken Tozier wrote: Hi In the past, I always used mysql_insert_id() and never had a problem, but now that I'm using PDO, I'm find

RE: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread Jan Reiter
You've got a point about that. Try http://localhost/path/to/webdir";); ?> First ... If you see your own webpage it's okay, else don't mess with it. -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Monday, August 06, 2007 2:51 AM To: Jan Reiter Cc: 'Mike'; php-general@lis

[PHP] PDO lastInsertID always returns zero for MySQL tables

2007-08-05 Thread Ken Tozier
Hi In the past, I always used mysql_insert_id() and never had a problem, but now that I'm using PDO, I'm finding that it always returns zero. The tables are identical between the two methods but where mysql_insert_id works $pdo_connection->lastInsertID() doesn't. The PDO documentation sta

Re: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread Chris
Jan Reiter wrote: Nice to hear that! If you expect heavy traffic on the site using that script you might want try to save some DNS and http connection overhead by stating the url with http://localhost/ and so on. Which will most likely point to a different virtual host and cause you even more

RE: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread Jan Reiter
Nice to hear that! If you expect heavy traffic on the site using that script you might want try to save some DNS and http connection overhead by stating the url with http://localhost/ and so on. Given that the server's OS is unix based, it may also work to execute the php-script like a shell scrip

Re: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread Mike
Hah, it works! I had to fiddle around a few other errors but that did the trick! Thank you so much. :) -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session_start(): Cannot send session cache limiter...

2007-08-05 Thread Nisse Engström
On Fri, 20 Jul 2007 16:39:51 -0500 (CDT), "Richard Lynch" wrote: > Did you save it as UTF-8 with that byte-order-mark (BOM) thingie? > > Does UTF-8 even HAVE a BOM? : "byte order markFEFF" U+FEFF is in UTF-8. /Nisse -- PHP Genera

[PHP] Get list of timezones from UTC offset

2007-08-05 Thread Norbert Wenzel
As far as I understand it is only possible to create a DateTimeZone Object from a string, which describes the timezone. On the other hand it is not possible (at least I did not find any possibility) to get the users tz string, it is only possible to get the current UTC offset. (via JavaScript

Re: [PHP] Adding to time having a timestamp

2007-08-05 Thread Stut
OOzy Pal wrote: How can I add a day to a date if I have a timestamp. Here is my line: list($d,$m,$y,$dayname,$monthname,$am)=explode(' ',date('d m Y D M a', $timestamp)); Thank you in advance $timestamp = $timestamp + 86400; A timestamp is a number of seconds and there are 86400 seconds in a

RE: [PHP] Check for well formed html

2007-08-05 Thread Kathleen Ballard
Tedd, Finally, I can give you an answer! :) You can use html tidy. I did this before the php tidy function was fully implemented, so I don't know the syntax for that. But using tidy from the command line you can set have it either correct errors (probably not what you want) or just have it retu

Re: [PHP] Wierd error with xml_set_element_handler()

2007-08-05 Thread Tijnema
On 8/5/07, Bruce Steinback <[EMAIL PROTECTED]> wrote: > Okay, I'm probably really stupid, but I can't figure this out. I'm getting > the error: > > Fatal error: Function name must be a string in .../pages-stage/loginresp.php > on > line 205 > > (which is the xml_set_element_handler() call) > > w

[PHP] Wierd error with xml_set_element_handler()

2007-08-05 Thread Bruce Steinback
Okay, I'm probably really stupid, but I can't figure this out. I'm getting the error: Fatal error: Function name must be a string in .../pages-stage/loginresp.php on line 205 (which is the xml_set_element_handler() call) with this code: function startElement($parser, $name, $attrs) { g

Re: [PHP] Problem with php mail

2007-08-05 Thread Carlton Whitehead
Jason, There's a chance your domain link is listed on a spam URL realtime blocklist. Try using http://www.rulesemporium.com/cgi-bin/uribl.cgi to find out. This might also be totally wrong, just throwing that around as a possibility since you mentioned the problem happens with URLs. Does the p

Re: [PHP] Rejecting File Upload

2007-08-05 Thread Tijnema
On 8/5/07, php mail <[EMAIL PROTECTED]> wrote: > Hi All, > > How do I prior check file's size in server side before the upload process > begin ? > > Regards, > > Feris > You can't do it with PHP, with PHP you can only check it after the file has uploaded, you can only do it on the client side. Thi

Re: [PHP] Problem with php mail

2007-08-05 Thread Tijnema
On 8/5/07, Jason Sia <[EMAIL PROTECTED]> wrote: > Hi Everyone, >I'm having problem with php mail. When I try to create an html message > with only mydomain, gmail is registering it as a > spam while yahoo is not. Can you suggest solutions to my problem. > > Thanks, > Jason > There are a lo

Re: [PHP] Check for well formed html

2007-08-05 Thread Tijnema
On 8/5/07, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I have a client who wants to include html tags in his CMS. > > I know that I can limit what tags he can use, but how can I check if > the text is well formed with the tags permitted before storing it in > his CMS? > > Cheers, > > tedd > Hav

RE: [PHP] Problem with php mail

2007-08-05 Thread Bastien Koert
Can you post the headers that you are using...they play a role how the message is viewed by the receiving agent bastien > Date: Sat, 4 Aug 2007 21:06:53 -0700 > From: [EMAIL PROTECTED] > To: php-general@lists.php.net > Subject: [PHP] Problem with php

[PHP] Check for well formed html

2007-08-05 Thread tedd
Hi gang: I have a client who wants to include html tags in his CMS. I know that I can limit what tags he can use, but how can I check if the text is well formed with the tags permitted before storing it in his CMS? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http

RE: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread Jan Reiter
Hi! If you want file_get_contents() to open the compiled data, force the server to compile it first. ;-) Do not open the file from filesystem, use the ULR (http://server/flash_frames.php?...). For this fopen() wrappers have to be enabled. http://www.php.net/manual/en/function.file-get-contents.ph

Re: [PHP] Problem with php mail

2007-08-05 Thread Richard Heyes
I'm having problem with php mail. When I try to create an > html message with only mydomain, gmail is registering it as a spam while yahoo is not. Can you suggest solutions to my problem. Try sending a real message. Messages being too small is one indicator of a message being junk. -- Rich