[PHP] User defined function problem

2006-07-18 Thread Stephen Lake
Hey Guys and Gals, I am having a small problem with a user defined function, I placed it in a config file and it works as expected, but the problem seems to arise only when I try to use my login script for a members area I am redeveloping. The error message that comes up is the following:

Re: [PHP] User defined function problem

2006-07-18 Thread Stephen Lake
of. In your config script, wrap an if around your function call: if (!function_exists('clean_sql')) { function clean_sql() { ... } } jon Stephen Lake wrote: Hey Guys and Gals, I am having a small problem with a user defined function, I placed it in a config file and it works

[PHP] Re: User defined function problem

2006-07-19 Thread Stephen Lake
Thanx Jon and Jochem for the reminders, they were much appreciated. :) Best Regards, Steve Stephen Lake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey Guys and Gals, I am having a small problem with a user defined function, I placed it in a config file and it works

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread Stephen Lake
As far as getting the header error resolved, try this: http://ca3.php.net/manual/en/function.ob-start.php HTH Steve Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Thu, 2006-07-20 at 14:15, Martin Marques wrote: On Thu, 20 Jul 2006 13:06:10 -0400, Robert Cummings

Re: [PHP] headers already sent.

2006-04-08 Thread Stephen Lake
There is no real way of knowing if output is going to be sent before a header or not, unless its a very simple page. Your best bet is to investigate the output buffering functions here: http://www.php.net/manual/en/ref.outcontrol.php HTH Steve P. Guethlein [EMAIL PROTECTED] wrote in message

Re: [PHP] Using Header() to pass information...

2006-04-22 Thread Stephen Lake
Where's Chris when we need him? I would be interested in also hearing his thoughts here too. Jochem Maas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Todd Cary wrote: If I use if ($send) header(location: mypage.php?message= . $message); the data ($message) is passed in

Re: [PHP] IPN error

2006-04-29 Thread Stephen Lake
Use cURL I found it much easier then using fsockopen http://ca.php.net/cURL Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sat, April 29, 2006 3:53 am, suresh kumar wrote: input type=hidden name=item_name value=Subscribe to Additional User Account

Re: [PHP] IPN error

2006-04-29 Thread Stephen Lake
One more thing, make sure you validate ALL data that is being sent from paypal to ensure what you need and expect are therealso validate the transaction ID to ensure it was never used before. Stephen Lake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Use cURL I found it much

Re: [PHP] mod_rewrite help

2006-05-03 Thread Stephen Lake
BOL Now I wish I hadn't slept through Math Class in school Jochem Maas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] John Nichel wrote: Jay Blanchard wrote: snip ... How much wood could a woodchuck chuck if a woodchuck could chuck wood? While viewing a php web site that

[PHP] Re: file permission error

2006-05-22 Thread Stephen Lake
Your answer to your question can be found here http://www.php.net/manual/en/ref.filesystem.php suresh kumar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am facing one problem in my project.I am uploading an image .its get storing in DB.i am storing images in /tmp

[PHP] Re: Syntax to call a class' methods in your own class

2006-05-24 Thread Stephen Lake
Here's a link to a series of 4 articles that explain aggregation in PHP.as this sounds like what you want to do. http://www.devshed.com/c/a/PHP/Object-Interaction-in-PHP-Introduction-to-Aggregation-part-1/ HTH Steve Graham Anderson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

[PHP] Re: Syntax to call a class' methods in your own class

2006-05-24 Thread Stephen Lake
Here's a link to a series of 4 articles that explain aggregation in PHP.as this sounds like what you want to do. http://www.devshed.com/c/a/PHP/Object-Interaction-in-PHP-Introduction-to-Aggregation-part-1/ HTH Steve Graham Anderson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

[PHP] Re: Want some PHP e-book

2006-06-18 Thread Stephen Lake
http://www.php.net/docs.php You can download a CHM for Windows as well as PDF's and HTML Versions prolibertine [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i am a newbie of php .i want get some php ebook to read. who can send me some thx --

[PHP] PHP and qmail

2004-05-15 Thread Stephen Lake
Hey all, Can someone tell me how I can send HTML using qmail from a Script? The MTA I was using was changed from Sendmail to qmail and now my HTML mails actually show the html tags in the mail body. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Text/Image Streaming in PHP for a web chat application

2004-05-19 Thread Stephen Lake
Hey all, After reviewing all the scripts written for a web chat application at the various sites (ie Hotscripts, cgi resource and so on) I have resorted to writing my own as none available fit my specific requirements. What I need to know is, how can I implement a server push alternative and/or

Re: [PHP] empty connection string

2004-05-21 Thread Stephen Lake
Its a first for me to hear to...never thought PHP and MS were married :D Jeroen Serpieters [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 21 May 2004, AMC wrote: Yes It's the first time I hear response.write() and php together ... confused :S -- Jeroen Describing

Re: [PHP] Newbie error with cookies and headers already declared

2004-05-21 Thread Stephen Lake
All headers have to be sent before any output is sent to the browser. Chris W. Parker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] GodFoca mailto:[EMAIL PROTECTED] on Friday, May 21, 2004 1:29 PM said: Warning: Cannot add header information - headers already sent by (output

[PHP] Re: ColdFusion / SQL PHP / mySQL HELP!

2004-05-28 Thread Stephen Lake
Yeah tell your boss to get stuffed and that your not old enough yet to have a stroke ;) There is absolutely no way no one knowlegable and experienced in both languages can do it in a week no less a non programmer either -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] datetime formatting problem

2004-05-28 Thread Stephen Lake
Try strftime it allows you to take a timestamp created by time() and format it as required. heres the man page for it: http://www.php.net/manual/en/function.strftime.php Matt Newell [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] thanks a bunch torsten. it worked like a charm and i'm

[PHP] Data reading and writing for a chat

2004-05-30 Thread Stephen Lake
Hey All, I got a question for you all. What would be more effiecient for datastoring that is going to be constantly extracted like in a chat application? a MySQL database? or a Flat text file? Right now I am working on a flat text file base but would also like to do it as a database version too

[PHP] Text Streaming in PHP

2004-05-31 Thread Stephen Lake
Hey All, I know I asked this before a couple of weeks ago, but I need a good swift kick in the right direction :D I need to know how to do a text stream in PHP. I have tried the following: while loop with flush and sleep functions HTTP/1.1 Connection: Stream (seems to work in the above while

Re: [PHP] Cant right click

2004-06-01 Thread Stephen Lake
Or under Mozilla go - View - Page Source Or Ctrl-U Only Java/VB script to my knowldege can disable Right-Click Under IE-View-Source and Bingo. It's probably a javascript script. Easy to bypass. PHP related...err no. - Original Message - From: Brent Clark [EMAIL PROTECTED] To:

[PHP] IE Buffering

2004-06-01 Thread Stephen Lake
Can anyone tell me what size the buffer in IE has to be before it outputs data? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Text Streaming in PHP

2004-06-01 Thread Stephen Lake
Thanks all for the suggestionsI finally got it workingand it works perfectly in IE too (so far anyway) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Test Email

2004-06-01 Thread Stephen Lake
No [EMAIL PROTECTED] about the spammers! John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] John W. Holmes wrote: From: Tom Chubb [EMAIL PROTECTED] Sorry if anyone else gets this, but I'm not receiving any emails at the moment and wanted to check my subscription.

[PHP] Re: mail() problem

2004-06-02 Thread Stephen Lake
Another suggestion is if its an HTML format mail, make sure you use properie making sure all tags are closed that kind of stuffsome software will block if the HTML is not well formed Rick [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi All, Does anyone know a good

[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]

[PHP] Re: HTTP_REFERER

2004-06-04 Thread Stephen Lake
No...it shows up in the auto global varaible $_SERVER['HTTP_REFERER'] Steve Douville [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I think I'm having a major brain fart here. Is there a $HTTP_REFERER anymore? It doesn't show up as a server variable or anything at all in