php-general Digest 26 Jul 2007 12:21:16 -0000 Issue 4925

2007-07-26 Thread php-general-digest-help
php-general Digest 26 Jul 2007 12:21:16 - Issue 4925 Topics (messages 259544 through 259557): Re: No is_date() function? 259544 by: Ken Tozier 259546 by: Crayon Shin Chan 259548 by: M. Sokolewicz Malformed Email Date Header 259545 by: Chris Aitken day in

Re: [PHP] The Official OT Name Tedd's Grandson Thread

2007-07-26 Thread Micky Hulse
Congrats Tedd! :) Cheers, Micky -- Wishlists: http://snipurl.com/1gqpj Switch: http://browsehappy.com/ BCC?: http://snipurl.com/w6f8 My: http://del.icio.us/mhulse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: day in week

2007-07-26 Thread M. Sokolewicz
Christian Hänsel wrote: Good morning fellas, I was wondering if there was a function like is_this_week()... What I have is a statistics table for the last week, from strtotime(Last Monday) to strtotime(Last Sunday)... now I wanna put a different background colour on the rows where the shown

[PHP] Re: The Official OT Name Tedd's Grandson Thread

2007-07-26 Thread Colin Guthrie
tedd wrote: At 8:53 AM -0400 7/25/07, Daniel Brown wrote: First of all, congrats to Tedd on his 9th grandchild, a boy, at 8lbs. 9oz. Congrats do Tedd and to your son and his partner! My son just informed me that the baby's name is Jacob William Sperling. I now have a grandson who's name

Re: [PHP] No is_date() function?

2007-07-26 Thread M. Sokolewicz
This is top-posting Ken Tozier wrote: On Jul 25, 2007, at 10:37 AM, Edward Kay wrote: PS: Please don't top post on mailing lists. I'm unfamiliar with the term top post. What does it mean? and this is bottom-posting. Generally on mailinglists it's common to bottom-post and not top-post.

[PHP] appendChild(), removeChild()

2007-07-26 Thread Man-wai Chang
If the child refers to a file, is it client-side only? I meant it's nothing like AJAX, right? -- @~@ Might, Courage, Vision, SINCERITY. / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Xubuntu 7.04) Linux 2.6.22.1 ^ ^ 18:44:01 up 14 days 20:48 1 user load

Re: [PHP] query not working properly

2007-07-26 Thread Richard Davey
Hi Joey, Thursday, July 26, 2007, 1:36:37 PM, you wrote: Hi everyone, I'mt trying to do the below query which itself works correctly, but when I add a order by statement just bombs. $query = select * from articles where ( {$now} BETWEEN startdate AND enddate) and categoryid = 1

[PHP] query not working properly

2007-07-26 Thread Joey B
Hi everyone, I'mt trying to do the below query which itself works correctly, but when I add a order by statement just bombs. $query = select * from articles where ( {$now} BETWEEN startdate AND enddate) and categoryid = 1 limit 0,3; $query = select * from articles order by

[PHP] Re: Hide the real URL

2007-07-26 Thread elk dolk
Paul Novitski [EMAIL PROTECTED] wrote: Date: Thu, 26 Jul 2007 06:50:47 -0700 To: php-general@lists.php.net From: Paul Novitski [EMAIL PROTECTED] Subject: Re: [PHP] Hide the real URL Thank you Paul and everybody for the useful suggestions I need some time to test all of them. elk

[PHP] HTML Email Composing Problem.

2007-07-26 Thread Tom Ray [Lists]
I'm trying to use PHP to compose an HTML formatted email and I'm running into some small problems. 1) When using Content-Type: multipart/mixed during my testing both Thunderbird and Gmail display the plain text and html version of the email and Firefox attaches the html portion as an

[PHP] Found the problem...

2007-07-26 Thread Rob Adams
Found the problem. The piece of code was outside of a block where $db had been created, so it was a non-object the whole time... Easily fixed, but a hard error to find when I'm assuming it's my brand new class that's the problem. -- Rob Rob Adams [EMAIL PROTECTED] wrote in message

RE: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Chris Aitken
Solution 1: Send a header() that avoids caching (can't remember it exactly) Solution 2: Call the image like this: img src=image.jpg?arandomstringhereeachtime Or if you were creating it with a php script: img src=image.php?img=image.jpgarandomstringhereeachtime My preferred way of doing it,

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread brian
Tijnema wrote: On 7/26/07, Dan [EMAIL PROTECTED] wrote: I have a situation where there is a single image let's call it somebody.jpg. I want to be able to dynamicly create this image using php, basicilly I have PHP set to handle .jpg files also, so I then go through and create an image based

RE: [PHP] Re: Malformed Email Date Header

2007-07-26 Thread Chris Aitken
Most likely it's the server's time/date problem. Did you check to make sure that the time/date is in the correct timezone, etc? I know this isn't really the right way to do it, but you could always just move the server's clock back 10 hours if it's really always 10 hours ahead of time.

Re: [PHP] need help,pls

2007-07-26 Thread Alan Milnes
On 26/07/07, esimaje juan toritseju [EMAIL PROTECTED] wrote: hi, My name is Juan, i need help from you and i will be greatful if you could assist me,i have got an academic project to create a website .Within the page i should create a login session for users ,i will have a database to save

Re: [PHP] Re: DOM

2007-07-26 Thread Larry Garfield
On Thursday 26 July 2007, Man-wai Chang wrote: Does Web 2.0 or maybe 3.0 offer some new input types, say something like a real grid, or maybe a modal child popup? Java is just a specialized DOM... in my opinion. Java has absolutely nothing to do with the subject at hand. Java is a

Re: [PHP] Hide the real URL

2007-07-26 Thread tedd
At 6:18 AM -0700 7/26/07, elk dolk wrote: Hi all, I want to hide the real URL to my images by masking it with PHP the code looks like this: if you look at the source in browser you will see: img src='http://www.mysite.com/img/111.jpg' / how can I show it like this: img

Re: [PHP] Hide the real URL

2007-07-26 Thread Robert Cummings
On Thu, 2007-07-26 at 22:08 -0400, tedd wrote: There's a couple of protect your image schemes that will frustrate the typical user, but they can be easily broken, like the one I created here: http://www.webbytedd.com/b/protect_image/ Others might have done it, but I haven't seen anyone

[PHP] Re: need help,pls

2007-07-26 Thread Dan
While we can point you in the right direction we can't build your project for you. You cover such a wide range of topics it's like you're trying to write a huge project but don't know actually how to use PHP. My recomendation is to go get a good PHP book, there's been a lot of discussion

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Dan
Well, this is only one specific image that constantly changes, the rest of the page is handled regularly. From what you've said if I go with this header(Cache-Control: no-cache, must-revalidate); // HTTP/1.1 header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); // Date in the past That will effect

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Dan
Is this header you're refering to the header of the page which contains the image, or the image itself? - Dan Tijnema [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 7/27/07, brian [EMAIL PROTECTED] wrote: Tijnema wrote: On 7/26/07, Dan [EMAIL PROTECTED] wrote: I have a

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Tijnema
On 7/27/07, Chris Aitken [EMAIL PROTECTED] wrote: header('Cache-Control: no-store, no-cache, must-revalidate, Post-Check=0, Pre-Check=0'); brian That's HTTP/1.1 only, but this is what I got from PHP site: ?php header(Cache-Control: no-cache, must-revalidate); // HTTP/1.1 header(Expires:

Re: [PHP] How to get stored procedure return values via PDO?

2007-07-26 Thread Bruce Cowin
I had a similar problem using PDO on MS Sql Server where I was trying to return the id of an inserted row. I ended up giving up and doing a second query to get @@IDENTITY. Regards, Bruce Richard Davey [EMAIL PROTECTED] 27/07/2007 12:51 a.m. Hi, I'm calling a MySQL Stored Procedure via PDO

[PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Dan
I have a situation where there is a single image let's call it somebody.jpg. I want to be able to dynamicly create this image using php, basicilly I have PHP set to handle .jpg files also, so I then go through and create an image based upon some info I get from a database call and then use

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Tijnema
On 7/26/07, Dan [EMAIL PROTECTED] wrote: I have a situation where there is a single image let's call it somebody.jpg. I want to be able to dynamicly create this image using php, basicilly I have PHP set to handle .jpg files also, so I then go through and create an image based upon some info I

[PHP] need help,pls

2007-07-26 Thread esimaje juan toritseju
hi, My name is Juan, i need help from you and i will be greatful if you could assist me,i have got an academic project to create a website .Within the page i should create a login session for users ,i will have a database to save designs, i do know how to create the database but, do not know

[PHP] Re: HTML Email Composing Problem.

2007-07-26 Thread Dan
I know it's not specificly a fix to your problem but it might be the easiest solution. Check out http://phpmailer.sourceforge.net/ it lets you specify an html and text body meaning it handles all the content-type stuff for you. It's really a nice solution. Tom Ray [Lists] [EMAIL PROTECTED]

Re: [PHP] Re: Pirate PHP books online?

2007-07-26 Thread Tijnema
On 7/26/07, Stut [EMAIL PROTECTED] wrote: Man-wai Chang wrote: You could open a sample book in bookstores, scan the chapters to decide whether you are gonna buy it. Not even slightly relevant, but it made me think of this (seemingly neverending) thread. http://xkcd.com/294/ -Stut Haha,

Re: [PHP] Re: Pirate PHP books online?

2007-07-26 Thread Tijnema
On 7/26/07, Daniel Brown [EMAIL PROTECTED] wrote: On 7/26/07, Tijnema [EMAIL PROTECTED] wrote: On 7/26/07, Stut [EMAIL PROTECTED] wrote: Man-wai Chang wrote: You could open a sample book in bookstores, scan the chapters to decide whether you are gonna buy it. Not even slightly

Re: [PHP] Re: The Official OT Name Tedd's Grandson Thread

2007-07-26 Thread Daniel Brown
On 7/26/07, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2007-07-26 at 16:24 +0100, Colin Guthrie wrote: M. Sokolewicz wrote: It's not the only, about 50% of threads have it, and another 50% don't. For instance, the DOM thread does not have it, this thread has it in between Re:'s,

[PHP] Re: The Official OT Name Tedd's Grandson Thread

2007-07-26 Thread Colin Guthrie
Daniel Brown wrote: On 7/26/07, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2007-07-26 at 16:24 +0100, Colin Guthrie wrote: I don't get them on any of my messages but then I read them all via nntp and Gmane.org I get it in every message... must be a mail client thingy.

Re: [PHP] Hide the real URL

2007-07-26 Thread Paul Novitski
At 7/26/2007 08:08 AM, M. Sokolewicz wrote: // output to browser, suppressing error message why are you suppressing error messages?? @readfile($Filename); http://php.net/readfile Reads a file and writes it to the output

Re: [PHP] Hide the real URL

2007-07-26 Thread Paul Novitski
At 7/26/2007 06:18 AM, elk dolk wrote: I want to hide the real URL to my images It should be pointed out that you can't really hide the real URL of your images. If an image appears in a browser, the browser will accurately report its location to the user, and the user can save it to their

Re: [PHP] Hide the real URL

2007-07-26 Thread Paul Novitski
At 7/26/2007 06:18 AM, elk dolk wrote: I want to hide the real URL to my images by masking it with PHP the code looks like this: $query = SELECT * FROM table; $result=mysql_query($query); while ($row = mysql_fetch_array($result)) { echo img src='http://www.mysite.com/img/{$FileName}'/; } if

Re: [PHP] Re: The Official OT Name Tedd's Grandson Thread

2007-07-26 Thread Daniel Brown
On 7/26/07, Daniel Brown [EMAIL PROTECTED] wrote: or am I going retarded again? This has been confirmed. For whatever reason, Gmail isn't showing me the [PHP] mark in the subject for this thread. Perhaps because I'm the OP. /me shrugs. -- Daniel P. Brown [office] (570-)

Re: [PHP] Hide the real URL

2007-07-26 Thread Eric Butera
On 7/26/07, elk dolk [EMAIL PROTECTED] wrote: Hi all, I want to hide the real URL to my images by masking it with PHP the code looks like this: $query = SELECT * FROM table; $result=mysql_query($query); while ($row = mysql_fetch_array($result)) { echo img

[PHP] Re: DOM

2007-07-26 Thread M. Sokolewicz
Man-wai Chang wrote: Does Web 2.0 or maybe 3.0 offer some new input types, say something like a real grid, or maybe a modal child popup? Java is just a specialized DOM... in my opinion. Where did you get this weird idea... JAVA by itself has nothing to do with the web or documents... It's

[PHP] Hide the real URL

2007-07-26 Thread elk dolk
Hi all, I want to hide the real URL to my images by masking it with PHP the code looks like this: $query = SELECT * FROM table; $result=mysql_query($query); while ($row = mysql_fetch_array($result)) { echo img src='http://www.mysite.com/img/{$FileName}'/; } if you look at the source in browser

[PHP] Re: How to get stored procedure return values via PDO?

2007-07-26 Thread M. Sokolewicz
Richard Davey wrote: Hi, I'm calling a MySQL Stored Procedure via PDO (PHP 5.2.3) $stmt = $dbh-prepare('CALL forum_post(?, ?, ?, ?, ?, @status, @thread_id, @message_id)'); At the moment in order to get the values of status, thread_id and message_id I need to issue a second query: $sql =

[PHP] How to get stored procedure return values via PDO?

2007-07-26 Thread Richard Davey
Hi, I'm calling a MySQL Stored Procedure via PDO (PHP 5.2.3) $stmt = $dbh-prepare('CALL forum_post(?, ?, ?, ?, ?, @status, @thread_id, @message_id)'); At the moment in order to get the values of status, thread_id and message_id I need to issue a second query: $sql = SELECT @status AS status,

[PHP] Re: appendChild(), removeChild()

2007-07-26 Thread Man-wai Chang
JavaScript (The main part of AJAX) runs on the client. Using AJAX you can have it call stuff on your server, but mainly it is client side only. THX -- @~@ Might, Courage, Vision, SINCERITY. / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Xubuntu 7.04) Linux

[PHP] Sessions?

2007-07-26 Thread Luc
Good morning list, I have my form up and running but something is missing: if you omit required fields, the form returns an error like: please fill in ... please fill in... the error message is displayed above the form on the same page. The problem is that upon showing the error

[PHP] Re: appendChild(), removeChild()

2007-07-26 Thread Man-wai Chang
If the child refers to a file, is it client-side only? I meant it's nothing like AJAX, right? Since JS runs on the client, yes. ... or unless the file was cached, right? I am reading about these stuffs lately. :) -- @~@ Might, Courage, Vision, SINCERITY. / v \ Simplicity is Beauty! May

[PHP] error reporting

2007-07-26 Thread Bruce Cowin
I'm running PHP 5.1 on IIS. My dev environment is all local on my machine. My php.ini has the following error reporting settings: error_reporting = E_ALL display_errors = Off display_startup_errors = Off log_errors = On log_errors_max_len = 1024 ignore_repeated_errors = Off

Re: [PHP] DOM

2007-07-26 Thread Larry Garfield
On Thursday 26 July 2007, Man-wai Chang wrote: Out of curiosity, is there any effort in creating a new DOM that's easier for application builders (something like Visual Foxpro)? Does Web 2.0 or maybe 3.0 offer some new input types, say something like a real grid, or maybe a modal child popup?

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Dan
Awesome, seems to work. Thanks Tijnema! - Dan Dan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Well, this is only one specific image that constantly changes, the rest of the page is handled regularly. From what you've said if I go with this header(Cache-Control: no-cache,

Re: [PHP] No is_date() function?

2007-07-26 Thread Jim Lucas
Ken Tozier wrote: Hi I wrote a serialization function to turn arbitrary PHP variables into Macintosh plist compatible XML but see that there is no is_date tester as there is for bool, object, array etc. Is there a relatively simple (and robust) way to detect if a variable is a date? For

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Tijnema
On 7/27/07, Dan [EMAIL PROTECTED] wrote: Is this header you're refering to the header of the page which contains the image, or the image itself? - Dan The image itself. Also note, that if you use my solution 2, you still might get problems, as the page that is calling might be cached, and in

[PHP] Re: Malformed Email Date Header

2007-07-26 Thread Dan
Most likely it's the server's time/date problem. Did you check to make sure that the time/date is in the correct timezone, etc? I know this isn't really the right way to do it, but you could always just move the server's clock back 10 hours if it's really always 10 hours ahead of time. You

Re: [PHP] Hide the real URL

2007-07-26 Thread Nathan Nobbe
eric, thanks for taking time to explain this. -nathan On 7/26/07, Eric Butera [EMAIL PROTECTED] wrote: On 7/26/07, Nathan Nobbe [EMAIL PROTECTED] wrote: eric, ive seen this technique mentioned once or twice on the list now; do you know of an article online you could share that explains

Re: [PHP] Hide the real URL

2007-07-26 Thread Eric Butera
On 7/26/07, Nathan Nobbe [EMAIL PROTECTED] wrote: eric, ive seen this technique mentioned once or twice on the list now; do you know of an article online you could share that explains it? -nathan On 7/26/07, Eric Butera [EMAIL PROTECTED] wrote: On 7/26/07, elk dolk [EMAIL PROTECTED] wrote:

Re: [PHP] Re: Pirate PHP books online?

2007-07-26 Thread Stut
Man-wai Chang wrote: You could open a sample book in bookstores, scan the chapters to decide whether you are gonna buy it. Not even slightly relevant, but it made me think of this (seemingly neverending) thread. http://xkcd.com/294/ -Stut -- http://stut.net/ -- PHP General Mailing List

Re: [PHP] Re: The Official OT Name Tedd's Grandson Thread

2007-07-26 Thread Tijnema
On 7/26/07, Ford, Mike [EMAIL PROTECTED] wrote: On 26 July 2007 16:10, M. Sokolewicz wrote: Daniel Brown wrote: On 7/26/07, Daniel Brown [EMAIL PROTECTED] wrote: or am I going retarded again? This has been confirmed. For whatever reason, Gmail isn't showing me the

Re: [PHP] Re: The Official OT Name Tedd's Grandson Thread

2007-07-26 Thread Robert Cummings
On Thu, 2007-07-26 at 16:24 +0100, Colin Guthrie wrote: M. Sokolewicz wrote: It's not the only, about 50% of threads have it, and another 50% don't. For instance, the DOM thread does not have it, this thread has it in between Re:'s, Hide the real URL has it, Pirate PHP books doesn't, etc.

Re: [PHP] Re: The Official OT Name Tedd's Grandson Thread

2007-07-26 Thread M. Sokolewicz
Daniel Brown wrote: On 7/26/07, Daniel Brown [EMAIL PROTECTED] wrote: or am I going retarded again? This has been confirmed. For whatever reason, Gmail isn't showing me the [PHP] mark in the subject for this thread. Perhaps because I'm the OP. /me shrugs. It's not the

Re: [PHP] Re: How to get stored procedure return values via PDO?

2007-07-26 Thread Richard Davey
Hi M., Thursday, July 26, 2007, 2:09:47 PM, you wrote: Richard Davey wrote: Hi, I'm calling a MySQL Stored Procedure via PDO (PHP 5.2.3) $stmt = $dbh-prepare('CALL forum_post(?, ?, ?, ?, ?, @status, @thread_id, @message_id)'); At the moment in order to get the values of status,

[PHP] Re: DOM

2007-07-26 Thread Man-wai Chang
Does Web 2.0 or maybe 3.0 offer some new input types, say something like a real grid, or maybe a modal child popup? Java is just a specialized DOM... in my opinion. -- @~@ Might, Courage, Vision, SINCERITY. / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Xubuntu

Re: [PHP] Re: appendChild(), removeChild()

2007-07-26 Thread Richard Heyes
Man-wai Chang wrote: If the child refers to a file, is it client-side only? I meant it's nothing like AJAX, right? Since JS runs on the client, yes. ... or unless the file was cached, right? I am reading about these stuffs lately. :) JavaScript (The main part of AJAX) runs on the client.

[PHP] HELP: Text editor that deals with BOM very well

2007-07-26 Thread Ryan Lao
Hello everyone, Just need to ask a simple question, where can a find a text editor that deals with byte order mark very well? I've been using dreamweaver for a few years now but im not impressed by how it deals with BOM. i need a text editor that can view a bom and can remove it from the file

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Tijnema
On 7/27/07, brian [EMAIL PROTECTED] wrote: Tijnema wrote: On 7/26/07, Dan [EMAIL PROTECTED] wrote: I have a situation where there is a single image let's call it somebody.jpg. I want to be able to dynamicly create this image using php, basicilly I have PHP set to handle .jpg files also,

RE: [PHP] Re: The Official OT Name Tedd's Grandson Thread

2007-07-26 Thread Ford, Mike
On 26 July 2007 16:10, M. Sokolewicz wrote: Daniel Brown wrote: On 7/26/07, Daniel Brown [EMAIL PROTECTED] wrote: or am I going retarded again? This has been confirmed. For whatever reason, Gmail isn't showing me the [PHP] mark in the subject for this thread. Perhaps

Re: [PHP] Re: Pirate PHP books online?

2007-07-26 Thread Daniel Brown
On 7/26/07, Tijnema [EMAIL PROTECTED] wrote: On 7/26/07, Stut [EMAIL PROTECTED] wrote: Man-wai Chang wrote: You could open a sample book in bookstores, scan the chapters to decide whether you are gonna buy it. Not even slightly relevant, but it made me think of this (seemingly

Re: [PHP] Re: The Official OT Name Tedd's Grandson Thread

2007-07-26 Thread Daniel Brown
Yeah, that's what I narrowed it down to as well. Must be a Gmail thing. On 7/26/07, Tijnema [EMAIL PROTECTED] wrote: On 7/26/07, Ford, Mike [EMAIL PROTECTED] wrote: On 26 July 2007 16:10, M. Sokolewicz wrote: Daniel Brown wrote: On 7/26/07, Daniel Brown [EMAIL PROTECTED] wrote:

Re: [PHP] Hide the real URL

2007-07-26 Thread M. Sokolewicz
Paul Novitski wrote: At 7/26/2007 06:18 AM, elk dolk wrote: I want to hide the real URL to my images by masking it with PHP the code looks like this: $query = SELECT * FROM table; $result=mysql_query($query); while ($row = mysql_fetch_array($result)) { echo img

Re: [PHP] Hide the real URL

2007-07-26 Thread Nathan Nobbe
eric, ive seen this technique mentioned once or twice on the list now; do you know of an article online you could share that explains it? -nathan On 7/26/07, Eric Butera [EMAIL PROTECTED] wrote: On 7/26/07, elk dolk [EMAIL PROTECTED] wrote: Hi all, I want to hide the real URL to my images

Re: [PHP] Hide the real URL

2007-07-26 Thread Richard Heyes
img src='http://www.mysite.com/img/111.jpg' / how can I show it like this: img src='show.php?FileName=111.jpg' / 1. Make your links point to img src='show.php?FileName=111.jpg' / 2. In show.php, try the following: ?php // This assumes all your images will be in images/ // It

Re: [PHP] HELP: Text editor that deals with BOM very well

2007-07-26 Thread Chris
Ryan Lao wrote: Hello everyone, Just need to ask a simple question, where can a find a text editor that deals with byte order mark very well? I've been using dreamweaver for a few years now but im not impressed by how it deals with BOM. i need a text editor that can view a bom and can remove

[PHP] Createing a Test DB Object.

2007-07-26 Thread Rob Adams
I need to test a bunch of code that extensively uses a mysql database (both selects and inserts), and I want to do it without actually writing to the database.. Instead of commenting out all of the $db-query($insert_query) statements and echoing $insert_query, I thought I'd make the following

[PHP] Re: Pirate PHP books online?

2007-07-26 Thread Michelle Konzack
Am 2007-07-23 15:56:12, schrieb Sancar Saran: It was still ripping, They got 18 USD you got 2 USD. This is sucks. I'm not sure author of Harry Potter acceps same condition. You made everyone rich except yourself... From the 18 USD, they payed me the proofreader and helped me to get better

Re: [PHP] Re: The Official OT Name Tedd's Grandson Thread

2007-07-26 Thread Daniel Brown
On 7/26/07, Colin Guthrie [EMAIL PROTECTED] wrote: Well I managed to convince the Irish domain people to let me register guthr.ie which I think is pretty cool. [snip] On the downside, as I use the domain quite a lot for numerous things, I now find it quite hard to write (type) my lastname

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Richard Lynch
On Thu, July 26, 2007 6:32 pm, Tijnema wrote: Also, if you use solution 2, the image will still stay forever in the Not forever. Just until something else being downloaded shoves it out due to the folder size restriction. The browser might even be smart and keep oft-used resources in the cache

RE: [PHP] Hide the real URL

2007-07-26 Thread Paul Novitski
At 7/26/2007 08:40 PM, Chris Aitken wrote: There's a couple of protect your image schemes that will frustrate the typical user, but they can be easily broken, like the one I created here: http://www.webbytedd.com/b/protect_image/ Firefox - Tools - Page Info - Media - Scroll Till

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Richard Lynch
On Thu, July 26, 2007 4:56 pm, Dan wrote: Is there any tactic short of changing the name constantly of the image to avoid browser caching of an image? You can try to use all the zillion header calls people will send you. Somewhere out there is a really stupid browser that will insist on

RE: [PHP] Hide the real URL

2007-07-26 Thread Chris Aitken
There's a couple of protect your image schemes that will frustrate the typical user, but they can be easily broken, like the one I created here: http://www.webbytedd.com/b/protect_image/ Firefox - Tools - Page Info - Media - Scroll Till Find - Bingo! Say Firefox to a typical user

Re: [PHP] appendChild(), removeChild()

2007-07-26 Thread Richard Heyes
Man-wai Chang wrote: If the child refers to a file, is it client-side only? I meant it's nothing like AJAX, right? Since JS runs on the client, yes. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online

[PHP] DOM

2007-07-26 Thread Man-wai Chang
Out of curiosity, is there any effort in creating a new DOM that's easier for application builders (something like Visual Foxpro)? Does Web 2.0 or maybe 3.0 offer some new input types, say something like a real grid, or maybe a modal child popup? -- @~@ Might, Courage, Vision, SINCERITY.

[PHP] Re: The Official OT Name Tedd's Grandson Thread

2007-07-26 Thread Colin Guthrie
M. Sokolewicz wrote: It's not the only, about 50% of threads have it, and another 50% don't. For instance, the DOM thread does not have it, this thread has it in between Re:'s, Hide the real URL has it, Pirate PHP books doesn't, etc. I don't get them on any of my messages but then I read them

Re: [PHP] Sessions?

2007-07-26 Thread brian
Luc wrote: Good morning list, I have my form up and running but something is missing: if you omit required fields, the form returns an error like: please fill in ... please fill in... the error message is displayed above the form on the same page. The problem is that upon showing

Re[2]: [PHP] Sessions?

2007-07-26 Thread Luc
Hello brian, Thursday, July 26, 2007, 2:47:55 PM, you wrote: The way that i generally handle this is to use a class. I instantiate an object when the page loads, whether the form has been submitted or not. Tnx for the response Brian. Being a newbie i'll read your post carefully, trying to

RE: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Chris Aitken
header('Cache-Control: no-store, no-cache, must-revalidate, Post-Check=0, Pre-Check=0'); brian That's HTTP/1.1 only, but this is what I got from PHP site: ?php header(Cache-Control: no-cache, must-revalidate); // HTTP/1.1 header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); // Date in the past ?

Re: [PHP] DOM

2007-07-26 Thread Richard Lynch
On Thu, July 26, 2007 7:39 am, Man-wai Chang wrote: Does Web 2.0 or maybe 3.0 offer some new input types, say something like a real grid, or maybe a modal child popup? No, that would be a useful feature, and browser-makers have much more important (read: inane) features to implement. :-) --

Re: [PHP] global variable does not exist anymore?

2007-07-26 Thread Richard Lynch
It's register_globals, and you should fix this ancient script to not rely on register_globals being on On Wed, July 25, 2007 5:30 pm, Patrik Hasibuan wrote: Dear my friends... I create a very simple script in html and php as a first step. I use suse, apache2, mysql and php. I wonder why

Re: [PHP] Hide the real URL

2007-07-26 Thread Richard Lynch
On Thu, July 26, 2007 8:18 am, elk dolk wrote: Hi all, I want to hide the real URL to my images by masking it with PHP the code looks like this: $query = SELECT * FROM table; $result=mysql_query($query); while ($row = mysql_fetch_array($result)) { echo img

Re: [PHP] Hide the real URL

2007-07-26 Thread Richard Lynch
On Thu, July 26, 2007 8:41 am, Eric Butera wrote: filenames. Are you trying to protect them from unauthorized viewing? If you are trying to protect from unauthorized viewing, they probably shouldn't be in the webtree at all, as it's not exactly rocket science to guess that your images are in an

RE: [PHP] Hide the real URL

2007-07-26 Thread Richard Lynch
On Thu, July 26, 2007 10:40 pm, Chris Aitken wrote: There's a couple of protect your image schemes that will frustrate the typical user, but they can be easily broken, like the one I created here: http://www.webbytedd.com/b/protect_image/ Firefox - Tools - Page Info - Media - Scroll

Re: [PHP] Malformed Email Date Header

2007-07-26 Thread Richard Lynch
Looks to me like the \270 is some kinda Unicode character instead of, like, you know ASCII '+'... Dunno how you managed to convince your mail system that you wanted it to convert + to Unicode \270, mind you, but there it is. On Wed, July 25, 2007 11:22 pm, Chris Aitken wrote: Hi All, Just a

Re: [PHP] Re: Malformed Email Date Header

2007-07-26 Thread Richard Lynch
If the sysadmin told the BIOS that s/he was using UTC, but told the OS that s/he was not using UTC (or vice versa) and then the clocks are being adjusted, and if it's in time zone -5, then you'd have the 10-hour offset right there, I think... Course, that has zilch to do with the \270 for '+'

Re: [PHP] HTML Email Composing Problem.

2007-07-26 Thread Richard Lynch
On Thu, July 26, 2007 2:46 pm, Tom Ray [Lists] wrote: I'm trying to use PHP to compose an HTML formatted email Don't do that... 3) Spam Assassin doesn't like it either way and tags the email as SPAM for the following reasons: 0.6 HTML_SHORT_LENGTH BODY: HTML is extremely short 0.0

Re: [PHP] Malformed Email Date Header

2007-07-26 Thread Chris
X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char B8 hex): Date: Wed, 04 Jul 2007 10:11:39 \2701000\n Looks like a problem when you're building the headers. Are you doing this manually (building the headers)? What's the code look like to do this? -- Postgresql php tutorials

RE: [PHP] Malformed Email Date Header

2007-07-26 Thread Chris Aitken
Looks to me like the \270 is some kinda Unicode character instead of, like, you know ASCII '+'... Dunno how you managed to convince your mail system that you wanted it to convert + to Unicode \270, mind you, but there it is. Hi Richard, Odd thing is all of the other headers of the

Re: [PHP] Re: The Official OT Name Tedd's Grandson Thread

2007-07-26 Thread Richard Lynch
On Thu, July 26, 2007 8:47 am, Daniel Brown wrote: On 7/26/07, Daniel Brown [EMAIL PROTECTED] wrote: or am I going retarded again? This has been confirmed. For whatever reason, Gmail isn't showing me the [PHP] mark in the subject for this thread. Perhaps because I'm the OP.

Re: [PHP] Objects

2007-07-26 Thread Richard Lynch
On Wed, July 25, 2007 6:33 am, Suporte - DPRJ Sistemas wrote: Is there anyone here interested in teaching (lond distance, off course) OOP? I would like to learn how to use objects (I have been working all my life using structured language). All the books I have tried just talk about theory

Re: [PHP] temp files

2007-07-26 Thread Richard Lynch
On Wed, July 25, 2007 3:55 am, admin wrote: $lines = gzfile(http://www.example.com/some/resource;); for its internal needs gzfile() creates a temp file such as /var/tmp/phpFjJxNX where the gzipped resource is kept. The file stays there forever and eventually the fs runs out of inodes. Any way