Re: [PHP] List Etiquette

2004-09-20 Thread Octavian Rasnita
No, there is no way for customizing the headers Outlook Express use to put in the email messages. I wish there was, because I don't like them also... Teddy - Original Message - From: "- Edwin -" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 20, 2004 2:51 PM Subject:

Re: [PHP] php5 and php4?

2004-09-20 Thread Thomas Goyne
On Tue, 21 Sep 2004 01:29:06 -0400, Minuk Choi <[EMAIL PROTECTED]> wrote: I've been meaning to ask this... but I always thought I could find the answer online(I didn't). Back when PHP 5.0.1 was released, PHP 4.something else was released. What was the main reasoning behind this move? Is i

[PHP] php5 and php4?

2004-09-20 Thread Minuk Choi
I've been meaning to ask this... but I always thought I could find the answer online(I didn't). Back when PHP 5.0.1 was released, PHP 4.something else was released. What was the main reasoning behind this move? Is it because PHP5 is more OOP(similar to java)?

Re: [PHP] Re: gmail accounts

2004-09-20 Thread Markus Fischer
John Holmes wrote: From: "Markus Fischer" <[EMAIL PROTECTED]> Which do you prefer, echo() or print() ? Albeit that, they're identical I think (both are core language construct, no real functions). Come on... all good bottom-posting-firewall-turning-off PHP programmers know that print() is a fun

[PHP] [Newbie Guide] For the benefit of new members

2004-09-20 Thread Ma SivaKumar
=== Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first. You can download a copy and use it offline also. Please also try ht

Re: [PHP] Extrange behavior with Header('Location')

2004-09-20 Thread Chris Shiflett
--- Jordi Canals <[EMAIL PROTECTED]> wrote: > I have seen an strange thing with the funcion > Header("Location: $url") and will tell in short words. > > I have a method in a class wich composes an URL from the > database, this method sets some extra params in the url. In > this case, the function

Re: [PHP] problem with header-dispotition in IE

2004-09-20 Thread Brad Pauly
On Mon, 20 Sep 2004 10:58:46 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > > I suppose you are trying to force IE to download the pdf file, but it is > always displaying it - you did not tell what is your problem. > > IE determines the type of file from the extension, if it is a known > ext

[PHP] Re: captcha lib

2004-09-20 Thread Manuel Lemos
Hello, On 09/20/2004 10:24 PM, Roger Thomas wrote: What's the most popular/usable captcha library that is currently available. I frequent PEAR website but couldnt find any. Pls advise. Here you may find several solutions exactly for that problem: http://www.phpclasses.org/googlesearch.html?words=ca

Re[2]: [PHP] problem with header-dispotition in IE

2004-09-20 Thread adwinwijaya
Hello Marek, Monday, September 20, 2004, 6:58:46 PM, you wrote: MK> adwinwijaya wrote: >> Hi all ... >> >> >> I have script that looks like : >> >> if(file_exists($filename)){ >> $len = filesize($filename); >> //header("Content-type: attachment/pdf"); >> header('C

Re: [PHP] Extrange behavior with Header('Location')

2004-09-20 Thread Marek Kilimajer
Jordi Canals wrote: I have a method in a class wich composes an URL from the database, this method sets some extra params in the url. In this case, the function returns: /myaccount/?opt=sys&id=3 Note the & in the URL Well, with this code, the url works perfect and the & is going as expected redirec

[PHP] captcha lib

2004-09-20 Thread Roger Thomas
What's the most popular/usable captcha library that is currently available. I frequent PEAR website but couldnt find any. Pls advise. -- roger --- Sign Up for free Email at http://ureg.home.net.my/ -

Re: [PHP] mysql_connect does not connect

2004-09-20 Thread Carlos Souza
Sam Hobbs wrote: "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Would you mind spilling the beans? I'm sure everyone is dying to know what the resolution of this thread is. I definitely mind. I don't believe in rewarding bad behavior. It is reasonable to contribute to

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Robert Cummings
On Mon, 2004-09-20 at 21:10, Jason Wong wrote: > On Tuesday 21 September 2004 07:32, Greg Donald wrote: > > > I noticed your reply, it said the thread was off-topic and it was not. > > There was a PHP question in the first post, but you didn't see it. > > Pretty simple. > > gmail accounts = off

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Jason Wong
On Tuesday 21 September 2004 07:32, Greg Donald wrote: > I noticed your reply, it said the thread was off-topic and it was not. > There was a PHP question in the first post, but you didn't see it. > Pretty simple. gmail accounts = off topic two unrelated topics in one post = bad form -- Jason

[PHP] Extrange behavior with Header('Location')

2004-09-20 Thread Jordi Canals
Hi all, I have seen an strange thing with the funcion Header("Location: $url") and will tell in short words. I have a method in a class wich composes an URL from the database, this method sets some extra params in the url. In this case, the function returns: /myaccount/?opt=sys&id=3 Note the &

Re: [PHP] cookie saving problem

2004-09-20 Thread Jason Wong
On Tuesday 21 September 2004 07:33, Jason FB wrote: > I am trying to get the session cookie to stay active for 10 years Session cookies as its name suggests lasts for the duration of the session, meaning your browser does not store them anywhere permanent and are lost when browser is closed. -

[PHP] Re: curl grabbing a website

2004-09-20 Thread Matthew Weier O'Phinney
* Martin Justra <[EMAIL PROTECTED]>: > I finally managed to grab the website via curl. Now the problen is that I > want to have a small piece of that site. I tried to cut that site by > explode. Now the browser hangs. He says "waiting for www.domain.de" and > does nothing. > > Here is my lis

Re: [PHP] generating a mysql script

2004-09-20 Thread Brian V Bonini
On Mon, 2004-09-20 at 19:37, Stut wrote: > On Mon, 20 Sep 2004 16:20:21 -0700, AMC <[EMAIL PROTECTED]> wrote: > > Is there a tool that will generate a script that can be run to rebuild a > > mysql database? I need to move my database to a different server No need to use PHP which also makes this O

Re: [PHP] cookie saving problem

2004-09-20 Thread Marek Kilimajer
Jason FB wrote: PHP GENERAL LIST: I am trying to get the session cookie to stay active for 10 years I have at the top of EVERY page on my website an include statement which includes a file which contains only this code: If I quit my browser and re-launch, it seems to remember my session variabl

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Greg Donald
On Mon, 20 Sep 2004 15:54:40 -0700 (PDT), Chris Shiflett <[EMAIL PROTECTED]> wrote: > If you really want to use this list to distribute something that you think > might be interesting to the subscribers, please use a few lines of your > signature. As long as you're a legitimate participant, you wil

Re: [PHP] generating a mysql script

2004-09-20 Thread Stut
On Mon, 20 Sep 2004 16:20:21 -0700, AMC <[EMAIL PROTECTED]> wrote: > Is there a tool that will generate a script that can be run to rebuild a > mysql database? I need to move my database to a different server Not technically PHP-related, but I suggest you look for mysqldump in the mysql manual. -

[PHP] cookie saving problem

2004-09-20 Thread Jason FB
PHP GENERAL LIST: I am trying to get the session cookie to stay active for 10 years I have at the top of EVERY page on my website an include statement which includes a file which contains only this code: If I quit my browser and re-launch, it seems to remember my session variables. [Which was N

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Greg Donald
On Mon, 20 Sep 2004 15:29:35 -0700, Rick Fletcher <[EMAIL PROTECTED]> wrote: > I do use a threaded client, actually. You're the one who didn't notice > I replied to someone other than yourself. I noticed your reply, it said the thread was off-topic and it was not. There was a PHP question in the

Re: [PHP] Infinate looping

2004-09-20 Thread Thomas Goyne
On Sun, 19 Sep 2004 11:20:01 -0500, Stephen Craton <[EMAIL PROTECTED]> wrote: Yes, I agree, if I were making a task to run every few minutes it would be easier, but that's not exactly what I'm doing. I'm more or less streaming content from the database to the end-user. It's basically a chat sc

[PHP] generating a mysql script

2004-09-20 Thread AMC
Is there a tool that will generate a script that can be run to rebuild a mysql database? I need to move my database to a different server -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] List Etiquette

2004-09-20 Thread Thomas Goyne
On Sun, 19 Sep 2004 10:02:23 +0800, Jason Wong <[EMAIL PROTECTED]> wrote: I really shouldn't be indulging you as it's pretty obvious you're only here for a vigorous debate (that's my euphemism for an argument - the not so nice meaning of argument). The OP asked for the pros and cons of top

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Chris Shiflett
--- Greg Donald <[EMAIL PROTECTED]> wrote: > --- Rick Fletcher <[EMAIL PROTECTED]> wrote: > > Please stop talking about gmail invites on the list. Anyone > > who wants one, or who has some to give away, just do a google > > search for a place to get or give them. > > > > Sites like this one (the 3

Re: [PHP] very basic php mysql question

2004-09-20 Thread Jason Davidson
add mysql_error() to your die string so you can report what the error is. Jason "AMC" <[EMAIL PROTECTED]> wrote: > > Thanks, > > the script runs now, but I cannot open a connection. I know the user name, > and password are correct. What could be the cause? > > > > > $user = "aclark"; > >

Re: [PHP] very basic php mysql question

2004-09-20 Thread AMC
I figured it out - using the wrong info for host Thanks again "Amc" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks, > > the script runs now, but I cannot open a connection. I know the user name, > and password are correct. What could be the cause? > > > > > $user = "aclark";

Re: [PHP] very basic php mysql question

2004-09-20 Thread AMC
Thanks, the script runs now, but I cannot open a connection. I know the user name, and password are correct. What could be the cause? "Matthew Sims" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > I have a php page with the code below. The page doesn't show the record > > fr

[PHP] Multiple External Files with DB calls

2004-09-20 Thread GH
I have a question, what happens if there are multiple 'required' and 'included' files that have calls to the same DB via the same username and password (they even use the same variable to call)? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: gmail accounts

2004-09-20 Thread Jim Grill
> On Mon, 20 Sep 2004 15:25:40 -0400, John Holmes > <[EMAIL PROTECTED]> wrote: > > Come on... all good bottom-posting-firewall-turning-off PHP programmers know > > that print() is a function and returns a value while echo does not. We're > > all using templates, anyhow, so your code wouldn't have b

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Rick Fletcher
Greg Donald wrote: I didn't reply to your email. The email I replied to mentioned nothing related to PHP. Exactly.. you probably don't use a threaded email client, else you might have noticed the thread was on-topic when I started it. The recursion is killing me here. Need a GMail account? I do

Re: [PHP] very basic php mysql question

2004-09-20 Thread Victor Saldaña D.
On Mon, 20 Sep 2004 15:17:33 -0700, AMC <[EMAIL PROTECTED]> wrote: > http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] very basic php mysql question

2004-09-20 Thread Matthew Sims
> > I have a php page with the code below. The page doesn't show the record > from > the database when it runs and I'm not sure why. I'm not getting any error > message, just a blank page. There is one record in the tabele I'm trying > to > query. > I'm brand new to php so I'd really appreciate the

[PHP] very basic php mysql question

2004-09-20 Thread AMC
Hi, I have a php page with the code below. The page doesn't show the record from the database when it runs and I'm not sure why. I'm not getting any error message, just a blank page. There is one record in the tabele I'm trying to query. I'm brand new to php so I'd really appreciate the help. -

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread Marek Kilimajer
John Wards wrote: On Mon, 2004-09-20 at 16:56, Marek Kilimajer wrote: play around with popen() and stream_select() Oooh that looks handy. More night time reading I think! Any further ideas to save a man with a cold from using his brain would be great! Cheers John Wanted to do something interesting

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Greg Donald
On Mon, 20 Sep 2004 14:27:41 -0700, Rick Fletcher <[EMAIL PROTECTED]> wrote: > Greg Donald wrote: > I didn't reply to your email. The email I replied to mentioned nothing > related to PHP. Exactly.. you probably don't use a threaded email client, else you might have noticed the thread was on-topi

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Rick Fletcher
Greg Donald wrote: On Mon, 20 Sep 2004 12:15:18 -0700, Rick Fletcher <[EMAIL PROTECTED]> wrote: Please stop talking about gmail invites on the list. Anyone who wants one, or who has some to give away, just do a google search for a place to get or give them. Sites like this one (the 3rd result for

Re: [PHP] External Files (take 2)

2004-09-20 Thread John Nichel
GH wrote: So i would not need to use correct... Also as to the other question I asked: WHat should I use in the other file? the complete connection code or just the values as variables? Yes, you need to enclose it in opening/closing php tags. It will include the file inline, just as if you wr

RE: [PHP] External Files (take 2)

2004-09-20 Thread Jesse Castro
[snip] So i would not need to use correct... Also as to the other question I asked: WHat should I use in the other file? the complete connection code or just the values as variables? [/snip] Something like this: Main file: includeFile.php Cheers, -jesse- -- PHP General Mailing List (htt

RE: [PHP] External Files (take 2)

2004-09-20 Thread Jay Blanchard
[snip] So i would not need to use correct... Also as to the other question I asked: WHat should I use in the other file? the complete connection code or just the values as variables? [/snip] Put the entire connection string and error checking for the connection in the 'other file'. -- PHP Gen

Re: [PHP] External Files (take 2)

2004-09-20 Thread GH
So i would not need to use correct... Also as to the other question I asked: WHat should I use in the other file? the complete connection code or just the values as variables? On Mon, 20 Sep 2004 13:23:20 -0700, Daniel Kushner <[EMAIL PROTECTED]> wrote: > Hi Gary, > > Look up http://php.net/

Re: [PHP] External Files (take 2)

2004-09-20 Thread John Nichel
GH wrote: Hi... Here is my question. Sorry if it is a basic answer... new to php I have PHP/mySQL and would like to know how i can set use an external file to prevent myself for having to code everytime the "connection/login" to mysql. I was thinking of making an external file bu

Re: [PHP] External Files (take 2)

2004-09-20 Thread Marek Kilimajer
GH wrote: Hi... Sorry about the last post... did not realize i hit the wrong button Here is my question. Sorry if it is a basic answer... new to php I have PHP/mySQL and would like to know how i can set use an external file to prevent myself for having to code everytime the "connection/login" to

Re: [PHP] External Files (take 2)

2004-09-20 Thread Daniel Kushner
Hi Gary, Look up http://php.net/include It's just like "copy and pasting" the code in the external file in the one your including it into. Best, Daniel Kushner __ Director of Education Zend Technologies Ltd. [EMAIL PROTECTED] http://www.zend.com ===

RE: [PHP] External Files (take 2)

2004-09-20 Thread Jay Blanchard
[snip] I have PHP/mySQL and would like to know how i can set use an external file to prevent myself for having to code everytime the "connection/login" to mysql. [/snip] http://www.php.net/include -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

[PHP] External Files (take 2)

2004-09-20 Thread GH
Hi... Sorry about the last post... did not realize i hit the wrong button Here is my question. Sorry if it is a basic answer... new to php I have PHP/mySQL and would like to know how i can set use an external file to prevent myself for having to code everytime the "connection/login" to mysql.

Re: [PHP] External Files

2004-09-20 Thread John Nichel
GH wrote: Hi I think I may know what's causing your problem, but just to be sure, can you provide just a bit more information? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

[PHP] External Files

2004-09-20 Thread GH
Hi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Aaron Gould
John Nichel wrote: Yeah...what he said. Don't you people dare try to be nice on this list. Here we are trying to compete with the qmail list for nastiness, and y'all try to do something nice. Jerks. Ahhh, you guys have been cracking me up the past several days. It's been a good week. :) --

Re: [PHP] Re: gmail accounts

2004-09-20 Thread Greg Donald
On Mon, 20 Sep 2004 15:25:40 -0400, John Holmes <[EMAIL PROTECTED]> wrote: > Come on... all good bottom-posting-firewall-turning-off PHP programmers know > that print() is a function and returns a value while echo does not. We're > all using templates, anyhow, so your code wouldn't have but one ech

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread John Nichel
Rick Fletcher wrote: Ricardo Cezar wrote: I have some invitations too! If you wants one, ask me off list. Limited supply, first requests, etc, like Greg said! "Greg Donald" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] I have some gmail accounts of anyone wants one. Email me off

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Greg Donald
On Mon, 20 Sep 2004 12:15:18 -0700, Rick Fletcher <[EMAIL PROTECTED]> wrote: > Please stop talking about gmail invites on the list. Anyone who wants > one, or who has some to give away, just do a google search for a place > to get or give them. > > Sites like this one (the 3rd result for "free gm

Re: [PHP] Re: gmail accounts

2004-09-20 Thread John Holmes
From: "Markus Fischer" <[EMAIL PROTECTED]> Which do you prefer, echo() or print() ? Albeit that, they're identical I think (both are core language construct, no real functions). Come on... all good bottom-posting-firewall-turning-off PHP programmers know that print() is a function and returns a v

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Ricardo Cezar
Sorry, will never happen again! I was justing trying to help. :( "Rick Fletcher" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Ricardo Cezar wrote: > > I have some invitations too! If you wants one, ask me off list. > > Limited supply, first requests, etc, like Greg said! >

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Rick Fletcher
Ricardo Cezar wrote: I have some invitations too! If you wants one, ask me off list. Limited supply, first requests, etc, like Greg said! "Greg Donald" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] I have some gmail accounts of anyone wants one. Email me off list. Limited supply,

Re: [PHP] thumbnail of webpage

2004-09-20 Thread Michael Mao
Great link. This tool is exactly what I'm looking for. Thanks! On Mon, 20 Sep 2004 08:01:15 -0500 (EST), Ed Curtis <[EMAIL PROTECTED]> wrote: > > If you have a Linux box available here's something to try although it > does have some required software. > > http://www.babysimon.co.uk/khtml2png/in

[PHP] Re: gmail accounts

2004-09-20 Thread Ricardo Cezar
I have some invitations too! If you wants one, ask me off list. Limited supply, first requests, etc, like Greg said! "Greg Donald" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > I have some gmail accounts of anyone wants one. Email me off list. > Limited supply, first requests,

Re: [PHP] thumbnail of webpage

2004-09-20 Thread Jonathan Haddad
Stefan Holmes wrote: -Original Message- From: raditha dissanayake [mailto:[EMAIL PROTECTED] Sent: 18 September 2004 03:22 To: Michael Mao Cc: [EMAIL PROTECTED] Subject: Re: [PHP] thumbnail of webpage Michael Mao wrote: Is there a way to capture a snapshot of a html page and save it as

RE: [PHP] thumbnail of webpage

2004-09-20 Thread Stefan Holmes
> -Original Message- > From: raditha dissanayake [mailto:[EMAIL PROTECTED] > Sent: 18 September 2004 03:22 > To: Michael Mao > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] thumbnail of webpage > > Michael Mao wrote: > > > Is there a way to capture a snapshot of a html page and save it as a

Re: [PHP] RE: Correct context

2004-09-20 Thread Mattias Thorslund
Jay Blanchard wrote: Oops Yeah, some of us (including myself) could use a php validator in our mail clients... Maybe a plugin for T-bird? /Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] RE: Correct context

2004-09-20 Thread Jay Blanchard
[snip] Another way $arrFoo = array ( 'Copy Change', 'Banner Change', 'Price Change', ); if(!(in_array($entry)) && ("" != $row['photo_check'])) [/snip] Oops $arrFoo = array ( 'Copy Change', 'Banner Change', 'Price Change', ); if(!(in_ar

RE: [PHP] thumbnail of webpage

2004-09-20 Thread Gryffyn, Trevor
True, you'd have to run it on the web client end, but you can run IE on the server to access the HTML the server is err..serving. The server can also be a client, in other words. So your server can generate a thumbnail of what it's serving out by acting as a client for a second. As long as their

RE: [PHP] RE: **[SPAM]** [PHP] Correct context

2004-09-20 Thread Jay Blanchard
[snip] >There are several ways here is one > Longer but seems more readable to me. [/snip] Another way $arrFoo = array ( 'Copy Change', 'Banner Change', 'Price Change', ); if(!(in_array($entry)) && ("" != $row['photo_check'])) -- PHP General Mailing List (

[PHP] Re: gmail accounts

2004-09-20 Thread Markus Fischer
Greg Donald wrote: I have some gmail accounts of anyone wants one. Email me off list. Limited supply, first requests, etc.. I would be interested if there's still one left ;) And now for my php question: Which do you prefer, echo() or print() ? I find that after I've done a bunch of Perl coding a

Re: [PHP] RE: **[SPAM]** [PHP] Correct context

2004-09-20 Thread Mattias Thorslund
Mattias Thorslund wrote: Disclaimer: I have probably left a silly typo somewhere. Sure did: My old nemesis, end parethesis (either too few or too many). It should be: if("" != $row['photo_check']){ switch($entry){ case "Copy Change": case "Banner Change": case "Price Change":

Re: [PHP] RE: **[SPAM]** [PHP] Correct context

2004-09-20 Thread Mattias Thorslund
Jay Blanchard wrote: [snip] Before I go screwing this code up I thought I would ask for the formatting. How would you write the following in PHP? if $entry not equal to "Copy Change" OR "Banner Change" OR

[PHP] RE: **[SPAM]** [PHP] Correct context

2004-09-20 Thread Ed Curtis
On Mon, 20 Sep 2004, Jay Blanchard wrote: > There are several ways here is one > > if(("" != $row['photo_check']) && (("Copy Change" != $entry) || ("Banner > Change" != $entry) || ("Price Change" != $entry))) > > Note the parentheses to define preference order. That's what I was looki

[PHP] RE: **[SPAM]** [PHP] Correct context

2004-09-20 Thread Jay Blanchard
[snip] Before I go screwing this code up I thought I would ask for the formatting. How would you write the following in PHP? if $entry not equal to "Copy Change" OR "Banner Change" OR "Price Change" AN

[PHP] (0x00) in on line error message

2004-09-20 Thread Raghu
Hi, We migrated from PHP 4 to PHP 5 and we are seeing this error message("(0x00) in on line") on almost all pages. Has anyone seen this message? What is the cause of this message? Also I couldn't get the line number and file information also. Thanks in advance Raghu [EMAIL PROTECTED] -- PHP Ge

[PHP] Correct context

2004-09-20 Thread Ed Curtis
Before I go screwing this code up I thought I would ask for the formatting. How would you write the following in PHP? if $entry not equal to "Copy Change" OR "Banner Change" OR "Price Change" AND $ro

[PHP] RE: **[SPAM]** [PHP] gmail accounts

2004-09-20 Thread Jay Blanchard
[snip] Which do you prefer, echo() or print() ? [/snip] http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Media file browser cache question --- second try

2004-09-20 Thread Marek Kilimajer
Daniel Guerrier wrote: And how would I do 1. Configure webserver to send the right headers for .wmv files. Depends on your webserver. For apache, place .htaccess file to the media directory with some Header directives, more here or on apache mailing list: http://httpd.apache.org/docs/mod/mod_hea

[PHP] gmail accounts

2004-09-20 Thread Greg Donald
I have some gmail accounts of anyone wants one. Email me off list. Limited supply, first requests, etc.. And now for my php question: Which do you prefer, echo() or print() ? I find that after I've done a bunch of Perl coding and I'm back on some PHP work I use print. But then after I do a bu

Re: [PHP] Creating Dropdown Menus From Tables

2004-09-20 Thread James Lobley
On Thu, 16 Sep 2004 13:02:31 +0100, Harlequin <[EMAIL PROTECTED]> wrote: > Hi all. > > Hoping this might be relatively easy... > > I'm wondering if I can create a dropdown menu (ABCDE) by > using a select statement and then populating this using PHP...? > > -- > - > M

[PHP] New site: www.thephpwtf.com

2004-09-20 Thread Benson Wong
Hi People, I launched The PHP WTF last night. It is for showcasing examples of bad code we all run across while developing PHP or working with other people's code. Hopefully it'll help demonstrate good design from bad design. If you guys have any code samples that you would like to submit please

Re: [PHP] Media file browser cache question --- second try

2004-09-20 Thread Daniel Guerrier
And how would I do 1. Configure webserver to send the right headers for .wmv files. --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Daniel Guerrier wrote: > > I'm using this code to dynamically retrieve > windows > > media files and send it to the browser. I thought > the > > cache header would

Re: [PHP] thumbnail of webpage

2004-09-20 Thread raditha dissanayake
Gryffyn, Trevor wrote: Some great recommendations, but my first thought is wondering if you can interface with IE via COM or something. Or open the URL via IE and use the Windows API to do a PRINT SCREEN or ALT-PRINT SCREEN to capture it to the clipboard and do something funny that way. Good i

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread Greg Donald
On Mon, 20 Sep 2004 16:36:51 +0100, John Wards <[EMAIL PROTECTED]> wrote: > Right I have a script that I need to run around 90 times thru a cron job > but passing a different i.d. to it each time. > > I have experimented with running all 90 at once and its a no go as it > just makes the server run

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread raditha dissanayake
John Wards wrote: Hi, I have a bit of a cold today so I probably would have figured this out for myself eventually but hey ;-) Right I have a script that I need to run around 90 times thru a cron job but passing a different i.d. to it each time. not suprised. I have experimented with running all

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread John Wards
On Mon, 2004-09-20 at 16:56, Marek Kilimajer wrote: > play around with popen() and stream_select() Oooh that looks handy. More night time reading I think! Any further ideas to save a man with a cold from using his brain would be great! Cheers John -- PHP General Mailing List (http://www.php.n

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread Marek Kilimajer
play around with popen() and stream_select() John Wards wrote: Hi, I have a bit of a cold today so I probably would have figured this out for myself eventually but hey ;-) Right I have a script that I need to run around 90 times thru a cron job but passing a different i.d. to it each time. I have e

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread John Wards
On Mon, 2004-09-20 at 16:45, Wouter van Vliet wrote: > > > > What I would like to do is fork off say 5-10 at a time and when one is > > done start another one in its place, as they all take different length > > of times to compleate. > > > > Any clues at where to start? Here is my fork all 90+ co

RE: [PHP] thumbnail of webpage

2004-09-20 Thread Gryffyn, Trevor
Some great recommendations, but my first thought is wondering if you can interface with IE via COM or something. Or open the URL via IE and use the Windows API to do a PRINT SCREEN or ALT-PRINT SCREEN to capture it to the clipboard and do something funny that way. If I had time right now, I'd lo

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread Wouter van Vliet
> Hi, I have a bit of a cold today so I probably would have figured this > out for myself eventually but hey ;-) > > Right I have a script that I need to run around 90 times thru a cron job > but passing a different i.d. to it each time. > > I have experimented with running all 90 at once and its

Re: [PHP] Weird characters output

2004-09-20 Thread Wouter van Vliet
> I have recently moved a site over to a new server. Now certain > characters are being replaced by weird characters. EG: the ' single > quote is being replaced by a question mark and other characters are also > affected. the information that contains these characters is inside a > mysql database.

[PHP] Fork PHP script X at a time.

2004-09-20 Thread John Wards
Hi, I have a bit of a cold today so I probably would have figured this out for myself eventually but hey ;-) Right I have a script that I need to run around 90 times thru a cron job but passing a different i.d. to it each time. I have experimented with running all 90 at once and its a no go as it

Re: [PHP] Auto escaping an apostrophy...

2004-09-20 Thread Todd Cary
Many thanks to all. Todd John Legg wrote: Todd, From the PHP manual: magic_quotes_gpc boolean Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When magic_quotes are on, all ' (single-quote), " (double quote), \ (backslash) and NUL's are escaped with a backslash automatically.

Re: [PHP] Auto escaping an apostrophy...

2004-09-20 Thread John Nichel
Todd Cary wrote: I have noticed that an apostrophy is automatically escaped with a "\", or at least appears to be if the surfer enters an apostrophy in a text field. Has this always been the case or is there a setting in the php.ini file that contols this? Magic quotes. http://us2.php.net/manua

Re: [PHP] Creating a new window

2004-09-20 Thread John Nichel
Todd Cary wrote: I am using PHP to create a button on a window so that a new window is created when the button is clicked using javaScript. Is there a way to create a new window inline; that is create a window on top of the current window without having the surfer press a button? PHP cannot ope

[PHP] Auto escaping an apostrophy...

2004-09-20 Thread John Legg
Todd, >From the PHP manual: magic_quotes_gpc boolean Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When magic_quotes are on, all ' (single-quote), " (double quote), \ (backslash) and NUL's are escaped with a backslash automatically. Note: If the magic_quotes_sybase dire

Re: [PHP] Creating a new window

2004-09-20 Thread Miles Thompson
JavaScript, not a PHP question., but chekc out onload() MT At 11:42 AM 9/20/2004, Todd Cary wrote: I am using PHP to create a button on a window so that a new window is created when the button is clicked using javaScript. Is there a way to create a new window inline; that is create a window on t

Re: [PHP] Auto escaping an apostrophy...

2004-09-20 Thread Jason Davidson
Turn off magic_quotes_gpc in the php.ini file, they are bad bad abd.. magic_quotes_gpc 0 Jason Todd Cary <[EMAIL PROTECTED]> wrote: > > I have noticed that an apostrophy is automatically escaped with a "\", > or at least appears to be if the surfer enters an apostrophy in a text > field. Ha

Re: [PHP] Creating a new window

2004-09-20 Thread Jason Davidson
this is javascript question isnt it.. but to end the thread quickly... just dont put your js in the button.. just print it .. print "win-=open(...);win.focus();"; that wiill open a win when the browser parses it. Jason Todd Cary <[EMAIL PROTECTED]> wrote: > > I am using PHP to create

[PHP] Auto escaping an apostrophy...

2004-09-20 Thread Todd Cary
I have noticed that an apostrophy is automatically escaped with a "\", or at least appears to be if the surfer enters an apostrophy in a text field. Has this always been the case or is there a setting in the php.ini file that contols this? Todd -- PHP General Mailing List (http://www.php.net/)

[PHP] Creating a new window

2004-09-20 Thread Todd Cary
I am using PHP to create a button on a window so that a new window is created when the button is clicked using javaScript. Is there a way to create a new window inline; that is create a window on top of the current window without having the surfer press a button? Here is my current onClick cod

Re: [PHP] password-protecting with PHP, help plz

2004-09-20 Thread John Nichel
Burhan Khalid wrote: [snip] And here is the action page, testing2.php. if ($_POST['user'] == 'Andrew') && ($_POST['pass'] == 'pass') { echo "Welcome, Andrew."; } And (shocker!) I got a blank page. So I turned out display errors and got this: Parse error: syntax error, unexpected T_BOOLEAN_AND in

Re: [PHP] password-protecting with PHP, help plz

2004-09-20 Thread Burhan Khalid
[snip] And here is the action page, testing2.php. if ($_POST['user'] == 'Andrew') && ($_POST['pass'] == 'pass') { echo "Welcome, Andrew."; } And (shocker!) I got a blank page. So I turned out display errors and got this: Parse error: syntax error, unexpected T_BOOLEAN_AND in c:\TSW\pages\testing

Re: [PHP] turn on GD2 lib on php 4.3.4

2004-09-20 Thread Marek Kilimajer
Afan Pasalic wrote: also found this: "... Extensions listed here are (or will be soon) available as external modules. To install one or all of these, use "urpmi" php-EXTENSION_NAME : mysql pgsql sqlite gd ... then do it: # urpmi php-gd -- PHP General Mailing List (http://www.php.net/) To unsubscri

  1   2   >